@joachim-knape sagte in Lichtsteuerung bei Ankunft:
@dslraser wie baue ich denn da jetzt astrozeiten ein.. kopfkratz
oder so...
Bildschirmfoto 2020-10-15 um 21.53.32.png
Blockly Export
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="on_ext" id="wo+n7k.axGoXczYz%s|Z" x="112" y="62">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="E[#qZzqWB;9[?2AZ9!1w">
<field name="oid">default</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="x[=WA763_i[|sd`-0ygv">
<field name="oid">default</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="@|9?zj1#jBDY!)p%uF=w">
<value name="IF0">
<block type="time_compare_ex" id="gG|43tDqnH+tSoDQgU=Q">
<mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
<field name="USE_ACTUAL_TIME">TRUE</field>
<field name="OPTION">between</field>
<value name="START_TIME">
<shadow type="text" id="_!8!$R;N(l)N]3?6jM,H">
<field name="TEXT">12:00</field>
</shadow>
<block type="time_astro" id="JpJ;,er2-Jxz%gM5QEZ{">
<field name="TYPE">sunset</field>
<field name="OFFSET">0</field>
</block>
</value>
<value name="END_TIME">
<shadow type="text" id="3@~d:{r][Dv4cj@V#e%!">
<field name="TEXT">18:00</field>
</shadow>
<block type="time_astro" id="*$:M-i:%z6w?4ru??r[@">
<field name="TYPE">sunrise</field>
<field name="OFFSET">0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="Is/ndd^-}wEDGo`eD;b#">
<value name="IF0">
<block type="logic_operation" id="iWRE};StGgIGY.UEdFlB" inline="false">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="~2,u[a.|I8z=}},ARRZ,">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="Sy=X[;.hN}v5XmdM#l4z">
<field name="ATTR">val</field>
<field name="OID">ID auswählen</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="7uM.~%=3Q=$Ds^@?2Luu">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="k)Q2AA#jx,@;f%U9R%d`">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="=uK_.,g|~]uff@?mKAaF">
<field name="ATTR">val</field>
<field name="OID">ID auswählen</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="O%6p^BLiVpi93D+r!E^Y">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="#4rpLhqe!8R,ze1DZk7I">
<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="i%xTm9};5+jpn(1)IyY9">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="AEbfr1;^Fk(oKFL?qz,F">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">Object ID</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">5</field>
<field name="UNIT">min</field>
<field name="CLEAR_RUNNING">TRUE</field>
<value name="VALUE">
<block type="logic_boolean" id="`(4aD2x}6%~o2*oS(!PZ">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
</xml>
EDIT:
Oder so, weil Astro hat glaube ich irgendein Problem mit dem Tageswechsel (irgendwas war da, weiß ich aber leider nicht mehr genau...)
Bildschirmfoto 2020-10-15 um 21.56.04.png
Blockly Export
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="on_ext" id="wo+n7k.axGoXczYz%s|Z" x="112" y="62">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
<field name="CONDITION">gt</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="E[#qZzqWB;9[?2AZ9!1w">
<field name="oid">default</field>
</shadow>
</value>
<value name="OID1">
<shadow type="field_oid" id="x[=WA763_i[|sd`-0ygv">
<field name="oid">default</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="@|9?zj1#jBDY!)p%uF=w">
<value name="IF0">
<block type="time_compare_ex" id="gG|43tDqnH+tSoDQgU=Q">
<mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
<field name="USE_ACTUAL_TIME">TRUE</field>
<field name="OPTION">not between</field>
<value name="START_TIME">
<shadow type="text" id="_!8!$R;N(l)N]3?6jM,H">
<field name="TEXT">12:00</field>
</shadow>
<block type="time_astro" id="JpJ;,er2-Jxz%gM5QEZ{">
<field name="TYPE">sunrise</field>
<field name="OFFSET">0</field>
</block>
</value>
<value name="END_TIME">
<shadow type="text" id="3@~d:{r][Dv4cj@V#e%!">
<field name="TEXT">18:00</field>
</shadow>
<block type="time_astro" id="*$:M-i:%z6w?4ru??r[@">
<field name="TYPE">sunset</field>
<field name="OFFSET">0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="Is/ndd^-}wEDGo`eD;b#">
<value name="IF0">
<block type="logic_operation" id="iWRE};StGgIGY.UEdFlB" inline="false">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare" id="~2,u[a.|I8z=}},ARRZ,">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="Sy=X[;.hN}v5XmdM#l4z">
<field name="ATTR">val</field>
<field name="OID">ID auswählen</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="7uM.~%=3Q=$Ds^@?2Luu">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="k)Q2AA#jx,@;f%U9R%d`">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="=uK_.,g|~]uff@?mKAaF">
<field name="ATTR">val</field>
<field name="OID">ID auswählen</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="O%6p^BLiVpi93D+r!E^Y">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="#4rpLhqe!8R,ze1DZk7I">
<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="i%xTm9};5+jpn(1)IyY9">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="AEbfr1;^Fk(oKFL?qz,F">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">Object ID</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">5</field>
<field name="UNIT">min</field>
<field name="CLEAR_RUNNING">TRUE</field>
<value name="VALUE">
<block type="logic_boolean" id="`(4aD2x}6%~o2*oS(!PZ">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
</xml>