NEWS
[gelöst] Intervall alle 10 sek für X min
-
Hallo,
ich habe heute einen meiner Wassersensoren bekommen, und wenn es jetzt ein leck gibt, soll er für z.B. 5 min alle sek eine Ansage machen, und einmalig ein Telegramm verschicken. Ich habe nun eine ganze Weile grtüftelt, aber mit intervall und timeout Blöcken vertrage ich mich immer noch nicht. So sieht es aus, ohne Intervall und Time out.
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="on_ext" id="+]N.Ojx|Fa,})u|q,|g=" x="213" y="38"> <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="4+T3s??~z)iskA(!jv%0"> <field name="oid">mihome.0.devices.sensor_wleak_aq1_158d0004600610.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="ogT@9PQR~c;du)U;y5?A"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id=",i@T!zN=8i8SOY(JZjRy"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="k+!H)8|m7{]44v(`lXgl"> <field name="ATTR">val</field> <field name="OID">mihome.0.devices.sensor_wleak_aq1_158d0004600610.state</field> </block> </value> <value name="B"> <block type="logic_boolean" id="^xt+ec@x)*?o`@+uKra("> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="telegram" id="9JU8)6%9Rn)5qnzomvdk"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="AY4c-BJsbY-2EayVBa@q"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="Ma9K[*W[lW!EY/?SU`ej"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id=")hPFPsa!@usiya%ku/eB"> <field name="TEXT">ACHTUNG</field> </block> </value> <value name="ADD1"> <block type="text" id="3;qgyqPY+jEmU0]LM#?q"> <field name="TEXT"></field> </block> </value> <value name="ADD2"> <block type="text" id="jxtM?Ew;B4T;g]J?dc(o"> <field name="TEXT">Wasser unter Geschirrspüler</field> </block> </value> </block> </value> <next> <block type="control" id="M_.mF0Le.RG1[IVv3^UP"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.31c4fa66e30f46c2b6ff5e85881d5b7c.Commands.speak</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text_join" id="Q)pCn46h]D1l;rAf84gt"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id=",O?9Zy|73CPiIaBIUX|_"> <field name="TEXT">ACHTUNG</field> </block> </value> <value name="ADD1"> <block type="text" id="+%u0V+b?pJ:o9_S9S)T="> <field name="TEXT">Wasser unter Geschirrspüler</field> </block> </value> </block> </value> <next> <block type="control" id=".zUz$Og4DyDif{F{~9Xu"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G000WV059032062L.Commands.announcement</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text_join" id="U71MSp3RU)FYB9d2M_11"> <mutation items="3"></mutation> <value name="ADD0"> <block type="text" id=":49_pU$u{/Vl^*ijveOF"> <field name="TEXT">ACHTUNG</field> </block> </value> <value name="ADD1"> <block type="text" id="}Z1eT|_.qgNYU-_(QZZE"> <field name="TEXT"></field> </block> </value> <value name="ADD2"> <block type="text" id="ZP|E:sdH6SCOeK9])w^["> <field name="TEXT">Wasser unter Geschirrspüler</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </xml>
Wie müssten die Blöcke timeout und Intervall eingebaut werden, damit das funktioniert?
Vielen Dank
-
@AxelF1977 sagte:
5 min alle sek eine Ansage machen, und einmalig ein Telegramm verschicken.
Die erste Ansage kommt mit 10 s Verzögerung.
-
@paul53, wahnsinn, wäre ich nie drauf gekommen.
DANKE!