Hallo zusammen,
ich habe mir ein kleines Blockly gemacht, was mich informieren soll wenn die Wäsche fertig ist.
Getriggert wird sobald sich der Wert von HM-ES-PMxxxx ändert.
Dabei handelt es sich um den HOMEMATIC 130248 Funk-Schaltaktor mit Leistungsmessung.
Der Wert von HM-ES-PMxxxx beinhaltet mA der sich ständig verändert wenn die Maschine am waschen ist.
Ist sie fertig, bleibt er unter 40 stehen.
Das Problem ist, das er zwischendurch auch unter 40 ist und dann erhalte ich die Meldung das die Wäsche fertig sei.
Ich brauche etwas, was ca. 2 Minuten dauert und wenn dann der Wert immer noch unter 40 ist bekomme ich die Meldung.
Mit dem Timeout klappt es nicht.
Gruß
https://share-your-photo.com/59d0b82911
Code
<block xmlns="http://www.w3.org/1999/xhtml" type="on" id="M-XsLUvo)sU)tBX3{l-k" x="-275" y="-411">
<field name="OID">hm-rpc.0.NEQ0400150.2.CURRENT</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="timeouts_cleartimeout" id="ZWYXEySHGYQ+dIa;cRWu">
<field name="NAME">timeout</field>
<next>
<block type="timeouts_settimeout" id=";%D!u?{uS7#vy7igu#V?">
<field name="NAME">timeout</field>
<field name="DELAY">2</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="controls_if" id="MGcS!Rn=xNkO|fLDXDhM">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="nRu07OND}3*t%nBliJ{+">
<field name="OP">LTE</field>
<value name="A">
<block type="get_value" id="bmSWti2P9E:Fg|H2}`x-">
<field name="ATTR">val</field>
<field name="OID">hm-rpc.0.NEQ0400150.2.CURRENT</field>
</block>
</value>
<value name="B">
<block type="math_number" id="]W.TzZ`TQ]D[osic/v4g">
<field name="NUM">40</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="3WS0~DZ%O_Am8VfOld}V">
<mutation delay_input="false"></mutation>
<field name="OID">achim.0.Waschmaschine-aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="2XFd#x_NMBQb9HCTT)]Z">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="sayit" id="QHdm;3y80Fb-9Gj_@l+f">
<field name="INSTANCE">.1</field>
<field name="LANGUAGE"></field>
<field name="LOG"></field>
<value name="MESSAGE">
<shadow type="text" id="!]42h4zc4wEitpa_H=,G">
<field name="TEXT">Die Wäsche ist fertig</field>
</shadow>
</value>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="control" id="9o0SP[v:Ynsg;9Gn4z}C">
<mutation delay_input="false"></mutation>
<field name="OID">achim.0.Waschmaschine-aus</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="tB+Tp|cxy=xof~ZsaIfX">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</statement>
</block>
Alles anzeigen