Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Script Hilfe licht über Xiaomi Switch anschalten.

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.8k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.2k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.2k

Script Hilfe licht über Xiaomi Switch anschalten.

Scheduled Pinned Locked Moved Blockly
blocklymonitoringcommunication
40 Posts 3 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • iomountainI iomountain

    Wenn du was lernen willst, als Anfang zum einarbeiten:
    1f3064cc-1579-4514-b298-c6f791297d3c-image.png

    <xml xmlns="http://www.w3.org/1999/xhtml">
     <block type="comment" id="@cY?z8Mo[rp~6*xjYRB9" x="88" y="-462">
       <field name="COMMENT">Taster XIAOMI  Nr. 3</field>
       <next>
         <block type="on_ext" id="PB-24CkO9W+A,wx(U/~p">
           <mutation items="6"></mutation>
           <field name="CONDITION">gt</field>
           <field name="ACK_CONDITION">true</field>
           <value name="OID0">
             <shadow type="field_oid" id=")Qi*F{:XZIsphth0IP^H">
               <field name="oid">default</field>
             </shadow>
             <block type="field_oid" id="rgjNSi2xzP32`iFTE[Zr">
               <field name="oid">zigbee.0.00158d0002b02f86.click</field>
             </block>
           </value>
           <value name="OID1">
             <shadow type="field_oid" id="iaF=)P=-;PAAd,)/4%vi">
               <field name="oid">default</field>
             </shadow>
             <block type="field_oid" id="ea3t6_MlYEPR}*?yzCqA">
               <field name="oid">zigbee.0.00158d0002b02f86.double_click</field>
             </block>
           </value>
           <value name="OID2">
             <shadow type="field_oid" id="^US+uZxi^vOuQI|KuALq">
               <field name="oid">default</field>
             </shadow>
             <block type="field_oid" id="Ro15Nv;8Sl9+.0nGHq^%">
               <field name="oid">zigbee.0.00158d0002b02f86.triple_click</field>
             </block>
           </value>
           <value name="OID3">
             <shadow type="field_oid" id="R2Lb}B~M^5V1#^vXl,xw">
               <field name="oid">default</field>
             </shadow>
             <block type="field_oid" id="=?EUmg0.O3+z.RryC=xB">
               <field name="oid">zigbee.0.00158d0002b02f86.quad_click</field>
             </block>
           </value>
           <value name="OID4">
             <shadow type="field_oid" id="9i}=7+CVZh@d7@#)C3;}">
               <field name="oid">default</field>
             </shadow>
             <block type="field_oid" id="?ojg03%rW]}Gl-_0!`1x">
               <field name="oid">zigbee.0.00158d0002b02f86.many_click</field>
             </block>
           </value>
           <value name="OID5">
             <shadow type="field_oid" id="?EarP}N#oxmuZYcD#w?A">
               <field name="oid">default</field>
             </shadow>
             <block type="field_oid" id="Qn6/h8f3[DP`d@i5_M`8">
               <field name="oid">zigbee.0.00158d0002b02f86.long_click</field>
             </block>
           </value>
           <statement name="STATEMENT">
             <block type="debug" id="r/YqCq!4BPo^D%562f@H">
               <field name="Severity">log</field>
               <value name="TEXT">
                 <shadow type="text" id="5hv99z~G`)`/zHUNWPf~">
                   <field name="TEXT">es wurde geklickt</field>
                 </shadow>
               </value>
               <next>
                 <block type="controls_if" id="^%rfwf,9(7^?Gd1W(2rH">
                   <mutation elseif="5"></mutation>
                   <value name="IF0">
                     <block type="logic_compare" id="B7oHd]+ob+83AYT#!UOR">
                       <field name="OP">EQ</field>
                       <value name="A">
                         <block type="get_value" id="%l[Ebz+^3abG+/nZ_|%6">
                           <field name="ATTR">val</field>
                           <field name="OID">zigbee.0.00158d0002b02f86.click</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_boolean" id="*ciW[o-HOq!fpNWr0GQx">
                           <field name="BOOL">TRUE</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="debug" id="7`7)Pc:(kqD!l@AdFktg">
                       <field name="Severity">log</field>
                       <value name="TEXT">
                         <shadow type="text" id="?D:soVS]Ik_MSh,2sepk">
                           <field name="TEXT">click</field>
                         </shadow>
                       </value>
                       <next>
                         <block type="comment" id="i*jra%1wLggjCGzi/q{W">
                           <field name="COMMENT">je nach click</field>
                           <next>
                             <block type="controls_if" id="EG3ol;@J!t^@8`umkneD">
                               <mutation else="1"></mutation>
                               <value name="IF0">
                                 <block type="logic_operation" id="K{W%]KSw7P4gp:O[*UgD">
                                   <field name="OP">OR</field>
                                   <value name="A">
                                     <block type="logic_compare" id="h^93g38,nk?n5B7-T|-2">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="get_value" id="{LHVnt1Z}O9p}y;p9yW)">
                                           <field name="ATTR">val</field>
                                           <field name="OID">zigbee.0.00158d0001978f3b.state</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="logic_boolean" id="i]3e]XF.PqOq6jySU-7A">
                                           <field name="BOOL">TRUE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="logic_compare" id="`Q_d6K+s7Xy3z=yM8JKI">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="get_value" id="N:?5:-:R9O-Gf(9;Y4*4">
                                           <field name="ATTR">val</field>
                                           <field name="OID">zigbee.0.00158d00018029dd.state</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="logic_boolean" id="[2d@d1(/KA:U_9qBxzt|">
                                           <field name="BOOL">TRUE</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                               <statement name="DO0">
                                 <block type="comment" id="5{]Wn0u@#w@rdTXb)SiY">
                                   <field name="COMMENT">Wenn eine Lampe an dann alle aus</field>
                                   <next>
                                     <block type="debug" id="D1jJ!hg8?416.fo8A]Ig">
                                       <field name="Severity">log</field>
                                       <value name="TEXT">
                                         <shadow type="text" id="EQV5T+^(Oc^%jddr?Ed/">
                                           <field name="TEXT">ausschalten</field>
                                         </shadow>
                                       </value>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                               <statement name="ELSE">
                                 <block type="comment" id=":x2uA2sM^Tb!]7~%Y@3.">
                                   <field name="COMMENT">Objekt schalten, bitte anpassen</field>
                                   <next>
                                     <block type="control" id="79;%-wMLM(l4pnH}_Ug?">
                                       <mutation delay_input="false"></mutation>
                                       <field name="OID">Object ID</field>
                                       <field name="WITH_DELAY">FALSE</field>
                                       <value name="VALUE">
                                         <block type="logic_boolean" id="OqQ-6Zdl=qm``H}c+r`1">
                                           <field name="BOOL">FALSE</field>
                                         </block>
                                       </value>
                                       <next>
                                         <block type="comment" id="L?|+,b8)F9%Bpv]ZlSK/">
                                           <field name="COMMENT">Sonst lampe an</field>
                                           <next>
                                             <block type="debug" id="[7.r]`dibVzq:nExle;C">
                                               <field name="Severity">log</field>
                                               <value name="TEXT">
                                                 <shadow type="text" id="AjqibEkM(*A`Uc-I[Fh.">
                                                   <field name="TEXT">einschalten</field>
                                                 </shadow>
                                               </value>
                                               <next>
                                                 <block type="comment" id="khXz:g:a01UL0NVB(/0A">
                                                   <field name="COMMENT">Objekt schalten, bitte anpassen</field>
                                                   <next>
                                                     <block type="control" id="i4iv,I2$L*`g=Y3`hXGM">
                                                       <mutation delay_input="false"></mutation>
                                                       <field name="OID">Object ID</field>
                                                       <field name="WITH_DELAY">FALSE</field>
                                                       <value name="VALUE">
                                                         <block type="logic_boolean" id="$7ncThkUUTn~-05X$uEg">
                                                           <field name="BOOL">TRUE</field>
                                                         </block>
                                                       </value>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </statement>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <value name="IF1">
                     <block type="logic_compare" id="{RB1T]6_|We%X^x8y,e3">
                       <field name="OP">EQ</field>
                       <value name="A">
                         <block type="get_value" id="]Jqp`odS[1k}8wvU%ljY">
                           <field name="ATTR">val</field>
                           <field name="OID">zigbee.0.00158d0002b02f86.double_click</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_boolean" id="D({5v+n5fghCkGs68}ch">
                           <field name="BOOL">TRUE</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO1">
                     <block type="debug" id="]OGemcpFY;b;lh4Z[aK/">
                       <field name="Severity">log</field>
                       <value name="TEXT">
                         <shadow type="text" id="fO(2D5-!_m|U:zj[5fsa">
                           <field name="TEXT">double click</field>
                         </shadow>
                       </value>
                       <next>
                         <block type="comment" id="B7Y#DekBTX23lCB-|,L]">
                           <field name="COMMENT">je nach click</field>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <value name="IF2">
                     <block type="logic_compare" id="Awyl1ugjhBcRcUAJOL+l">
                       <field name="OP">EQ</field>
                       <value name="A">
                         <block type="get_value" id="l4xIsUA`ecIpJqodgO-4">
                           <field name="ATTR">val</field>
                           <field name="OID">zigbee.0.00158d0002b02f86.triple_click</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_boolean" id="g]#YKK0GlZp*2U(E|G|(">
                           <field name="BOOL">TRUE</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO2">
                     <block type="debug" id="gr9O^S~?R+-0b:S-sb!L">
                       <field name="Severity">log</field>
                       <value name="TEXT">
                         <shadow type="text" id="1[hmvn+t^pr2j.fEi2rb">
                           <field name="TEXT">tripple click</field>
                         </shadow>
                       </value>
                       <next>
                         <block type="comment" id="0,;Y]y4[u[]+Bs1s=Epw">
                           <field name="COMMENT">je nach click</field>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <value name="IF3">
                     <block type="logic_compare" id="5Ultno,QEkbPOIz4+`x=">
                       <field name="OP">EQ</field>
                       <value name="A">
                         <block type="get_value" id="^,!TJk?QHXNhp0f24SIM">
                           <field name="ATTR">val</field>
                           <field name="OID">zigbee.0.00158d0002b02f86.quad_click</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_boolean" id="^0tE{Uw^Aw9]{aM4v%#,">
                           <field name="BOOL">TRUE</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO3">
                     <block type="debug" id="uM,~`ogj7YUW+_9GH@qK">
                       <field name="Severity">log</field>
                       <value name="TEXT">
                         <shadow type="text" id="vf-TRBU!EW^99MhKz-^D">
                           <field name="TEXT">vierfach click</field>
                         </shadow>
                       </value>
                       <next>
                         <block type="comment" id="_b)`rKt;`?q#O/WQ!S8W">
                           <field name="COMMENT">je nach click</field>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <value name="IF4">
                     <block type="logic_compare" id="5P6jpTQ+SQg)Z-ZWuBCK">
                       <field name="OP">EQ</field>
                       <value name="A">
                         <block type="get_value" id="LPfGX2rys@=v3mC2^-73">
                           <field name="ATTR">val</field>
                           <field name="OID">zigbee.0.00158d0002b02f86.many_click</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_boolean" id="ris=X#TgK=1+0COq?uuC">
                           <field name="BOOL">TRUE</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO4">
                     <block type="debug" id="Br~kIi5^8x!xr.94.PB:">
                       <field name="Severity">log</field>
                       <value name="TEXT">
                         <shadow type="text" id="Zrcd`R6T{YcUD=]O;S+-">
                           <field name="TEXT">viele click</field>
                         </shadow>
                       </value>
                       <next>
                         <block type="comment" id="@d7VxOC1QmAoaKcahHk3">
                           <field name="COMMENT">je nach click</field>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <value name="IF5">
                     <block type="logic_compare" id="Gt2b(|.gt?d1z,%g%99I">
                       <field name="OP">EQ</field>
                       <value name="A">
                         <block type="get_value" id="4[`vb;-7^8ow]IE0ZF~[">
                           <field name="ATTR">val</field>
                           <field name="OID">zigbee.0.00158d0002b02f86.long_click</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="logic_boolean" id="ay}{%b(r.^GlnijvJuN^">
                           <field name="BOOL">TRUE</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO5">
                     <block type="debug" id="OU:gQT3@u=HQrMl8Hq+%">
                       <field name="Severity">log</field>
                       <value name="TEXT">
                         <shadow type="text" id="M(F:?:]%Jg?msY]k^F)n">
                           <field name="TEXT">lang click</field>
                         </shadow>
                       </value>
                       <next>
                         <block type="comment" id="8R^HYo2yE!:l@set_:4i">
                           <field name="COMMENT">je nach click </field>
                         </block>
                       </next>
                     </block>
                   </statement>
                 </block>
               </next>
             </block>
           </statement>
         </block>
       </next>
     </block>
    </xml>
    

    Nito33N Offline
    Nito33N Offline
    Nito33
    wrote on last edited by
    #3

    @iomountain Dankeschön. Aber wieso ist oben Quad und many Klick? ich probiere mal meine Werte einzusetzen und zu verstehen wie alles funktioniert. Ist das aber nicht auch nur für einen Switch?

    1 Reply Last reply
    0
    • iomountainI Offline
      iomountainI Offline
      iomountain
      wrote on last edited by
      #4

      meiner ist über einen Zigbee Stick angebunden und in den Objekten gibt es
      e325830d-29ff-4192-a210-865f8b249930-image.png
      Wobei vierfach und many Click für mich schwer zu treffen sind.
      Zeig mal wie deiner in den Objekten aussieht.

      Nito33N 1 Reply Last reply
      0
      • iomountainI iomountain

        meiner ist über einen Zigbee Stick angebunden und in den Objekten gibt es
        e325830d-29ff-4192-a210-865f8b249930-image.png
        Wobei vierfach und many Click für mich schwer zu treffen sind.
        Zeig mal wie deiner in den Objekten aussieht.

        Nito33N Offline
        Nito33N Offline
        Nito33
        wrote on last edited by
        #5

        @iomountain Opera Momentaufnahme_2019-07-11_120711_192.168.178.93.png Opera Momentaufnahme_2019-07-11_120646_192.168.178.93.png

        So sieht es bei mir bei den Objekten aus. Ich habe jetzt einfach mal probiert über einen Klick das Licht anzuschalten, leider funktioniert es nicht. Muss ich noch irgendwo was ändern in dem Script?

        1 Reply Last reply
        0
        • iomountainI Offline
          iomountainI Offline
          iomountain
          wrote on last edited by
          #6

          Kümmern wir uns erst mal um den simple click.
          Über den Falls Teil fragst du ob das Licht schon an ist
          882616e4-6134-4d57-9f53-f2dc16c2b60c-image.png
          Bei mir sogar zwei Lampen.
          Denke da müsste dein Licht Power rein

          Nito33N 1 Reply Last reply
          0
          • iomountainI iomountain

            Kümmern wir uns erst mal um den simple click.
            Über den Falls Teil fragst du ob das Licht schon an ist
            882616e4-6134-4d57-9f53-f2dc16c2b60c-image.png
            Bei mir sogar zwei Lampen.
            Denke da müsste dein Licht Power rein

            Nito33N Offline
            Nito33N Offline
            Nito33
            wrote on last edited by
            #7

            @iomountain Opera Momentaufnahme_2019-07-11_122904_192.168.178.93.png

            Dann muss dort der Power State von dem Sonoff rein oder? Licht wird ja über einen Sonoff ein und aus geschaltet.

            1 Reply Last reply
            0
            • iomountainI Offline
              iomountainI Offline
              iomountain
              wrote on last edited by
              #8

              sieht gut aus, jetzt an diesen debug Baustein
              d21387d2-33b5-46f1-a8d8-36f2602fac00-image.png
              einen steuere Baustein mit false anhängen.

              Nito33N 1 Reply Last reply
              0
              • iomountainI iomountain

                sieht gut aus, jetzt an diesen debug Baustein
                d21387d2-33b5-46f1-a8d8-36f2602fac00-image.png
                einen steuere Baustein mit false anhängen.

                Nito33N Offline
                Nito33N Offline
                Nito33
                wrote on last edited by
                #9

                @iomountain Wo soll ich da einen Baustein anhängen?

                1 Reply Last reply
                0
                • iomountainI Offline
                  iomountainI Offline
                  iomountain
                  wrote on last edited by
                  #10

                  a1f4ac03-4c37-4bcf-80ac-d24513f15fd0-image.png

                  Nito33N 1 Reply Last reply
                  0
                  • iomountainI iomountain

                    a1f4ac03-4c37-4bcf-80ac-d24513f15fd0-image.png

                    Nito33N Offline
                    Nito33N Offline
                    Nito33
                    wrote on last edited by
                    #11

                    @iomountain Opera Momentaufnahme_2019-07-11_122904_192.168.178.93.png
                    so also? Welches Objekt kommt dort rein?

                    1 Reply Last reply
                    0
                    • iomountainI Offline
                      iomountainI Offline
                      iomountain
                      wrote on last edited by
                      #12

                      das, welches dein Licht an aus schaltet

                      Nito33N 1 Reply Last reply
                      0
                      • iomountainI iomountain

                        das, welches dein Licht an aus schaltet

                        Nito33N Offline
                        Nito33N Offline
                        Nito33
                        wrote on last edited by
                        #13

                        @iomountain Hab ich jetzt drin. Passiert leider nichts.

                        1 Reply Last reply
                        0
                        • iomountainI Offline
                          iomountainI Offline
                          iomountain
                          wrote on last edited by
                          #14

                          mach mal einen Export von deinem Code

                          Nito33N 2 Replies Last reply
                          0
                          • iomountainI iomountain

                            mach mal einen Export von deinem Code

                            Nito33N Offline
                            Nito33N Offline
                            Nito33
                            wrote on last edited by
                            #15

                            @iomountain <xml xmlns="http://www.w3.org/1999/xhtml">
                            <block type="comment" id="@cY?z8Mo[rp~6xjYRB9" x="88" y="-462">
                            <field name="COMMENT">Taster XIAOMI Nr. 3</field>
                            <next>
                            <block type="on_ext" id="PB-24CkO9W+A,wx(U/~p">
                            <mutation items="6"></mutation>
                            <field name="CONDITION">gt</field>
                            <field name="ACK_CONDITION">true</field>
                            <value name="OID0">
                            <shadow type="field_oid" id=")Qi
                            F{:XZIsphth0IP^H">
                            <field name="oid">default</field>
                            </shadow>
                            <block type="field_oid" id="rgjNSi2xzP32iFTE[Zr"> <field name="oid">mihome.0.devices.switch_158d0001e5c139.click</field> </block> </value> <value name="OID1"> <shadow type="field_oid" id="iaF=)P=-;PAAd,)/4%vi"> <field name="oid">default</field> </shadow> <block type="field_oid" id="ea3t6_MlYEPR}*?yzCqA"> <field name="oid">zigbee.0.00158d0002b02f86.double_click</field> </block> </value> <value name="OID2"> <shadow type="field_oid" id="^US+uZxi^vOuQI|KuALq"> <field name="oid">default</field> </shadow> <block type="field_oid" id="Ro15Nv;8Sl9+.0nGHq^%"> <field name="oid">zigbee.0.00158d0002b02f86.triple_click</field> </block> </value> <value name="OID3"> <shadow type="field_oid" id="R2Lb}B~M^5V1#^vXl,xw"> <field name="oid">default</field> </shadow> <block type="field_oid" id="=?EUmg0.O3+z.RryC=xB"> <field name="oid">zigbee.0.00158d0002b02f86.quad_click</field> </block> </value> <value name="OID4"> <shadow type="field_oid" id="9i}=7+CVZh@d7@#)C3;}"> <field name="oid">default</field> </shadow> <block type="field_oid" id="?ojg03%rW]}Gl-_0!1x">
                            <field name="oid">zigbee.0.00158d0002b02f86.many_click</field>
                            </block>
                            </value>
                            <value name="OID5">
                            <shadow type="field_oid" id="?EarP}N#oxmuZYcD#w?A">
                            <field name="oid">default</field>
                            </shadow>
                            <block type="field_oid" id="Qn6/h8f3[DPd@i5_M8">
                            <field name="oid">zigbee.0.00158d0002b02f86.long_click</field>
                            </block>
                            </value>
                            <statement name="STATEMENT">
                            <block type="debug" id="r/YqCq!4BPo^D%562f@H">
                            <field name="Severity">log</field>
                            <value name="TEXT">
                            <shadow type="text" id="5hv99z~G)/zHUNWPf~">
                            <field name="TEXT">es wurde geklickt</field>
                            </shadow>
                            </value>
                            <next>
                            <block type="controls_if" id="^%rfwf,9(7^?Gd1W(2rH">
                            <mutation elseif="5"></mutation>
                            <value name="IF0">
                            <block type="logic_compare" id="B7oHd]+ob+83AYT#!UOR">
                            <field name="OP">EQ</field>
                            <value name="A">
                            <block type="get_value" id="%l[Ebz+^3abG+/nZ_|%6">
                            <field name="ATTR">val</field>
                            <field name="OID">zigbee.0.00158d0002b02f86.click</field>
                            </block>
                            </value>
                            <value name="B">
                            <block type="logic_boolean" id="ciW[o-HOq!fpNWr0GQx">
                            <field name="BOOL">TRUE</field>
                            </block>
                            </value>
                            </block>
                            </value>
                            <statement name="DO0">
                            <block type="debug" id="77)Pc:(kqD!l@AdFktg"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="?D:soVS]Ik_MSh,2sepk"> <field name="TEXT">click</field> </shadow> </value> <next> <block type="comment" id="i*jra%1wLggjCGzi/q{W"> <field name="COMMENT">je nach click</field> <next> <block type="controls_if" id="EG3ol;@J!t^@8umkneD">
                            <mutation else="1"></mutation>
                            <value name="IF0">
                            <block type="logic_operation" id="K{W%]KSw7P4gp:O[UgD">
                            <field name="OP">OR</field>
                            <value name="A">
                            <block type="logic_compare" id="h^93g38,nk?n5B7-T|-2">
                            <field name="OP">EQ</field>
                            <value name="A">
                            <block type="get_value" id="{LHVnt1Z}O9p}y;p9yW)">
                            <field name="ATTR">val</field>
                            <field name="OID">sonoff.0.Licht.POWER</field>
                            </block>
                            </value>
                            <value name="B">
                            <block type="logic_boolean" id="i]3e]XF.PqOq6jySU-7A">
                            <field name="BOOL">TRUE</field>
                            </block>
                            </value>
                            </block>
                            </value>
                            <value name="B">
                            <block type="logic_compare" id="Q_d6K+s7Xy3z=yM8JKI"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="N:?5:-:R9O-Gf(9;Y4*4"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Licht.POWER</field> </block> </value> <value name="B"> <block type="logic_boolean" id="[2d@d1(/KA:U_9qBxzt|"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="5{]Wn0u@#w@rdTXb)SiY"> <field name="COMMENT">Wenn eine Lampe an dann alle aus</field> <next> <block type="debug" id="D1jJ!hg8?416.fo8A]Ig"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="EQV5T+^(Oc^%jddr?Ed/"> <field name="TEXT">ausschalten</field> </shadow> </value> <next> <block type="control" id="QyX=!8$VR$)D=UhC1sa1"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Licht.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="V2End:lo3Xwl#Gp^:9ne"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="comment" id=":x2uA2sM^Tb!]7~%Y@3."> <field name="COMMENT">Objekt schalten, bitte anpassen</field> <next> <block type="control" id="79;%-wMLM(l4pnH}_Ug?"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Licht.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="OqQ-6Zdl=qm``H}c+r1">
                            <field name="BOOL">FALSE</field>
                            </block>
                            </value>
                            <next>
                            <block type="comment" id="L?|+,b8)F9%Bpv]ZlSK/">
                            <field name="COMMENT">Sonst lampe an</field>
                            <next>
                            <block type="debug" id="[7.r]dibVzq:nExle;C"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="AjqibEkM(*AUc-I[Fh.">
                            <field name="TEXT">einschalten</field>
                            </shadow>
                            </value>
                            <next>
                            <block type="comment" id="khXz:g:a01UL0NVB(/0A">
                            <field name="COMMENT">Objekt schalten, bitte anpassen</field>
                            <next>
                            <block type="control" id="i4iv,I2$L
                            g=Y3hXGM">
                            <mutation delay_input="false"></mutation>
                            <field name="OID">sonoff.0.Licht.POWER</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                            <block type="logic_boolean" id="$7ncThkUUTn~-05X$uEg">
                            <field name="BOOL">TRUE</field>
                            </block>
                            </value>
                            </block>
                            </next>
                            </block>
                            </next>
                            </block>
                            </next>
                            </block>
                            </next>
                            </block>
                            </next>
                            </block>
                            </statement>
                            </block>
                            </next>
                            </block>
                            </next>
                            </block>
                            </statement>
                            <value name="IF1">
                            <block type="logic_compare" id="{RB1T]6_|We%X^x8y,e3">
                            <field name="OP">EQ</field>
                            <value name="A">
                            <block type="get_value" id="]JqpodS[1k}8wvU%ljY"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002b02f86.double_click</field> </block> </value> <value name="B"> <block type="logic_boolean" id="D({5v+n5fghCkGs68}ch"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO1"> <block type="debug" id="]OGemcpFY;b;lh4Z[aK/"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="fO(2D5-!_m|U:zj[5fsa"> <field name="TEXT">double click</field> </shadow> </value> <next> <block type="comment" id="B7Y#DekBTX23lCB-|,L]"> <field name="COMMENT">je nach click</field> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_compare" id="Awyl1ugjhBcRcUAJOL+l"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="l4xIsUAecIpJqodgO-4">
                            <field name="ATTR">val</field>
                            <field name="OID">zigbee.0.00158d0002b02f86.triple_click</field>
                            </block>
                            </value>
                            <value name="B">
                            <block type="logic_boolean" id="g]#YKK0GlZp
                            2U(E|G|(">
                            <field name="BOOL">TRUE</field>
                            </block>
                            </value>
                            </block>
                            </value>
                            <statement name="DO2">
                            <block type="debug" id="gr9O^S~?R+-0b:S-sb!L">
                            <field name="Severity">log</field>
                            <value name="TEXT">
                            <shadow type="text" id="1[hmvn+t^pr2j.fEi2rb">
                            <field name="TEXT">tripple click</field>
                            </shadow>
                            </value>
                            <next>
                            <block type="comment" id="0,;Y]y4[u[]+Bs1s=Epw">
                            <field name="COMMENT">je nach click</field>
                            </block>
                            </next>
                            </block>
                            </statement>
                            <value name="IF3">
                            <block type="logic_compare" id="5Ultno,QEkbPOIz4+x="> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="^,!TJk?QHXNhp0f24SIM"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0002b02f86.quad_click</field> </block> </value> <value name="B"> <block type="logic_boolean" id="^0tE{Uw^Aw9]{aM4v%#,"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO3"> <block type="debug" id="uM,~ogj7YUW+_9GH@qK">
                            <field name="Severity">log</field>
                            <value name="TEXT">
                            <shadow type="text" id="vf-TRBU!EW^99MhKz-^D">
                            <field name="TEXT">vierfach click</field>
                            </shadow>
                            </value>
                            <next>
                            <block type="comment" id="b)rKt;?q#O/WQ!S8W">
                            <field name="COMMENT">je nach click</field>
                            </block>
                            </next>
                            </block>
                            </statement>
                            <value name="IF4">
                            <block type="logic_compare" id="5P6jpTQ+SQg)Z-ZWuBCK">
                            <field name="OP">EQ</field>
                            <value name="A">
                            <block type="get_value" id="LPfGX2rys@=v3mC2^-73">
                            <field name="ATTR">val</field>
                            <field name="OID">zigbee.0.00158d0002b02f86.many_click</field>
                            </block>
                            </value>
                            <value name="B">
                            <block type="logic_boolean" id="ris=X#TgK=1+0COq?uuC">
                            <field name="BOOL">TRUE</field>
                            </block>
                            </value>
                            </block>
                            </value>
                            <statement name="DO4">
                            <block type="debug" id="Br~kIi5^8x!xr.94.PB:">
                            <field name="Severity">log</field>
                            <value name="TEXT">
                            <shadow type="text" id="ZrcdR6T{YcUD=]O;S+-"> <field name="TEXT">viele click</field> </shadow> </value> <next> <block type="comment" id="@d7VxOC1QmAoaKcahHk3"> <field name="COMMENT">je nach click</field> </block> </next> </block> </statement> <value name="IF5"> <block type="logic_compare" id="Gt2b(|.gt?d1z,%g%99I"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="4[vb;-7^8ow]IE0ZF~[">
                            <field name="ATTR">val</field>
                            <field name="OID">zigbee.0.00158d0002b02f86.long_click</field>
                            </block>
                            </value>
                            <value name="B">
                            <block type="logic_boolean" id="ay}{%b(r.^GlnijvJuN^">
                            <field name="BOOL">TRUE</field>
                            </block>
                            </value>
                            </block>
                            </value>
                            <statement name="DO5">
                            <block type="debug" id="OU:gQT3@u=HQrMl8Hq+%">
                            <field name="Severity">log</field>
                            <value name="TEXT">
                            <shadow type="text" id="M(F:?:]%Jg?msY]k^F)n">
                            <field name="TEXT">lang click</field>
                            </shadow>
                            </value>
                            <next>
                            <block type="comment" id="8R^HYo2yE!:l@set
                            :4i">
                            <field name="COMMENT">je nach click </field>
                            </block>
                            </next>
                            </block>
                            </statement>
                            </block>
                            </next>
                            </block>
                            </statement>
                            </block>
                            </next>
                            </block>
                            </xml>

                            1 Reply Last reply
                            0
                            • iomountainI iomountain

                              mach mal einen Export von deinem Code

                              Nito33N Offline
                              Nito33N Offline
                              Nito33
                              wrote on last edited by
                              #16

                              @iomountain Wie mache ich das denn eigentlich in so nem Kasten :D ?

                              iomountainI 1 Reply Last reply
                              0
                              • Nito33N Nito33

                                @iomountain Wie mache ich das denn eigentlich in so nem Kasten :D ?

                                iomountainI Offline
                                iomountainI Offline
                                iomountain
                                wrote on last edited by
                                #17

                                @Noé1237
                                erst auf Spoiler drücken, dann auf Code, dann einfügen

                                hab's mal ein wenig gekürzt und aufgeräumt

                                <xml xmlns="http://www.w3.org/1999/xhtml">
                                 <block type="comment" id="@cY?z8Mo[rp~6xjYRB9" x="788" y="-837">
                                   <field name="COMMENT">Taster XIAOMI Nr. 3</field>
                                   <next>
                                     <block type="on_ext" id="IM=K$r`vCMSq5Ry?s:~7">
                                       <mutation items="3"></mutation>
                                       <field name="CONDITION">ne</field>
                                       <field name="ACK_CONDITION"></field>
                                       <value name="OID0">
                                         <shadow type="field_oid" id=")QiF{:XZIsphth0IP^H">
                                           <field name="oid">default</field>
                                         </shadow>
                                         <block type="field_oid" id="^ipDGr0w*ura!}49qCL#">
                                           <field name="oid">mihome.0.devices.switch_158d0001e5c139.click</field>
                                         </block>
                                       </value>
                                       <value name="OID1">
                                         <shadow type="field_oid" id="iaF=)P=-;PAAd,)/4%vi">
                                           <field name="oid">default</field>
                                         </shadow>
                                         <block type="field_oid" id="fJwFo$^m7N2ojv]3p/QM">
                                           <field name="oid">zigbee.0.00158d0002b02f86.double_click</field>
                                         </block>
                                       </value>
                                       <value name="OID2">
                                         <shadow type="field_oid" id="^US+uZxi^vOuQI|KuALq">
                                           <field name="oid">default</field>
                                         </shadow>
                                         <block type="field_oid" id="Qh2HV$lcJ,ank8t8VYl|">
                                           <field name="oid">zigbee.0.00158d0002b02f86.long_click</field>
                                         </block>
                                       </value>
                                       <statement name="STATEMENT">
                                         <block type="debug" id="eMyo{0+~BA^+F_j)nF!q">
                                           <field name="Severity">log</field>
                                           <value name="TEXT">
                                             <shadow type="text" id="aEIbF.mX|@FSE)x~u`Pc">
                                               <field name="TEXT">es wurde geklickt</field>
                                             </shadow>
                                           </value>
                                           <next>
                                             <block type="controls_if" id="LwYwYyELzNmNsP12(PJ9">
                                               <mutation elseif="2"></mutation>
                                               <value name="IF0">
                                                 <block type="logic_compare" id="oY/OwE$,$:B-LaqyH+uG">
                                                   <field name="OP">EQ</field>
                                                   <value name="A">
                                                     <block type="get_value" id="Y]Shb09a[-~$9jg9CvFp">
                                                       <field name="ATTR">val</field>
                                                       <field name="OID">zigbee.0.00158d0002b02f86.click</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="logic_boolean" id="!Nsd[-FkW{f-Tafh(di?">
                                                       <field name="BOOL">TRUE</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <statement name="DO0">
                                                 <block type="debug" id="`L|)(C=-?JEKZQ=/y_p3">
                                                   <field name="Severity">log</field>
                                                   <value name="TEXT">
                                                     <shadow type="text" id="{9ywGmI{lky~86n;CK;M">
                                                       <field name="TEXT">simple click</field>
                                                     </shadow>
                                                   </value>
                                                   <next>
                                                     <block type="comment" id="84wWuU*|2E#eVDJ[;xSq">
                                                       <field name="COMMENT">je nach click</field>
                                                       <next>
                                                         <block type="controls_if" id="cI_ZQ:;t@XJ.sKY,duG{">
                                                           <mutation else="1"></mutation>
                                                           <value name="IF0">
                                                             <block type="logic_compare" id="447cil7dkU}qdikEWF{o">
                                                               <field name="OP">EQ</field>
                                                               <value name="A">
                                                                 <block type="get_value" id="j}kI`?]x)Voq(g2^Deg`">
                                                                   <field name="ATTR">val</field>
                                                                   <field name="OID">sonoff.0.Licht.POWER</field>
                                                                 </block>
                                                               </value>
                                                               <value name="B">
                                                                 <block type="logic_boolean" id="+]Ky-zdx$#O7G75!3nmC">
                                                                   <field name="BOOL">TRUE</field>
                                                                 </block>
                                                               </value>
                                                             </block>
                                                           </value>
                                                           <statement name="DO0">
                                                             <block type="comment" id="Ui*|-IIZkk~5qp]Sh{iC">
                                                               <field name="COMMENT">Wenn eine Lampe an dann alle aus</field>
                                                               <next>
                                                                 <block type="debug" id="MYATXbE=nd]`P]]#|cWS">
                                                                   <field name="Severity">log</field>
                                                                   <value name="TEXT">
                                                                     <shadow type="text" id="-jjSMw/F|x(P^.`}y_+8">
                                                                       <field name="TEXT">ausschalten</field>
                                                                     </shadow>
                                                                   </value>
                                                                   <next>
                                                                     <block type="control" id="s^37|2Q;*n^+1Su)jr2z">
                                                                       <mutation delay_input="false"></mutation>
                                                                       <field name="OID">sonoff.0.Licht.POWER</field>
                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                       <value name="VALUE">
                                                                         <block type="logic_boolean" id="X6hC`)c~pbK95M;IEo8w">
                                                                           <field name="BOOL">FALSE</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </statement>
                                                           <statement name="ELSE">
                                                             <block type="comment" id="3XBp0.uai|Z,MxtnS79B">
                                                               <field name="COMMENT">Sonst lampe an</field>
                                                               <next>
                                                                 <block type="debug" id="~88$c[[;d*mtS/?zDuZ}">
                                                                   <field name="Severity">log</field>
                                                                   <value name="TEXT">
                                                                     <shadow type="text" id="KFK}kt7RygKz6PX7(H+a">
                                                                       <field name="TEXT">einschalten</field>
                                                                     </shadow>
                                                                   </value>
                                                                   <next>
                                                                     <block type="comment" id="#w=#88#QYefI9D=uW$12">
                                                                       <field name="COMMENT">Objekt schalten, bitte anpassen</field>
                                                                       <next>
                                                                         <block type="control" id=".bhIw.73p9H[$2iZ,pil">
                                                                           <mutation delay_input="false"></mutation>
                                                                           <field name="OID">sonoff.0.Licht.POWER</field>
                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                           <value name="VALUE">
                                                                             <block type="logic_boolean" id="atYDubn5(IL[[E?W[=.f">
                                                                               <field name="BOOL">TRUE</field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </statement>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </statement>
                                               <value name="IF1">
                                                 <block type="logic_compare" id="?y[}1Aa[MJMYV]rNUt6B">
                                                   <field name="OP">EQ</field>
                                                   <value name="A">
                                                     <block type="get_value" id="RW~%WAZEGn:M5I=~{nRf">
                                                       <field name="ATTR">val</field>
                                                       <field name="OID">zigbee.0.00158d0002b02f86.double_click</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="logic_boolean" id="v4yf~+u+*SQ(Bnr^0dWO">
                                                       <field name="BOOL">TRUE</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <statement name="DO1">
                                                 <block type="debug" id="FKC@ddUdUG._U.3*PW%u">
                                                   <field name="Severity">log</field>
                                                   <value name="TEXT">
                                                     <shadow type="text" id="QIHNuvl;%2Ko|N^xigHb">
                                                       <field name="TEXT">double click</field>
                                                     </shadow>
                                                   </value>
                                                   <next>
                                                     <block type="comment" id="-Gm=B3%WG4-0.ShL9sC8">
                                                       <field name="COMMENT">je nach click</field>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </statement>
                                               <value name="IF2">
                                                 <block type="logic_compare" id="q_b/zN!56q)s0J8+Yjos">
                                                   <field name="OP">EQ</field>
                                                   <value name="A">
                                                     <block type="get_value" id="/K{7E}+T7K$})pS6=2md">
                                                       <field name="ATTR">val</field>
                                                       <field name="OID">zigbee.0.00158d0002b02f86.long_click</field>
                                                     </block>
                                                   </value>
                                                   <value name="B">
                                                     <block type="logic_boolean" id="EG?~N7wx*d-optI47WLe">
                                                       <field name="BOOL">TRUE</field>
                                                     </block>
                                                   </value>
                                                 </block>
                                               </value>
                                               <statement name="DO2">
                                                 <block type="debug" id="t1[K}FImd-EU6r@$-Ok*">
                                                   <field name="Severity">log</field>
                                                   <value name="TEXT">
                                                     <shadow type="text" id="p:D!*b]*bXZ`-i%bu/H=">
                                                       <field name="TEXT">lang click</field>
                                                     </shadow>
                                                   </value>
                                                   <next>
                                                     <block type="comment" id="%zhWT=pM5@yWuU2aBQ)#">
                                                       <field name="COMMENT">je nach click</field>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </statement>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                     </block>
                                   </next>
                                 </block>
                                </xml>
                                

                                Nito33N iomountainI 2 Replies Last reply
                                0
                                • iomountainI iomountain

                                  @Noé1237
                                  erst auf Spoiler drücken, dann auf Code, dann einfügen

                                  hab's mal ein wenig gekürzt und aufgeräumt

                                  <xml xmlns="http://www.w3.org/1999/xhtml">
                                   <block type="comment" id="@cY?z8Mo[rp~6xjYRB9" x="788" y="-837">
                                     <field name="COMMENT">Taster XIAOMI Nr. 3</field>
                                     <next>
                                       <block type="on_ext" id="IM=K$r`vCMSq5Ry?s:~7">
                                         <mutation items="3"></mutation>
                                         <field name="CONDITION">ne</field>
                                         <field name="ACK_CONDITION"></field>
                                         <value name="OID0">
                                           <shadow type="field_oid" id=")QiF{:XZIsphth0IP^H">
                                             <field name="oid">default</field>
                                           </shadow>
                                           <block type="field_oid" id="^ipDGr0w*ura!}49qCL#">
                                             <field name="oid">mihome.0.devices.switch_158d0001e5c139.click</field>
                                           </block>
                                         </value>
                                         <value name="OID1">
                                           <shadow type="field_oid" id="iaF=)P=-;PAAd,)/4%vi">
                                             <field name="oid">default</field>
                                           </shadow>
                                           <block type="field_oid" id="fJwFo$^m7N2ojv]3p/QM">
                                             <field name="oid">zigbee.0.00158d0002b02f86.double_click</field>
                                           </block>
                                         </value>
                                         <value name="OID2">
                                           <shadow type="field_oid" id="^US+uZxi^vOuQI|KuALq">
                                             <field name="oid">default</field>
                                           </shadow>
                                           <block type="field_oid" id="Qh2HV$lcJ,ank8t8VYl|">
                                             <field name="oid">zigbee.0.00158d0002b02f86.long_click</field>
                                           </block>
                                         </value>
                                         <statement name="STATEMENT">
                                           <block type="debug" id="eMyo{0+~BA^+F_j)nF!q">
                                             <field name="Severity">log</field>
                                             <value name="TEXT">
                                               <shadow type="text" id="aEIbF.mX|@FSE)x~u`Pc">
                                                 <field name="TEXT">es wurde geklickt</field>
                                               </shadow>
                                             </value>
                                             <next>
                                               <block type="controls_if" id="LwYwYyELzNmNsP12(PJ9">
                                                 <mutation elseif="2"></mutation>
                                                 <value name="IF0">
                                                   <block type="logic_compare" id="oY/OwE$,$:B-LaqyH+uG">
                                                     <field name="OP">EQ</field>
                                                     <value name="A">
                                                       <block type="get_value" id="Y]Shb09a[-~$9jg9CvFp">
                                                         <field name="ATTR">val</field>
                                                         <field name="OID">zigbee.0.00158d0002b02f86.click</field>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <block type="logic_boolean" id="!Nsd[-FkW{f-Tafh(di?">
                                                         <field name="BOOL">TRUE</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <statement name="DO0">
                                                   <block type="debug" id="`L|)(C=-?JEKZQ=/y_p3">
                                                     <field name="Severity">log</field>
                                                     <value name="TEXT">
                                                       <shadow type="text" id="{9ywGmI{lky~86n;CK;M">
                                                         <field name="TEXT">simple click</field>
                                                       </shadow>
                                                     </value>
                                                     <next>
                                                       <block type="comment" id="84wWuU*|2E#eVDJ[;xSq">
                                                         <field name="COMMENT">je nach click</field>
                                                         <next>
                                                           <block type="controls_if" id="cI_ZQ:;t@XJ.sKY,duG{">
                                                             <mutation else="1"></mutation>
                                                             <value name="IF0">
                                                               <block type="logic_compare" id="447cil7dkU}qdikEWF{o">
                                                                 <field name="OP">EQ</field>
                                                                 <value name="A">
                                                                   <block type="get_value" id="j}kI`?]x)Voq(g2^Deg`">
                                                                     <field name="ATTR">val</field>
                                                                     <field name="OID">sonoff.0.Licht.POWER</field>
                                                                   </block>
                                                                 </value>
                                                                 <value name="B">
                                                                   <block type="logic_boolean" id="+]Ky-zdx$#O7G75!3nmC">
                                                                     <field name="BOOL">TRUE</field>
                                                                   </block>
                                                                 </value>
                                                               </block>
                                                             </value>
                                                             <statement name="DO0">
                                                               <block type="comment" id="Ui*|-IIZkk~5qp]Sh{iC">
                                                                 <field name="COMMENT">Wenn eine Lampe an dann alle aus</field>
                                                                 <next>
                                                                   <block type="debug" id="MYATXbE=nd]`P]]#|cWS">
                                                                     <field name="Severity">log</field>
                                                                     <value name="TEXT">
                                                                       <shadow type="text" id="-jjSMw/F|x(P^.`}y_+8">
                                                                         <field name="TEXT">ausschalten</field>
                                                                       </shadow>
                                                                     </value>
                                                                     <next>
                                                                       <block type="control" id="s^37|2Q;*n^+1Su)jr2z">
                                                                         <mutation delay_input="false"></mutation>
                                                                         <field name="OID">sonoff.0.Licht.POWER</field>
                                                                         <field name="WITH_DELAY">FALSE</field>
                                                                         <value name="VALUE">
                                                                           <block type="logic_boolean" id="X6hC`)c~pbK95M;IEo8w">
                                                                             <field name="BOOL">FALSE</field>
                                                                           </block>
                                                                         </value>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </statement>
                                                             <statement name="ELSE">
                                                               <block type="comment" id="3XBp0.uai|Z,MxtnS79B">
                                                                 <field name="COMMENT">Sonst lampe an</field>
                                                                 <next>
                                                                   <block type="debug" id="~88$c[[;d*mtS/?zDuZ}">
                                                                     <field name="Severity">log</field>
                                                                     <value name="TEXT">
                                                                       <shadow type="text" id="KFK}kt7RygKz6PX7(H+a">
                                                                         <field name="TEXT">einschalten</field>
                                                                       </shadow>
                                                                     </value>
                                                                     <next>
                                                                       <block type="comment" id="#w=#88#QYefI9D=uW$12">
                                                                         <field name="COMMENT">Objekt schalten, bitte anpassen</field>
                                                                         <next>
                                                                           <block type="control" id=".bhIw.73p9H[$2iZ,pil">
                                                                             <mutation delay_input="false"></mutation>
                                                                             <field name="OID">sonoff.0.Licht.POWER</field>
                                                                             <field name="WITH_DELAY">FALSE</field>
                                                                             <value name="VALUE">
                                                                               <block type="logic_boolean" id="atYDubn5(IL[[E?W[=.f">
                                                                                 <field name="BOOL">TRUE</field>
                                                                               </block>
                                                                             </value>
                                                                           </block>
                                                                         </next>
                                                                       </block>
                                                                     </next>
                                                                   </block>
                                                                 </next>
                                                               </block>
                                                             </statement>
                                                           </block>
                                                         </next>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </statement>
                                                 <value name="IF1">
                                                   <block type="logic_compare" id="?y[}1Aa[MJMYV]rNUt6B">
                                                     <field name="OP">EQ</field>
                                                     <value name="A">
                                                       <block type="get_value" id="RW~%WAZEGn:M5I=~{nRf">
                                                         <field name="ATTR">val</field>
                                                         <field name="OID">zigbee.0.00158d0002b02f86.double_click</field>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <block type="logic_boolean" id="v4yf~+u+*SQ(Bnr^0dWO">
                                                         <field name="BOOL">TRUE</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <statement name="DO1">
                                                   <block type="debug" id="FKC@ddUdUG._U.3*PW%u">
                                                     <field name="Severity">log</field>
                                                     <value name="TEXT">
                                                       <shadow type="text" id="QIHNuvl;%2Ko|N^xigHb">
                                                         <field name="TEXT">double click</field>
                                                       </shadow>
                                                     </value>
                                                     <next>
                                                       <block type="comment" id="-Gm=B3%WG4-0.ShL9sC8">
                                                         <field name="COMMENT">je nach click</field>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </statement>
                                                 <value name="IF2">
                                                   <block type="logic_compare" id="q_b/zN!56q)s0J8+Yjos">
                                                     <field name="OP">EQ</field>
                                                     <value name="A">
                                                       <block type="get_value" id="/K{7E}+T7K$})pS6=2md">
                                                         <field name="ATTR">val</field>
                                                         <field name="OID">zigbee.0.00158d0002b02f86.long_click</field>
                                                       </block>
                                                     </value>
                                                     <value name="B">
                                                       <block type="logic_boolean" id="EG?~N7wx*d-optI47WLe">
                                                         <field name="BOOL">TRUE</field>
                                                       </block>
                                                     </value>
                                                   </block>
                                                 </value>
                                                 <statement name="DO2">
                                                   <block type="debug" id="t1[K}FImd-EU6r@$-Ok*">
                                                     <field name="Severity">log</field>
                                                     <value name="TEXT">
                                                       <shadow type="text" id="p:D!*b]*bXZ`-i%bu/H=">
                                                         <field name="TEXT">lang click</field>
                                                       </shadow>
                                                     </value>
                                                     <next>
                                                       <block type="comment" id="%zhWT=pM5@yWuU2aBQ)#">
                                                         <field name="COMMENT">je nach click</field>
                                                       </block>
                                                     </next>
                                                   </block>
                                                 </statement>
                                               </block>
                                             </next>
                                           </block>
                                         </statement>
                                       </block>
                                     </next>
                                   </block>
                                  </xml>
                                  

                                  Nito33N Offline
                                  Nito33N Offline
                                  Nito33
                                  wrote on last edited by
                                  #18

                                  @iomountain achso okey, danke. Weißt du woran es liegt?

                                  iomountainI 1 Reply Last reply
                                  0
                                  • Nito33N Nito33

                                    @iomountain achso okey, danke. Weißt du woran es liegt?

                                    iomountainI Offline
                                    iomountainI Offline
                                    iomountain
                                    wrote on last edited by
                                    #19

                                    @Noé1237 sagte in Script Hilfe licht über Xiaomi Switch anschalten.:

                                    Weißt du woran es liegt?

                                    was?
                                    funktioniert dein "simple click"

                                    Nito33N 1 Reply Last reply
                                    0
                                    • iomountainI iomountain

                                      @Noé1237 sagte in Script Hilfe licht über Xiaomi Switch anschalten.:

                                      Weißt du woran es liegt?

                                      was?
                                      funktioniert dein "simple click"

                                      Nito33N Offline
                                      Nito33N Offline
                                      Nito33
                                      wrote on last edited by
                                      #20

                                      @iomountain Ne ich frage ja ob du weißt wieso es nicht funktioniert. Aktuell passiert gar nichts wenn ich drücke.

                                      1 Reply Last reply
                                      0
                                      • iomountainI Offline
                                        iomountainI Offline
                                        iomountain
                                        wrote on last edited by
                                        #21

                                        3e618248-c626-4f48-8126-70458b717fa7-image.png
                                        so ist das Script gestoppt.
                                        was sagt das Log?
                                        Das was in den Debug Baustein steht müsste im LOG auftauchen.

                                        Nito33N 1 Reply Last reply
                                        0
                                        • iomountainI iomountain

                                          3e618248-c626-4f48-8126-70458b717fa7-image.png
                                          so ist das Script gestoppt.
                                          was sagt das Log?
                                          Das was in den Debug Baustein steht müsste im LOG auftauchen.

                                          Nito33N Offline
                                          Nito33N Offline
                                          Nito33
                                          wrote on last edited by
                                          #22

                                          @iomountain Script ist an. Opera Momentaufnahme_2019-07-11_134121_192.168.178.93.png
                                          so sieht mein log aus

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          920

                                          Online

                                          32.4k

                                          Users

                                          81.5k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe