NEWS
(gelöst) eine Aktion nach einer Zeit ausführen
-
Hallo Freunde,
ich habe noch etwas ich möchte das eine Aktion erst nach eine bestimmte Zeit (6 sek) ausgeführt wird falls der Wert Stop dann noch stimmt,ansonnsten soll diese Aktion nicht ausgeführt werden.
Wie kann man das realisieren?

-
Hallo Freunde,
ich habe noch etwas ich möchte das eine Aktion erst nach eine bestimmte Zeit (6 sek) ausgeführt wird falls der Wert Stop dann noch stimmt,ansonnsten soll diese Aktion nicht ausgeführt werden.
Wie kann man das realisieren?

-
@paul53
werde ich dann probieren das wäre ja toll. -
-
@paul53
das Script wird nach 6 Sekunden trotzdem ausgeführt

Ich lege mal das ganze Skript mit bei.<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="undefined" id="timeout">timeout</variable> </variables> <block type="on_ext" id=")^U#Op#[o;Y=[chkuig9" x="-337" y="-162"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="=MV8NCQfEw?)uv+I7;JK"> <field name="oid">kodi.0.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id=",9_Nr-P-{%Fd+Tc0-=Nu"> <mutation elseif="2" else="1"></mutation> <value name="IF0"> <block type="logic_compare" id=";_i]cfZdrmL/qXWB6PuO"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="05hB:}da}@CQX_^vBlC@"> <field name="ATTR">val</field> <field name="OID">kodi.0.state</field> </block> </value> <value name="B"> <block type="text" id=".XpJFW9d}.;,|@XF~5Q:"> <field name="TEXT">play</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="-bW3=KVu3vdlqU2aX)=n"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff-Schrankwand.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="HlyW/,NN*]S[gwa+`oUp"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="{GEg)0Ml(3~/NdGsJnE="> <mutation delay_input="true"></mutation> <field name="OID">lightify.0.96B4DA0000261884.on</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="j7~ICoLk);iS7chyWp#T"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="n,Ew/dp@wd2ARXK6.SxY"> <mutation delay_input="true"></mutation> <field name="OID">onkyo.0.Zone1.Volume</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="d0qb-5nwZ!ej0g9%@3PP"> <field name="NUM">41</field> </block> </value> <next> <block type="control" id="Zzo:sY+@;EFzIR30pdn%"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="ZtO6^~.alKx*i6|N~gvZ"> <field name="NUM">1</field> </block> </value> <next> <block type="control" id="l.q.9bJPg,`VA-Ju@UHb"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="BQmVC,FCu#dw7}BheCX+"> <field name="NUM">1</field> </block> </value> <next> <block type="control" id="lZkUHOXsA@iQsPkE.sF3"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">8</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Q+cV)e%X@d7EOE8cx9Wq"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="hD]:P50.i?ywAAEUpw0y"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">8</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="XIwr6t@JkH8BtO`!OlR8"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="L4#aR-t265FcF~{V-=z}"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="k)S4{9LhWhh7i(zgpcAX"> <field name="ATTR">val</field> <field name="OID">kodi.0.state</field> </block> </value> <value name="B"> <block type="text" id="u%liIIv78{-{B/t[kHwD"> <field name="TEXT">pause</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="?qyo2f}a8H?/+o?c|g4="> <mutation delay_input="false"></mutation> <field name="OID">onkyo.0.Zone1.Volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="-Qnd[tHOYR76^0wOY~7p"> <field name="NUM">20</field> </block> </value> <next> <block type="control" id="#E;yx;iHjG_E+FH;g0%z"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="#9ss|SZefcOBRFZC2_X8"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="*4N:KDr6.bW,o*45e_A|"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="odZd[MAx4CI:v203!Zq4"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="YS?!}nX#p1PXCl5kt1^#"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="6[tQ[e%dRUv[j2FpO@d4"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="Ycp]|)fUwJF7cHdiC5jJ"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="`EzeaI`O`0lf-4v0{os9"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_compare" id="pLmOMKPiWB|{VpCz8-1U"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="FVUcHy,!FMnH)#,#p[A("> <field name="ATTR">val</field> <field name="OID">kodi.0.state</field> </block> </value> <value name="B"> <block type="text" id="ZTI-J3/|^I-5#QhSKG1t"> <field name="TEXT">stop</field> </block> </value> </block> </value> <statement name="DO2"> <block type="timeouts_settimeout" id="OvnwUoS@a.ev/9WARJX7"> <field name="NAME">timeout</field> <field name="DELAY">6</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="WhsWLu2omtF*Y8xsF*`@"> <mutation delay_input="false"></mutation> <field name="OID">onkyo-vis-dev.0.Zone1.Volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Zu/+#DHiEA1[EYXnmE.^"> <field name="NUM">20</field> </block> </value> <next> <block type="control" id="[Qp)M!a|p:G}55K|zwxC"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="/|q9u4=xm.I`R/#%!L2I"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="E)MBR);MOzQEs#v!%;~N"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="6}9T0m*Ct07J^)T..u)["> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="jE0Fs#QKRcQbc~Hqz_mZ"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="^E]pfz(LcF!CYR5Z!Fin"> <field name="NUM">100</field> </block> </value> <next> <block type="control" id="!/S?4L-B(a}.X1GE5UH3"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="MemkoCGutF=-zRx/5=Iu"> <field name="NUM">100</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="timeouts_cleartimeout" id="LRW1no=YM6C0`{MJY_8o"> <field name="NAME">timeout</field> </block> </statement> </block> </statement> </block> </xml> -
@paul53
das Script wird nach 6 Sekunden trotzdem ausgeführt

Ich lege mal das ganze Skript mit bei.<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="undefined" id="timeout">timeout</variable> </variables> <block type="on_ext" id=")^U#Op#[o;Y=[chkuig9" x="-337" y="-162"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="=MV8NCQfEw?)uv+I7;JK"> <field name="oid">kodi.0.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id=",9_Nr-P-{%Fd+Tc0-=Nu"> <mutation elseif="2" else="1"></mutation> <value name="IF0"> <block type="logic_compare" id=";_i]cfZdrmL/qXWB6PuO"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="05hB:}da}@CQX_^vBlC@"> <field name="ATTR">val</field> <field name="OID">kodi.0.state</field> </block> </value> <value name="B"> <block type="text" id=".XpJFW9d}.;,|@XF~5Q:"> <field name="TEXT">play</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="-bW3=KVu3vdlqU2aX)=n"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff-Schrankwand.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="HlyW/,NN*]S[gwa+`oUp"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="{GEg)0Ml(3~/NdGsJnE="> <mutation delay_input="true"></mutation> <field name="OID">lightify.0.96B4DA0000261884.on</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="j7~ICoLk);iS7chyWp#T"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="n,Ew/dp@wd2ARXK6.SxY"> <mutation delay_input="true"></mutation> <field name="OID">onkyo.0.Zone1.Volume</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="d0qb-5nwZ!ej0g9%@3PP"> <field name="NUM">41</field> </block> </value> <next> <block type="control" id="Zzo:sY+@;EFzIR30pdn%"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="ZtO6^~.alKx*i6|N~gvZ"> <field name="NUM">1</field> </block> </value> <next> <block type="control" id="l.q.9bJPg,`VA-Ju@UHb"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="BQmVC,FCu#dw7}BheCX+"> <field name="NUM">1</field> </block> </value> <next> <block type="control" id="lZkUHOXsA@iQsPkE.sF3"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">8</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Q+cV)e%X@d7EOE8cx9Wq"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="hD]:P50.i?ywAAEUpw0y"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">8</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="XIwr6t@JkH8BtO`!OlR8"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="L4#aR-t265FcF~{V-=z}"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="k)S4{9LhWhh7i(zgpcAX"> <field name="ATTR">val</field> <field name="OID">kodi.0.state</field> </block> </value> <value name="B"> <block type="text" id="u%liIIv78{-{B/t[kHwD"> <field name="TEXT">pause</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="?qyo2f}a8H?/+o?c|g4="> <mutation delay_input="false"></mutation> <field name="OID">onkyo.0.Zone1.Volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="-Qnd[tHOYR76^0wOY~7p"> <field name="NUM">20</field> </block> </value> <next> <block type="control" id="#E;yx;iHjG_E+FH;g0%z"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="#9ss|SZefcOBRFZC2_X8"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="*4N:KDr6.bW,o*45e_A|"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="odZd[MAx4CI:v203!Zq4"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="YS?!}nX#p1PXCl5kt1^#"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="6[tQ[e%dRUv[j2FpO@d4"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="Ycp]|)fUwJF7cHdiC5jJ"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="`EzeaI`O`0lf-4v0{os9"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_compare" id="pLmOMKPiWB|{VpCz8-1U"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="FVUcHy,!FMnH)#,#p[A("> <field name="ATTR">val</field> <field name="OID">kodi.0.state</field> </block> </value> <value name="B"> <block type="text" id="ZTI-J3/|^I-5#QhSKG1t"> <field name="TEXT">stop</field> </block> </value> </block> </value> <statement name="DO2"> <block type="timeouts_settimeout" id="OvnwUoS@a.ev/9WARJX7"> <field name="NAME">timeout</field> <field name="DELAY">6</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="WhsWLu2omtF*Y8xsF*`@"> <mutation delay_input="false"></mutation> <field name="OID">onkyo-vis-dev.0.Zone1.Volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Zu/+#DHiEA1[EYXnmE.^"> <field name="NUM">20</field> </block> </value> <next> <block type="control" id="[Qp)M!a|p:G}55K|zwxC"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="/|q9u4=xm.I`R/#%!L2I"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="E)MBR);MOzQEs#v!%;~N"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="6}9T0m*Ct07J^)T..u)["> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="jE0Fs#QKRcQbc~Hqz_mZ"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="^E]pfz(LcF!CYR5Z!Fin"> <field name="NUM">100</field> </block> </value> <next> <block type="control" id="!/S?4L-B(a}.X1GE5UH3"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="MemkoCGutF=-zRx/5=Iu"> <field name="NUM">100</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="timeouts_cleartimeout" id="LRW1no=YM6C0`{MJY_8o"> <field name="NAME">timeout</field> </block> </statement> </block> </statement> </block> </xml>@ostseereiter Du hast die Elemente ja auch nach wie vor in dein sonstiges Script eingefügt.
Der Bereich sollte mit einem eigenen Trigger separat stehen -
@ostseereiter Du hast die Elemente ja auch nach wie vor in dein sonstiges Script eingefügt.
Der Bereich sollte mit einem eigenen Trigger separat stehen -
@paul53
das Script wird nach 6 Sekunden trotzdem ausgeführt

Ich lege mal das ganze Skript mit bei.<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="undefined" id="timeout">timeout</variable> </variables> <block type="on_ext" id=")^U#Op#[o;Y=[chkuig9" x="-337" y="-162"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="=MV8NCQfEw?)uv+I7;JK"> <field name="oid">kodi.0.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id=",9_Nr-P-{%Fd+Tc0-=Nu"> <mutation elseif="2" else="1"></mutation> <value name="IF0"> <block type="logic_compare" id=";_i]cfZdrmL/qXWB6PuO"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="05hB:}da}@CQX_^vBlC@"> <field name="ATTR">val</field> <field name="OID">kodi.0.state</field> </block> </value> <value name="B"> <block type="text" id=".XpJFW9d}.;,|@XF~5Q:"> <field name="TEXT">play</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="-bW3=KVu3vdlqU2aX)=n"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff-Schrankwand.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="HlyW/,NN*]S[gwa+`oUp"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="{GEg)0Ml(3~/NdGsJnE="> <mutation delay_input="true"></mutation> <field name="OID">lightify.0.96B4DA0000261884.on</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="j7~ICoLk);iS7chyWp#T"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="n,Ew/dp@wd2ARXK6.SxY"> <mutation delay_input="true"></mutation> <field name="OID">onkyo.0.Zone1.Volume</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="d0qb-5nwZ!ej0g9%@3PP"> <field name="NUM">41</field> </block> </value> <next> <block type="control" id="Zzo:sY+@;EFzIR30pdn%"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="ZtO6^~.alKx*i6|N~gvZ"> <field name="NUM">1</field> </block> </value> <next> <block type="control" id="l.q.9bJPg,`VA-Ju@UHb"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="BQmVC,FCu#dw7}BheCX+"> <field name="NUM">1</field> </block> </value> <next> <block type="control" id="lZkUHOXsA@iQsPkE.sF3"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">8</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Q+cV)e%X@d7EOE8cx9Wq"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="hD]:P50.i?ywAAEUpw0y"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">8</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="XIwr6t@JkH8BtO`!OlR8"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="L4#aR-t265FcF~{V-=z}"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="k)S4{9LhWhh7i(zgpcAX"> <field name="ATTR">val</field> <field name="OID">kodi.0.state</field> </block> </value> <value name="B"> <block type="text" id="u%liIIv78{-{B/t[kHwD"> <field name="TEXT">pause</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="?qyo2f}a8H?/+o?c|g4="> <mutation delay_input="false"></mutation> <field name="OID">onkyo.0.Zone1.Volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="-Qnd[tHOYR76^0wOY~7p"> <field name="NUM">20</field> </block> </value> <next> <block type="control" id="#E;yx;iHjG_E+FH;g0%z"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="#9ss|SZefcOBRFZC2_X8"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="*4N:KDr6.bW,o*45e_A|"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="odZd[MAx4CI:v203!Zq4"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="YS?!}nX#p1PXCl5kt1^#"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="6[tQ[e%dRUv[j2FpO@d4"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="Ycp]|)fUwJF7cHdiC5jJ"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="`EzeaI`O`0lf-4v0{os9"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_compare" id="pLmOMKPiWB|{VpCz8-1U"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="FVUcHy,!FMnH)#,#p[A("> <field name="ATTR">val</field> <field name="OID">kodi.0.state</field> </block> </value> <value name="B"> <block type="text" id="ZTI-J3/|^I-5#QhSKG1t"> <field name="TEXT">stop</field> </block> </value> </block> </value> <statement name="DO2"> <block type="timeouts_settimeout" id="OvnwUoS@a.ev/9WARJX7"> <field name="NAME">timeout</field> <field name="DELAY">6</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="WhsWLu2omtF*Y8xsF*`@"> <mutation delay_input="false"></mutation> <field name="OID">onkyo-vis-dev.0.Zone1.Volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Zu/+#DHiEA1[EYXnmE.^"> <field name="NUM">20</field> </block> </value> <next> <block type="control" id="[Qp)M!a|p:G}55K|zwxC"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="/|q9u4=xm.I`R/#%!L2I"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="E)MBR);MOzQEs#v!%;~N"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="6}9T0m*Ct07J^)T..u)["> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="jE0Fs#QKRcQbc~Hqz_mZ"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="^E]pfz(LcF!CYR5Z!Fin"> <field name="NUM">100</field> </block> </value> <next> <block type="control" id="!/S?4L-B(a}.X1GE5UH3"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="MemkoCGutF=-zRx/5=Iu"> <field name="NUM">100</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="timeouts_cleartimeout" id="LRW1no=YM6C0`{MJY_8o"> <field name="NAME">timeout</field> </block> </statement> </block> </statement> </block> </xml> -
@paul53
das Script wird nach 6 Sekunden trotzdem ausgeführt

Ich lege mal das ganze Skript mit bei.<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="undefined" id="timeout">timeout</variable> </variables> <block type="on_ext" id=")^U#Op#[o;Y=[chkuig9" x="-337" y="-162"> <mutation items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="=MV8NCQfEw?)uv+I7;JK"> <field name="oid">kodi.0.state</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id=",9_Nr-P-{%Fd+Tc0-=Nu"> <mutation elseif="2" else="1"></mutation> <value name="IF0"> <block type="logic_compare" id=";_i]cfZdrmL/qXWB6PuO"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="05hB:}da}@CQX_^vBlC@"> <field name="ATTR">val</field> <field name="OID">kodi.0.state</field> </block> </value> <value name="B"> <block type="text" id=".XpJFW9d}.;,|@XF~5Q:"> <field name="TEXT">play</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="-bW3=KVu3vdlqU2aX)=n"> <mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff-Schrankwand.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="HlyW/,NN*]S[gwa+`oUp"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="{GEg)0Ml(3~/NdGsJnE="> <mutation delay_input="true"></mutation> <field name="OID">lightify.0.96B4DA0000261884.on</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="j7~ICoLk);iS7chyWp#T"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="n,Ew/dp@wd2ARXK6.SxY"> <mutation delay_input="true"></mutation> <field name="OID">onkyo.0.Zone1.Volume</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="d0qb-5nwZ!ej0g9%@3PP"> <field name="NUM">41</field> </block> </value> <next> <block type="control" id="Zzo:sY+@;EFzIR30pdn%"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="ZtO6^~.alKx*i6|N~gvZ"> <field name="NUM">1</field> </block> </value> <next> <block type="control" id="l.q.9bJPg,`VA-Ju@UHb"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="math_number" id="BQmVC,FCu#dw7}BheCX+"> <field name="NUM">1</field> </block> </value> <next> <block type="control" id="lZkUHOXsA@iQsPkE.sF3"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">8</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Q+cV)e%X@d7EOE8cx9Wq"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="hD]:P50.i?ywAAEUpw0y"> <mutation delay_input="true"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">8</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="XIwr6t@JkH8BtO`!OlR8"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_compare" id="L4#aR-t265FcF~{V-=z}"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="k)S4{9LhWhh7i(zgpcAX"> <field name="ATTR">val</field> <field name="OID">kodi.0.state</field> </block> </value> <value name="B"> <block type="text" id="u%liIIv78{-{B/t[kHwD"> <field name="TEXT">pause</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="?qyo2f}a8H?/+o?c|g4="> <mutation delay_input="false"></mutation> <field name="OID">onkyo.0.Zone1.Volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="-Qnd[tHOYR76^0wOY~7p"> <field name="NUM">20</field> </block> </value> <next> <block type="control" id="#E;yx;iHjG_E+FH;g0%z"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="#9ss|SZefcOBRFZC2_X8"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="*4N:KDr6.bW,o*45e_A|"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="odZd[MAx4CI:v203!Zq4"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="YS?!}nX#p1PXCl5kt1^#"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="6[tQ[e%dRUv[j2FpO@d4"> <field name="NUM">50</field> </block> </value> <next> <block type="control" id="Ycp]|)fUwJF7cHdiC5jJ"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="`EzeaI`O`0lf-4v0{os9"> <field name="NUM">50</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_compare" id="pLmOMKPiWB|{VpCz8-1U"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="FVUcHy,!FMnH)#,#p[A("> <field name="ATTR">val</field> <field name="OID">kodi.0.state</field> </block> </value> <value name="B"> <block type="text" id="ZTI-J3/|^I-5#QhSKG1t"> <field name="TEXT">stop</field> </block> </value> </block> </value> <statement name="DO2"> <block type="timeouts_settimeout" id="OvnwUoS@a.ev/9WARJX7"> <field name="NAME">timeout</field> <field name="DELAY">6</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id="WhsWLu2omtF*Y8xsF*`@"> <mutation delay_input="false"></mutation> <field name="OID">onkyo-vis-dev.0.Zone1.Volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Zu/+#DHiEA1[EYXnmE.^"> <field name="NUM">20</field> </block> </value> <next> <block type="control" id="[Qp)M!a|p:G}55K|zwxC"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="/|q9u4=xm.I`R/#%!L2I"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="E)MBR);MOzQEs#v!%;~N"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.power</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="6}9T0m*Ct07J^)T..u)["> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="jE0Fs#QKRcQbc~Hqz_mZ"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="^E]pfz(LcF!CYR5Z!Fin"> <field name="NUM">100</field> </block> </value> <next> <block type="control" id="!/S?4L-B(a}.X1GE5UH3"> <mutation delay_input="false"></mutation> <field name="OID">yeelight-2.0.Yeeligth-Wohnzimmer1.control.active_bright</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="MemkoCGutF=-zRx/5=Iu"> <field name="NUM">100</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="timeouts_cleartimeout" id="LRW1no=YM6C0`{MJY_8o"> <field name="NAME">timeout</field> </block> </statement> </block> </statement> </block> </xml> -
@BBTown
das erste von dir hat schon funktioniert danke an alle.
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

