Leider überhaupt nicht
Und das Problem ist nicht ganz weg. Meine Steuerung für das Aquarium Licht funktioniert immer noch nicht.
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable type="interval" id="AQ-Start">AQ-Start</variable>
<variable type="interval" id="AQ-Mittagspause-Start">AQ-Mittagspause-Start</variable>
<variable type="interval" id="AQ-Mittagspause-Ende">AQ-Mittagspause-Ende</variable>
<variable type="interval" id="AQ-Stop">AQ-Stop</variable>
</variables>
<block type="schedule" id="P+emr)s}Ku4+~1yn=sj%" x="-1612" y="-4287">
<field name="SCHEDULE">0,56 3,4 11 * * *</field>
<statement name="STATEMENT">
<block type="timeouts_setinterval" id="Bq!YS[0+x$U$r/d^m1HS">
<field name="NAME">AQ-Start</field>
<field name="INTERVAL">3</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="controls_if" id="xclntcN:OSi_Sc-MGf*!">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="#wKdfXh.r7o7zVTX*gv1">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="l_bMyhX$XUZ].Fj6F:jg">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.AQ-Lampe-Flur.Dimmer</field>
</block>
</value>
<value name="B">
<block type="text" id="EaA]v}Z~~]Xm(%_5N-YF">
<field name="TEXT">80</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="R7pkIBx_@k`9up1s^`W6">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.AQ-Lampe-Flur.Dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_arithmetic" id="P:9|^*FV?Y]Nx^d:m5e3">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="14tIl$lYVv63t#7QrZG,">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.AQ-Lampe-Flur.Dimmer</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="Qq:%;G-YycpRV9{J5})0">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="timeouts_clearinterval" id="h%gc-4d=`T5-5sS4uzdC">
<field name="NAME">AQ-Start</field>
</block>
</statement>
</block>
</statement>
</block>
</statement>
<next>
<block type="schedule" id="^;Nrg,ToDDQ2zZP,Zyt}">
<field name="SCHEDULE">0 12 * * *</field>
<statement name="STATEMENT">
<block type="timeouts_setinterval" id="DD6ouD(FOs(,{ciw%MCW">
<field name="NAME">AQ-Mittagspause-Start</field>
<field name="INTERVAL">3</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="controls_if" id="W^Q)|3QFq%Vj5:wMAO.n">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="vPdL3ucjzK#E9vxQX@HS">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="udyd-0km:MIF)=.8iX4o">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.AQ-Lampe-Flur.Dimmer</field>
</block>
</value>
<value name="B">
<block type="text" id="b_7r~olmHf[6I3HYI,rE">
<field name="TEXT">30</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="_{NH(-w|b$HOO|^Y?)C{">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.AQ-Lampe-Flur.Dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_arithmetic" id="+n^c/8?2/!s]?#@*UvX{">
<field name="OP">MINUS</field>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id=":pUH(9i~K)+bI::},~rJ">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.AQ-Lampe-Flur.Dimmer</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="?`L+wRvOW|mq=I!u+(o`">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="timeouts_clearinterval" id="}rT]D#_Q?/1|z(mU!^5t">
<field name="NAME">AQ-Mittagspause-Start</field>
</block>
</statement>
</block>
</statement>
</block>
</statement>
<next>
<block type="schedule" id="BOd27-AqP3hQ.gWoS?u=">
<field name="SCHEDULE">30 14 * * *</field>
<statement name="STATEMENT">
<block type="timeouts_setinterval" id="kUp|vjmtKV~xmBn#31?`">
<field name="NAME">AQ-Mittagspause-Ende</field>
<field name="INTERVAL">3</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="controls_if" id="u+G=4]~/r{H8;{=4MEBz">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="tRLr#JJ5G3W6ld;674Ta">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id="UAGohW:i{?uuswTO1J8|">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.AQ-Lampe-Flur.Dimmer</field>
</block>
</value>
<value name="B">
<block type="text" id="%s6:)RT5uTq@@5P4Rc_)">
<field name="TEXT">80</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="!ieGr9?V*whDyas;.trO">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.AQ-Lampe-Flur.Dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="math_arithmetic" id=".[?)E3~Ob.TN0|91J.{K">
<field name="OP">ADD</field>
<value name="A">
<shadow type="math_number" id="yPPKb[[w)R:*y854eF!Y">
<field name="NUM">1</field>
</shadow>
<block type="get_value" id="]i^(cf)7v7rX-mV?OKn)">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.AQ-Lampe-Flur.Dimmer</field>
</block>
</value>
<value name="B">
<shadow type="math_number" id="6SngEf*5mXwZ4$@4nnte">
<field name="NUM">1</field>
</shadow>
<block type="math_number" id="~e-p(}gkWs[F/4_[Gb[e">
<field name="NUM">1</field>
</block>
</value>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="timeouts_clearinterval" id="T|AATMea7~!Ea.}Q4D[I">
<field name="NAME">AQ-Mittagspause-Ende</field>
</block>
</statement>
</block>
</statement>
</block>
</statement>
<next>
<block type="schedule" id="Lgepz?9v@t=me[},!8Tt">
<field name="SCHEDULE">5 19 * * *</field>
<statement name="STATEMENT">
<block type="timeouts_setinterval" id="M?_2hr}}HAVEQ-LwFS,z">
<field name="NAME">AQ-Stop</field>
<field name="INTERVAL">3</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="controls_if" id="u6B~$2-p%/_RnNlaKZVM">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="b`|tiPVjcUQv)%8l@h^t">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="o#VT!3Ze.6]_;E!ao0G*">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.AQ-Lampe-Flur.Dimmer</field>
</block>
</value>
<value name="B">
<block type="math_number" id="%-UKtpjab_!S.|3j6sdY">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="w+LNFETN#Vy]2n1)`cM@">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
<field name="OID">sonoff.0.AQ-Lampe-Flur.Dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="Ws5ViAPhz^gWx^6B^Vsr">
<field name="TEXT">50</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="timeouts_clearinterval" id="zX6x~Fa`W,-Y;y2aUFIz">
<field name="NAME">AQ-Stop</field>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>
Gesteuert wird über den Sonoff Adapter einen H801. Die Werte werden in Sonoff Adapter nicht aktualisiert.
Die Zeitzone habe ich angepasst.
pi@raspberrypi:~ $ date
Sa 14. Aug 11:11:00 CEST 2021
Habe das Skript neu angelegt jetzt funktioniert es derzeit