Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Mit Ikea Schalter led leuchte dimmen

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Mit Ikea Schalter led leuchte dimmen

    This topic has been deleted. Only users with topic management privileges can see it.
    • Asgothian
      Asgothian Developer @Robbi12 last edited by

      @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.

      1 Reply Last reply Reply Quote 1
      • T
        TT-Tom @Robbi12 last edited by

        @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>
        

        Asgothian 1 Reply Last reply Reply Quote 0
        • Asgothian
          Asgothian Developer @TT-Tom last edited by

          @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 1 Reply Last reply Reply Quote 1
          • T
            TT-Tom @Asgothian last edited by

            @asgothian

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

            R 1 Reply Last reply Reply Quote 0
            • R
              Robbi12 @TT-Tom last edited by

              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

              Asgothian paul53 2 Replies Last reply Reply Quote 0
              • Asgothian
                Asgothian Developer @Robbi12 last edited by

                @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

                1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @Robbi12 last edited by 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 1 Reply Last reply Reply Quote 0
                  • R
                    Robbi12 @paul53 last edited by

                    @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

                    paul53 1 Reply Last reply Reply Quote 0
                    • paul53
                      paul53 @Robbi12 last edited by paul53

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

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        Robbi12 @paul53 last edited by

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

                        paul53 1 Reply Last reply Reply Quote 0
                        • paul53
                          paul53 @Robbi12 last edited by

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

                          Dann versuche es mal so:

                          Blockly_temp.JPG

                          R 1 Reply Last reply Reply Quote 0
                          • R
                            Robbi12 @paul53 last edited by

                            @paul53 Danke das funktioniert gut

                            paul53 1 Reply Last reply Reply Quote 0
                            • paul53
                              paul53 @Robbi12 last edited by

                              @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 1 Reply Last reply Reply Quote 0
                              • R
                                Robbi12 @paul53 last edited by

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

                                Wie würde das Script dann aussehen?

                                paul53 1 Reply Last reply Reply Quote 0
                                • paul53
                                  paul53 @Robbi12 last edited by 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 1 Reply Last reply Reply Quote 0
                                  • R
                                    Robbi12 @paul53 last edited by

                                    @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.

                                    paul53 1 Reply Last reply Reply Quote 0
                                    • paul53
                                      paul53 @Robbi12 last edited by paul53

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

                                      Bitte Blockly zeigen.

                                      R 1 Reply Last reply Reply Quote 0
                                      • R
                                        Robbi12 @paul53 last edited by 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>
                                        
                                        paul53 1 Reply Last reply Reply Quote 0
                                        • paul53
                                          paul53 @Robbi12 last edited by paul53

                                          @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

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post

                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          409
                                          Online

                                          32.0k
                                          Users

                                          80.3k
                                          Topics

                                          1.3m
                                          Posts

                                          4
                                          20
                                          509
                                          Loading More Posts
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                          The ioBroker Community 2014-2023
                                          logo