@altersrentner sagte: Könnte das so funktionieren?
Nein: Schon wieder Trigger innerhalb eines Triggers und außerdem noch innerhalb eines Intervalls! Das ist tödlich.
Vorschlag:
Export
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable type="timeout" id="timeout">timeout</variable>
</variables>
<block type="comment" id="F5Q6|=*)yVJV4KlLNPa2" x="112" y="566">
<field name="COMMENT">Power</field>
<next>
<block type="on_ext" id="nKA|vAE/~)(`Rt+SGX*(">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="R})PtwnN1oLnwE5JRb+%">
<field name="oid">default</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="1JvF97p0+u_YNvizg%^w">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="8Zt:%~iOhnnxp{@rn_40">
<field name="OP">GT</field>
<value name="A">
<block type="on_source" id="JJZ=0cD-!wsR%c9zi}x^">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="hx:BHJdL|3E%i@z^-)t_">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="*V0d`jBXsfno0gb{Ytcn">
<field name="NAME">timeout</field>
</block>
</statement>
<value name="IF1">
<block type="logic_negate" id="[6Jw|I3`DY+vyz{5w{,@">
<value name="BOOL">
<block type="variables_get" id="gp{W8DYhwk!9%lNqU5f-">
<field name="VAR" id="timeout" variabletype="timeout">timeout</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="dTKT42a^n.E.=*`HcP(I">
<field name="NAME">timeout</field>
<field name="DELAY">1</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="yh7@iQ5KVS[X#]V%85N0">
<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="Si+[[v_bSp6*Vn(wn^ux">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="update" id="4u;3;~?3VZK2$8})_-8=">
<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="Rd!d?TyA5f+wd(2aE`}T">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
<block type="comment" id="{_Ao/xgs)~PBtd{y$61!" x="638" y="813">
<field name="COMMENT">Switch</field>
<next>
<block type="comment" id="7Bco.*Xu(fI#61fV|xUx">
<field name="COMMENT">Geschirrspüler_An</field>
</block>
</next>
</block>
</xml>
@paul53 so besser?
@paul53 so besser?
@altersrentner sagte: so besser?
Nicht wirklich. Siehe hier
@altersrentner sagte: Könnte das so funktionieren?
Nein: Schon wieder Trigger innerhalb eines Triggers und außerdem noch innerhalb eines Intervalls! Das ist tödlich.
Vorschlag:
Export
<xml xmlns="https://developers.google.com/blockly/xml">
<variables>
<variable type="timeout" id="timeout">timeout</variable>
</variables>
<block type="comment" id="F5Q6|=*)yVJV4KlLNPa2" x="112" y="566">
<field name="COMMENT">Power</field>
<next>
<block type="on_ext" id="nKA|vAE/~)(`Rt+SGX*(">
<mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="R})PtwnN1oLnwE5JRb+%">
<field name="oid">default</field>
</shadow>
</value>
<statement name="STATEMENT">
<block type="controls_if" id="1JvF97p0+u_YNvizg%^w">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="8Zt:%~iOhnnxp{@rn_40">
<field name="OP">GT</field>
<value name="A">
<block type="on_source" id="JJZ=0cD-!wsR%c9zi}x^">
<field name="ATTR">state.val</field>
</block>
</value>
<value name="B">
<block type="math_number" id="hx:BHJdL|3E%i@z^-)t_">
<field name="NUM">3</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="timeouts_cleartimeout" id="*V0d`jBXsfno0gb{Ytcn">
<field name="NAME">timeout</field>
</block>
</statement>
<value name="IF1">
<block type="logic_negate" id="[6Jw|I3`DY+vyz{5w{,@">
<value name="BOOL">
<block type="variables_get" id="gp{W8DYhwk!9%lNqU5f-">
<field name="VAR" id="timeout" variabletype="timeout">timeout</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="timeouts_settimeout" id="dTKT42a^n.E.=*`HcP(I">
<field name="NAME">timeout</field>
<field name="DELAY">1</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="yh7@iQ5KVS[X#]V%85N0">
<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="Si+[[v_bSp6*Vn(wn^ux">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="update" id="4u;3;~?3VZK2$8})_-8=">
<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="Rd!d?TyA5f+wd(2aE`}T">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
<block type="comment" id="{_Ao/xgs)~PBtd{y$61!" x="638" y="813">
<field name="COMMENT">Switch</field>
<next>
<block type="comment" id="7Bco.*Xu(fI#61fV|xUx">
<field name="COMMENT">Geschirrspüler_An</field>
</block>
</next>
</block>
</xml>
@paul53 Danke!
Wünsche ein schönes Wochenende
Mit freundlichen Grüßen
Michael
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren
Anmelden