Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. [gelöst]Mit Philips Hue Dimmer (Zigbee) Homematic Dimmer steuern

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    3.4k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.4k

[gelöst]Mit Philips Hue Dimmer (Zigbee) Homematic Dimmer steuern

Geplant Angeheftet Gesperrt Verschoben Blockly
9 Beiträge 2 Kommentatoren 1.1k Aufrufe 2 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • H Offline
    H Offline
    Högi
    schrieb am zuletzt editiert von Högi
    #1

    Hallo Zusammen, habe schon viel Zeit investiert um mit Blockly ein Script zu schreiben
    um mit dem Philips Hue Wirless Dimmer Schalter meinen Homematic Dimmer zu steuern.
    Aber es scheitert an meiner Unerfahrenheit. Vielleicht hat ja jemand im Forum die gleiche Kombination und kann mir sein Script übergeben.
    An und ausschalten mit den beiden Schaltern auf dem Philips Schalter bekomme ich hin aber die Schalter für Hoch-Dimmen und Runter-Dimmen da hapert es.
    Wobei es ja 2 Möglichkeiten gibt. 1.) Mann hält den Hoch-Dimmen Taster gedrückt und das Licht dimmt langsam hoch bis auf 100%. das gleiche für Runter-Dimmen. 2.) Mit jedem Tastendruck auf Hoch-Dimmen erhöht man das Licht um z.b. 5 %, das gleiche beim Runter-Dimmen.

    Im Anhang einmal die Datenpunkte! Das ganze wäre von den Hardware Preisen eine tolle Sache.

    Danke im Vorraus für Unterstützung.!

    Im Anhang die Datenpunkte
    Philips Wireless Dimmer.JPG Datenpunkte Homematic Dimmer.JPG Datenpunkte Philips Dimmer.JPG

    H 1 Antwort Letzte Antwort
    0
    • H Högi

      Hallo Zusammen, habe schon viel Zeit investiert um mit Blockly ein Script zu schreiben
      um mit dem Philips Hue Wirless Dimmer Schalter meinen Homematic Dimmer zu steuern.
      Aber es scheitert an meiner Unerfahrenheit. Vielleicht hat ja jemand im Forum die gleiche Kombination und kann mir sein Script übergeben.
      An und ausschalten mit den beiden Schaltern auf dem Philips Schalter bekomme ich hin aber die Schalter für Hoch-Dimmen und Runter-Dimmen da hapert es.
      Wobei es ja 2 Möglichkeiten gibt. 1.) Mann hält den Hoch-Dimmen Taster gedrückt und das Licht dimmt langsam hoch bis auf 100%. das gleiche für Runter-Dimmen. 2.) Mit jedem Tastendruck auf Hoch-Dimmen erhöht man das Licht um z.b. 5 %, das gleiche beim Runter-Dimmen.

      Im Anhang einmal die Datenpunkte! Das ganze wäre von den Hardware Preisen eine tolle Sache.

      Danke im Vorraus für Unterstützung.!

      Im Anhang die Datenpunkte
      Philips Wireless Dimmer.JPG Datenpunkte Homematic Dimmer.JPG Datenpunkte Philips Dimmer.JPG

      H Offline
      H Offline
      Högi
      schrieb am zuletzt editiert von
      #2

      @Högi

      Hier mal das Script wo ich aufgesetzt habe , aber das funktioniert nicht.

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="undefined" id="Intervall">Intervall</variable>
          <variable type="undefined" id="Intervall2">Intervall2</variable>
        </variables>
        <block type="on_ext" id=";JVKkgjk@Bkhc0YHU%!{" x="-1712" y="-737">
          <mutation items="1"></mutation>
          <field name="CONDITION">ne</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="T6{Y*:LSfi=79r+q^O?c">
              <field name="oid">zigbee.0.0017880106b73f93.up_hold</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="KGjw;pF`PUQoT8lxLp=D">
              <mutation elseif="2"></mutation>
              <value name="IF0">
                <block type="logic_operation" id="7:{VtR`u@@nwo*Y^|0!n">
                  <field name="OP">AND</field>
                  <value name="A">
                    <block type="logic_compare" id="!irn`PkWa)RBfNYD1VcE">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="Gd?FngSk_YTjQ9;Y^t%;">
                          <field name="ATTR">val</field>
                          <field name="OID">zigbee.0.0017880106b73f93.up_hold</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="V/?;%I_jaif5jR@;7MT7">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_compare" id="?F|mL:ICJzaz8Cv1Pn{z">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="uN9i,AmG69EDPHt9^#8q">
                          <field name="ATTR">val</field>
                          <field name="OID">javascript.0.scriptEnabled.Josef_Kamp.V_Dimmer1_start</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="5jIKTTg4g=:]|loGS[eV">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="timeouts_setinterval" id="5DqeYX;*f0:6SWwmI3+D">
                  <field name="NAME">Intervall</field>
                  <field name="INTERVAL">1</field>
                  <field name="UNIT">sec</field>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="=3Gr#xn/:`ILx9y|(_!0">
                      <value name="IF0">
                        <block type="logic_compare" id="V5]8ES=-[Qa|#k07|)/1">
                          <field name="OP">LT</field>
                          <value name="A">
                            <block type="get_value" id="N9yf?o/jF8alS{sYd)_g">
                              <field name="ATTR">val</field>
                              <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="math_number" id="Tu^}z^xyqLECMC,(XcoA">
                              <field name="NUM">100</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="|t1=49LCQf5Z.@83MmF1">
                          <mutation delay_input="false"></mutation>
                          <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_arithmetic" id="UPoBCl]`AfDA[f:(N)kD">
                              <field name="OP">ADD</field>
                              <value name="A">
                                <shadow type="math_number" id="~Y-DJAScb8[e6WoH6Z[F">
                                  <field name="NUM">1</field>
                                </shadow>
                                <block type="get_value" id="Pb/!Em#JlOEdfTvx0wv!">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                </block>
                              </value>
                              <value name="B">
                                <shadow type="math_number" id="OS;{8;r2mn~EV;!@vS;)">
                                  <field name="NUM">5</field>
                                </shadow>
                              </value>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </statement>
              <value name="IF1">
                <block type="logic_operation" id=",.=%M:pBzEGwMw][?wz`">
                  <field name="OP">AND</field>
                  <value name="A">
                    <block type="logic_compare" id="Gou;D2)]cWQ0:K_hS/@m">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="X{%`ba^!#!.TBPyba7`o">
                          <field name="ATTR">val</field>
                          <field name="OID">zigbee.0.0017880106b73f93.up_hold</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="J4B|N){kw`-lJ81#E3}~">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_compare" id="hH9{xk4n?*QxRs@pGueo">
                      <field name="OP">EQ</field>
                      <value name="A">
                        <block type="get_value" id="R2-L;AsN=C(HOj:[I:iT">
                          <field name="ATTR">val</field>
                          <field name="OID">javascript.0.scriptEnabled.Josef_Kamp.V_Dimmer1_start</field>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_boolean" id="tC4)f)+JrhnU@Iii)J,7">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO1">
                <block type="timeouts_setinterval" id=",@UvQb7f;a|kS~O9]VLb">
                  <field name="NAME">Intervall2</field>
                  <field name="INTERVAL">1</field>
                  <field name="UNIT">sec</field>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="[kiIGcy7dId^7vpaxdX0">
                      <value name="IF0">
                        <block type="logic_compare" id="j;+#Y!ZXFu0.YjeR@,`)">
                          <field name="OP">GT</field>
                          <value name="A">
                            <block type="get_value" id="5n#jRU+_`nFi!5F,ckSb">
                              <field name="ATTR">val</field>
                              <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="math_number" id="jj(E:AW/[SnoKqP1)lo4">
                              <field name="NUM">5</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="38@8(71U`}mAZ:t@Y-;(">
                          <mutation delay_input="false"></mutation>
                          <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                          <field name="WITH_DELAY">FALSE</field>
                          <value name="VALUE">
                            <block type="math_arithmetic" id="got_~l-xB.)XrhoPSTs-">
                              <field name="OP">MINUS</field>
                              <value name="A">
                                <shadow type="math_number" id="~Y-DJAScb8[e6WoH6Z[F">
                                  <field name="NUM">1</field>
                                </shadow>
                                <block type="get_value" id=":9ed2b-=7M+Ki.Y19oR*">
                                  <field name="ATTR">val</field>
                                  <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                </block>
                              </value>
                              <value name="B">
                                <shadow type="math_number" id="Kd#@peLgC2WJBA[|rw}4">
                                  <field name="NUM">5</field>
                                </shadow>
                              </value>
                            </block>
                          </value>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </statement>
              <value name="IF2">
                <block type="logic_compare" id="0Qv.xU6}h)qH16LwM]?8">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="Gj`/5nCr:/?Z;Jf[0OmJ">
                      <field name="ATTR">val</field>
                      <field name="OID">zigbee.0.0017880106b73f93.up_hold</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="logic_boolean" id="Z94v#fw8z40tB[dJGl/2">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO2">
                <block type="toggle" id="s%2N7^pS+N9B0abBZLU?">
                  <mutation delay_input="false"></mutation>
                  <field name="OID">javascript.0.scriptEnabled.Josef_Kamp.V_Dimmer1_start</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <next>
                    <block type="timeouts_clearinterval" id="F]i8dy!eu4X-`tWSV5+v">
                      <field name="NAME">Intervall</field>
                      <next>
                        <block type="timeouts_clearinterval" id="beYDQl}Ly(4sS!_P(p,F">
                          <field name="NAME">Intervall2</field>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>```
      code_text
      
      paul53P 1 Antwort Letzte Antwort
      0
      • H Högi

        @Högi

        Hier mal das Script wo ich aufgesetzt habe , aber das funktioniert nicht.

        <xml xmlns="http://www.w3.org/1999/xhtml">
          <variables>
            <variable type="undefined" id="Intervall">Intervall</variable>
            <variable type="undefined" id="Intervall2">Intervall2</variable>
          </variables>
          <block type="on_ext" id=";JVKkgjk@Bkhc0YHU%!{" x="-1712" y="-737">
            <mutation items="1"></mutation>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="T6{Y*:LSfi=79r+q^O?c">
                <field name="oid">zigbee.0.0017880106b73f93.up_hold</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="controls_if" id="KGjw;pF`PUQoT8lxLp=D">
                <mutation elseif="2"></mutation>
                <value name="IF0">
                  <block type="logic_operation" id="7:{VtR`u@@nwo*Y^|0!n">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="!irn`PkWa)RBfNYD1VcE">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="Gd?FngSk_YTjQ9;Y^t%;">
                            <field name="ATTR">val</field>
                            <field name="OID">zigbee.0.0017880106b73f93.up_hold</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="V/?;%I_jaif5jR@;7MT7">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="?F|mL:ICJzaz8Cv1Pn{z">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="uN9i,AmG69EDPHt9^#8q">
                            <field name="ATTR">val</field>
                            <field name="OID">javascript.0.scriptEnabled.Josef_Kamp.V_Dimmer1_start</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="5jIKTTg4g=:]|loGS[eV">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="timeouts_setinterval" id="5DqeYX;*f0:6SWwmI3+D">
                    <field name="NAME">Intervall</field>
                    <field name="INTERVAL">1</field>
                    <field name="UNIT">sec</field>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="=3Gr#xn/:`ILx9y|(_!0">
                        <value name="IF0">
                          <block type="logic_compare" id="V5]8ES=-[Qa|#k07|)/1">
                            <field name="OP">LT</field>
                            <value name="A">
                              <block type="get_value" id="N9yf?o/jF8alS{sYd)_g">
                                <field name="ATTR">val</field>
                                <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="Tu^}z^xyqLECMC,(XcoA">
                                <field name="NUM">100</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="|t1=49LCQf5Z.@83MmF1">
                            <mutation delay_input="false"></mutation>
                            <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_arithmetic" id="UPoBCl]`AfDA[f:(N)kD">
                                <field name="OP">ADD</field>
                                <value name="A">
                                  <shadow type="math_number" id="~Y-DJAScb8[e6WoH6Z[F">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="get_value" id="Pb/!Em#JlOEdfTvx0wv!">
                                    <field name="ATTR">val</field>
                                    <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow type="math_number" id="OS;{8;r2mn~EV;!@vS;)">
                                    <field name="NUM">5</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </statement>
                <value name="IF1">
                  <block type="logic_operation" id=",.=%M:pBzEGwMw][?wz`">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="Gou;D2)]cWQ0:K_hS/@m">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="X{%`ba^!#!.TBPyba7`o">
                            <field name="ATTR">val</field>
                            <field name="OID">zigbee.0.0017880106b73f93.up_hold</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="J4B|N){kw`-lJ81#E3}~">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="hH9{xk4n?*QxRs@pGueo">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="R2-L;AsN=C(HOj:[I:iT">
                            <field name="ATTR">val</field>
                            <field name="OID">javascript.0.scriptEnabled.Josef_Kamp.V_Dimmer1_start</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="logic_boolean" id="tC4)f)+JrhnU@Iii)J,7">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO1">
                  <block type="timeouts_setinterval" id=",@UvQb7f;a|kS~O9]VLb">
                    <field name="NAME">Intervall2</field>
                    <field name="INTERVAL">1</field>
                    <field name="UNIT">sec</field>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="[kiIGcy7dId^7vpaxdX0">
                        <value name="IF0">
                          <block type="logic_compare" id="j;+#Y!ZXFu0.YjeR@,`)">
                            <field name="OP">GT</field>
                            <value name="A">
                              <block type="get_value" id="5n#jRU+_`nFi!5F,ckSb">
                                <field name="ATTR">val</field>
                                <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="jj(E:AW/[SnoKqP1)lo4">
                                <field name="NUM">5</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="38@8(71U`}mAZ:t@Y-;(">
                            <mutation delay_input="false"></mutation>
                            <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_arithmetic" id="got_~l-xB.)XrhoPSTs-">
                                <field name="OP">MINUS</field>
                                <value name="A">
                                  <shadow type="math_number" id="~Y-DJAScb8[e6WoH6Z[F">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="get_value" id=":9ed2b-=7M+Ki.Y19oR*">
                                    <field name="ATTR">val</field>
                                    <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow type="math_number" id="Kd#@peLgC2WJBA[|rw}4">
                                    <field name="NUM">5</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </statement>
                <value name="IF2">
                  <block type="logic_compare" id="0Qv.xU6}h)qH16LwM]?8">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="get_value" id="Gj`/5nCr:/?Z;Jf[0OmJ">
                        <field name="ATTR">val</field>
                        <field name="OID">zigbee.0.0017880106b73f93.up_hold</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_boolean" id="Z94v#fw8z40tB[dJGl/2">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO2">
                  <block type="toggle" id="s%2N7^pS+N9B0abBZLU?">
                    <mutation delay_input="false"></mutation>
                    <field name="OID">javascript.0.scriptEnabled.Josef_Kamp.V_Dimmer1_start</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <next>
                      <block type="timeouts_clearinterval" id="F]i8dy!eu4X-`tWSV5+v">
                        <field name="NAME">Intervall</field>
                        <next>
                          <block type="timeouts_clearinterval" id="beYDQl}Ly(4sS!_P(p,F">
                            <field name="NAME">Intervall2</field>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
        </xml>```
        code_text
        
        paul53P Offline
        paul53P Offline
        paul53
        schrieb am zuletzt editiert von
        #3

        @Högi Versuche es mal so:

        Blockly_Rampe_Rollo.JPG

        Export:

        <xml xmlns="http://www.w3.org/1999/xhtml">
          <variables>
            <variable type="" id="DPI{f%|vfODASw4b1wA|">level</variable>
            <variable type="" id="qkm9=RDc=_9K:j`p1|f8">step</variable>
            <variable type="undefined" id="Intervall">Intervall</variable>
          </variables>
          <block type="procedures_defnoreturn" id="rECDpeiBn{=Xbp%I0T4i" x="-1713" y="-1038">
            <field name="NAME">rampe</field>
            <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
            <statement name="STACK">
              <block type="math_change" id="0,0uJLYb`kq~PdXo%]!M">
                <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                <value name="DELTA">
                  <shadow type="math_number" id="ZrE.5*i9gKktu@Yfoxb3">
                    <field name="NUM">1</field>
                  </shadow>
                  <block type="variables_get" id="Elv_uvFk3ap{:t,(V=$t">
                    <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                  </block>
                </value>
                <next>
                  <block type="timeouts_setinterval" id="5DqeYX;*f0:6SWwmI3+D">
                    <field name="NAME">Intervall</field>
                    <field name="INTERVAL">500</field>
                    <field name="UNIT">ms</field>
                    <statement name="STATEMENT">
                      <block type="math_change" id="I,yt,=/.[ui1yDn=hu}X">
                        <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                        <value name="DELTA">
                          <shadow type="math_number" id="5IBjfq2PlxW?=^S(:qJF">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="r5N(D|BbIz9tMYg8d[6s">
                            <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                    <next>
                      <block type="controls_if" id="eCbnY/:9i(:lcXrs?b!A">
                        <value name="IF0">
                          <block type="logic_compare" id="u{G)xXUPBEy*+C+4U{N0">
                            <field name="OP">GT</field>
                            <value name="A">
                              <block type="variables_get" id="j_g.#gfB9^Wwns}$P*Un">
                                <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="math_number" id="L4B6,:Z9CXEhax~hX~G,">
                                <field name="NUM">99</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id=";c~YY;XS{sn0e)aL,vIY">
                            <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                            <value name="VALUE">
                              <block type="math_number" id="xDmH:zlwU*3Fe$_RrI_b">
                                <field name="NUM">99</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="$-pRVQam3~fpO#GPfwtb">
                            <value name="IF0">
                              <block type="logic_compare" id="L-wslKV2B,Id@Q(6f?MQ">
                                <field name="OP">LT</field>
                                <value name="A">
                                  <block type="variables_get" id="amPVVWR46VqjzW[GB?a?">
                                    <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="math_number" id="f$^c]oN9D,UBZdWA,SSf">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="@UOg.o4+6Pf2tjuZAcc?">
                                <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                <value name="VALUE">
                                  <block type="math_number" id="G/Zm!!7fHgs9}wueGfg[">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="control" id="|t1=49LCQf5Z.@83MmF1">
                                <mutation delay_input="false"></mutation>
                                <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                <field name="WITH_DELAY">FALSE</field>
                                <value name="VALUE">
                                  <block type="variables_get" id="2`Q/eSWJ5wr*CaXvU)6_">
                                    <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                  </block>
                                </value>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </statement>
          </block>
          <block type="variables_set" id="GM~^!8=zc6cg##`3_coS" x="-1713" y="-713">
            <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
            <value name="VALUE">
              <block type="get_value" id="N9yf?o/jF8alS{sYd)_g">
                <field name="ATTR">val</field>
                <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
              </block>
            </value>
            <next>
              <block type="on_ext" id=";JVKkgjk@Bkhc0YHU%!{">
                <mutation items="1"></mutation>
                <field name="CONDITION">ne</field>
                <field name="ACK_CONDITION"></field>
                <value name="OID0">
                  <shadow type="field_oid" id="T6{Y*:LSfi=79r+q^O?c">
                    <field name="oid">zigbee.0.0017880106b73f93.up_hold</field>
                  </shadow>
                </value>
                <statement name="STATEMENT">
                  <block type="controls_if" id="KGjw;pF`PUQoT8lxLp=D">
                    <mutation else="1"></mutation>
                    <value name="IF0">
                      <block type="on_source" id="7aa@vC7w7Vhd]TSU0HEM">
                        <field name="ATTR">state.val</field>
                      </block>
                    </value>
                    <statement name="DO0">
                      <block type="variables_set" id="O$,oi?J?U@Wx969gj0Mq">
                        <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                        <value name="VALUE">
                          <block type="math_number" id="u2A%uPty;kromCAE7!Te">
                            <field name="NUM">3</field>
                          </block>
                        </value>
                        <next>
                          <block type="procedures_callnoreturn" id="#2?-h=Rjc5bHzVv@Al3)">
                            <mutation name="rampe"></mutation>
                          </block>
                        </next>
                      </block>
                    </statement>
                    <statement name="ELSE">
                      <block type="timeouts_clearinterval" id="qVDX$.R7?zN=ssfz29=1">
                        <field name="NAME">Intervall</field>
                      </block>
                    </statement>
                  </block>
                </statement>
                <next>
                  <block type="on_ext" id="_g^xP-JLYKhL2Q*]#+oR">
                    <mutation items="1"></mutation>
                    <field name="CONDITION">ne</field>
                    <field name="ACK_CONDITION"></field>
                    <value name="OID0">
                      <shadow type="field_oid" id="f)}+753pF/q7G}yOu4yZ">
                        <field name="oid">default</field>
                      </shadow>
                      <block type="text" id="_(P$*1ch1erq_]n.(Ylp">
                        <field name="TEXT">zigbee.0.0017880106b73f93.down_hold</field>
                      </block>
                    </value>
                    <statement name="STATEMENT">
                      <block type="controls_if" id=",c*INHomKM^^eo4WnKv9">
                        <mutation else="1"></mutation>
                        <value name="IF0">
                          <block type="on_source" id="AN=2}za$Rwd3BE.2.(tD">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="variables_set" id="(X:{i|PQDI0Oal-buxyh">
                            <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                            <value name="VALUE">
                              <block type="math_number" id="0lr{CbOteD/}kF`EhH(8">
                                <field name="NUM">-3</field>
                              </block>
                            </value>
                            <next>
                              <block type="procedures_callnoreturn" id="/B9xh#(7D})$$@d#*eX$">
                                <mutation name="rampe"></mutation>
                              </block>
                            </next>
                          </block>
                        </statement>
                        <statement name="ELSE">
                          <block type="timeouts_clearinterval" id="9h4MYS_IJdR^D})TC@Qe">
                            <field name="NAME">Intervall</field>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </xml>
        

        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

        1 Antwort Letzte Antwort
        0
        • H Offline
          H Offline
          Högi
          schrieb am zuletzt editiert von
          #4

          Hallo paul53, Hut ab gerade getestet funktioniert super !!
          Vielen vielen Dank.
          Jetzt muss ich noch selber hinbekommen das ich 2 Homematic Dimmer parallel steuere da ich 2 Lampen mit 2 Homematic Dimmer im gleichen raum steuere. Aber ich kann ja 2 Scripte erstellen!
          Danke

          paul53P 1 Antwort Letzte Antwort
          0
          • H Högi

            Hallo paul53, Hut ab gerade getestet funktioniert super !!
            Vielen vielen Dank.
            Jetzt muss ich noch selber hinbekommen das ich 2 Homematic Dimmer parallel steuere da ich 2 Lampen mit 2 Homematic Dimmer im gleichen raum steuere. Aber ich kann ja 2 Scripte erstellen!
            Danke

            paul53P Offline
            paul53P Offline
            paul53
            schrieb am zuletzt editiert von
            #5

            @Högi sagte:

            2 Homematic Dimmer parallel steuere

            Wenn sie wirklich parallel laufen sollen, genügt ein zweites steuere ID mit level in der Funktion.

            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

            1 Antwort Letzte Antwort
            0
            • H Offline
              H Offline
              Högi
              schrieb am zuletzt editiert von
              #6

              Komisch,
              jetzt mit zweiter "steuere ID mit level" läuft es nicht mehr.
              Ich habe mal das Script mit den AN/AUS was mit dem Philips Hue Dimmer über die Tasten bedient wird angehängt. Oder kann mann alles in ein Script programmieren ? D.H
              AN/AUS und HOCH/RUNTER Dimmen für die 2 Homematic Dimmer ?
              Sorry bin absoluter Anfänger!
              Hier mein Script für AN/AUS

              <xml xmlns="http://www.w3.org/1999/xhtml">
                <block type="on_ext" id="kxh=m:Zi6h.E5tXJ{CDk" x="-662" y="-562">
                  <mutation items="1"></mutation>
                  <field name="CONDITION">any</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="Bj;65aYVPBQ59mOC!e~?">
                      <field name="oid">zigbee.0.0017880106b73f93.state</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="j87.ZsAyGl(mU8^*6Tr;">
                      <mutation elseif="1"></mutation>
                      <value name="IF0">
                        <block type="logic_compare" id="u]6#GJ?W(}eGZlWHNfmy">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="_0*k%JdKf23sQc076KVO">
                              <field name="ATTR">val</field>
                              <field name="OID">zigbee.0.0017880106b73f93.state</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="C[Bm7xFVVR4I|:G$r=1*">
                              <field name="BOOL">FALSE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="control" id="p)NNq0O@oTT4jzW=lnZh">
                          <mutation delay_input="true"></mutation>
                          <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                          <field name="WITH_DELAY">TRUE</field>
                          <field name="DELAY_MS">1000</field>
                          <field name="UNIT">ms</field>
                          <field name="CLEAR_RUNNING">FALSE</field>
                          <value name="VALUE">
                            <block type="math_number" id="Qk3sfcgJ}[^SD-[1FL/S">
                              <field name="NUM">0</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <value name="IF1">
                        <block type="logic_compare" id="Wv*Fd|94_lq:*o?ROpJd">
                          <field name="OP">EQ</field>
                          <value name="A">
                            <block type="get_value" id="z-?DWL[#sKM`xV#6)F$T">
                              <field name="ATTR">val</field>
                              <field name="OID">zigbee.0.0017880106b73f93.state</field>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_boolean" id="iRombb}nak,:@15We8|C">
                              <field name="BOOL">TRUE</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO1">
                        <block type="control" id="RFCq0N87-8$9~-%c.gg5">
                          <mutation delay_input="true"></mutation>
                          <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                          <field name="WITH_DELAY">TRUE</field>
                          <field name="DELAY_MS">700</field>
                          <field name="UNIT">ms</field>
                          <field name="CLEAR_RUNNING">TRUE</field>
                          <value name="VALUE">
                            <block type="math_number" id="Bv;=g*ZMGn0=ok1xve^2">
                              <field name="NUM">100</field>
                            </block>
                          </value>
                        </block>
                      </statement>
                      <next>
                        <block type="controls_if" id="t$jNbc7kIc3j=6bZv]yu">
                          <mutation elseif="1"></mutation>
                          <value name="IF0">
                            <block type="logic_compare" id="d+0|p]tn*j-f~lzc+d-R">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="k|/Dr@/Ef6N[(59Xk#l.">
                                  <field name="ATTR">val</field>
                                  <field name="OID">zigbee.0.0017880106b73f93.state</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="qp{sS+.KNw)TcArYDJQb">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="ma*`qN/Pw!4lbS5.%}H7">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">1000</field>
                              <field name="UNIT">ms</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="5iyAxS6KTy#Z|tO:u5?C">
                                  <field name="NUM">0</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                          <value name="IF1">
                            <block type="logic_compare" id="Gx5CeXo??5(/-@_{#nWr">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="$A=nwc+:}5!.kmBCA+@M">
                                  <field name="ATTR">val</field>
                                  <field name="OID">zigbee.0.0017880106b73f93.state</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="QVzIpLtK9R7E_EM_`Vi5">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO1">
                            <block type="control" id=",G8aHft]S9Y]y=(Q#4vw">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">700</field>
                              <field name="UNIT">ms</field>
                              <field name="CLEAR_RUNNING">TRUE</field>
                              <value name="VALUE">
                                <block type="math_number" id="`a-|Pp~mzCR3?FBQon[h">
                                  <field name="NUM">100</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </xml>
              

              Und hier dein geändertes Script

              <xml xmlns="http://www.w3.org/1999/xhtml">
                <variables>
                  <variable type="" id="DPI{f%|vfODASw4b1wA|">level</variable>
                  <variable type="" id="qkm9=RDc=_9K:j`p1|f8">step</variable>
                  <variable type="undefined" id="Intervall">Intervall</variable>
                </variables>
                <block type="procedures_defnoreturn" id="rECDpeiBn{=Xbp%I0T4i" x="-1713" y="-1038">
                  <field name="NAME">rampe</field>
                  <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                  <statement name="STACK">
                    <block type="math_change" id="0,0uJLYb`kq~PdXo%]!M">
                      <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                      <value name="DELTA">
                        <shadow type="math_number" id="ZrE.5*i9gKktu@Yfoxb3">
                          <field name="NUM">1</field>
                        </shadow>
                        <block type="variables_get" id="Elv_uvFk3ap{:t,(V=$t">
                          <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                        </block>
                      </value>
                      <next>
                        <block type="timeouts_setinterval" id="5DqeYX;*f0:6SWwmI3+D">
                          <field name="NAME">Intervall</field>
                          <field name="INTERVAL">500</field>
                          <field name="UNIT">ms</field>
                          <statement name="STATEMENT">
                            <block type="math_change" id="I,yt,=/.[ui1yDn=hu}X">
                              <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                              <value name="DELTA">
                                <shadow type="math_number" id="5IBjfq2PlxW?=^S(:qJF">
                                  <field name="NUM">1</field>
                                </shadow>
                                <block type="variables_get" id="r5N(D|BbIz9tMYg8d[6s">
                                  <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                          <next>
                            <block type="controls_if" id="eCbnY/:9i(:lcXrs?b!A">
                              <value name="IF0">
                                <block type="logic_compare" id="u{G)xXUPBEy*+C+4U{N0">
                                  <field name="OP">GT</field>
                                  <value name="A">
                                    <block type="variables_get" id="j_g.#gfB9^Wwns}$P*Un">
                                      <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="math_number" id="L4B6,:Z9CXEhax~hX~G,">
                                      <field name="NUM">99</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="variables_set" id=";c~YY;XS{sn0e)aL,vIY">
                                  <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="xDmH:zlwU*3Fe$_RrI_b">
                                      <field name="NUM">99</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                              <next>
                                <block type="controls_if" id="$-pRVQam3~fpO#GPfwtb">
                                  <value name="IF0">
                                    <block type="logic_compare" id="L-wslKV2B,Id@Q(6f?MQ">
                                      <field name="OP">LT</field>
                                      <value name="A">
                                        <block type="variables_get" id="amPVVWR46VqjzW[GB?a?">
                                          <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="f$^c]oN9D,UBZdWA,SSf">
                                          <field name="NUM">0</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="variables_set" id="@UOg.o4+6Pf2tjuZAcc?">
                                      <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="G/Zm!!7fHgs9}wueGfg[">
                                          <field name="NUM">0</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="control" id="|t1=49LCQf5Z.@83MmF1">
                                      <mutation delay_input="false"></mutation>
                                      <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="variables_get" id="2`Q/eSWJ5wr*CaXvU)6_">
                                          <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="control" id="iqvY8#tNKLLlHFCK9R=(">
                                          <mutation delay_input="false"></mutation>
                                          <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="variables_get" id="iW4:vDs|/]tl_%z/#)25">
                                              <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="variables_set" id=":s[_enm]j}nmpmE8?~Z$">
                                              <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                              <value name="VALUE">
                                                <block type="get_value" id="4h?9N-kM0O*xyr{ixjxJ">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="GM~^!8=zc6cg##`3_coS">
                                                  <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                                  <value name="VALUE">
                                                    <block type="get_value" id="N9yf?o/jF8alS{sYd)_g">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="on_ext" id=";JVKkgjk@Bkhc0YHU%!{">
                                                      <mutation items="1"></mutation>
                                                      <field name="CONDITION">ne</field>
                                                      <field name="ACK_CONDITION"></field>
                                                      <value name="OID0">
                                                        <shadow type="field_oid" id="T6{Y*:LSfi=79r+q^O?c">
                                                          <field name="oid">zigbee.0.0017880106b73f93.up_hold</field>
                                                        </shadow>
                                                      </value>
                                                      <statement name="STATEMENT">
                                                        <block type="controls_if" id="KGjw;pF`PUQoT8lxLp=D">
                                                          <mutation else="1"></mutation>
                                                          <value name="IF0">
                                                            <block type="on_source" id="7aa@vC7w7Vhd]TSU0HEM">
                                                              <field name="ATTR">state.val</field>
                                                            </block>
                                                          </value>
                                                          <statement name="DO0">
                                                            <block type="variables_set" id="O$,oi?J?U@Wx969gj0Mq">
                                                              <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                                              <value name="VALUE">
                                                                <block type="math_number" id="u2A%uPty;kromCAE7!Te">
                                                                  <field name="NUM">3</field>
                                                                </block>
                                                              </value>
                                                              <next>
                                                                <block type="procedures_callnoreturn" id="#2?-h=Rjc5bHzVv@Al3)">
                                                                  <mutation name="rampe"></mutation>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </statement>
                                                          <statement name="ELSE">
                                                            <block type="timeouts_clearinterval" id="qVDX$.R7?zN=ssfz29=1">
                                                              <field name="NAME">Intervall</field>
                                                            </block>
                                                          </statement>
                                                        </block>
                                                      </statement>
                                                      <next>
                                                        <block type="on_ext" id="_g^xP-JLYKhL2Q*]#+oR">
                                                          <mutation items="1"></mutation>
                                                          <field name="CONDITION">ne</field>
                                                          <field name="ACK_CONDITION"></field>
                                                          <value name="OID0">
                                                            <shadow type="field_oid" id="f)}+753pF/q7G}yOu4yZ">
                                                              <field name="oid">zigbee.0.0017880106b73f93.down_hold</field>
                                                            </shadow>
                                                          </value>
                                                          <statement name="STATEMENT">
                                                            <block type="controls_if" id=",c*INHomKM^^eo4WnKv9">
                                                              <mutation else="1"></mutation>
                                                              <value name="IF0">
                                                                <block type="on_source" id="AN=2}za$Rwd3BE.2.(tD">
                                                                  <field name="ATTR">state.val</field>
                                                                </block>
                                                              </value>
                                                              <statement name="DO0">
                                                                <block type="variables_set" id="(X:{i|PQDI0Oal-buxyh">
                                                                  <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                                                  <value name="VALUE">
                                                                    <block type="math_number" id="0lr{CbOteD/}kF`EhH(8">
                                                                      <field name="NUM">-3</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="procedures_callnoreturn" id="/B9xh#(7D})$$@d#*eX$">
                                                                      <mutation name="rampe"></mutation>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </statement>
                                                              <statement name="ELSE">
                                                                <block type="timeouts_clearinterval" id="9h4MYS_IJdR^D})TC@Qe">
                                                                  <field name="NAME">Intervall</field>
                                                                </block>
                                                              </statement>
                                                            </block>
                                                          </statement>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </xml>
              
              paul53P 1 Antwort Letzte Antwort
              0
              • H Högi

                Komisch,
                jetzt mit zweiter "steuere ID mit level" läuft es nicht mehr.
                Ich habe mal das Script mit den AN/AUS was mit dem Philips Hue Dimmer über die Tasten bedient wird angehängt. Oder kann mann alles in ein Script programmieren ? D.H
                AN/AUS und HOCH/RUNTER Dimmen für die 2 Homematic Dimmer ?
                Sorry bin absoluter Anfänger!
                Hier mein Script für AN/AUS

                <xml xmlns="http://www.w3.org/1999/xhtml">
                  <block type="on_ext" id="kxh=m:Zi6h.E5tXJ{CDk" x="-662" y="-562">
                    <mutation items="1"></mutation>
                    <field name="CONDITION">any</field>
                    <field name="ACK_CONDITION"></field>
                    <value name="OID0">
                      <shadow type="field_oid" id="Bj;65aYVPBQ59mOC!e~?">
                        <field name="oid">zigbee.0.0017880106b73f93.state</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="j87.ZsAyGl(mU8^*6Tr;">
                        <mutation elseif="1"></mutation>
                        <value name="IF0">
                          <block type="logic_compare" id="u]6#GJ?W(}eGZlWHNfmy">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="_0*k%JdKf23sQc076KVO">
                                <field name="ATTR">val</field>
                                <field name="OID">zigbee.0.0017880106b73f93.state</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="C[Bm7xFVVR4I|:G$r=1*">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="p)NNq0O@oTT4jzW=lnZh">
                            <mutation delay_input="true"></mutation>
                            <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                            <field name="WITH_DELAY">TRUE</field>
                            <field name="DELAY_MS">1000</field>
                            <field name="UNIT">ms</field>
                            <field name="CLEAR_RUNNING">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="Qk3sfcgJ}[^SD-[1FL/S">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF1">
                          <block type="logic_compare" id="Wv*Fd|94_lq:*o?ROpJd">
                            <field name="OP">EQ</field>
                            <value name="A">
                              <block type="get_value" id="z-?DWL[#sKM`xV#6)F$T">
                                <field name="ATTR">val</field>
                                <field name="OID">zigbee.0.0017880106b73f93.state</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_boolean" id="iRombb}nak,:@15We8|C">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO1">
                          <block type="control" id="RFCq0N87-8$9~-%c.gg5">
                            <mutation delay_input="true"></mutation>
                            <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                            <field name="WITH_DELAY">TRUE</field>
                            <field name="DELAY_MS">700</field>
                            <field name="UNIT">ms</field>
                            <field name="CLEAR_RUNNING">TRUE</field>
                            <value name="VALUE">
                              <block type="math_number" id="Bv;=g*ZMGn0=ok1xve^2">
                                <field name="NUM">100</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="controls_if" id="t$jNbc7kIc3j=6bZv]yu">
                            <mutation elseif="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="d+0|p]tn*j-f~lzc+d-R">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="k|/Dr@/Ef6N[(59Xk#l.">
                                    <field name="ATTR">val</field>
                                    <field name="OID">zigbee.0.0017880106b73f93.state</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="qp{sS+.KNw)TcArYDJQb">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="ma*`qN/Pw!4lbS5.%}H7">
                                <mutation delay_input="true"></mutation>
                                <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">1000</field>
                                <field name="UNIT">ms</field>
                                <field name="CLEAR_RUNNING">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="5iyAxS6KTy#Z|tO:u5?C">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <value name="IF1">
                              <block type="logic_compare" id="Gx5CeXo??5(/-@_{#nWr">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="$A=nwc+:}5!.kmBCA+@M">
                                    <field name="ATTR">val</field>
                                    <field name="OID">zigbee.0.0017880106b73f93.state</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="QVzIpLtK9R7E_EM_`Vi5">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO1">
                              <block type="control" id=",G8aHft]S9Y]y=(Q#4vw">
                                <mutation delay_input="true"></mutation>
                                <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">700</field>
                                <field name="UNIT">ms</field>
                                <field name="CLEAR_RUNNING">TRUE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="`a-|Pp~mzCR3?FBQon[h">
                                    <field name="NUM">100</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </xml>
                

                Und hier dein geändertes Script

                <xml xmlns="http://www.w3.org/1999/xhtml">
                  <variables>
                    <variable type="" id="DPI{f%|vfODASw4b1wA|">level</variable>
                    <variable type="" id="qkm9=RDc=_9K:j`p1|f8">step</variable>
                    <variable type="undefined" id="Intervall">Intervall</variable>
                  </variables>
                  <block type="procedures_defnoreturn" id="rECDpeiBn{=Xbp%I0T4i" x="-1713" y="-1038">
                    <field name="NAME">rampe</field>
                    <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                    <statement name="STACK">
                      <block type="math_change" id="0,0uJLYb`kq~PdXo%]!M">
                        <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                        <value name="DELTA">
                          <shadow type="math_number" id="ZrE.5*i9gKktu@Yfoxb3">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="Elv_uvFk3ap{:t,(V=$t">
                            <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                          </block>
                        </value>
                        <next>
                          <block type="timeouts_setinterval" id="5DqeYX;*f0:6SWwmI3+D">
                            <field name="NAME">Intervall</field>
                            <field name="INTERVAL">500</field>
                            <field name="UNIT">ms</field>
                            <statement name="STATEMENT">
                              <block type="math_change" id="I,yt,=/.[ui1yDn=hu}X">
                                <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                <value name="DELTA">
                                  <shadow type="math_number" id="5IBjfq2PlxW?=^S(:qJF">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="variables_get" id="r5N(D|BbIz9tMYg8d[6s">
                                    <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="eCbnY/:9i(:lcXrs?b!A">
                                <value name="IF0">
                                  <block type="logic_compare" id="u{G)xXUPBEy*+C+4U{N0">
                                    <field name="OP">GT</field>
                                    <value name="A">
                                      <block type="variables_get" id="j_g.#gfB9^Wwns}$P*Un">
                                        <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="L4B6,:Z9CXEhax~hX~G,">
                                        <field name="NUM">99</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="variables_set" id=";c~YY;XS{sn0e)aL,vIY">
                                    <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="xDmH:zlwU*3Fe$_RrI_b">
                                        <field name="NUM">99</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="$-pRVQam3~fpO#GPfwtb">
                                    <value name="IF0">
                                      <block type="logic_compare" id="L-wslKV2B,Id@Q(6f?MQ">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="variables_get" id="amPVVWR46VqjzW[GB?a?">
                                            <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="f$^c]oN9D,UBZdWA,SSf">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="@UOg.o4+6Pf2tjuZAcc?">
                                        <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="G/Zm!!7fHgs9}wueGfg[">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="control" id="|t1=49LCQf5Z.@83MmF1">
                                        <mutation delay_input="false"></mutation>
                                        <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="variables_get" id="2`Q/eSWJ5wr*CaXvU)6_">
                                            <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="iqvY8#tNKLLlHFCK9R=(">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="iW4:vDs|/]tl_%z/#)25">
                                                <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="variables_set" id=":s[_enm]j}nmpmE8?~Z$">
                                                <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                                <value name="VALUE">
                                                  <block type="get_value" id="4h?9N-kM0O*xyr{ixjxJ">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="variables_set" id="GM~^!8=zc6cg##`3_coS">
                                                    <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                                    <value name="VALUE">
                                                      <block type="get_value" id="N9yf?o/jF8alS{sYd)_g">
                                                        <field name="ATTR">val</field>
                                                        <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="on_ext" id=";JVKkgjk@Bkhc0YHU%!{">
                                                        <mutation items="1"></mutation>
                                                        <field name="CONDITION">ne</field>
                                                        <field name="ACK_CONDITION"></field>
                                                        <value name="OID0">
                                                          <shadow type="field_oid" id="T6{Y*:LSfi=79r+q^O?c">
                                                            <field name="oid">zigbee.0.0017880106b73f93.up_hold</field>
                                                          </shadow>
                                                        </value>
                                                        <statement name="STATEMENT">
                                                          <block type="controls_if" id="KGjw;pF`PUQoT8lxLp=D">
                                                            <mutation else="1"></mutation>
                                                            <value name="IF0">
                                                              <block type="on_source" id="7aa@vC7w7Vhd]TSU0HEM">
                                                                <field name="ATTR">state.val</field>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="variables_set" id="O$,oi?J?U@Wx969gj0Mq">
                                                                <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                                                <value name="VALUE">
                                                                  <block type="math_number" id="u2A%uPty;kromCAE7!Te">
                                                                    <field name="NUM">3</field>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="procedures_callnoreturn" id="#2?-h=Rjc5bHzVv@Al3)">
                                                                    <mutation name="rampe"></mutation>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                            <statement name="ELSE">
                                                              <block type="timeouts_clearinterval" id="qVDX$.R7?zN=ssfz29=1">
                                                                <field name="NAME">Intervall</field>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </statement>
                                                        <next>
                                                          <block type="on_ext" id="_g^xP-JLYKhL2Q*]#+oR">
                                                            <mutation items="1"></mutation>
                                                            <field name="CONDITION">ne</field>
                                                            <field name="ACK_CONDITION"></field>
                                                            <value name="OID0">
                                                              <shadow type="field_oid" id="f)}+753pF/q7G}yOu4yZ">
                                                                <field name="oid">zigbee.0.0017880106b73f93.down_hold</field>
                                                              </shadow>
                                                            </value>
                                                            <statement name="STATEMENT">
                                                              <block type="controls_if" id=",c*INHomKM^^eo4WnKv9">
                                                                <mutation else="1"></mutation>
                                                                <value name="IF0">
                                                                  <block type="on_source" id="AN=2}za$Rwd3BE.2.(tD">
                                                                    <field name="ATTR">state.val</field>
                                                                  </block>
                                                                </value>
                                                                <statement name="DO0">
                                                                  <block type="variables_set" id="(X:{i|PQDI0Oal-buxyh">
                                                                    <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                                                    <value name="VALUE">
                                                                      <block type="math_number" id="0lr{CbOteD/}kF`EhH(8">
                                                                        <field name="NUM">-3</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="procedures_callnoreturn" id="/B9xh#(7D})$$@d#*eX$">
                                                                        <mutation name="rampe"></mutation>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </statement>
                                                                <statement name="ELSE">
                                                                  <block type="timeouts_clearinterval" id="9h4MYS_IJdR^D})TC@Qe">
                                                                    <field name="NAME">Intervall</field>
                                                                  </block>
                                                                </statement>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </xml>
                
                paul53P Offline
                paul53P Offline
                paul53
                schrieb am zuletzt editiert von paul53
                #7

                @Högi sagte:

                hier dein geändertes Script

                Die Funktion rampe muss unter dem 2. steuere-Block enden und darf sich nicht über alles erstrecken !

                <xml xmlns="http://www.w3.org/1999/xhtml">
                  <variables>
                    <variable type="" id="DPI{f%|vfODASw4b1wA|">level</variable>
                    <variable type="" id="qkm9=RDc=_9K:j`p1|f8">step</variable>
                    <variable type="undefined" id="Intervall">Intervall</variable>
                  </variables>
                  <block type="procedures_defnoreturn" id="rECDpeiBn{=Xbp%I0T4i" x="-1713" y="-1038">
                    <field name="NAME">rampe</field>
                    <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                    <statement name="STACK">
                      <block type="math_change" id="0,0uJLYb`kq~PdXo%]!M">
                        <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                        <value name="DELTA">
                          <shadow type="math_number" id="ZrE.5*i9gKktu@Yfoxb3">
                            <field name="NUM">1</field>
                          </shadow>
                          <block type="variables_get" id="Elv_uvFk3ap{:t,(V=$t">
                            <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                          </block>
                        </value>
                        <next>
                          <block type="timeouts_setinterval" id="5DqeYX;*f0:6SWwmI3+D">
                            <field name="NAME">Intervall</field>
                            <field name="INTERVAL">500</field>
                            <field name="UNIT">ms</field>
                            <statement name="STATEMENT">
                              <block type="math_change" id="I,yt,=/.[ui1yDn=hu}X">
                                <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                <value name="DELTA">
                                  <shadow type="math_number" id="5IBjfq2PlxW?=^S(:qJF">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="variables_get" id="r5N(D|BbIz9tMYg8d[6s">
                                    <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="eCbnY/:9i(:lcXrs?b!A">
                                <value name="IF0">
                                  <block type="logic_compare" id="u{G)xXUPBEy*+C+4U{N0">
                                    <field name="OP">GT</field>
                                    <value name="A">
                                      <block type="variables_get" id="j_g.#gfB9^Wwns}$P*Un">
                                        <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="L4B6,:Z9CXEhax~hX~G,">
                                        <field name="NUM">99</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="variables_set" id=";c~YY;XS{sn0e)aL,vIY">
                                    <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="xDmH:zlwU*3Fe$_RrI_b">
                                        <field name="NUM">99</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="$-pRVQam3~fpO#GPfwtb">
                                    <value name="IF0">
                                      <block type="logic_compare" id="L-wslKV2B,Id@Q(6f?MQ">
                                        <field name="OP">LT</field>
                                        <value name="A">
                                          <block type="variables_get" id="amPVVWR46VqjzW[GB?a?">
                                            <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="f$^c]oN9D,UBZdWA,SSf">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="@UOg.o4+6Pf2tjuZAcc?">
                                        <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="G/Zm!!7fHgs9}wueGfg[">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="control" id="|t1=49LCQf5Z.@83MmF1">
                                        <mutation delay_input="false"></mutation>
                                        <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                        <field name="WITH_DELAY">FALSE</field>
                                        <value name="VALUE">
                                          <block type="variables_get" id="2`Q/eSWJ5wr*CaXvU)6_">
                                            <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="iqvY8#tNKLLlHFCK9R=(">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="iW4:vDs|/]tl_%z/#)25">
                                                <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                  <block type="variables_set" id="GM~^!8=zc6cg##`3_coS" x="-1712" y="-662">
                    <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                    <value name="VALUE">
                      <block type="get_value" id="N9yf?o/jF8alS{sYd)_g">
                        <field name="ATTR">val</field>
                        <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                      </block>
                    </value>
                    <next>
                      <block type="on_ext" id=";JVKkgjk@Bkhc0YHU%!{">
                        <mutation items="1"></mutation>
                        <field name="CONDITION">ne</field>
                        <field name="ACK_CONDITION"></field>
                        <value name="OID0">
                          <shadow type="field_oid" id="T6{Y*:LSfi=79r+q^O?c">
                            <field name="oid">zigbee.0.0017880106b73f93.up_hold</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="controls_if" id="KGjw;pF`PUQoT8lxLp=D">
                            <mutation else="1"></mutation>
                            <value name="IF0">
                              <block type="on_source" id="7aa@vC7w7Vhd]TSU0HEM">
                                <field name="ATTR">state.val</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="variables_set" id="O$,oi?J?U@Wx969gj0Mq">
                                <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                <value name="VALUE">
                                  <block type="math_number" id="u2A%uPty;kromCAE7!Te">
                                    <field name="NUM">3</field>
                                  </block>
                                </value>
                                <next>
                                  <block type="procedures_callnoreturn" id="#2?-h=Rjc5bHzVv@Al3)">
                                    <mutation name="rampe"></mutation>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <statement name="ELSE">
                              <block type="timeouts_clearinterval" id="qVDX$.R7?zN=ssfz29=1">
                                <field name="NAME">Intervall</field>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <next>
                          <block type="on_ext" id="_g^xP-JLYKhL2Q*]#+oR">
                            <mutation items="1"></mutation>
                            <field name="CONDITION">ne</field>
                            <field name="ACK_CONDITION"></field>
                            <value name="OID0">
                              <shadow type="field_oid" id="f)}+753pF/q7G}yOu4yZ">
                                <field name="oid">zigbee.0.0017880106b73f93.down_hold</field>
                              </shadow>
                            </value>
                            <statement name="STATEMENT">
                              <block type="controls_if" id=",c*INHomKM^^eo4WnKv9">
                                <mutation else="1"></mutation>
                                <value name="IF0">
                                  <block type="on_source" id="AN=2}za$Rwd3BE.2.(tD">
                                    <field name="ATTR">state.val</field>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="variables_set" id="(X:{i|PQDI0Oal-buxyh">
                                    <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="0lr{CbOteD/}kF`EhH(8">
                                        <field name="NUM">-3</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="procedures_callnoreturn" id="/B9xh#(7D})$$@d#*eX$">
                                        <mutation name="rampe"></mutation>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                                <statement name="ELSE">
                                  <block type="timeouts_clearinterval" id="9h4MYS_IJdR^D})TC@Qe">
                                    <field name="NAME">Intervall</field>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </xml>
                

                Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                1 Antwort Letzte Antwort
                0
                • H Offline
                  H Offline
                  Högi
                  schrieb am zuletzt editiert von
                  #8

                  Vielen Dank,
                  jetzt läuft alles wie es soll in einem Script.

                  Hier nochmal das komplette Script für Philips Hue Dimmer AN/AUS Belegung und Hoch/Runter dimmen für Homematic Dimmer.

                  Danke an paul53 ohne seine Unterstützung ich nie zum Ziel gekommen wäre!

                  <xml xmlns="http://www.w3.org/1999/xhtml">
                    <variables>
                      <variable type="" id="DPI{f%|vfODASw4b1wA|">level</variable>
                      <variable type="" id="qkm9=RDc=_9K:j`p1|f8">step</variable>
                      <variable type="undefined" id="Intervall">Intervall</variable>
                    </variables>
                    <block type="on_ext" id="kxh=m:Zi6h.E5tXJ{CDk" x="-1663" y="-1488">
                      <mutation items="1"></mutation>
                      <field name="CONDITION">any</field>
                      <field name="ACK_CONDITION"></field>
                      <value name="OID0">
                        <shadow type="field_oid" id="Bj;65aYVPBQ59mOC!e~?">
                          <field name="oid">zigbee.0.0017880106b73f93.state</field>
                        </shadow>
                      </value>
                      <statement name="STATEMENT">
                        <block type="controls_if" id="j87.ZsAyGl(mU8^*6Tr;">
                          <mutation elseif="1"></mutation>
                          <value name="IF0">
                            <block type="logic_compare" id="u]6#GJ?W(}eGZlWHNfmy">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="_0*k%JdKf23sQc076KVO">
                                  <field name="ATTR">val</field>
                                  <field name="OID">zigbee.0.0017880106b73f93.state</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="C[Bm7xFVVR4I|:G$r=1*">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="control" id="p)NNq0O@oTT4jzW=lnZh">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">1000</field>
                              <field name="UNIT">ms</field>
                              <field name="CLEAR_RUNNING">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="Qk3sfcgJ}[^SD-[1FL/S">
                                  <field name="NUM">0</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                          <value name="IF1">
                            <block type="logic_compare" id="Wv*Fd|94_lq:*o?ROpJd">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="z-?DWL[#sKM`xV#6)F$T">
                                  <field name="ATTR">val</field>
                                  <field name="OID">zigbee.0.0017880106b73f93.state</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="iRombb}nak,:@15We8|C">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO1">
                            <block type="control" id="RFCq0N87-8$9~-%c.gg5">
                              <mutation delay_input="true"></mutation>
                              <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                              <field name="WITH_DELAY">TRUE</field>
                              <field name="DELAY_MS">700</field>
                              <field name="UNIT">ms</field>
                              <field name="CLEAR_RUNNING">TRUE</field>
                              <value name="VALUE">
                                <block type="math_number" id="Bv;=g*ZMGn0=ok1xve^2">
                                  <field name="NUM">100</field>
                                </block>
                              </value>
                            </block>
                          </statement>
                          <next>
                            <block type="controls_if" id="t$jNbc7kIc3j=6bZv]yu">
                              <mutation elseif="1"></mutation>
                              <value name="IF0">
                                <block type="logic_compare" id="d+0|p]tn*j-f~lzc+d-R">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="k|/Dr@/Ef6N[(59Xk#l.">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.0017880106b73f93.state</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="qp{sS+.KNw)TcArYDJQb">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="control" id="ma*`qN/Pw!4lbS5.%}H7">
                                  <mutation delay_input="true"></mutation>
                                  <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                                  <field name="WITH_DELAY">TRUE</field>
                                  <field name="DELAY_MS">1000</field>
                                  <field name="UNIT">ms</field>
                                  <field name="CLEAR_RUNNING">FALSE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="5iyAxS6KTy#Z|tO:u5?C">
                                      <field name="NUM">0</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                              <value name="IF1">
                                <block type="logic_compare" id="Gx5CeXo??5(/-@_{#nWr">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="$A=nwc+:}5!.kmBCA+@M">
                                      <field name="ATTR">val</field>
                                      <field name="OID">zigbee.0.0017880106b73f93.state</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="QVzIpLtK9R7E_EM_`Vi5">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO1">
                                <block type="control" id=",G8aHft]S9Y]y=(Q#4vw">
                                  <mutation delay_input="true"></mutation>
                                  <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                                  <field name="WITH_DELAY">TRUE</field>
                                  <field name="DELAY_MS">700</field>
                                  <field name="UNIT">ms</field>
                                  <field name="CLEAR_RUNNING">TRUE</field>
                                  <value name="VALUE">
                                    <block type="math_number" id="`a-|Pp~mzCR3?FBQon[h">
                                      <field name="NUM">100</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                    <block type="procedures_defnoreturn" id="rECDpeiBn{=Xbp%I0T4i" x="-1663" y="-1037">
                      <field name="NAME">rampe</field>
                      <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                      <statement name="STACK">
                        <block type="math_change" id="0,0uJLYb`kq~PdXo%]!M">
                          <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                          <value name="DELTA">
                            <shadow type="math_number" id="ZrE.5*i9gKktu@Yfoxb3">
                              <field name="NUM">1</field>
                            </shadow>
                            <block type="variables_get" id="Elv_uvFk3ap{:t,(V=$t">
                              <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                            </block>
                          </value>
                          <next>
                            <block type="timeouts_setinterval" id="5DqeYX;*f0:6SWwmI3+D">
                              <field name="NAME">Intervall</field>
                              <field name="INTERVAL">500</field>
                              <field name="UNIT">ms</field>
                              <statement name="STATEMENT">
                                <block type="math_change" id="I,yt,=/.[ui1yDn=hu}X">
                                  <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                  <value name="DELTA">
                                    <shadow type="math_number" id="5IBjfq2PlxW?=^S(:qJF">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="variables_get" id="r5N(D|BbIz9tMYg8d[6s">
                                      <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                              <next>
                                <block type="controls_if" id="eCbnY/:9i(:lcXrs?b!A">
                                  <value name="IF0">
                                    <block type="logic_compare" id="u{G)xXUPBEy*+C+4U{N0">
                                      <field name="OP">GT</field>
                                      <value name="A">
                                        <block type="variables_get" id="j_g.#gfB9^Wwns}$P*Un">
                                          <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="L4B6,:Z9CXEhax~hX~G,">
                                          <field name="NUM">99</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="variables_set" id=";c~YY;XS{sn0e)aL,vIY">
                                      <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="xDmH:zlwU*3Fe$_RrI_b">
                                          <field name="NUM">99</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="controls_if" id="$-pRVQam3~fpO#GPfwtb">
                                      <value name="IF0">
                                        <block type="logic_compare" id="L-wslKV2B,Id@Q(6f?MQ">
                                          <field name="OP">LT</field>
                                          <value name="A">
                                            <block type="variables_get" id="amPVVWR46VqjzW[GB?a?">
                                              <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="f$^c]oN9D,UBZdWA,SSf">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="variables_set" id="@UOg.o4+6Pf2tjuZAcc?">
                                          <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="G/Zm!!7fHgs9}wueGfg[">
                                              <field name="NUM">0</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="control" id="|t1=49LCQf5Z.@83MmF1">
                                          <mutation delay_input="false"></mutation>
                                          <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="variables_get" id="2`Q/eSWJ5wr*CaXvU)6_">
                                              <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="iqvY8#tNKLLlHFCK9R=(">
                                              <mutation delay_input="false"></mutation>
                                              <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="variables_get" id="iW4:vDs|/]tl_%z/#)25">
                                                  <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                                </block>
                                              </value>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                    <block type="variables_set" id=":s[_enm]j}nmpmE8?~Z$" x="-1663" y="-663">
                      <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                      <value name="VALUE">
                        <block type="get_value" id="4h?9N-kM0O*xyr{ixjxJ">
                          <field name="ATTR">val</field>
                          <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="GM~^!8=zc6cg##`3_coS">
                          <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                          <value name="VALUE">
                            <block type="get_value" id="N9yf?o/jF8alS{sYd)_g">
                              <field name="ATTR">val</field>
                              <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                            </block>
                          </value>
                          <next>
                            <block type="on_ext" id=";JVKkgjk@Bkhc0YHU%!{">
                              <mutation items="1"></mutation>
                              <field name="CONDITION">ne</field>
                              <field name="ACK_CONDITION"></field>
                              <value name="OID0">
                                <shadow type="field_oid" id="T6{Y*:LSfi=79r+q^O?c">
                                  <field name="oid">zigbee.0.0017880106b73f93.up_hold</field>
                                </shadow>
                              </value>
                              <statement name="STATEMENT">
                                <block type="controls_if" id="KGjw;pF`PUQoT8lxLp=D">
                                  <mutation else="1"></mutation>
                                  <value name="IF0">
                                    <block type="on_source" id="7aa@vC7w7Vhd]TSU0HEM">
                                      <field name="ATTR">state.val</field>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="variables_set" id="O$,oi?J?U@Wx969gj0Mq">
                                      <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                      <value name="VALUE">
                                        <block type="math_number" id="u2A%uPty;kromCAE7!Te">
                                          <field name="NUM">5</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="procedures_callnoreturn" id="#2?-h=Rjc5bHzVv@Al3)">
                                          <mutation name="rampe"></mutation>
                                        </block>
                                      </next>
                                    </block>
                                  </statement>
                                  <statement name="ELSE">
                                    <block type="timeouts_clearinterval" id="qVDX$.R7?zN=ssfz29=1">
                                      <field name="NAME">Intervall</field>
                                    </block>
                                  </statement>
                                </block>
                              </statement>
                              <next>
                                <block type="on_ext" id="_g^xP-JLYKhL2Q*]#+oR">
                                  <mutation items="1"></mutation>
                                  <field name="CONDITION">ne</field>
                                  <field name="ACK_CONDITION"></field>
                                  <value name="OID0">
                                    <shadow type="field_oid" id="f)}+753pF/q7G}yOu4yZ">
                                      <field name="oid">zigbee.0.0017880106b73f93.down_hold</field>
                                    </shadow>
                                  </value>
                                  <statement name="STATEMENT">
                                    <block type="controls_if" id=",c*INHomKM^^eo4WnKv9">
                                      <mutation else="1"></mutation>
                                      <value name="IF0">
                                        <block type="on_source" id="AN=2}za$Rwd3BE.2.(tD">
                                          <field name="ATTR">state.val</field>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="variables_set" id="(X:{i|PQDI0Oal-buxyh">
                                          <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="0lr{CbOteD/}kF`EhH(8">
                                              <field name="NUM">-5</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="procedures_callnoreturn" id="/B9xh#(7D})$$@d#*eX$">
                                              <mutation name="rampe"></mutation>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                      <statement name="ELSE">
                                        <block type="timeouts_clearinterval" id="9h4MYS_IJdR^D})TC@Qe">
                                          <field name="NAME">Intervall</field>
                                        </block>
                                      </statement>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </xml>
                  
                  paul53P 1 Antwort Letzte Antwort
                  0
                  • H Högi

                    Vielen Dank,
                    jetzt läuft alles wie es soll in einem Script.

                    Hier nochmal das komplette Script für Philips Hue Dimmer AN/AUS Belegung und Hoch/Runter dimmen für Homematic Dimmer.

                    Danke an paul53 ohne seine Unterstützung ich nie zum Ziel gekommen wäre!

                    <xml xmlns="http://www.w3.org/1999/xhtml">
                      <variables>
                        <variable type="" id="DPI{f%|vfODASw4b1wA|">level</variable>
                        <variable type="" id="qkm9=RDc=_9K:j`p1|f8">step</variable>
                        <variable type="undefined" id="Intervall">Intervall</variable>
                      </variables>
                      <block type="on_ext" id="kxh=m:Zi6h.E5tXJ{CDk" x="-1663" y="-1488">
                        <mutation items="1"></mutation>
                        <field name="CONDITION">any</field>
                        <field name="ACK_CONDITION"></field>
                        <value name="OID0">
                          <shadow type="field_oid" id="Bj;65aYVPBQ59mOC!e~?">
                            <field name="oid">zigbee.0.0017880106b73f93.state</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="controls_if" id="j87.ZsAyGl(mU8^*6Tr;">
                            <mutation elseif="1"></mutation>
                            <value name="IF0">
                              <block type="logic_compare" id="u]6#GJ?W(}eGZlWHNfmy">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="_0*k%JdKf23sQc076KVO">
                                    <field name="ATTR">val</field>
                                    <field name="OID">zigbee.0.0017880106b73f93.state</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="C[Bm7xFVVR4I|:G$r=1*">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="control" id="p)NNq0O@oTT4jzW=lnZh">
                                <mutation delay_input="true"></mutation>
                                <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">1000</field>
                                <field name="UNIT">ms</field>
                                <field name="CLEAR_RUNNING">FALSE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="Qk3sfcgJ}[^SD-[1FL/S">
                                    <field name="NUM">0</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <value name="IF1">
                              <block type="logic_compare" id="Wv*Fd|94_lq:*o?ROpJd">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="z-?DWL[#sKM`xV#6)F$T">
                                    <field name="ATTR">val</field>
                                    <field name="OID">zigbee.0.0017880106b73f93.state</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_boolean" id="iRombb}nak,:@15We8|C">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO1">
                              <block type="control" id="RFCq0N87-8$9~-%c.gg5">
                                <mutation delay_input="true"></mutation>
                                <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                <field name="WITH_DELAY">TRUE</field>
                                <field name="DELAY_MS">700</field>
                                <field name="UNIT">ms</field>
                                <field name="CLEAR_RUNNING">TRUE</field>
                                <value name="VALUE">
                                  <block type="math_number" id="Bv;=g*ZMGn0=ok1xve^2">
                                    <field name="NUM">100</field>
                                  </block>
                                </value>
                              </block>
                            </statement>
                            <next>
                              <block type="controls_if" id="t$jNbc7kIc3j=6bZv]yu">
                                <mutation elseif="1"></mutation>
                                <value name="IF0">
                                  <block type="logic_compare" id="d+0|p]tn*j-f~lzc+d-R">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="k|/Dr@/Ef6N[(59Xk#l.">
                                        <field name="ATTR">val</field>
                                        <field name="OID">zigbee.0.0017880106b73f93.state</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="qp{sS+.KNw)TcArYDJQb">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="control" id="ma*`qN/Pw!4lbS5.%}H7">
                                    <mutation delay_input="true"></mutation>
                                    <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">1000</field>
                                    <field name="UNIT">ms</field>
                                    <field name="CLEAR_RUNNING">FALSE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="5iyAxS6KTy#Z|tO:u5?C">
                                        <field name="NUM">0</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <value name="IF1">
                                  <block type="logic_compare" id="Gx5CeXo??5(/-@_{#nWr">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="$A=nwc+:}5!.kmBCA+@M">
                                        <field name="ATTR">val</field>
                                        <field name="OID">zigbee.0.0017880106b73f93.state</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="QVzIpLtK9R7E_EM_`Vi5">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO1">
                                  <block type="control" id=",G8aHft]S9Y]y=(Q#4vw">
                                    <mutation delay_input="true"></mutation>
                                    <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                                    <field name="WITH_DELAY">TRUE</field>
                                    <field name="DELAY_MS">700</field>
                                    <field name="UNIT">ms</field>
                                    <field name="CLEAR_RUNNING">TRUE</field>
                                    <value name="VALUE">
                                      <block type="math_number" id="`a-|Pp~mzCR3?FBQon[h">
                                        <field name="NUM">100</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                      <block type="procedures_defnoreturn" id="rECDpeiBn{=Xbp%I0T4i" x="-1663" y="-1037">
                        <field name="NAME">rampe</field>
                        <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                        <statement name="STACK">
                          <block type="math_change" id="0,0uJLYb`kq~PdXo%]!M">
                            <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                            <value name="DELTA">
                              <shadow type="math_number" id="ZrE.5*i9gKktu@Yfoxb3">
                                <field name="NUM">1</field>
                              </shadow>
                              <block type="variables_get" id="Elv_uvFk3ap{:t,(V=$t">
                                <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                              </block>
                            </value>
                            <next>
                              <block type="timeouts_setinterval" id="5DqeYX;*f0:6SWwmI3+D">
                                <field name="NAME">Intervall</field>
                                <field name="INTERVAL">500</field>
                                <field name="UNIT">ms</field>
                                <statement name="STATEMENT">
                                  <block type="math_change" id="I,yt,=/.[ui1yDn=hu}X">
                                    <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                    <value name="DELTA">
                                      <shadow type="math_number" id="5IBjfq2PlxW?=^S(:qJF">
                                        <field name="NUM">1</field>
                                      </shadow>
                                      <block type="variables_get" id="r5N(D|BbIz9tMYg8d[6s">
                                        <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                      </block>
                                    </value>
                                  </block>
                                </statement>
                                <next>
                                  <block type="controls_if" id="eCbnY/:9i(:lcXrs?b!A">
                                    <value name="IF0">
                                      <block type="logic_compare" id="u{G)xXUPBEy*+C+4U{N0">
                                        <field name="OP">GT</field>
                                        <value name="A">
                                          <block type="variables_get" id="j_g.#gfB9^Wwns}$P*Un">
                                            <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="L4B6,:Z9CXEhax~hX~G,">
                                            <field name="NUM">99</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id=";c~YY;XS{sn0e)aL,vIY">
                                        <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="xDmH:zlwU*3Fe$_RrI_b">
                                            <field name="NUM">99</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="controls_if" id="$-pRVQam3~fpO#GPfwtb">
                                        <value name="IF0">
                                          <block type="logic_compare" id="L-wslKV2B,Id@Q(6f?MQ">
                                            <field name="OP">LT</field>
                                            <value name="A">
                                              <block type="variables_get" id="amPVVWR46VqjzW[GB?a?">
                                                <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="f$^c]oN9D,UBZdWA,SSf">
                                                <field name="NUM">0</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="variables_set" id="@UOg.o4+6Pf2tjuZAcc?">
                                            <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="G/Zm!!7fHgs9}wueGfg[">
                                                <field name="NUM">0</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="control" id="|t1=49LCQf5Z.@83MmF1">
                                            <mutation delay_input="false"></mutation>
                                            <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="variables_get" id="2`Q/eSWJ5wr*CaXvU)6_">
                                                <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="iqvY8#tNKLLlHFCK9R=(">
                                                <mutation delay_input="false"></mutation>
                                                <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="variables_get" id="iW4:vDs|/]tl_%z/#)25">
                                                    <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </statement>
                      </block>
                      <block type="variables_set" id=":s[_enm]j}nmpmE8?~Z$" x="-1663" y="-663">
                        <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                        <value name="VALUE">
                          <block type="get_value" id="4h?9N-kM0O*xyr{ixjxJ">
                            <field name="ATTR">val</field>
                            <field name="OID">hm-rpc.0.NEQ0166753.1.LEVEL</field>
                          </block>
                        </value>
                        <next>
                          <block type="variables_set" id="GM~^!8=zc6cg##`3_coS">
                            <field name="VAR" id="DPI{f%|vfODASw4b1wA|" variabletype="">level</field>
                            <value name="VALUE">
                              <block type="get_value" id="N9yf?o/jF8alS{sYd)_g">
                                <field name="ATTR">val</field>
                                <field name="OID">hm-rpc.0.NEQ0166687.1.LEVEL</field>
                              </block>
                            </value>
                            <next>
                              <block type="on_ext" id=";JVKkgjk@Bkhc0YHU%!{">
                                <mutation items="1"></mutation>
                                <field name="CONDITION">ne</field>
                                <field name="ACK_CONDITION"></field>
                                <value name="OID0">
                                  <shadow type="field_oid" id="T6{Y*:LSfi=79r+q^O?c">
                                    <field name="oid">zigbee.0.0017880106b73f93.up_hold</field>
                                  </shadow>
                                </value>
                                <statement name="STATEMENT">
                                  <block type="controls_if" id="KGjw;pF`PUQoT8lxLp=D">
                                    <mutation else="1"></mutation>
                                    <value name="IF0">
                                      <block type="on_source" id="7aa@vC7w7Vhd]TSU0HEM">
                                        <field name="ATTR">state.val</field>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="variables_set" id="O$,oi?J?U@Wx969gj0Mq">
                                        <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="u2A%uPty;kromCAE7!Te">
                                            <field name="NUM">5</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="procedures_callnoreturn" id="#2?-h=Rjc5bHzVv@Al3)">
                                            <mutation name="rampe"></mutation>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                    <statement name="ELSE">
                                      <block type="timeouts_clearinterval" id="qVDX$.R7?zN=ssfz29=1">
                                        <field name="NAME">Intervall</field>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <next>
                                  <block type="on_ext" id="_g^xP-JLYKhL2Q*]#+oR">
                                    <mutation items="1"></mutation>
                                    <field name="CONDITION">ne</field>
                                    <field name="ACK_CONDITION"></field>
                                    <value name="OID0">
                                      <shadow type="field_oid" id="f)}+753pF/q7G}yOu4yZ">
                                        <field name="oid">zigbee.0.0017880106b73f93.down_hold</field>
                                      </shadow>
                                    </value>
                                    <statement name="STATEMENT">
                                      <block type="controls_if" id=",c*INHomKM^^eo4WnKv9">
                                        <mutation else="1"></mutation>
                                        <value name="IF0">
                                          <block type="on_source" id="AN=2}za$Rwd3BE.2.(tD">
                                            <field name="ATTR">state.val</field>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="variables_set" id="(X:{i|PQDI0Oal-buxyh">
                                            <field name="VAR" id="qkm9=RDc=_9K:j`p1|f8" variabletype="">step</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="0lr{CbOteD/}kF`EhH(8">
                                                <field name="NUM">-5</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="procedures_callnoreturn" id="/B9xh#(7D})$$@d#*eX$">
                                                <mutation name="rampe"></mutation>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <statement name="ELSE">
                                          <block type="timeouts_clearinterval" id="9h4MYS_IJdR^D})TC@Qe">
                                            <field name="NAME">Intervall</field>
                                          </block>
                                        </statement>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </xml>
                    
                    paul53P Offline
                    paul53P Offline
                    paul53
                    schrieb am zuletzt editiert von
                    #9

                    @Högi sagte:

                    jetzt läuft alles wie es soll in einem Script.

                    Dann markiere bitte das Thema in der Überschrift als [gelöst].

                    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                    1 Antwort Letzte Antwort
                    0
                    Antworten
                    • In einem neuen Thema antworten
                    Anmelden zum Antworten
                    • Älteste zuerst
                    • Neuste zuerst
                    • Meiste Stimmen


                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    660

                    Online

                    32.7k

                    Benutzer

                    82.4k

                    Themen

                    1.3m

                    Beiträge
                    Community
                    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                    ioBroker Community 2014-2025
                    logo
                    • Anmelden

                    • Du hast noch kein Konto? Registrieren

                    • Anmelden oder registrieren, um zu suchen
                    • Erster Beitrag
                      Letzter Beitrag
                    0
                    • Home
                    • Aktuell
                    • Tags
                    • Ungelesen 0
                    • Kategorien
                    • Unreplied
                    • Beliebt
                    • GitHub
                    • Docu
                    • Hilfe