Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Garagenlichtschaltung

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Garagenlichtschaltung

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      burgerking68 last edited by burgerking68

      Hi, mein Problem gestaltet sich für mich etwas komplizierter...vielleicht habt Ihr ja eine Lösung!? (Ich bin nicht so der Typ "Programmierer" und noch relativ frisch im IOBroker...)

      Meine Garage ist von zwei Punkten/durch 2 Türen und dem eigentlichen Garagentor zugänglich. Damit jedes Mal wenn einer dieser Türen geöffnet wird ein LIcht in der Garage für 4 Minuten einschaltet habe ich die Türen mit XIAOMI Türkontakten versehen die -bei Auslösung- eine Lampe in der Garage anschalten. Diese steuere ich über einen Shelly-Adapter. Soweit so gut, aber:

      • Problem 1: wie kann ich dem Script definieren, dass sich die Zeitschleife von 4Minuten jedes mal wieder zurücksetzt wenn eine jeweils andere Tür zur Garage geöffnet wird. Ich bekomme das irgendwie nicht hin über Variablen zu definieren..

      • Problem 2: bei Bedarf habe ich noch eine IKEA Schalter via Deconz/Phoscon so eingestellt, dass das LIcht in der Garage auf Dauerlicht gestellt wird und auch ein öffnen der entsprechenden Türen NICHT den "Countdown" einläutet. Tatsächlich sieht es bei mir so aus, dass das Dauerlicht nur so lange aktiv ist wie keine der genannten Türen geöffnet wird.

      Hier mein Skript, ich bin für jeden Tip dankbar!:

      <xml xmlns="https://developers.google.com/blockly/xml">
      <variables>
      <variable id="6QGMz#D%[Pk%s~@o0hBt">Dauerlicht</variable>
      </variables>
      <block type="comment" id="D?5.S?cmd(c8curf|T;T" x="287" y="-638">
      <field name="COMMENT">Variable für Dauerlicht Garage</field>
      <next>
      <block type="variables_set" id="$ggU{k~^3_02Jq#Z;d-"> <field name="VAR" id="6QGMz#D%[Pk%s~@o0hBt">Dauerlicht</field> <value name="VALUE"> <block type="logic_boolean" id="8J7v,wsGoivqBzK6aQ7F"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="0QQ~6hYHe=EoHh%y=]">
      <field name="COMMENT">Schaltung über Trädfri Remote und Deconz</field>
      <next>
      <block type="on" id="yHNL#uTAt7AvxHzF5u1"> <field name="OID">deconz.0.sensors.588e81fffe2ce430.buttonevent</field> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="H=64g_8GK+|X/OLR0|E">
      <mutation elseif="1"></mutation>
      <value name="IF0">
      <block type="logic_operation" id="b-^n=(a)x_!U{8;:4v1">
      <field name="OP">AND</field>
      <value name="A">
      <block type="logic_compare" id="1IzpP(1+zD}2gBjGs9">
      <field name="OP">EQ</field>
      <value name="A">
      <block type="get_value" id="!NWr}j1C;/ywE~,}y}L+">
      <field name="ATTR">val</field>
      <field name="OID">deconz.0.sensors.588e81fffe2ce430.buttonevent</field>
      </block>
      </value>
      <value name="B">
      <block type="math_number" id="zwX!QtUfb}HJ?rR?lk3=">
      <field name="NUM">4002</field>
      </block>
      </value>
      </block>
      </value>
      <value name="B">
      <block type="logic_compare" id="tgW6%[y#Z4(I{x
      f:zRh">
      <field name="OP">EQ</field>
      <value name="A">
      <block type="get_value" id=")VYI8{nJEH0~OVcML_9j">
      <field name="ATTR">val</field>
      <field name="OID">shelly.0.SHSW-1#10D8B8#1.Relay0.Switch</field>
      </block>
      </value>
      <value name="B">
      <block type="logic_boolean" id="=B7@k~T
      |59%kBwo@uu"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="@.A=0!Br)qA%u@_dbtdF"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHSW-1#10D8B8#1.Relay0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="F2DFv6KPkMygkBJ1ALkT"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="^!qdg{OXs:Jqed=-;gxd"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.lights.7cb03eaa0a0a2864.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="dBS6|k}X~cv@P|~ia!;;"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="FhN@QIF!$oe.wAk?FC"> <field name="VAR" id="6QGMz#D%[Pk%s~@o0hBt">Dauerlicht</field> <value name="VALUE"> <block type="logic_boolean" id="_3eDPk~:,|}8$[o9)P10"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="debug" id="f:U?wBT4PAIo1CrWhWa4"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="Sb!t..OTpBQdgfW~H([a"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="n2J?1wj]+|3u|~2|~FbM"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="}~5BqCW2Mt%XoH.Z/YTB"> <field name="TEXT">Dauerlicht in Garage eingeschaltet auf den Wert: </field> </block> </value> <value name="ADD1"> <block type="variables_get" id="6DD*,c$MSZVc%h2dY%eB"> <field name="VAR" id="6QGMz#D%[Pk%s~@o0hBt">Dauerlicht</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="Gh5$Qa~@7xbSW72$Rk]_"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="fCm4,]NcrVf~3:WEjgZW"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="AZbY1@t}=KP|wK(QTb"> <field name="ATTR">val</field> <field name="OID">deconz.0.sensors.588e81fffe2ce430.buttonevent</field> </block> </value> <value name="B"> <block type="math_number" id="@vG4:zz^pYipBx+ZAD=8"> <field name="NUM">5002</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="6K$!PvR2VGx!gD{{RW3m"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="OAj]+vg2y(Hb:#2j+8QQ"> <field name="ATTR">val</field> <field name="OID">shelly.0.SHSW-1#10D8B8#1.Relay0.Switch</field> </block> </value> <value name="B"> <block type="logic_boolean" id="VX$ehYB$9v2AyL[wt]1E"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="XmNBC6(Aml$v2FEvHzFV"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHSW-1#10D8B8#1.Relay0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="~(B2zlJg+8h5z4o5OHd7"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="M4nG0xzIFI@3yXDXNCoZ"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">deconz.0.lights.7cb03eaa0a0a2864.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="jU;{wZ}=,389S?:CuDKz"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="~BF-OhVhg*ZMy@DhpP;?"> <field name="VAR" id="6QGMz#D%[Pk%s~@o0hBt">Dauerlicht</field> <value name="VALUE"> <block type="logic_boolean" id="tjgMvm1Pu{6%m)vCS#(_"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="debug" id="ZVM%u|(|0?!Vd.UvVzuW"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="/]0.ew4u.]#-M;vA/">
      <mutation items="2"></mutation>
      <value name="ADD0">
      <block type="text" id="FwC%!nB

      9r{+C3/mC^">
      <field name="TEXT">Dauerlicht in Garage ausgeschaltet. Neuer Wert ist: </field>
      </block>
      </value>
      <value name="ADD1">
      <block type="variables_get" id="[~x!!UAUq.+=g.kBRzaE">
      <field name="VAR" id="6QGMz#D%[Pk%s~@o0hBt">Dauerlicht</field>
      </block>
      </value>
      </block>
      </value>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </statement>
      </block>
      </statement>
      <next>
      <block type="comment" id=",p5wHKcg$dGXo[}DDID+">
      <field name="COMMENT">ab hier Steuerung über XIAOMI-Tuerkontakten mit Zeitablauf</field>
      <next>
      <block type="on" id="n72ZV+SS2fQiSC-QL5QO">
      <field name="OID">deconz.0.sensors.00158d0004a1140a.open</field>
      <field name="CONDITION">ne</field>
      <field name="ACK_CONDITION"></field>
      <statement name="STATEMENT">
      <block type="controls_if" id="L2H:(%zH2{Jz6It~wGH4">
      <value name="IF0">
      <block type="logic_operation" id="76H%fUKF(~9~0Ze,GJr.">
      <field name="OP">AND</field>
      <value name="A">
      <block type="on_source" id="+H#5BWvygQ]!?AbDd|:"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_compare" id="=*As@JVdPtwAOB:3LS">
      <field name="OP">EQ</field>
      <value name="A">
      <block type="variables_get" id="o2:k^f.Do@PvaC(3RmE"> <field name="VAR" id="6QGMz#D%[Pk%s~@o0hBt">Dauerlicht</field> </block> </value> <value name="B"> <block type="logic_boolean" id="M^H5dy#0#glzOJh25Chz"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id=")o=Do=]nhC_zQPR3kVZ">
      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
      <field name="OID">shelly.0.SHSW-1#10D8B8#1.Relay0.Switch</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="logic_boolean" id="QXk2hVHd8GF(;:2wY{W5">
      <field name="BOOL">TRUE</field>
      </block>
      </value>
      <next>
      <block type="control" id="),S4FIVJ:7}X?*Q|y[pc">
      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
      <field name="OID">shelly.0.SHSW-1#10D8B8#1.Relay0.Switch</field>
      <field name="WITH_DELAY">TRUE</field>
      <field name="DELAY_MS">5</field>
      <field name="UNIT">min</field>
      <field name="CLEAR_RUNNING">FALSE</field>
      <value name="VALUE">
      <block type="logic_boolean" id="T~^]:r!%XjJFPoxsosz]">
      <field name="BOOL">FALSE</field>
      </block>
      </value>
      <next>
      <block type="debug" id="whu{BcWgUIZ?Kf;,@KHY">
      <field name="Severity">debug</field>
      <value name="TEXT">
      <shadow type="text">
      <field name="TEXT">test</field>
      </shadow>
      <block type="text_join" id="~W|5.m.oV}62,-^.V(E"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="Yc$X=%%G_K_V%8S$LaR."> <field name="TEXT">Der Wert von Werkstatt-Garage hat sich verändert:</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="XAkEFHUN=OTWA
      {Dh!}">
      <field name="VAR" id="6QGMz#D%[Pk%s~@o0hBt">Dauerlicht</field>
      </block>
      </value>
      </block>
      </value>
      </block>
      </next>
      </block>
      </next>
      </block>
      </statement>
      </block>
      </statement>
      <next>
      <block type="on" id="yMF8K6i]$H.!fzf%#ll"> <field name="OID">deconz.0.sensors.00158d0004a00219.open</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="J|$8xCzRz40Hr!w/PWGY"> <value name="IF0"> <block type="logic_operation" id="ANC,6J/,L0IHdqjn4g;6"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id=")h.e+GKZshmY]p8NcR-">
      <field name="OP">EQ</field>
      <value name="A">
      <block type="get_value" id="Bd6IUCxIYS6i+SrCfdej">
      <field name="ATTR">val</field>
      <field name="OID">deconz.0.sensors.00158d0004a00219.open</field>
      </block>
      </value>
      <value name="B">
      <block type="logic_boolean" id="MH.F77~_:zCVPXvaE[=L">
      <field name="BOOL">TRUE</field>
      </block>
      </value>
      </block>
      </value>
      <value name="B">
      <block type="logic_compare" id="$P4ZD3@Br6409LJlG}K6">
      <field name="OP">EQ</field>
      <value name="A">
      <block type="variables_get" id="NYf}Y|;QdD3Ave:K4E{H">
      <field name="VAR" id="6QGMz#D%[Pk%s~@o0hBt">Dauerlicht</field>
      </block>
      </value>
      <value name="B">
      <block type="logic_boolean" id="26]k!T-_Rqv$]U|U-vlm">
      <field name="BOOL">FALSE</field>
      </block>
      </value>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO0">
      <block type="control" id="o8?O(P01p.Gl/D$?/xrQ">
      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
      <field name="OID">shelly.0.SHSW-1#10D8B8#1.Relay0.Switch</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="logic_boolean" id="g/qEkgV{p)!04X?x#8m(">
      <field name="BOOL">TRUE</field>
      </block>
      </value>
      <next>
      <block type="control" id="D63tWsToHx7~lHWODh)"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">shelly.0.SHSW-1#10D8B8#1.Relay0.Switch</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">5</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="g)Z2ctN/!oR1Dm,y#PXN"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="debug" id="1kz~yTB(*5-^63XCA2zE"> <field name="Severity">debug</field> <value name="TEXT"> <shadow type="text"> <field name="TEXT">test</field> </shadow> <block type="text_join" id="LC?:G9ur7LqA$ncEZco="> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="dM*#0VEM4$+5*@Tfmx.M"> <field name="TEXT">Der Wert von HWR-Garage hat sich verändert:</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="|(,=NZ4GlrF:yN-(3JQ!"> <field name="VAR" id="6QGMz#D%[Pk%s~@o0hBt">Dauerlicht</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="on" id="4ir7H$LqH/lFS@By|W2">
      <field name="OID">deconz.0.sensors.00158d00039dcf5c.tiltangle</field>
      <field name="CONDITION">ne</field>
      <field name="ACK_CONDITION"></field>
      <statement name="STATEMENT">
      <block type="controls_if" id="d.A2t/TOV^CTxUW7Xs}?">
      <value name="IF0">
      <block type="logic_operation" id="O,:m]+r6uLYz~0{Oz:g"> <field name="OP">AND</field> <value name="A"> <block type="on_source" id="e?u7HLh4@r#o2VNb@d=@"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_compare" id="P]}jyF*m$wOKD=CXt){0"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="H]UDp-TlM]#oO0.Xb~V">
      <field name="VAR" id="6QGMz#D%[Pk%s~@o0hBt">Dauerlicht</field>
      </block>
      </value>
      <value name="B">
      <block type="logic_boolean" id="?cyU9cM;mL~)}tt%[eNh">
      <field name="BOOL">FALSE</field>
      </block>
      </value>
      </block>
      </value>
      </block>
      </value>
      <statement name="DO0">
      <block type="control" id="LBTZ;@_Ow2T2vu6aO?2"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHSW-1#10D8B8#1.Relay0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=".08V4j_vz]@B,9x8!rh">
      <field name="BOOL">TRUE</field>
      </block>
      </value>
      <next>
      <block type="control" id="e]=:dQ6][#|+bkc5ofo"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">shelly.0.SHSW-1#10D8B8#1.Relay0.Switch</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">5</field> <field name="UNIT">min</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="-sowwt9lzAvhViu!J["> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </statement> </block> </statement> <next> <block type="comment" id="[$a-L^j$CFpem|HZHzX">
      <field name="COMMENT">Cronjob zum automatischen Ausschalten Garagenlicht</field>
      <next>
      <block type="schedule" id="V]zBEgIWRphR1kb__tUy">
      <field name="SCHEDULE">0 23 * * *</field>
      <statement name="STATEMENT">
      <block type="control" id="Y]{+hHW9jP#,%LwHPmJQ">
      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
      <field name="OID">shelly.0.SHSW-1#10D8B8#1.Relay0.Switch</field>
      <field name="WITH_DELAY">FALSE</field>
      <value name="VALUE">
      <block type="logic_boolean" id=";p@*GSoj1}8.:C57uNzB">
      <field name="BOOL">FALSE</field>
      </block>
      </value>
      </block>
      </statement>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </next>
      </block>
      </xml>

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

        @burgerking68
        Vorschlag:

        Blockly_temp.JPG

        <xml xmlns="https://developers.google.com/blockly/xml">
         <variables>
           <variable id="9edRg.`~|ddTBJ^H!~QN">tuer1</variable>
           <variable id="g@MdLAs[%D4EbK^iC0$I">tuer2</variable>
           <variable id="{yAQS:~/f9N!~9^ETuw2">manuell</variable>
           <variable type="timeout" id="timeout">timeout</variable>
         </variables>
         <block type="on_ext" id="Np:Z}qL-u`%S|S,]sHBl" x="62" y="38">
           <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
           <field name="CONDITION">ne</field>
           <field name="ACK_CONDITION"></field>
           <value name="OID0">
             <shadow type="field_oid" id="{r2;sWJD2DX~92OC=`Q]">
               <field name="oid">default</field>
             </shadow>
           </value>
           <statement name="STATEMENT">
             <block type="variables_set" id="O=q?5oBbs$pH(9.e0kB#">
               <field name="VAR" id="9edRg.`~|ddTBJ^H!~QN">tuer1</field>
               <value name="VALUE">
                 <block type="on_source" id="UF0sNEu)eNQx?.LSzuKK">
                   <field name="ATTR">state.val</field>
                 </block>
               </value>
               <next>
                 <block type="procedures_callnoreturn" id="Mk[T__|awhIQ:O0OP?sY">
                   <mutation name="licht"></mutation>
                 </block>
               </next>
             </block>
           </statement>
           <next>
             <block type="on_ext" id="SN#q5*lF-H3A$,p.F#w0">
               <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
               <field name="CONDITION">ne</field>
               <field name="ACK_CONDITION"></field>
               <value name="OID0">
                 <shadow type="field_oid" id="o@de|%dEPo-lyR@GbdU@">
                   <field name="oid">default</field>
                 </shadow>
               </value>
               <statement name="STATEMENT">
                 <block type="variables_set" id="h=av]8Qz^/zrX(bJIhR$">
                   <field name="VAR" id="g@MdLAs[%D4EbK^iC0$I">tuer2</field>
                   <value name="VALUE">
                     <block type="on_source" id="r2G#IOBDm4Qrh)a|RVF`">
                       <field name="ATTR">state.val</field>
                     </block>
                   </value>
                   <next>
                     <block type="procedures_callnoreturn" id="uN/n$s[Z9)!/_))~!-V0">
                       <mutation name="licht"></mutation>
                     </block>
                   </next>
                 </block>
               </statement>
               <next>
                 <block type="comment" id="dI_lkVafGw@xa@?ROi|n">
                   <field name="COMMENT">Licht</field>
                   <next>
                     <block type="on_ext" id="-ktj0OJC??j)uJbNIhY;">
                       <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                       <field name="CONDITION">ne</field>
                       <field name="ACK_CONDITION"></field>
                       <value name="OID0">
                         <shadow type="field_oid" id="}|6,i{_5pgung$nPU?q7">
                           <field name="oid">default</field>
                         </shadow>
                       </value>
                       <statement name="STATEMENT">
                         <block type="timeouts_cleartimeout" id="yec7(VK!FL{B8;PVlPcs">
                           <field name="NAME">timeout</field>
                           <next>
                             <block type="variables_set" id="IwR/u=SzM`=c8M,kSQEh">
                               <field name="VAR" id="{yAQS:~/f9N!~9^ETuw2">manuell</field>
                               <value name="VALUE">
                                 <block type="logic_operation" id="VRSfXfCDOaD@%n3JDy4/">
                                   <field name="OP">AND</field>
                                   <value name="A">
                                     <block type="on_source" id="Zt%ZUxE]5=f$2h58-i5v">
                                       <field name="ATTR">state.val</field>
                                     </block>
                                   </value>
                                   <value name="B">
                                     <block type="logic_compare" id="5J?0^5z[gtX9?c_zRe!d">
                                       <field name="OP">NEQ</field>
                                       <value name="A">
                                         <block type="on_source" id="Cuc:}L2E|pYz~.JC#{m@">
                                           <field name="ATTR">state.from</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="text" id="QyS)b3`]%HoTUHE7?3SI">
                                           <field name="TEXT">system.adapter.javascript.0</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                 </block>
                               </value>
                             </block>
                           </next>
                         </block>
                       </statement>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
           </next>
         </block>
         <block type="procedures_defnoreturn" id="9o[]^%1S+,)K=(vJ;/fD" x="387" y="88">
           <field name="NAME">licht</field>
           <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
           <statement name="STACK">
             <block type="controls_if" id="I-MjD+8x9VfudfXxsecb">
               <value name="IF0">
                 <block type="logic_negate" id="cl/=hGxJ;5_G7S@bJsTE">
                   <value name="BOOL">
                     <block type="variables_get" id="C^(Ddcqvt7^y^+QVl]/_">
                       <field name="VAR" id="{yAQS:~/f9N!~9^ETuw2">manuell</field>
                     </block>
                   </value>
                 </block>
               </value>
               <statement name="DO0">
                 <block type="controls_if" id="BBVR3UZCh*K-6qfAH#4P">
                   <mutation else="1"></mutation>
                   <value name="IF0">
                     <block type="logic_operation" id="QNpc,rQq}-)g2tVe;ooc">
                       <field name="OP">OR</field>
                       <value name="A">
                         <block type="variables_get" id="cO.{R0IZ%j{/~API(kDL">
                           <field name="VAR" id="9edRg.`~|ddTBJ^H!~QN">tuer1</field>
                         </block>
                       </value>
                       <value name="B">
                         <block type="variables_get" id="T@DpAk6DhpYexu^cD,L;">
                           <field name="VAR" id="g@MdLAs[%D4EbK^iC0$I">tuer2</field>
                         </block>
                       </value>
                     </block>
                   </value>
                   <statement name="DO0">
                     <block type="timeouts_cleartimeout" id="6nevAZH-HwSaU+Uo+1NO">
                       <field name="NAME">timeout</field>
                       <next>
                         <block type="control" id="2q)}+/|J.t=eIuk=]MnA">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">Object ID</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="logic_boolean" id="FMn+O!FhEsV,[:9z#,}M">
                               <field name="BOOL">TRUE</field>
                             </block>
                           </value>
                         </block>
                       </next>
                     </block>
                   </statement>
                   <statement name="ELSE">
                     <block type="timeouts_settimeout" id="(8m$o!C1]SDb-|uwU)q^">
                       <field name="NAME">timeout</field>
                       <field name="DELAY">4</field>
                       <field name="UNIT">min</field>
                       <statement name="STATEMENT">
                         <block type="control" id="9KV,-0@[by=wif0}/;}9">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                           <field name="OID">Object ID</field>
                           <field name="WITH_DELAY">FALSE</field>
                           <value name="VALUE">
                             <block type="logic_boolean" id="w`]SLF^M%H%|v:.)N=/q">
                               <field name="BOOL">FALSE</field>
                             </block>
                           </value>
                         </block>
                       </statement>
                     </block>
                   </statement>
                 </block>
               </statement>
             </block>
           </statement>
         </block>
        </xml>
        

        1 Reply Last reply Reply Quote 0
        • B
          burgerking68 last edited by

          @paul53 : Danke...ich werde es mal schnellstmöglich testen und mich dann "im nächsten Jahr" dazu melden! 👍

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

          Support us

          ioBroker
          Community Adapters
          Donate

          530
          Online

          31.9k
          Users

          80.1k
          Topics

          1.3m
          Posts

          blockly scenes
          2
          3
          231
          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