Guten Abend, ich möchte dieses Blockly mit einer Astro funktionerweitern.
Diese soll erkennen Ob es bereits Dunkel ist und dann erst soll derBWM das Licht bei Bewegung Einschalten, wenn wieder Hell dann nicht mehr schalten.
Spoiler
<xml xmlns="https://developers.google.com/blockly/xml ">
<block type="on" id="1|@4iLNFlHP|^SIzIKZF" x="62" y="37">
<field name="OID">zigbee.0.00158d0008cf234f.occupancy</field>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id="3|U;];;51Jj,U3uB,2wK">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="B%06E{I)8iy#{WQPR_q;">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="UOu+SA@%{,ck2CIUT}fv">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.00158d0008cf234f.occupancy</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="9.#X:lsSV_:Hh_]Z4g4,">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="b11~t5S_tAAe-X~nbeOM">
<mutation xmlns="http://www.w3.org/1999/xhtml " delay_input="false"></mutation>
<field name="OID">zigbee.0.00158d0003a732aa.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="KcrzUls}J]NYb8.C0F."> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="6pEYUssm@(!#fGQyAquq"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=":=a=9~=VD%]3*%
s:||M">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.00158d0008cf234f.occupancy</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="7ZBY#tw;a+E9s1l/aloz">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="control" id="IuZ%XF?T4(6q!Nc]z#@z">
<mutation xmlns="http://www.w3.org/1999/xhtml " delay_input="false"></mutation>
<field name="OID">zigbee.0.00158d0003a732aa.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="U?2J/V+XJCEs^x!(2a?b">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Google hab ich schon durch (denke ich) aber die Lösungen kann ich meistens nicht Nachvollziehen.
Vieleicht kann mir ja hier Jemand weiterhelfen.