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. Mit Ikea Schalter led leuchte dimmen

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.5k

Mit Ikea Schalter led leuchte dimmen

Geplant Angeheftet Gesperrt Verschoben Blockly
20 Beiträge 4 Kommentatoren 1.1k Aufrufe 4 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.
  • R Robbi12

    Hallo, habe mir ein Blockly nachgebaut.

    Funktioniert aber nicht ganz.

    Beim Hochdimmen wenn ich drauf bleibe verschluckt sich der Wert öfter.

    Beim runterdimmen fährt er nicht Werteweise runter, sondern plötzlich auf einem rutsch

    <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
        <variable id="$O0cVlDvgwY_^HsecBHL">Dimmerup</variable>
        <variable type="interval" id="Intervall">Intervall</variable>
        <variable id="RG6V(7Bb!c3.%,/mb)eZ">Dimmerdown</variable>
        <variable type="interval" id="Intervall2">Intervall2</variable>
      </variables>
      <block type="on" id="Cj1W]HX(1lT3!lLKHa|}" x="87" y="431">
        <field name="OID">zigbee.0.5c0272fffeac4b6a.up_button</field>
        <field name="CONDITION">gt</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="control" id="6`,R67]wFyXT2;=6estx">
            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
            <field name="OID">zigbee.0.00158d00047083fc.transition_time</field>
            <field name="WITH_DELAY">FALSE</field>
            <value name="VALUE">
              <block type="math_number" id="+V[A[t`=/zW[Cy~(G=rE">
                <field name="NUM">0.5</field>
              </block>
            </value>
            <next>
              <block type="variables_set" id="Y%z]0m3}|xg_=1ynZUoI">
                <field name="VAR" id="$O0cVlDvgwY_^HsecBHL">Dimmerup</field>
                <value name="VALUE">
                  <block type="get_value" id="7AZ_;Cz/%DvHT05ih(ef">
                    <field name="ATTR">val</field>
                    <field name="OID">zigbee.0.00158d00047083fc.brightness</field>
                  </block>
                </value>
                <next>
                  <block type="timeouts_setinterval" id="ba?VC4p-sKTacXRoa^cI">
                    <field name="NAME">Intervall</field>
                    <field name="INTERVAL">100</field>
                    <field name="UNIT">ms</field>
                    <statement name="STATEMENT">
                      <block type="variables_set" id="f3@gA=~cj.lKZa4P0``i">
                        <field name="VAR" id="$O0cVlDvgwY_^HsecBHL">Dimmerup</field>
                        <value name="VALUE">
                          <block type="math_constrain" id="TENT@[3!%PA]OP]j5E9J">
                            <value name="VALUE">
                              <shadow type="math_number" id="/sK1hs-$)EpZ2XO53@5v">
                                <field name="NUM">50</field>
                              </shadow>
                              <block type="math_arithmetic" id=")tHW[bd!AIU0t@tfFy8D">
                                <field name="OP">ADD</field>
                                <value name="A">
                                  <shadow type="math_number" id="|TpoooGjgdM]L}@y?2Qr">
                                    <field name="NUM">1</field>
                                  </shadow>
                                  <block type="variables_get" id="/2$dRJ2`Xl@SCdo2R?U%">
                                    <field name="VAR" id="$O0cVlDvgwY_^HsecBHL">Dimmerup</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <shadow type="math_number" id="4g3}ntr5kmjH!m?|s}yJ">
                                    <field name="NUM">1</field>
                                  </shadow>
                                </value>
                              </block>
                            </value>
                            <value name="LOW">
                              <shadow type="math_number" id="HyVMV_[2ZURr5!Xj-j;u">
                                <field name="NUM">10</field>
                              </shadow>
                            </value>
                            <value name="HIGH">
                              <shadow type="math_number" id="{A0:z(m/q.S4uBYC*.6z">
                                <field name="NUM">100</field>
                              </shadow>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="control" id="6baWeH;]QcZ2x1@siOmB">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">zigbee.0.00158d00047083fc.brightness</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="variables_get" id=".+0QGA%LE^Qi?ivKc(6t">
                                <field name="VAR" id="$O0cVlDvgwY_^HsecBHL">Dimmerup</field>
                              </block>
                            </value>
                            <next>
                              <block type="controls_if" id="};4]v[kH3L+ZHDcWO)-b">
                                <value name="IF0">
                                  <block type="logic_compare" id="T#89q~Cs%Pxt92UaYU?@">
                                    <field name="OP">GTE</field>
                                    <value name="A">
                                      <block type="variables_get" id="h^tR6HMASdt1w;@(=ic~">
                                        <field name="VAR" id="$O0cVlDvgwY_^HsecBHL">Dimmerup</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="math_number" id="0XQMR9H]at~AHMlf}e7-">
                                        <field name="NUM">100</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="timeouts_clearinterval" id="{lqJy=sg3b5`LLe7#Z*H">
                                    <field name="NAME">Intervall</field>
                                  </block>
                                </statement>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <next>
          <block type="on" id="hMA=Uhm~`_7fOxVzZQ+c">
            <field name="OID">zigbee.0.5c0272fffeac4b6a.up_button</field>
            <field name="CONDITION">lt</field>
            <field name="ACK_CONDITION"></field>
            <statement name="STATEMENT">
              <block type="timeouts_clearinterval" id="9|EkaO[nX8bzfw@RB[Ia">
                <field name="NAME">Intervall</field>
                <next>
                  <block type="control" id="kI,I)/QX+L--m`54mfz.">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">zigbee.0.00158d00047083fc.transition_time</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_number" id="fKt`|}UN9)%5^V$4YB,A">
                        <field name="NUM">0</field>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </statement>
            <next>
              <block type="on" id="h}r:[dG6s#WS@1%CPG(_">
                <field name="OID">zigbee.0.5c0272fffeac4b6a.down_button</field>
                <field name="CONDITION">gt</field>
                <field name="ACK_CONDITION"></field>
                <statement name="STATEMENT">
                  <block type="control" id="0]k-xuifS.OUWg.xYcCZ">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                    <field name="OID">zigbee.0.00158d00047083fc.transition_time</field>
                    <field name="WITH_DELAY">FALSE</field>
                    <value name="VALUE">
                      <block type="math_number" id="RX,exgr*/z|NJUwDIX|M">
                        <field name="NUM">0.5</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="gdbKXtHNf5uW;[R*jX2=">
                        <field name="VAR" id="RG6V(7Bb!c3.%,/mb)eZ">Dimmerdown</field>
                        <value name="VALUE">
                          <block type="get_value" id="2Qf%,:2g(AH@/YHuNvp+">
                            <field name="ATTR">val</field>
                            <field name="OID">zigbee.0.00158d00047083fc.brightness</field>
                          </block>
                        </value>
                        <next>
                          <block type="timeouts_setinterval" id="5|:vM6GGb1.B=%o}G%Bl">
                            <field name="NAME">Intervall2</field>
                            <field name="INTERVAL">100</field>
                            <field name="UNIT">ms</field>
                            <statement name="STATEMENT">
                              <block type="variables_set" id="L8aEe[[v!S4,Za#YgPA^">
                                <field name="VAR" id="RG6V(7Bb!c3.%,/mb)eZ">Dimmerdown</field>
                                <value name="VALUE">
                                  <block type="math_constrain" id="ECtxttP}eA.)%7LF^8a[">
                                    <value name="VALUE">
                                      <shadow type="math_number" id="/sK1hs-$)EpZ2XO53@5v">
                                        <field name="NUM">50</field>
                                      </shadow>
                                      <block type="math_arithmetic" id=".EIyha.DM68l39,gM{WT">
                                        <field name="OP">MINUS</field>
                                        <value name="A">
                                          <shadow type="math_number" id="|TpoooGjgdM]L}@y?2Qr">
                                            <field name="NUM">1</field>
                                          </shadow>
                                          <block type="variables_get" id="Ad%=1WwbUM62fwmir`*V">
                                            <field name="VAR" id="RG6V(7Bb!c3.%,/mb)eZ">Dimmerdown</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <shadow type="math_number" id="QVkUrFOxC`aAVylK5@3V">
                                            <field name="NUM">1</field>
                                          </shadow>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="LOW">
                                      <shadow type="math_number" id="3v/dz#*,$1Svi%PyP9eD">
                                        <field name="NUM">100</field>
                                      </shadow>
                                    </value>
                                    <value name="HIGH">
                                      <shadow type="math_number" id="cBC18[1RYnE[6M9V)vjF">
                                        <field name="NUM">10</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                                <next>
                                  <block type="control" id="#ORYw7Z(wyqMzgsR!t8E">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                    <field name="OID">zigbee.0.00158d00047083fc.brightness</field>
                                    <field name="WITH_DELAY">FALSE</field>
                                    <value name="VALUE">
                                      <block type="variables_get" id="gWdyPb_*nx/4(6H~|J!z">
                                        <field name="VAR" id="RG6V(7Bb!c3.%,/mb)eZ">Dimmerdown</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="controls_if" id="`eQn$~cL#p,Lpg3C7oMq">
                                        <value name="IF0">
                                          <block type="logic_compare" id="P;Qwg|Wh!0CkrL|`;X#$">
                                            <field name="OP">GTE</field>
                                            <value name="A">
                                              <block type="variables_get" id="ulf1,@2@YZW{B2|,8Gvz">
                                                <field name="VAR" id="RG6V(7Bb!c3.%,/mb)eZ">Dimmerdown</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="rJiC1#Od9{wsc9V1TLLQ">
                                                <field name="NUM">10</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="timeouts_clearinterval" id="^k.JGjYTs54!67pi0Y|q">
                                            <field name="NAME">Intervall2</field>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
                <next>
                  <block type="on" id="Ma~taLea?}(YY4+cQYn]">
                    <field name="OID">zigbee.0.5c0272fffeac4b6a.down_button</field>
                    <field name="CONDITION">lt</field>
                    <field name="ACK_CONDITION"></field>
                    <statement name="STATEMENT">
                      <block type="timeouts_clearinterval" id="/,UsK^{`vJ1uHN2408ux">
                        <field name="NAME">Intervall2</field>
                        <next>
                          <block type="control" id="KX4XhMQOK~%CAHe$jJqF">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">zigbee.0.00158d00047083fc.transition_time</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="math_number" id="V2s}sDQdcBO/*#HVJ97l">
                                <field name="NUM">0</field>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </xml>
    
    AsgothianA Offline
    AsgothianA Offline
    Asgothian
    Developer
    schrieb am zuletzt editiert von
    #2

    @robbi12 das Zigbee Netzwerk mag es garnicht wenn du in 100 ms Abstand die Werte anpasst. Glücklicherweise gibt es einen viel einfacheren Weg eine Leuchte zu dimmen:

    Du hast den Datenpunkt brightness move. wenn du da eine Zahl rein schreibst dann passiert folgendes :

    • zahl ist > 0: Die Leuchte dimmt gleichmässig hoch. Bei einem Wert von 25 in 10 Sekunden von aus auf ganz hell
    • zahl ist < 0: Die Leuchte dimmt gleichmässig runter. Bei einem Wert von -25 in 10 Sekunden von ganz hell auf aus
    • zahl ist = 0: Die Leuchte stoppt das dimmen.

    Das gleiche gilt für die anderen .._move Datenpunkte, nur mir den dann anderen Charakteristiken (Hue, Colortemp) und auch mit anderen Geschwindigkeiten - die hab ich aber nicht im Kopf.

    A.

    ioBroker auf RPi4 - Hardware soweit wie möglich via Zigbee.
    "Shit don't work" ist keine Fehlermeldung, sondern ein Fluch.

    1 Antwort Letzte Antwort
    1
    • R Robbi12

      Hallo, habe mir ein Blockly nachgebaut.

      Funktioniert aber nicht ganz.

      Beim Hochdimmen wenn ich drauf bleibe verschluckt sich der Wert öfter.

      Beim runterdimmen fährt er nicht Werteweise runter, sondern plötzlich auf einem rutsch

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="$O0cVlDvgwY_^HsecBHL">Dimmerup</variable>
          <variable type="interval" id="Intervall">Intervall</variable>
          <variable id="RG6V(7Bb!c3.%,/mb)eZ">Dimmerdown</variable>
          <variable type="interval" id="Intervall2">Intervall2</variable>
        </variables>
        <block type="on" id="Cj1W]HX(1lT3!lLKHa|}" x="87" y="431">
          <field name="OID">zigbee.0.5c0272fffeac4b6a.up_button</field>
          <field name="CONDITION">gt</field>
          <field name="ACK_CONDITION"></field>
          <statement name="STATEMENT">
            <block type="control" id="6`,R67]wFyXT2;=6estx">
              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
              <field name="OID">zigbee.0.00158d00047083fc.transition_time</field>
              <field name="WITH_DELAY">FALSE</field>
              <value name="VALUE">
                <block type="math_number" id="+V[A[t`=/zW[Cy~(G=rE">
                  <field name="NUM">0.5</field>
                </block>
              </value>
              <next>
                <block type="variables_set" id="Y%z]0m3}|xg_=1ynZUoI">
                  <field name="VAR" id="$O0cVlDvgwY_^HsecBHL">Dimmerup</field>
                  <value name="VALUE">
                    <block type="get_value" id="7AZ_;Cz/%DvHT05ih(ef">
                      <field name="ATTR">val</field>
                      <field name="OID">zigbee.0.00158d00047083fc.brightness</field>
                    </block>
                  </value>
                  <next>
                    <block type="timeouts_setinterval" id="ba?VC4p-sKTacXRoa^cI">
                      <field name="NAME">Intervall</field>
                      <field name="INTERVAL">100</field>
                      <field name="UNIT">ms</field>
                      <statement name="STATEMENT">
                        <block type="variables_set" id="f3@gA=~cj.lKZa4P0``i">
                          <field name="VAR" id="$O0cVlDvgwY_^HsecBHL">Dimmerup</field>
                          <value name="VALUE">
                            <block type="math_constrain" id="TENT@[3!%PA]OP]j5E9J">
                              <value name="VALUE">
                                <shadow type="math_number" id="/sK1hs-$)EpZ2XO53@5v">
                                  <field name="NUM">50</field>
                                </shadow>
                                <block type="math_arithmetic" id=")tHW[bd!AIU0t@tfFy8D">
                                  <field name="OP">ADD</field>
                                  <value name="A">
                                    <shadow type="math_number" id="|TpoooGjgdM]L}@y?2Qr">
                                      <field name="NUM">1</field>
                                    </shadow>
                                    <block type="variables_get" id="/2$dRJ2`Xl@SCdo2R?U%">
                                      <field name="VAR" id="$O0cVlDvgwY_^HsecBHL">Dimmerup</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <shadow type="math_number" id="4g3}ntr5kmjH!m?|s}yJ">
                                      <field name="NUM">1</field>
                                    </shadow>
                                  </value>
                                </block>
                              </value>
                              <value name="LOW">
                                <shadow type="math_number" id="HyVMV_[2ZURr5!Xj-j;u">
                                  <field name="NUM">10</field>
                                </shadow>
                              </value>
                              <value name="HIGH">
                                <shadow type="math_number" id="{A0:z(m/q.S4uBYC*.6z">
                                  <field name="NUM">100</field>
                                </shadow>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="control" id="6baWeH;]QcZ2x1@siOmB">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">zigbee.0.00158d00047083fc.brightness</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="variables_get" id=".+0QGA%LE^Qi?ivKc(6t">
                                  <field name="VAR" id="$O0cVlDvgwY_^HsecBHL">Dimmerup</field>
                                </block>
                              </value>
                              <next>
                                <block type="controls_if" id="};4]v[kH3L+ZHDcWO)-b">
                                  <value name="IF0">
                                    <block type="logic_compare" id="T#89q~Cs%Pxt92UaYU?@">
                                      <field name="OP">GTE</field>
                                      <value name="A">
                                        <block type="variables_get" id="h^tR6HMASdt1w;@(=ic~">
                                          <field name="VAR" id="$O0cVlDvgwY_^HsecBHL">Dimmerup</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="math_number" id="0XQMR9H]at~AHMlf}e7-">
                                          <field name="NUM">100</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="timeouts_clearinterval" id="{lqJy=sg3b5`LLe7#Z*H">
                                      <field name="NAME">Intervall</field>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </statement>
          <next>
            <block type="on" id="hMA=Uhm~`_7fOxVzZQ+c">
              <field name="OID">zigbee.0.5c0272fffeac4b6a.up_button</field>
              <field name="CONDITION">lt</field>
              <field name="ACK_CONDITION"></field>
              <statement name="STATEMENT">
                <block type="timeouts_clearinterval" id="9|EkaO[nX8bzfw@RB[Ia">
                  <field name="NAME">Intervall</field>
                  <next>
                    <block type="control" id="kI,I)/QX+L--m`54mfz.">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">zigbee.0.00158d00047083fc.transition_time</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="math_number" id="fKt`|}UN9)%5^V$4YB,A">
                          <field name="NUM">0</field>
                        </block>
                      </value>
                    </block>
                  </next>
                </block>
              </statement>
              <next>
                <block type="on" id="h}r:[dG6s#WS@1%CPG(_">
                  <field name="OID">zigbee.0.5c0272fffeac4b6a.down_button</field>
                  <field name="CONDITION">gt</field>
                  <field name="ACK_CONDITION"></field>
                  <statement name="STATEMENT">
                    <block type="control" id="0]k-xuifS.OUWg.xYcCZ">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">zigbee.0.00158d00047083fc.transition_time</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="math_number" id="RX,exgr*/z|NJUwDIX|M">
                          <field name="NUM">0.5</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="gdbKXtHNf5uW;[R*jX2=">
                          <field name="VAR" id="RG6V(7Bb!c3.%,/mb)eZ">Dimmerdown</field>
                          <value name="VALUE">
                            <block type="get_value" id="2Qf%,:2g(AH@/YHuNvp+">
                              <field name="ATTR">val</field>
                              <field name="OID">zigbee.0.00158d00047083fc.brightness</field>
                            </block>
                          </value>
                          <next>
                            <block type="timeouts_setinterval" id="5|:vM6GGb1.B=%o}G%Bl">
                              <field name="NAME">Intervall2</field>
                              <field name="INTERVAL">100</field>
                              <field name="UNIT">ms</field>
                              <statement name="STATEMENT">
                                <block type="variables_set" id="L8aEe[[v!S4,Za#YgPA^">
                                  <field name="VAR" id="RG6V(7Bb!c3.%,/mb)eZ">Dimmerdown</field>
                                  <value name="VALUE">
                                    <block type="math_constrain" id="ECtxttP}eA.)%7LF^8a[">
                                      <value name="VALUE">
                                        <shadow type="math_number" id="/sK1hs-$)EpZ2XO53@5v">
                                          <field name="NUM">50</field>
                                        </shadow>
                                        <block type="math_arithmetic" id=".EIyha.DM68l39,gM{WT">
                                          <field name="OP">MINUS</field>
                                          <value name="A">
                                            <shadow type="math_number" id="|TpoooGjgdM]L}@y?2Qr">
                                              <field name="NUM">1</field>
                                            </shadow>
                                            <block type="variables_get" id="Ad%=1WwbUM62fwmir`*V">
                                              <field name="VAR" id="RG6V(7Bb!c3.%,/mb)eZ">Dimmerdown</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <shadow type="math_number" id="QVkUrFOxC`aAVylK5@3V">
                                              <field name="NUM">1</field>
                                            </shadow>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="LOW">
                                        <shadow type="math_number" id="3v/dz#*,$1Svi%PyP9eD">
                                          <field name="NUM">100</field>
                                        </shadow>
                                      </value>
                                      <value name="HIGH">
                                        <shadow type="math_number" id="cBC18[1RYnE[6M9V)vjF">
                                          <field name="NUM">10</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="control" id="#ORYw7Z(wyqMzgsR!t8E">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">zigbee.0.00158d00047083fc.brightness</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="variables_get" id="gWdyPb_*nx/4(6H~|J!z">
                                          <field name="VAR" id="RG6V(7Bb!c3.%,/mb)eZ">Dimmerdown</field>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="controls_if" id="`eQn$~cL#p,Lpg3C7oMq">
                                          <value name="IF0">
                                            <block type="logic_compare" id="P;Qwg|Wh!0CkrL|`;X#$">
                                              <field name="OP">GTE</field>
                                              <value name="A">
                                                <block type="variables_get" id="ulf1,@2@YZW{B2|,8Gvz">
                                                  <field name="VAR" id="RG6V(7Bb!c3.%,/mb)eZ">Dimmerdown</field>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="math_number" id="rJiC1#Od9{wsc9V1TLLQ">
                                                  <field name="NUM">10</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="timeouts_clearinterval" id="^k.JGjYTs54!67pi0Y|q">
                                              <field name="NAME">Intervall2</field>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                  <next>
                    <block type="on" id="Ma~taLea?}(YY4+cQYn]">
                      <field name="OID">zigbee.0.5c0272fffeac4b6a.down_button</field>
                      <field name="CONDITION">lt</field>
                      <field name="ACK_CONDITION"></field>
                      <statement name="STATEMENT">
                        <block type="timeouts_clearinterval" id="/,UsK^{`vJ1uHN2408ux">
                          <field name="NAME">Intervall2</field>
                          <next>
                            <block type="control" id="KX4XhMQOK~%CAHe$jJqF">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                              <field name="OID">zigbee.0.00158d00047083fc.transition_time</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_number" id="V2s}sDQdcBO/*#HVJ97l">
                                  <field name="NUM">0</field>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      
      T Offline
      T Offline
      TT-Tom
      schrieb am zuletzt editiert von
      #3

      @robbi12

      Könnte so aussehen.

      91e5bf62-6b15-4af5-8e4b-c14fcc901433-image.png

      <xml xmlns="https://developers.google.com/blockly/xml">
       <block type="on_ext" id="*!/|v$bN6-~T5LJ!:jd+" x="38" y="-137">
         <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
         <field name="CONDITION">ne</field>
         <field name="ACK_CONDITION">true</field>
         <value name="OID0">
           <shadow type="field_oid" id="n.KvrFiqg0DAPL+{mZAV">
             <field name="oid">zigbee.0.70ac08fffe7ecc98.down_button</field>
           </shadow>
         </value>
         <value name="OID1">
           <shadow type="field_oid" id="ru?[1X_L$wfaV,f$8O@x">
             <field name="oid">zigbee.0.70ac08fffe7ecc98.up_button</field>
           </shadow>
         </value>
         <value name="OID2">
           <shadow type="field_oid" id="iudgcVUoB-ykL03+X?Bz">
             <field name="oid">zigbee.0.70ac08fffe7ecc98.state</field>
           </shadow>
         </value>
         <statement name="STATEMENT">
           <block type="direct" id="K2V(p7ol3!RlJa)Lgy-t">
             <field name="ONLY_CHANGES">TRUE</field>
             <value name="OID_SRC">
               <shadow type="field_oid" id="A;oF3DGYiVKR8VkH]DAN">
                 <field name="oid">Object ID 1</field>
               </shadow>
               <block type="field_oid" id="1$uN{?iIhx~oBOUvbZLG">
                 <field name="oid">zigbee.0.70ac08fffe7ecc98.state</field>
               </block>
             </value>
             <value name="OID_DST">
               <shadow type="field_oid" id="/rLqGG$ZXrH)8AfgVlnh">
                 <field name="oid">Object ID 2</field>
               </shadow>
               <block type="field_oid" id="}~CWE{DsXJ|CS?$.P`^2">
                 <field name="oid">zigbee.0.0c4314fffe3937a2.state</field>
               </block>
             </value>
             <next>
               <block type="controls_if" id=")0/Kqz:G++2B#Qk-s[u@">
                 <value name="IF0">
                   <block type="get_value" id="aZ^MI)+`JCqgHXx(Rlkq">
                     <field name="ATTR">val</field>
                     <field name="OID">zigbee.0.70ac08fffe7ecc98.up_button</field>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="debug" id="Kcv8DK,k7K^p)zJTt}oc">
                     <field name="Severity">info</field>
                     <value name="TEXT">
                       <shadow type="text" id=",JM.`UG(uVtiNBwY0I#J">
                         <field name="TEXT">Dimmen hell</field>
                       </shadow>
                     </value>
                     <next>
                       <block type="control" id="-v3k#BpVL}b~GszP+YsI">
                         <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                         <field name="OID">zigbee.0.0c4314fffe3937a2.brightness_move</field>
                         <field name="WITH_DELAY">FALSE</field>
                         <value name="VALUE">
                           <block type="math_number" id="{zn;0fxI+?uxr2~!Ypr$">
                             <field name="NUM">25</field>
                           </block>
                         </value>
                       </block>
                     </next>
                   </block>
                 </statement>
                 <next>
                   <block type="controls_if" id="$VY4ja/*G]{b/5t:3bil">
                     <value name="IF0">
                       <block type="get_value" id="iUR4#Oz$o3$PHVzC|qjp">
                         <field name="ATTR">val</field>
                         <field name="OID">zigbee.0.70ac08fffe7ecc98.down_button</field>
                       </block>
                     </value>
                     <statement name="DO0">
                       <block type="debug" id="~-*.Ph]G6l?Cn`}]v:9N">
                         <field name="Severity">info</field>
                         <value name="TEXT">
                           <shadow type="text" id="@1[?T9b!u9B{Q)IVlj-E">
                             <field name="TEXT">Dimmen dunkel</field>
                           </shadow>
                         </value>
                         <next>
                           <block type="control" id="#q-l0XG2}JdT[)-,YSBF">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">zigbee.0.0c4314fffe3937a2.brightness_move</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="math_number" id="|INEjid@H(]C|uC=Yn!+">
                                 <field name="NUM">-25</field>
                               </block>
                             </value>
                           </block>
                         </next>
                       </block>
                     </statement>
                     <next>
                       <block type="controls_if" id="[?khT#Ne1ysLwi({[;L?">
                         <value name="IF0">
                           <block type="logic_operation" id="X.p2bo9Q~p`:^b6Z#HaX" inline="false">
                             <field name="OP">AND</field>
                             <value name="A">
                               <block type="logic_negate" id="{^%Q$YW1.1tku_+B#!h9">
                                 <value name="BOOL">
                                   <block type="get_value" id="LY9YVo4ei3N+XI8}diBV">
                                     <field name="ATTR">val</field>
                                     <field name="OID">zigbee.0.70ac08fffe7ecc98.up_button</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <value name="B">
                               <block type="logic_negate" id="@b+_3)$)aNMxg!G!23E9">
                                 <value name="BOOL">
                                   <block type="get_value" id="!y[O1dNVPBycH[+$=}p-">
                                     <field name="ATTR">val</field>
                                     <field name="OID">zigbee.0.70ac08fffe7ecc98.down_button</field>
                                   </block>
                                 </value>
                               </block>
                             </value>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="debug" id=".;=pefdC#64a6aC?IHVb">
                             <field name="Severity">info</field>
                             <value name="TEXT">
                               <shadow type="text" id="4{${sL_BW%Ep(-}0en?R">
                                 <field name="TEXT">Dimmen stop</field>
                               </shadow>
                             </value>
                             <next>
                               <block type="control" id="gAFVS]PJ~|3.u#z]#W5J">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">zigbee.0.0c4314fffe3937a2.brightness_move</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="math_number" id=":`P#}$jmll;(wFe/j(P=">
                                     <field name="NUM">0</field>
                                   </block>
                                 </value>
                               </block>
                             </next>
                           </block>
                         </statement>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
             </next>
           </block>
         </statement>
       </block>
      </xml>
      

      Gruß Tom
      https://github.com/tt-tom17
      Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

      NSPanel Script Wiki
      https://github.com/joBr99/nspanel-lovelace-ui/wiki

      NSPanel Adapter Wiki
      https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

      AsgothianA 1 Antwort Letzte Antwort
      0
      • T TT-Tom

        @robbi12

        Könnte so aussehen.

        91e5bf62-6b15-4af5-8e4b-c14fcc901433-image.png

        <xml xmlns="https://developers.google.com/blockly/xml">
         <block type="on_ext" id="*!/|v$bN6-~T5LJ!:jd+" x="38" y="-137">
           <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
           <field name="CONDITION">ne</field>
           <field name="ACK_CONDITION">true</field>
           <value name="OID0">
             <shadow type="field_oid" id="n.KvrFiqg0DAPL+{mZAV">
               <field name="oid">zigbee.0.70ac08fffe7ecc98.down_button</field>
             </shadow>
           </value>
           <value name="OID1">
             <shadow type="field_oid" id="ru?[1X_L$wfaV,f$8O@x">
               <field name="oid">zigbee.0.70ac08fffe7ecc98.up_button</field>
             </shadow>
           </value>
           <value name="OID2">
             <shadow type="field_oid" id="iudgcVUoB-ykL03+X?Bz">
               <field name="oid">zigbee.0.70ac08fffe7ecc98.state</field>
             </shadow>
           </value>
           <statement name="STATEMENT">
             <block type="direct" id="K2V(p7ol3!RlJa)Lgy-t">
               <field name="ONLY_CHANGES">TRUE</field>
               <value name="OID_SRC">
                 <shadow type="field_oid" id="A;oF3DGYiVKR8VkH]DAN">
                   <field name="oid">Object ID 1</field>
                 </shadow>
                 <block type="field_oid" id="1$uN{?iIhx~oBOUvbZLG">
                   <field name="oid">zigbee.0.70ac08fffe7ecc98.state</field>
                 </block>
               </value>
               <value name="OID_DST">
                 <shadow type="field_oid" id="/rLqGG$ZXrH)8AfgVlnh">
                   <field name="oid">Object ID 2</field>
                 </shadow>
                 <block type="field_oid" id="}~CWE{DsXJ|CS?$.P`^2">
                   <field name="oid">zigbee.0.0c4314fffe3937a2.state</field>
                 </block>
               </value>
               <next>
                 <block type="controls_if" id=")0/Kqz:G++2B#Qk-s[u@">
                   <value name="IF0">
                     <block type="get_value" id="aZ^MI)+`JCqgHXx(Rlkq">
                       <field name="ATTR">val</field>
                       <field name="OID">zigbee.0.70ac08fffe7ecc98.up_button</field>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="debug" id="Kcv8DK,k7K^p)zJTt}oc">
                       <field name="Severity">info</field>
                       <value name="TEXT">
                         <shadow type="text" id=",JM.`UG(uVtiNBwY0I#J">
                           <field name="TEXT">Dimmen hell</field>
                         </shadow>
                       </value>
                       <next>
                         <block type="control" id="-v3k#BpVL}b~GszP+YsI">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">zigbee.0.0c4314fffe3937a2.brightness_move</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="math_number" id="{zn;0fxI+?uxr2~!Ypr$">
                               <field name="NUM">25</field>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <next>
                     <block type="controls_if" id="$VY4ja/*G]{b/5t:3bil">
                       <value name="IF0">
                         <block type="get_value" id="iUR4#Oz$o3$PHVzC|qjp">
                           <field name="ATTR">val</field>
                           <field name="OID">zigbee.0.70ac08fffe7ecc98.down_button</field>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="debug" id="~-*.Ph]G6l?Cn`}]v:9N">
                           <field name="Severity">info</field>
                           <value name="TEXT">
                             <shadow type="text" id="@1[?T9b!u9B{Q)IVlj-E">
                               <field name="TEXT">Dimmen dunkel</field>
                             </shadow>
                           </value>
                           <next>
                             <block type="control" id="#q-l0XG2}JdT[)-,YSBF">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                               <field name="OID">zigbee.0.0c4314fffe3937a2.brightness_move</field>
                               <field name="WITH_DELAY">FALSE</field>
                               <value name="VALUE">
                                 <block type="math_number" id="|INEjid@H(]C|uC=Yn!+">
                                   <field name="NUM">-25</field>
                                 </block>
                               </value>
                             </block>
                           </next>
                         </block>
                       </statement>
                       <next>
                         <block type="controls_if" id="[?khT#Ne1ysLwi({[;L?">
                           <value name="IF0">
                             <block type="logic_operation" id="X.p2bo9Q~p`:^b6Z#HaX" inline="false">
                               <field name="OP">AND</field>
                               <value name="A">
                                 <block type="logic_negate" id="{^%Q$YW1.1tku_+B#!h9">
                                   <value name="BOOL">
                                     <block type="get_value" id="LY9YVo4ei3N+XI8}diBV">
                                       <field name="ATTR">val</field>
                                       <field name="OID">zigbee.0.70ac08fffe7ecc98.up_button</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_negate" id="@b+_3)$)aNMxg!G!23E9">
                                   <value name="BOOL">
                                     <block type="get_value" id="!y[O1dNVPBycH[+$=}p-">
                                       <field name="ATTR">val</field>
                                       <field name="OID">zigbee.0.70ac08fffe7ecc98.down_button</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="debug" id=".;=pefdC#64a6aC?IHVb">
                               <field name="Severity">info</field>
                               <value name="TEXT">
                                 <shadow type="text" id="4{${sL_BW%Ep(-}0en?R">
                                   <field name="TEXT">Dimmen stop</field>
                                 </shadow>
                               </value>
                               <next>
                                 <block type="control" id="gAFVS]PJ~|3.u#z]#W5J">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                   <field name="OID">zigbee.0.0c4314fffe3937a2.brightness_move</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="math_number" id=":`P#}$jmll;(wFe/j(P=">
                                       <field name="NUM">0</field>
                                     </block>
                                   </value>
                                 </block>
                               </next>
                             </block>
                           </statement>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
           </statement>
         </block>
        </xml>
        

        AsgothianA Offline
        AsgothianA Offline
        Asgothian
        Developer
        schrieb am zuletzt editiert von
        #4

        @tt-tom sagte in Mit Ikea Schalter led leuchte dimmen:

        @robbi12

        Könnte so aussehen.

        91e5bf62-6b15-4af5-8e4b-c14fcc901433-image.png

        <xml xmlns="https://developers.google.com/blockly/xml">
         <block type="on_ext" id="*!/|v$bN6-~T5LJ!:jd+" x="38" y="-137">
           <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
           <field name="CONDITION">ne</field>
           <field name="ACK_CONDITION">true</field>
           <value name="OID0">
             <shadow type="field_oid" id="n.KvrFiqg0DAPL+{mZAV">
               <field name="oid">zigbee.0.70ac08fffe7ecc98.down_button</field>
             </shadow>
           </value>
           <value name="OID1">
             <shadow type="field_oid" id="ru?[1X_L$wfaV,f$8O@x">
               <field name="oid">zigbee.0.70ac08fffe7ecc98.up_button</field>
             </shadow>
           </value>
           <value name="OID2">
             <shadow type="field_oid" id="iudgcVUoB-ykL03+X?Bz">
               <field name="oid">zigbee.0.70ac08fffe7ecc98.state</field>
             </shadow>
           </value>
           <statement name="STATEMENT">
             <block type="direct" id="K2V(p7ol3!RlJa)Lgy-t">
               <field name="ONLY_CHANGES">TRUE</field>
               <value name="OID_SRC">
                 <shadow type="field_oid" id="A;oF3DGYiVKR8VkH]DAN">
                   <field name="oid">Object ID 1</field>
                 </shadow>
                 <block type="field_oid" id="1$uN{?iIhx~oBOUvbZLG">
                   <field name="oid">zigbee.0.70ac08fffe7ecc98.state</field>
                 </block>
               </value>
               <value name="OID_DST">
                 <shadow type="field_oid" id="/rLqGG$ZXrH)8AfgVlnh">
                   <field name="oid">Object ID 2</field>
                 </shadow>
                 <block type="field_oid" id="}~CWE{DsXJ|CS?$.P`^2">
                   <field name="oid">zigbee.0.0c4314fffe3937a2.state</field>
                 </block>
               </value>
               <next>
                 <block type="controls_if" id=")0/Kqz:G++2B#Qk-s[u@">
                   <value name="IF0">
                     <block type="get_value" id="aZ^MI)+`JCqgHXx(Rlkq">
                       <field name="ATTR">val</field>
                       <field name="OID">zigbee.0.70ac08fffe7ecc98.up_button</field>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="debug" id="Kcv8DK,k7K^p)zJTt}oc">
                       <field name="Severity">info</field>
                       <value name="TEXT">
                         <shadow type="text" id=",JM.`UG(uVtiNBwY0I#J">
                           <field name="TEXT">Dimmen hell</field>
                         </shadow>
                       </value>
                       <next>
                         <block type="control" id="-v3k#BpVL}b~GszP+YsI">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">zigbee.0.0c4314fffe3937a2.brightness_move</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="math_number" id="{zn;0fxI+?uxr2~!Ypr$">
                               <field name="NUM">25</field>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <next>
                     <block type="controls_if" id="$VY4ja/*G]{b/5t:3bil">
                       <value name="IF0">
                         <block type="get_value" id="iUR4#Oz$o3$PHVzC|qjp">
                           <field name="ATTR">val</field>
                           <field name="OID">zigbee.0.70ac08fffe7ecc98.down_button</field>
                         </block>
                       </value>
                       <statement name="DO0">
                         <block type="debug" id="~-*.Ph]G6l?Cn`}]v:9N">
                           <field name="Severity">info</field>
                           <value name="TEXT">
                             <shadow type="text" id="@1[?T9b!u9B{Q)IVlj-E">
                               <field name="TEXT">Dimmen dunkel</field>
                             </shadow>
                           </value>
                           <next>
                             <block type="control" id="#q-l0XG2}JdT[)-,YSBF">
                               <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                               <field name="OID">zigbee.0.0c4314fffe3937a2.brightness_move</field>
                               <field name="WITH_DELAY">FALSE</field>
                               <value name="VALUE">
                                 <block type="math_number" id="|INEjid@H(]C|uC=Yn!+">
                                   <field name="NUM">-25</field>
                                 </block>
                               </value>
                             </block>
                           </next>
                         </block>
                       </statement>
                       <next>
                         <block type="controls_if" id="[?khT#Ne1ysLwi({[;L?">
                           <value name="IF0">
                             <block type="logic_operation" id="X.p2bo9Q~p`:^b6Z#HaX" inline="false">
                               <field name="OP">AND</field>
                               <value name="A">
                                 <block type="logic_negate" id="{^%Q$YW1.1tku_+B#!h9">
                                   <value name="BOOL">
                                     <block type="get_value" id="LY9YVo4ei3N+XI8}diBV">
                                       <field name="ATTR">val</field>
                                       <field name="OID">zigbee.0.70ac08fffe7ecc98.up_button</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <value name="B">
                                 <block type="logic_negate" id="@b+_3)$)aNMxg!G!23E9">
                                   <value name="BOOL">
                                     <block type="get_value" id="!y[O1dNVPBycH[+$=}p-">
                                       <field name="ATTR">val</field>
                                       <field name="OID">zigbee.0.70ac08fffe7ecc98.down_button</field>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </value>
                           <statement name="DO0">
                             <block type="debug" id=".;=pefdC#64a6aC?IHVb">
                               <field name="Severity">info</field>
                               <value name="TEXT">
                                 <shadow type="text" id="4{${sL_BW%Ep(-}0en?R">
                                   <field name="TEXT">Dimmen stop</field>
                                 </shadow>
                               </value>
                               <next>
                                 <block type="control" id="gAFVS]PJ~|3.u#z]#W5J">
                                   <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                   <field name="OID">zigbee.0.0c4314fffe3937a2.brightness_move</field>
                                   <field name="WITH_DELAY">FALSE</field>
                                   <value name="VALUE">
                                     <block type="math_number" id=":`P#}$jmll;(wFe/j(P=">
                                       <field name="NUM">0</field>
                                     </block>
                                   </value>
                                 </block>
                               </next>
                             </block>
                           </statement>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
           </statement>
         </block>
        </xml>
        

        Vorsicht - der "Binde" Befehl bei jedem auslösen des Triggers ist nicht gut. Auch gehört der Switch Event da nicht mit rein - wenn die States per "binde" verbunden sind muss da kein Trigger mehr sein.

        Soetwas sähe dann so aus

        Screenshot 2024-07-27 at 13.56.58.png

        Ein kleiner Logik trick ist drin. der Baustein Wert hat den Wert des DP der den trigger ausgelöst hat. Ist der Wahr, dann wurde einer der buttons zum Dimmen gehalten. Ist es nicht der linke, dann muss es der rechte sein :)

        A.

        ioBroker auf RPi4 - Hardware soweit wie möglich via Zigbee.
        "Shit don't work" ist keine Fehlermeldung, sondern ein Fluch.

        T 1 Antwort Letzte Antwort
        1
        • AsgothianA Asgothian

          @tt-tom sagte in Mit Ikea Schalter led leuchte dimmen:

          @robbi12

          Könnte so aussehen.

          91e5bf62-6b15-4af5-8e4b-c14fcc901433-image.png

          <xml xmlns="https://developers.google.com/blockly/xml">
           <block type="on_ext" id="*!/|v$bN6-~T5LJ!:jd+" x="38" y="-137">
             <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
             <field name="CONDITION">ne</field>
             <field name="ACK_CONDITION">true</field>
             <value name="OID0">
               <shadow type="field_oid" id="n.KvrFiqg0DAPL+{mZAV">
                 <field name="oid">zigbee.0.70ac08fffe7ecc98.down_button</field>
               </shadow>
             </value>
             <value name="OID1">
               <shadow type="field_oid" id="ru?[1X_L$wfaV,f$8O@x">
                 <field name="oid">zigbee.0.70ac08fffe7ecc98.up_button</field>
               </shadow>
             </value>
             <value name="OID2">
               <shadow type="field_oid" id="iudgcVUoB-ykL03+X?Bz">
                 <field name="oid">zigbee.0.70ac08fffe7ecc98.state</field>
               </shadow>
             </value>
             <statement name="STATEMENT">
               <block type="direct" id="K2V(p7ol3!RlJa)Lgy-t">
                 <field name="ONLY_CHANGES">TRUE</field>
                 <value name="OID_SRC">
                   <shadow type="field_oid" id="A;oF3DGYiVKR8VkH]DAN">
                     <field name="oid">Object ID 1</field>
                   </shadow>
                   <block type="field_oid" id="1$uN{?iIhx~oBOUvbZLG">
                     <field name="oid">zigbee.0.70ac08fffe7ecc98.state</field>
                   </block>
                 </value>
                 <value name="OID_DST">
                   <shadow type="field_oid" id="/rLqGG$ZXrH)8AfgVlnh">
                     <field name="oid">Object ID 2</field>
                   </shadow>
                   <block type="field_oid" id="}~CWE{DsXJ|CS?$.P`^2">
                     <field name="oid">zigbee.0.0c4314fffe3937a2.state</field>
                   </block>
                 </value>
                 <next>
                   <block type="controls_if" id=")0/Kqz:G++2B#Qk-s[u@">
                     <value name="IF0">
                       <block type="get_value" id="aZ^MI)+`JCqgHXx(Rlkq">
                         <field name="ATTR">val</field>
                         <field name="OID">zigbee.0.70ac08fffe7ecc98.up_button</field>
                       </block>
                     </value>
                     <statement name="DO0">
                       <block type="debug" id="Kcv8DK,k7K^p)zJTt}oc">
                         <field name="Severity">info</field>
                         <value name="TEXT">
                           <shadow type="text" id=",JM.`UG(uVtiNBwY0I#J">
                             <field name="TEXT">Dimmen hell</field>
                           </shadow>
                         </value>
                         <next>
                           <block type="control" id="-v3k#BpVL}b~GszP+YsI">
                             <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                             <field name="OID">zigbee.0.0c4314fffe3937a2.brightness_move</field>
                             <field name="WITH_DELAY">FALSE</field>
                             <value name="VALUE">
                               <block type="math_number" id="{zn;0fxI+?uxr2~!Ypr$">
                                 <field name="NUM">25</field>
                               </block>
                             </value>
                           </block>
                         </next>
                       </block>
                     </statement>
                     <next>
                       <block type="controls_if" id="$VY4ja/*G]{b/5t:3bil">
                         <value name="IF0">
                           <block type="get_value" id="iUR4#Oz$o3$PHVzC|qjp">
                             <field name="ATTR">val</field>
                             <field name="OID">zigbee.0.70ac08fffe7ecc98.down_button</field>
                           </block>
                         </value>
                         <statement name="DO0">
                           <block type="debug" id="~-*.Ph]G6l?Cn`}]v:9N">
                             <field name="Severity">info</field>
                             <value name="TEXT">
                               <shadow type="text" id="@1[?T9b!u9B{Q)IVlj-E">
                                 <field name="TEXT">Dimmen dunkel</field>
                               </shadow>
                             </value>
                             <next>
                               <block type="control" id="#q-l0XG2}JdT[)-,YSBF">
                                 <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                 <field name="OID">zigbee.0.0c4314fffe3937a2.brightness_move</field>
                                 <field name="WITH_DELAY">FALSE</field>
                                 <value name="VALUE">
                                   <block type="math_number" id="|INEjid@H(]C|uC=Yn!+">
                                     <field name="NUM">-25</field>
                                   </block>
                                 </value>
                               </block>
                             </next>
                           </block>
                         </statement>
                         <next>
                           <block type="controls_if" id="[?khT#Ne1ysLwi({[;L?">
                             <value name="IF0">
                               <block type="logic_operation" id="X.p2bo9Q~p`:^b6Z#HaX" inline="false">
                                 <field name="OP">AND</field>
                                 <value name="A">
                                   <block type="logic_negate" id="{^%Q$YW1.1tku_+B#!h9">
                                     <value name="BOOL">
                                       <block type="get_value" id="LY9YVo4ei3N+XI8}diBV">
                                         <field name="ATTR">val</field>
                                         <field name="OID">zigbee.0.70ac08fffe7ecc98.up_button</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                                 <value name="B">
                                   <block type="logic_negate" id="@b+_3)$)aNMxg!G!23E9">
                                     <value name="BOOL">
                                       <block type="get_value" id="!y[O1dNVPBycH[+$=}p-">
                                         <field name="ATTR">val</field>
                                         <field name="OID">zigbee.0.70ac08fffe7ecc98.down_button</field>
                                       </block>
                                     </value>
                                   </block>
                                 </value>
                               </block>
                             </value>
                             <statement name="DO0">
                               <block type="debug" id=".;=pefdC#64a6aC?IHVb">
                                 <field name="Severity">info</field>
                                 <value name="TEXT">
                                   <shadow type="text" id="4{${sL_BW%Ep(-}0en?R">
                                     <field name="TEXT">Dimmen stop</field>
                                   </shadow>
                                 </value>
                                 <next>
                                   <block type="control" id="gAFVS]PJ~|3.u#z]#W5J">
                                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                     <field name="OID">zigbee.0.0c4314fffe3937a2.brightness_move</field>
                                     <field name="WITH_DELAY">FALSE</field>
                                     <value name="VALUE">
                                       <block type="math_number" id=":`P#}$jmll;(wFe/j(P=">
                                         <field name="NUM">0</field>
                                       </block>
                                     </value>
                                   </block>
                                 </next>
                               </block>
                             </statement>
                           </block>
                         </next>
                       </block>
                     </next>
                   </block>
                 </next>
               </block>
             </statement>
           </block>
          </xml>
          

          Vorsicht - der "Binde" Befehl bei jedem auslösen des Triggers ist nicht gut. Auch gehört der Switch Event da nicht mit rein - wenn die States per "binde" verbunden sind muss da kein Trigger mehr sein.

          Soetwas sähe dann so aus

          Screenshot 2024-07-27 at 13.56.58.png

          Ein kleiner Logik trick ist drin. der Baustein Wert hat den Wert des DP der den trigger ausgelöst hat. Ist der Wahr, dann wurde einer der buttons zum Dimmen gehalten. Ist es nicht der linke, dann muss es der rechte sein :)

          A.

          T Offline
          T Offline
          TT-Tom
          schrieb am zuletzt editiert von
          #5

          @asgothian

          Danke für die Optimierung, werde es gleich mal umsetzen.

          Gruß Tom
          https://github.com/tt-tom17
          Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

          NSPanel Script Wiki
          https://github.com/joBr99/nspanel-lovelace-ui/wiki

          NSPanel Adapter Wiki
          https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

          R 1 Antwort Letzte Antwort
          0
          • T TT-Tom

            @asgothian

            Danke für die Optimierung, werde es gleich mal umsetzen.

            R Offline
            R Offline
            Robbi12
            schrieb am zuletzt editiert von
            #6

            Danke habe es hinbekommen. Nun habe ich noch einen anderen Schalter von Ikea, welcher open/close und stop hat. Das ist der mit der Sonne und dem Rollo drauf.

            Ich würde gerne hochfahren bis ich eine andere Taste drücke, dann stop. Das Gleiche bei runter

            Wenn ich gedrückt halte und loslasse soll der Rollo fahren und beim loslassen stoppen.

            Ein erster Kurzversuch:

            Screenshot 2024-07-27 151251.png

            Funktioniert für einmaliges Drücken und loslassen. Wenn ich das Ganze umgekehrt hinzufüge dann kommt alles durcheinander

            AsgothianA paul53P 2 Antworten Letzte Antwort
            0
            • R Robbi12

              Danke habe es hinbekommen. Nun habe ich noch einen anderen Schalter von Ikea, welcher open/close und stop hat. Das ist der mit der Sonne und dem Rollo drauf.

              Ich würde gerne hochfahren bis ich eine andere Taste drücke, dann stop. Das Gleiche bei runter

              Wenn ich gedrückt halte und loslasse soll der Rollo fahren und beim loslassen stoppen.

              Ein erster Kurzversuch:

              Screenshot 2024-07-27 151251.png

              Funktioniert für einmaliges Drücken und loslassen. Wenn ich das Ganze umgekehrt hinzufüge dann kommt alles durcheinander

              AsgothianA Offline
              AsgothianA Offline
              Asgothian
              Developer
              schrieb am zuletzt editiert von
              #7

              @robbi12 sagte in Mit Ikea Schalter led leuchte dimmen:

              Funktioniert für einmaliges Drücken und loslassen. Wenn ich das Ganze umgekehrt hinzufüge dann kommt alles durcheinander

              zeig mal das Skript bei dem alles durcheinander geht

              ioBroker auf RPi4 - Hardware soweit wie möglich via Zigbee.
              "Shit don't work" ist keine Fehlermeldung, sondern ein Fluch.

              1 Antwort Letzte Antwort
              0
              • R Robbi12

                Danke habe es hinbekommen. Nun habe ich noch einen anderen Schalter von Ikea, welcher open/close und stop hat. Das ist der mit der Sonne und dem Rollo drauf.

                Ich würde gerne hochfahren bis ich eine andere Taste drücke, dann stop. Das Gleiche bei runter

                Wenn ich gedrückt halte und loslasse soll der Rollo fahren und beim loslassen stoppen.

                Ein erster Kurzversuch:

                Screenshot 2024-07-27 151251.png

                Funktioniert für einmaliges Drücken und loslassen. Wenn ich das Ganze umgekehrt hinzufüge dann kommt alles durcheinander

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

                @robbi12 sagte: Schalter von Ikea, welcher open/close und stop hat.

                Wer diesen Taster nicht hat, kennt dessen Verhalten nicht und kann deshalb nicht helfen. Teste erst einmal das Verhalten:

                Blockly_temp.JPG

                Drücke jede Taste einmal kurz und dann z.B. "open" einmal lang und poste das Log in Code tags.

                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

                R 1 Antwort Letzte Antwort
                0
                • paul53P paul53

                  @robbi12 sagte: Schalter von Ikea, welcher open/close und stop hat.

                  Wer diesen Taster nicht hat, kennt dessen Verhalten nicht und kann deshalb nicht helfen. Teste erst einmal das Verhalten:

                  Blockly_temp.JPG

                  Drücke jede Taste einmal kurz und dann z.B. "open" einmal lang und poste das Log in Code tags.

                  R Offline
                  R Offline
                  Robbi12
                  schrieb am zuletzt editiert von
                  #9

                  @paul53 Danke dass ihr euch die viele Mühe macht.

                  Hier die Auswertung:

                  Von unten nach oben:

                  • Rollo auf gedrückt: Die ersten 2 Werte
                  • Rollo zu gedrückt: Die nächsten 2 Werte
                  • Rollo auf lang gedrückt und losgelassen: Die nächsten 4 Werte
                  • Rollo zu lang gedrückt und losgelassen: Die letzten 4 Werte

                  Screenshot 2024-07-27 162509.png

                  paul53P 1 Antwort Letzte Antwort
                  0
                  • R Robbi12

                    @paul53 Danke dass ihr euch die viele Mühe macht.

                    Hier die Auswertung:

                    Von unten nach oben:

                    • Rollo auf gedrückt: Die ersten 2 Werte
                    • Rollo zu gedrückt: Die nächsten 2 Werte
                    • Rollo auf lang gedrückt und losgelassen: Die nächsten 4 Werte
                    • Rollo zu lang gedrückt und losgelassen: Die letzten 4 Werte

                    Screenshot 2024-07-27 162509.png

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

                    @robbi12
                    Es gibt "Open event" und "Open"? "Open" beim Loslassen nach langem Tastendruck?
                    Was ist mit Taste "stop"?

                    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

                    R 1 Antwort Letzte Antwort
                    0
                    • paul53P paul53

                      @robbi12
                      Es gibt "Open event" und "Open"? "Open" beim Loslassen nach langem Tastendruck?
                      Was ist mit Taste "stop"?

                      R Offline
                      R Offline
                      Robbi12
                      schrieb am zuletzt editiert von
                      #11

                      @paul53 Es gibt keinen Stop Taster. open Event ist beim Drücken. open ist wenn ich nach langem Tastendruck loslasse.

                      paul53P 1 Antwort Letzte Antwort
                      0
                      • R Robbi12

                        @paul53 Es gibt keinen Stop Taster. open Event ist beim Drücken. open ist wenn ich nach langem Tastendruck loslasse.

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

                        @robbi12 sagte: open ist wenn ich nach langem Tastendruck loslasse.

                        Dann versuche es mal so:

                        Blockly_temp.JPG

                        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

                        R 1 Antwort Letzte Antwort
                        0
                        • paul53P paul53

                          @robbi12 sagte: open ist wenn ich nach langem Tastendruck loslasse.

                          Dann versuche es mal so:

                          Blockly_temp.JPG

                          R Offline
                          R Offline
                          Robbi12
                          schrieb am zuletzt editiert von
                          #13

                          @paul53 Danke das funktioniert gut

                          paul53P 1 Antwort Letzte Antwort
                          0
                          • R Robbi12

                            @paul53 Danke das funktioniert gut

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

                            @robbi12 sagte: funktioniert gut

                            Hat der Rollo-Aktor einen Datenpunkt, der anzeigt, ob das Rollo in Bewegung ist? Falls ja, wäre er besser für die Prüfung geeignet als die Variable move, da auch das Stoppen bei Erreichen der Endlagen berücksichtigt würde.

                            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

                            R 1 Antwort Letzte Antwort
                            0
                            • paul53P paul53

                              @robbi12 sagte: funktioniert gut

                              Hat der Rollo-Aktor einen Datenpunkt, der anzeigt, ob das Rollo in Bewegung ist? Falls ja, wäre er besser für die Prüfung geeignet als die Variable move, da auch das Stoppen bei Erreichen der Endlagen berücksichtigt würde.

                              R Offline
                              R Offline
                              Robbi12
                              schrieb am zuletzt editiert von
                              #15

                              @paul53 Der Rollo hat den Wert position. Dieser zeigt prozentuale Werte an und müsste sich ändern.

                              Wie würde das Script dann aussehen?

                              paul53P 1 Antwort Letzte Antwort
                              0
                              • R Robbi12

                                @paul53 Der Rollo hat den Wert position. Dieser zeigt prozentuale Werte an und müsste sich ändern.

                                Wie würde das Script dann aussehen?

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

                                @robbi12 sagte: Der Rollo hat den Wert position.

                                In dem Fall benötigt man die Variable move weiterhin. Man kann sie aber bei Erreichen einer Endposition auf falsch setzen, damit der nächste Tastendruck nicht als "stop" interpretiert wird.

                                Blockly_temp.JPG

                                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

                                R 1 Antwort Letzte Antwort
                                0
                                • paul53P paul53

                                  @robbi12 sagte: Der Rollo hat den Wert position.

                                  In dem Fall benötigt man die Variable move weiterhin. Man kann sie aber bei Erreichen einer Endposition auf falsch setzen, damit der nächste Tastendruck nicht als "stop" interpretiert wird.

                                  Blockly_temp.JPG

                                  R Offline
                                  R Offline
                                  Robbi12
                                  schrieb am zuletzt editiert von
                                  #17

                                  @paul53 Hallo. Funktioniert nicht ganz. Hoch mit einfach drücken und runter geht. Hält auch an. LongPush fährt runter oder hoch, hält aber nicht mehr an.

                                  paul53P 1 Antwort Letzte Antwort
                                  0
                                  • R Robbi12

                                    @paul53 Hallo. Funktioniert nicht ganz. Hoch mit einfach drücken und runter geht. Hält auch an. LongPush fährt runter oder hoch, hält aber nicht mehr an.

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

                                    @robbi12 sagte: hält aber nicht mehr an.

                                    Bitte Blockly zeigen.

                                    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

                                    R 1 Antwort Letzte Antwort
                                    0
                                    • paul53P paul53

                                      @robbi12 sagte: hält aber nicht mehr an.

                                      Bitte Blockly zeigen.

                                      R Offline
                                      R Offline
                                      Robbi12
                                      schrieb am zuletzt editiert von Robbi12
                                      #19
                                      <xml xmlns="https://developers.google.com/blockly/xml">
                                        <variables>
                                          <variable id="TT,eIkG,j9(IFTy%.ud{">position</variable>
                                          <variable id="k%2N3;oRED*`)oKP7[Pc">move</variable>
                                        </variables>
                                        <block type="procedures_defnoreturn" id="mCf]Lw;IqlUK=btQ9A~A" x="13" y="13">
                                          <field name="NAME">stoppen</field>
                                          <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                          <statement name="STACK">
                                            <block type="control" id="BytYBFroz4zRhek0}VII">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">zigbee.0.842e14fffe746425.stop</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="logic_boolean" id="mzfKSDxS/?1hbW2`Gnys">
                                                  <field name="BOOL">TRUE</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="variables_set" id="ZCGgGWFg!.tZfwf|I(rX">
                                                  <field name="VAR" id="k%2N3;oRED*`)oKP7[Pc">move</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="K7qW5Zhkv{eXcZFGDZ%t">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </next>
                                            </block>
                                          </statement>
                                        </block>
                                        <block type="variables_set" id="$980h.:wcI(1XI#qfe}4" x="13" y="138">
                                          <field name="VAR" id="TT,eIkG,j9(IFTy%.ud{">position</field>
                                          <value name="VALUE">
                                            <block type="get_value" id="f~B9?;Em=M`M@?VZEMk)">
                                              <field name="ATTR">val</field>
                                              <field name="OID">zigbee.0.842e14fffe746425.position</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="on" id="0cRYgSwDT=vRPmLdK#Vo">
                                              <field name="OID">zigbee.0.842e14fffe746425.position</field>
                                              <field name="CONDITION">ne</field>
                                              <field name="ACK_CONDITION"></field>
                                              <statement name="STATEMENT">
                                                <block type="variables_set" id="{/VlM+.c,(~eVvJo`x+p">
                                                  <field name="VAR" id="TT,eIkG,j9(IFTy%.ud{">position</field>
                                                  <value name="VALUE">
                                                    <block type="on_source" id="Z%*^8UU*jZrIjVr1LsPX">
                                                      <field name="ATTR">state.val</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                              <next>
                                                <block type="controls_if" id="5+!kpN!_-@M}T@CQiik%">
                                                  <value name="IF0">
                                                    <block type="logic_operation" id="2t6cq?_Hn5hm_5XSR6Hb" inline="false">
                                                      <field name="OP">OR</field>
                                                      <value name="A">
                                                        <block type="logic_compare" id="TtV3rXEU0~^B1sFL_a(4">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="variables_get" id="K~*B4jQph1+G=i5Ie}{h">
                                                              <field name="VAR" id="TT,eIkG,j9(IFTy%.ud{">position</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="math_number" id="iYoP[CR4,!rPW}uDl186">
                                                              <field name="NUM">0</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_compare" id="x?ky:Q[HKG@f8WS7=R(]">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="variables_get" id="xGnF-ij$SCr?g!*{6]nr">
                                                              <field name="VAR" id="TT,eIkG,j9(IFTy%.ud{">position</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="math_number" id="s^g+lE~[(i4m;v}}FcYY">
                                                              <field name="NUM">100</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="variables_set" id=",dD4$fxc]P!*V5g~u6h?">
                                                      <field name="VAR" id="k%2N3;oRED*`)oKP7[Pc">move</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="`e/~`1*n@n$bVo9p8]+b">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                  <next>
                                                    <block type="on" id="wSHgv/+Lut?SP(]a1S5g">
                                                      <field name="OID">zigbee.0.842e14fffe746425.stop</field>
                                                      <field name="CONDITION">gt</field>
                                                      <field name="ACK_CONDITION"></field>
                                                      <statement name="STATEMENT">
                                                        <block type="procedures_callnoreturn" id="Yf:3QbH8]MBoic?yAhJc">
                                                          <mutation name="stoppen"></mutation>
                                                        </block>
                                                      </statement>
                                                      <next>
                                                        <block type="on" id="n$NS`*]h5IC6U:*#@d%/">
                                                          <field name="OID">zigbee.0.5c0272fffe7b0ff5.cover_open</field>
                                                          <field name="CONDITION">gt</field>
                                                          <field name="ACK_CONDITION"></field>
                                                          <statement name="STATEMENT">
                                                            <block type="controls_if" id="3P@q8JcJRr2%=)i@MISC">
                                                              <mutation elseif="1"></mutation>
                                                              <value name="IF0">
                                                                <block type="variables_get" id="n=Y|rd!LEK?!|E2N_}/K">
                                                                  <field name="VAR" id="k%2N3;oRED*`)oKP7[Pc">move</field>
                                                                </block>
                                                              </value>
                                                              <statement name="DO0">
                                                                <block type="procedures_callnoreturn" id=":O+mR7,0o`@-3%{4#jvt">
                                                                  <mutation name="stoppen"></mutation>
                                                                </block>
                                                              </statement>
                                                              <value name="IF1">
                                                                <block type="logic_compare" id="qtge`Iw+HeN^rph7g,b-">
                                                                  <field name="OP">LT</field>
                                                                  <value name="A">
                                                                    <block type="variables_get" id="B;]e?7T:WBU/r.@|E}f]">
                                                                      <field name="VAR" id="TT,eIkG,j9(IFTy%.ud{">position</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="math_number" id="qp+#w9eP}LfKvMYnM_tJ">
                                                                      <field name="NUM">100</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <statement name="DO1">
                                                                <block type="control" id="/5.{4ybn*duY`_^+j|nJ">
                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                  <field name="OID">zigbee.0.842e14fffe746425.open</field>
                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                  <value name="VALUE">
                                                                    <block type="logic_boolean" id="s30@jwzcu9]E=tvL8{._">
                                                                      <field name="BOOL">TRUE</field>
                                                                    </block>
                                                                  </value>
                                                                  <next>
                                                                    <block type="variables_set" id="8-/kSNy2{,`SHzpw^E}u">
                                                                      <field name="VAR" id="k%2N3;oRED*`)oKP7[Pc">move</field>
                                                                      <value name="VALUE">
                                                                        <block type="logic_boolean" id="~xc|QVG=r$?ffp`H[tm(">
                                                                          <field name="BOOL">TRUE</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </statement>
                                                            </block>
                                                          </statement>
                                                          <next>
                                                            <block type="on" id="Pp!tA9]/eMX}|FqEk2g1">
                                                              <field name="OID">zigbee.0.5c0272fffe7b0ff5.cover_close</field>
                                                              <field name="CONDITION">gt</field>
                                                              <field name="ACK_CONDITION"></field>
                                                              <statement name="STATEMENT">
                                                                <block type="controls_if" id="M|3anr%E8BNORT45o2iB">
                                                                  <mutation elseif="1"></mutation>
                                                                  <value name="IF0">
                                                                    <block type="variables_get" id="vz${@a6Ks2vTk:=J:=M{">
                                                                      <field name="VAR" id="k%2N3;oRED*`)oKP7[Pc">move</field>
                                                                    </block>
                                                                  </value>
                                                                  <statement name="DO0">
                                                                    <block type="procedures_callnoreturn" id="J4E{SUH(IP,utoKM-ZNK">
                                                                      <mutation name="stoppen"></mutation>
                                                                    </block>
                                                                  </statement>
                                                                  <value name="IF1">
                                                                    <block type="logic_compare" id="k.r-52uW.ipg-5Sn=7;`">
                                                                      <field name="OP">GT</field>
                                                                      <value name="A">
                                                                        <block type="variables_get" id="1?ty#QG0CQE2(IGmq05W">
                                                                          <field name="VAR" id="TT,eIkG,j9(IFTy%.ud{">position</field>
                                                                        </block>
                                                                      </value>
                                                                      <value name="B">
                                                                        <block type="math_number" id="~G4u.~CIt8;(.ne01USV">
                                                                          <field name="NUM">0</field>
                                                                        </block>
                                                                      </value>
                                                                    </block>
                                                                  </value>
                                                                  <statement name="DO1">
                                                                    <block type="control" id="]/jAZ3[Nkzm[CI_o0mc,">
                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                      <field name="OID">zigbee.0.842e14fffe746425.close</field>
                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                      <value name="VALUE">
                                                                        <block type="logic_boolean" id="0O3F#Odbe:M1+EIZu8ZP">
                                                                          <field name="BOOL">TRUE</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="variables_set" id="8X!s.Os!]M5@XW7]C[):">
                                                                          <field name="VAR" id="k%2N3;oRED*`)oKP7[Pc">move</field>
                                                                          <value name="VALUE">
                                                                            <block type="logic_boolean" id="2]Ed~u{DwcK-F%q|DA$?">
                                                                              <field name="BOOL">TRUE</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                </block>
                                                              </statement>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </xml>
                                      
                                      paul53P 1 Antwort Letzte Antwort
                                      0
                                      • R Robbi12
                                        <xml xmlns="https://developers.google.com/blockly/xml">
                                          <variables>
                                            <variable id="TT,eIkG,j9(IFTy%.ud{">position</variable>
                                            <variable id="k%2N3;oRED*`)oKP7[Pc">move</variable>
                                          </variables>
                                          <block type="procedures_defnoreturn" id="mCf]Lw;IqlUK=btQ9A~A" x="13" y="13">
                                            <field name="NAME">stoppen</field>
                                            <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                            <statement name="STACK">
                                              <block type="control" id="BytYBFroz4zRhek0}VII">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">zigbee.0.842e14fffe746425.stop</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="mzfKSDxS/?1hbW2`Gnys">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="variables_set" id="ZCGgGWFg!.tZfwf|I(rX">
                                                    <field name="VAR" id="k%2N3;oRED*`)oKP7[Pc">move</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="K7qW5Zhkv{eXcZFGDZ%t">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                          <block type="variables_set" id="$980h.:wcI(1XI#qfe}4" x="13" y="138">
                                            <field name="VAR" id="TT,eIkG,j9(IFTy%.ud{">position</field>
                                            <value name="VALUE">
                                              <block type="get_value" id="f~B9?;Em=M`M@?VZEMk)">
                                                <field name="ATTR">val</field>
                                                <field name="OID">zigbee.0.842e14fffe746425.position</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="on" id="0cRYgSwDT=vRPmLdK#Vo">
                                                <field name="OID">zigbee.0.842e14fffe746425.position</field>
                                                <field name="CONDITION">ne</field>
                                                <field name="ACK_CONDITION"></field>
                                                <statement name="STATEMENT">
                                                  <block type="variables_set" id="{/VlM+.c,(~eVvJo`x+p">
                                                    <field name="VAR" id="TT,eIkG,j9(IFTy%.ud{">position</field>
                                                    <value name="VALUE">
                                                      <block type="on_source" id="Z%*^8UU*jZrIjVr1LsPX">
                                                        <field name="ATTR">state.val</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="controls_if" id="5+!kpN!_-@M}T@CQiik%">
                                                    <value name="IF0">
                                                      <block type="logic_operation" id="2t6cq?_Hn5hm_5XSR6Hb" inline="false">
                                                        <field name="OP">OR</field>
                                                        <value name="A">
                                                          <block type="logic_compare" id="TtV3rXEU0~^B1sFL_a(4">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="variables_get" id="K~*B4jQph1+G=i5Ie}{h">
                                                                <field name="VAR" id="TT,eIkG,j9(IFTy%.ud{">position</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="math_number" id="iYoP[CR4,!rPW}uDl186">
                                                                <field name="NUM">0</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_compare" id="x?ky:Q[HKG@f8WS7=R(]">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="variables_get" id="xGnF-ij$SCr?g!*{6]nr">
                                                                <field name="VAR" id="TT,eIkG,j9(IFTy%.ud{">position</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="math_number" id="s^g+lE~[(i4m;v}}FcYY">
                                                                <field name="NUM">100</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <statement name="DO0">
                                                      <block type="variables_set" id=",dD4$fxc]P!*V5g~u6h?">
                                                        <field name="VAR" id="k%2N3;oRED*`)oKP7[Pc">move</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="`e/~`1*n@n$bVo9p8]+b">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </statement>
                                                    <next>
                                                      <block type="on" id="wSHgv/+Lut?SP(]a1S5g">
                                                        <field name="OID">zigbee.0.842e14fffe746425.stop</field>
                                                        <field name="CONDITION">gt</field>
                                                        <field name="ACK_CONDITION"></field>
                                                        <statement name="STATEMENT">
                                                          <block type="procedures_callnoreturn" id="Yf:3QbH8]MBoic?yAhJc">
                                                            <mutation name="stoppen"></mutation>
                                                          </block>
                                                        </statement>
                                                        <next>
                                                          <block type="on" id="n$NS`*]h5IC6U:*#@d%/">
                                                            <field name="OID">zigbee.0.5c0272fffe7b0ff5.cover_open</field>
                                                            <field name="CONDITION">gt</field>
                                                            <field name="ACK_CONDITION"></field>
                                                            <statement name="STATEMENT">
                                                              <block type="controls_if" id="3P@q8JcJRr2%=)i@MISC">
                                                                <mutation elseif="1"></mutation>
                                                                <value name="IF0">
                                                                  <block type="variables_get" id="n=Y|rd!LEK?!|E2N_}/K">
                                                                    <field name="VAR" id="k%2N3;oRED*`)oKP7[Pc">move</field>
                                                                  </block>
                                                                </value>
                                                                <statement name="DO0">
                                                                  <block type="procedures_callnoreturn" id=":O+mR7,0o`@-3%{4#jvt">
                                                                    <mutation name="stoppen"></mutation>
                                                                  </block>
                                                                </statement>
                                                                <value name="IF1">
                                                                  <block type="logic_compare" id="qtge`Iw+HeN^rph7g,b-">
                                                                    <field name="OP">LT</field>
                                                                    <value name="A">
                                                                      <block type="variables_get" id="B;]e?7T:WBU/r.@|E}f]">
                                                                        <field name="VAR" id="TT,eIkG,j9(IFTy%.ud{">position</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="math_number" id="qp+#w9eP}LfKvMYnM_tJ">
                                                                        <field name="NUM">100</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <statement name="DO1">
                                                                  <block type="control" id="/5.{4ybn*duY`_^+j|nJ">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">zigbee.0.842e14fffe746425.open</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="logic_boolean" id="s30@jwzcu9]E=tvL8{._">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="variables_set" id="8-/kSNy2{,`SHzpw^E}u">
                                                                        <field name="VAR" id="k%2N3;oRED*`)oKP7[Pc">move</field>
                                                                        <value name="VALUE">
                                                                          <block type="logic_boolean" id="~xc|QVG=r$?ffp`H[tm(">
                                                                            <field name="BOOL">TRUE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </statement>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="on" id="Pp!tA9]/eMX}|FqEk2g1">
                                                                <field name="OID">zigbee.0.5c0272fffe7b0ff5.cover_close</field>
                                                                <field name="CONDITION">gt</field>
                                                                <field name="ACK_CONDITION"></field>
                                                                <statement name="STATEMENT">
                                                                  <block type="controls_if" id="M|3anr%E8BNORT45o2iB">
                                                                    <mutation elseif="1"></mutation>
                                                                    <value name="IF0">
                                                                      <block type="variables_get" id="vz${@a6Ks2vTk:=J:=M{">
                                                                        <field name="VAR" id="k%2N3;oRED*`)oKP7[Pc">move</field>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="procedures_callnoreturn" id="J4E{SUH(IP,utoKM-ZNK">
                                                                        <mutation name="stoppen"></mutation>
                                                                      </block>
                                                                    </statement>
                                                                    <value name="IF1">
                                                                      <block type="logic_compare" id="k.r-52uW.ipg-5Sn=7;`">
                                                                        <field name="OP">GT</field>
                                                                        <value name="A">
                                                                          <block type="variables_get" id="1?ty#QG0CQE2(IGmq05W">
                                                                            <field name="VAR" id="TT,eIkG,j9(IFTy%.ud{">position</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="math_number" id="~G4u.~CIt8;(.ne01USV">
                                                                            <field name="NUM">0</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO1">
                                                                      <block type="control" id="]/jAZ3[Nkzm[CI_o0mc,">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">zigbee.0.842e14fffe746425.close</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="logic_boolean" id="0O3F#Odbe:M1+EIZu8ZP">
                                                                            <field name="BOOL">TRUE</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="variables_set" id="8X!s.Os!]M5@XW7]C[):">
                                                                            <field name="VAR" id="k%2N3;oRED*`)oKP7[Pc">move</field>
                                                                            <value name="VALUE">
                                                                              <block type="logic_boolean" id="2]Ed~u{DwcK-F%q|DA$?">
                                                                                <field name="BOOL">TRUE</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                  </block>
                                                                </statement>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </xml>
                                        
                                        paul53P Offline
                                        paul53P Offline
                                        paul53
                                        schrieb am zuletzt editiert von paul53
                                        #20

                                        @robbi12
                                        Der Block für setzen von move bei Erreichen der Endlagen gehört in den Triggerblock:

                                        Blockly_temp.JPG

                                        Der Datenpunkt zum Stoppen bei Loslassen ist falsch. Es muss ein Datenpunkt ("Open") des Tasters ("zigbee.0.5c0272fffe7b0ff5") sein.

                                        Blockly_temp.JPG

                                        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

                                        429

                                        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