Erst einmal hallo an alle. Ich habe das mit der Überwachung der des Zeitraums mit einem eigenen kleinen Skript und einer "Hilfsvariable" gelöst. Es funktioniert nun seit einigen Tagen sehr zuverlässing und ich hatte noch kein einzigen Fehlalarm.
Das Update in der Tasmotaoberfläche habe ich auf 30 gestellt. Bei meinem Script habe ich eine Verzögerung von höchstes Fünf Minuten drin, kann aber jederzeit im Script geändert werden.schimmer-media.de/index.php?attachment/975/schimmer-media.de/index.php?attachment/976/
Code
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on_ext" id="+A7wlutQO8gBfqosc.y3" x="-862" y="-287">
<mutation items="1"></mutation>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="L[i=p{|ii-ai*/YAZ@8s">
<field name="oid">sonoff.0.Sonoff-POW-Trockner.ENERGY_Power</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="V6]e:v6u:?I_dnQ6L_VO">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="YL]^MiM0C_d90EjXd7qr">
<field name="OP">GT</field>
<value name="A">
<block type="get_value" id="yM=9zWrslsViHeXAVGm6">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.Sonoff-POW-Trockner.ENERGY_Power</field>
</block>
</value>
<value name="B">
<block type="text" id="H=g~S*6(?G/uCr~jDdCp">
<field name="TEXT">30</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="vs.J|^}}{M%%SJ1bpk;V">
<mutation delay_input="false"></mutation>
<field name="OID">#Variablen.0.Status_Trockner_live</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="gvfoVV5t!!Us3^C~!w.H">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="math_change" id="SBLh=Mim:mdbdPJ2brk;">
<field name="VAR">AN Zähler</field>
<value name="DELTA">
<shadow type="math_number" id="_bAFr8Rp.jsiM{Zq32rY">
<field name="NUM">1</field>
</shadow>
</value>
<next>
<block type="variables_set" id="f0%C@g}jpwap#+s/Mo:N">
<field name="VAR">AUS Zähler</field>
<value name="VALUE">
<block type="math_number" id=")OvYfgj9cZ3]4:l~~Bb/">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="M~uV)}gj0R1:#*W8;u|_">
<field name="OP">LT</field>
<value name="A">
<block type="get_value" id=";C4ZX5Zy!7cKvi8im7j~">
<field name="ATTR">val</field>
<field name="OID">sonoff.0.Sonoff-POW-Trockner.ENERGY_Power</field>
</block>
</value>
<value name="B">
<block type="text" id="qZr5=RgO[|.`JAG]=%:e">
<field name="TEXT">5</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="control" id="W@d-F3O_9HHWW#dCNkL=">
<mutation delay_input="false"></mutation>
<field name="OID">#Variablen.0.Status_Trockner_live</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="A4H}`x`xaT~u.qw:OMjO">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="math_change" id="T.un5=.rdLl@woGn*4oJ">
<field name="VAR">AUS Zähler</field>
<value name="DELTA">
<shadow type="math_number" id="?c=pXLOc61v3AJP.(d:k">
<field name="NUM">1</field>
</shadow>
</value>
<next>
<block type="variables_set" id="]sQWt%s!E]?x=9/rY9s:">
<field name="VAR">AN Zähler</field>
<value name="VALUE">
<block type="math_number" id="k8~=Zl/`C|mA7b1LP*G=">
<field name="NUM">0</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<next>
<block type="controls_if" id="Fka;*|t}*-`SbqlH][O,">
<value name="IF0">
<block type="logic_compare" id="uvt{b:m0eZ!HIW|y{n=r">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="HW4-I|q*E8@T~3ORlH[6">
<field name="VAR">AN Zähler</field>
</block>
</value>
<value name="B">
<block type="math_number" id="7~MaZ@N]YyRp/S(nLXL.">
<field name="NUM">10</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="NHU;{f_J~TBqrHlE+l}U">
<mutation delay_input="false"></mutation>
<field name="OID">#Variablen.0.Status_Trockner</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="NtK/XV38`3~}(+l-P,O4">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="debug" id=".Sgt+REZye}Y_1SUpu-w">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="(=rDMpTQYJW]8^f^ff1)">
<field name="TEXT">Trockner AN</field>
</shadow>
</value>
</block>
</next>
</block>
</statement>
<next>
<block type="controls_if" id="I5G5,xEQ9|pglEcLrxmF">
<value name="IF0">
<block type="logic_compare" id="%AbMO?J2D[f-rCEWyq=O">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get" id="u5FZNsypgs:pPUYsV1=g">
<field name="VAR">AUS Zähler</field>
</block>
</value>
<value name="B">
<block type="math_number" id="uaHP[P3wt-!h@M!UE]eX">
<field name="NUM">10</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="sj0ZAG=ELQ-|XeWmtEg3">
<mutation delay_input="false"></mutation>
<field name="OID">#Variablen.0.Status_Trockner</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="eX|Bf{oW+%BAW.Y:)kbK">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="debug" id="n6tOdqoNC2Az|o..y!1C">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="k,uQ:J_7[mNg*o^my|+?">
<field name="TEXT">Trockner AUS</field>
</shadow>
</value>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
Alles anzeigen