Code
- <xml xmlns="https://developers.google.com/blockly/xml">
- <variables>
- <variable id=")sI~_lm*1i70NPm3#otc">zeit</variable>
- <variable type="interval" id="Intervall">Intervall</variable>
- </variables>
- <block type="variables_set" id="|/Y[r_`MteJvJ6#XA|%?" x="113" y="184">
- <field name="VAR" id=")sI~_lm*1i70NPm3#otc">zeit</field>
- <value name="VALUE">
- <block type="get_value" id="PTqkp,pD;cjSl}AB)oE0">
- <field name="ATTR">val</field>
- <field name="OID">Meine_Geräte.0.Airwick</field>
- </block>
- </value>
- <next>
- <block type="timeouts_setinterval" id="%KO?bCyt)Hd?D/cyC;9i">
- <field name="NAME">Intervall</field>
- <field name="INTERVAL">1</field>
- <field name="UNIT">min</field>
- <statement name="STATEMENT">
- <block type="math_change" id="ca#|vkA}jjMmo/=V!Mq}">
- <field name="VAR" id=")sI~_lm*1i70NPm3#otc">zeit</field>
- <value name="DELTA">
- <shadow type="math_number" id="#k]9,@zYj]]$Nuk-HEk#">
- <field name="NUM">-1</field>
- </shadow>
- </value>
- <next>
- <block type="controls_if" id="q3X%y;R#PyN+?UTc,9GV">
- <value name="IF0">
- <block type="logic_operation" id=";h#CsHA4D9+f8yTK%fbt">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="Y6LFE[*H1:!.9aOeW~}f">
- <field name="OP">LTE</field>
- <value name="A">
- <block type="variables_get" id="cA~+xEHqnehP.A9ru7F{">
- <field name="VAR" id=")sI~_lm*1i70NPm3#otc">zeit</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="kuICl4E#*0BaY*UoqN-f">
- <field name="NUM">0</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="6vkUy6vOS3f8t+dhQ)ip">
- <field name="OP">NEQ</field>
- <value name="A">
- <block type="get_value" id="P,LvjBp0e39X`Z1~2Os]">
- <field name="ATTR">val</field>
- <field name="OID">Meine_Geräte.0.Airwick</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id=".XE(ioU.ml4^e7c9hld@">
- <field name="NUM">0</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="control" id="O(JwasV:{x6xrwk,8Y.H">
- <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
- <field name="OID">sonoff.0.Airwick.POWER</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id=".W[liJZtpuEA/DsHeBqi">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="control" id="6[xEzui#g_a[j64rgVC}">
- <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
- <field name="OID">sonoff.0.Airwick.POWER</field>
- <field name="WITH_DELAY">TRUE</field>
- <field name="DELAY_MS">200</field>
- <field name="UNIT">ms</field>
- <field name="CLEAR_RUNNING">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="e$RF7v_aKtXSWhX0AiaZ">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="!qYa!_S[9|a@lch~Qj30">
- <field name="VAR" id=")sI~_lm*1i70NPm3#otc">zeit</field>
- <value name="VALUE">
- <block type="get_value" id="v4uj*Kt!V$Z6]5)7Fn%G">
- <field name="ATTR">val</field>
- <field name="OID">Meine_Geräte.0.Airwick</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </xml>