homeautomatisation:blockyscripts:motionsensorlight
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="on" id="4V+4{kj5jt(u(Nway8K]" x="138" y="138"> <field name="OID">zigbee.0.00158d0004485d22.occupancy</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="Y]9em0lU[S`=2]QBT7Wu"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="(17XR=P$6K(+.?356jV/"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="}{4dY0EcEY2KCq9OgX-e"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0004485d22.occupancy</field> </block> </value> <value name="B"> <block type="logic_boolean" id="L=T)?CS@{Ucg.w|1j{-="> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="~~x.CZYxW]I.4[AL6]:I"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.90395efffe17ae7d.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="[$*`Z~C.SeP{Wpf*H[mF"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="control" id="~8.RBzVHAUJ8DQCA?Yvf"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.90395efffe17ae7d.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="]J}n3`6K,zL@b}=s{WO8"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </xml> <xml xmlns="https://developers.google.com/blockly/xml"> <block type="on" id="4V+4{kj5jt(u(Nway8K]" x="138" y="138"> <field name="OID">zigbee.0.00158d0004485d22.occupancy</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="Y]9em0lU[S`=2]QBT7Wu"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="(17XR=P$6K(+.?356jV/"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="}{4dY0EcEY2KCq9OgX-e"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0004485d22.occupancy</field> </block> </value> <value name="B"> <block type="logic_boolean" id="L=T)?CS@{Ucg.w|1j{-="> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="~~x.CZYxW]I.4[AL6]:I"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.90395efffe17ae7d.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="[$*`Z~C.SeP{Wpf*H[mF"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="control" id="~8.RBzVHAUJ8DQCA?Yvf"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">zigbee.0.90395efffe17ae7d.state</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="]J}n3`6K,zL@b}=s{WO8"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </xml>
homeautomatisation/blockyscripts/motionsensorlight.txt · Last modified: 2023/12/17 20:25 by illu