NEWS
[gelöst] falls/ sonst erst nach x sek. ausführen
-
Hi,
ich habe folgendes kleines Blockly, mit dem eine Steckdose auf an oder aus geschaltet wird, wenn mein Verstärker an ist und ein bestimmter Eingang gewählt ist. Der Sky Receiver frisst mit im Standby zu viel Strom. Also soll er erst angehen, wenn der Verstäker es sagt.
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="on_ext" id="ODSr!AJFh*{lioMdDpir" x="-87" y="-712"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="~^fjQL|V5,U9(q19}cMu"> <field name="oid">denon.0.settings.powerSystem</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="4cWK9e~~p2MQ2O4;m:Ov"> <field name="oid">denon.0.zoneMain.selectInput</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="GTif:no$?7NkZM?7yjun"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="C%#k4H/TTGk3xS3|0q$w" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="S[71y;CiTbX2lV.hd0r1"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="]u80)|TwVoB#HtiyPr,Q"> <field name="ATTR">val</field> <field name="OID">denon.0.settings.powerSystem</field> </block> </value> <value name="B"> <block type="logic_boolean" id="wa(V/^!Kj4KcV#]J8L2,"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="seL7Z8P6It+.`j7!=MOT" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="*ttalNM#4G6c8Eflr3R`"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="m(?}In`YmL=NU8Y8n8Yx"> <field name="ATTR">val</field> <field name="OID">denon.0.zoneMain.selectInput</field> </block> </value> <value name="B"> <block type="text" id="S,4[3*}cIm$~@|8{@72@"> <field name="TEXT">DVD</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Riux!ki/::CJZs:niAIb"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="2y^ab%X,~l]~e.GuF9q-"> <field name="ATTR">val</field> <field name="OID">sonoff.0.DVES_TASMOTA-16.POWER</field> </block> </value> <value name="B"> <block type="logic_boolean" id="dx%~IpI?PQQJ5D;1]pKy"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="T21{ocTdW?,sq-EDTTO]"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.DVES_TASMOTA-16.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="XOENyIr`zmSZ$S5.LG}P"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="control" id="bO!2`TqD]O4om!=oWrI/"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.DVES_TASMOTA-16.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="N65f(?q.%A[18h6PKW+q"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </statement> </block> </xml>
Jetzt soll das Script erst nach z.B. 10 sek. die Dose einschalten. Denn wenn meine Frau was am Verstärtker hören will, dreht sie sich durch die Eingänge. Wenn sie nun kurz bei Sky anhält, und dann weiter dreht, dann geht die Dose an und wieder aus. So will ich verhindern dass das passiert. Aber bei den Timeout Blöcken stelle ich mich zu blöde an, und es funktioniert nicht.
Daher hoffe ich hier auf einen Lösungsvorschlag.
Danke
-
@AxelF1977 sagte:
Lösungsvorschlag.
-
@paul53 sagte in falls/ sonst erst nach x sek. ausführen:
@AxelF1977 sagte:
Lösungsvorschlag.
Danke Dir.
Funktioniert wie gehofft! Keine Ahnung warum ich mir da so die Karten gelegt habe... Wieder was gelernt
-
@AxelF1977 sagte:
Funktioniert wie gehofft!
Dann bitte das Thema in der Überschrift des ersten Beitrags als [gelöst] markieren.