NEWS
Bad Musik Bewegung
-
Hallo,
ich habe folgendes Blockly gebaut, wenn ich ins Bad gehe dass er die Musik startet anhand von einem Bewegungsmelder.
Allerdings wenn ich nochmal nach ein paar Sekunden in den Radius komme schickt er wieder die Anfrage los also unterbricht kurz die Musik und fängt nochmal an. Kann ich das irgendwie pausieren?
oder hat jemand eine bessere Idee noch?<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout2">timeout2</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="on_ext" id="e]wx#wSWqz[(+0/d`Ksf" x="112" y="137"> <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="h3$lpWSM+M3!wHu[tqz8"> <field name="oid">hue.0.Hue_motion_sensor_Bad.presence</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="-ZgLH#PTMneCXufmW:ib"> <value name="IF0"> <block type="logic_compare" id="O90z4yQ~8rNod|EiO7(o"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id=".(C{R1fLTpN~Om}${{?z"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_boolean" id="#*oMjQ)LCwfL}^34?6=t"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="LDTsi;X,c~!oM2y*@%rH"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="hot7toSL:bew*i]l!??@"> <field name="TEXT">Bewegung ja</field> </shadow> </value> <next> <block type="controls_if" id="XgXb(,$ikh-R%*G((~.6"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_negate" id="U:+CrDxg=`sRbMkt-hS="> <value name="BOOL"> <block type="time_compare_ex" id="Sc2V)sG8!6.uLjuaeU:b"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">between</field> <value name="START_TIME"> <shadow type="text" id="AB$3~sUyPZ.S(m#dBMaA"> <field name="TEXT">06:00</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="~oZ2ZcCB/}tkE0#gLC}Z"> <field name="TEXT">11:00</field> </shadow> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="F=#ltD~p9}{oK}eB/S)t"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonos.0.root.192_168_178_154.volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="BwN:*K;U{bE@{,q-^h`_"> <field name="NUM">15</field> </block> </value> <next> <block type="control" id="UPuqe0tp[8pBjO@$f|{#"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonos.0.root.192_168_178_154.favorites_set</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="text" id="p`b3TvsbFfQ}bD%{XG3]"> <field name="TEXT">Trending Pop Top 20</field> </block> </value> <next> <block type="debug" id="#]k0E*)!/ScnT7$t@ajO"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="{LO6WhVe57CZ]NAb|KM7"> <field name="TEXT">ausgeführt</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="Z|^21n/k7=..`!kU;={I"> <field name="NAME">timeout</field> <field name="DELAY">8</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control" id=",pH[^m*:ca-{9zOY}wBV"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonos.0.root.192_168_178_154.stop</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="N$BlduS]H[!*w=W}LpYK"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="control" id="[OKKBz0zGzl*913g]Gzt"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonos.0.root.192_168_178_154.volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="h,5ES,eH18[es_}}Y@$A"> <field name="NUM">15</field> </block> </value> <next> <block type="control" id="@lLyL{+gQHrRdQ0n!t*O"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonos.0.root.192_168_178_154.favorites_set</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="text" id="k;9{LbsAoJ|K[T4l)Ryf"> <field name="TEXT">Pop Drive</field> </block> </value> <next> <block type="timeouts_settimeout" id="F80]xiD%yM+yO0DP[uND"> <field name="NAME">timeout2</field> <field name="DELAY">8</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control" id="0p2sc//RbCYcw|nVY0We"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonos.0.root.192_168_178_154.stop</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="aV.IEk-@1~CL:IVj5k@#"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> </xml>
-
Hallo,
ich habe folgendes Blockly gebaut, wenn ich ins Bad gehe dass er die Musik startet anhand von einem Bewegungsmelder.
Allerdings wenn ich nochmal nach ein paar Sekunden in den Radius komme schickt er wieder die Anfrage los also unterbricht kurz die Musik und fängt nochmal an. Kann ich das irgendwie pausieren?
oder hat jemand eine bessere Idee noch?<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="timeout2">timeout2</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="on_ext" id="e]wx#wSWqz[(+0/d`Ksf" x="112" y="137"> <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="h3$lpWSM+M3!wHu[tqz8"> <field name="oid">hue.0.Hue_motion_sensor_Bad.presence</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="-ZgLH#PTMneCXufmW:ib"> <value name="IF0"> <block type="logic_compare" id="O90z4yQ~8rNod|EiO7(o"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id=".(C{R1fLTpN~Om}${{?z"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_boolean" id="#*oMjQ)LCwfL}^34?6=t"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="LDTsi;X,c~!oM2y*@%rH"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="hot7toSL:bew*i]l!??@"> <field name="TEXT">Bewegung ja</field> </shadow> </value> <next> <block type="controls_if" id="XgXb(,$ikh-R%*G((~.6"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_negate" id="U:+CrDxg=`sRbMkt-hS="> <value name="BOOL"> <block type="time_compare_ex" id="Sc2V)sG8!6.uLjuaeU:b"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">between</field> <value name="START_TIME"> <shadow type="text" id="AB$3~sUyPZ.S(m#dBMaA"> <field name="TEXT">06:00</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="~oZ2ZcCB/}tkE0#gLC}Z"> <field name="TEXT">11:00</field> </shadow> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="F=#ltD~p9}{oK}eB/S)t"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonos.0.root.192_168_178_154.volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="BwN:*K;U{bE@{,q-^h`_"> <field name="NUM">15</field> </block> </value> <next> <block type="control" id="UPuqe0tp[8pBjO@$f|{#"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonos.0.root.192_168_178_154.favorites_set</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="text" id="p`b3TvsbFfQ}bD%{XG3]"> <field name="TEXT">Trending Pop Top 20</field> </block> </value> <next> <block type="debug" id="#]k0E*)!/ScnT7$t@ajO"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="{LO6WhVe57CZ]NAb|KM7"> <field name="TEXT">ausgeführt</field> </shadow> </value> <next> <block type="timeouts_settimeout" id="Z|^21n/k7=..`!kU;={I"> <field name="NAME">timeout</field> <field name="DELAY">8</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control" id=",pH[^m*:ca-{9zOY}wBV"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonos.0.root.192_168_178_154.stop</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="N$BlduS]H[!*w=W}LpYK"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="control" id="[OKKBz0zGzl*913g]Gzt"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonos.0.root.192_168_178_154.volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="h,5ES,eH18[es_}}Y@$A"> <field name="NUM">15</field> </block> </value> <next> <block type="control" id="@lLyL{+gQHrRdQ0n!t*O"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonos.0.root.192_168_178_154.favorites_set</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="text" id="k;9{LbsAoJ|K[T4l)Ryf"> <field name="TEXT">Pop Drive</field> </block> </value> <next> <block type="timeouts_settimeout" id="F80]xiD%yM+yO0DP[uND"> <field name="NAME">timeout2</field> <field name="DELAY">8</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="control" id="0p2sc//RbCYcw|nVY0We"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonos.0.root.192_168_178_154.stop</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="aV.IEk-@1~CL:IVj5k@#"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> </xml>
-
cool probiere ich -:-)
warum ist bei dir bei den Uhrzeiten das Feld auch lila eigentlich?
Wie könnte ich das noch ergänzen mit mehreren Zeiten? dann müsste man das anders wieder bauen oder?
-
Ich würde gerne noch mehr Bedingungen machen, dass bei bestimmter Uhrzeit es länger läuft sonst kürzer....und halt auch mehr Tageszeiten :-)
-
@olli_m sagte: mehr Bedingungen machen, dass bei bestimmter Uhrzeit es länger läuft sonst kürzer....und halt auch mehr Tageszeiten
Prinzip mit 3 Tageszeiten:

erstmal vielen Dank. Aber so ganz gehts noch nicht, sobald ich mich kurz nicht im bewegen geht der presence wieder auf false und wenn ich mich dann bewege, fängt es halt wieder von vorne an....

<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="pzzqm$SqBn%w0y6pcX)I">favorit</variable> <variable id="yZcv]eS9Fv9kHL[~aA1U">Dauer</variable> <variable type="timeout" id="timeout2">timeout2</variable> </variables> <block type="on_ext" id="n@B:I40g5DsrSS92+%Ap" x="-37" y="112"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">gt</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="5pNs/~BubV(m2`e~;G=}"> <field name="oid">hue.0.Hue_motion_sensor_Bad.presence</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="XgXb(,$ikh-R%*G((~.6"> <value name="IF0"> <block type="logic_negate" id="U:+CrDxg=`sRbMkt-hS="> <value name="BOOL"> <block type="timeouts_gettimeout" id="Dim`ZJ]hQr/O`B8vv_6C"> <field name="NAME">timeout2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="EUiQ7mRa}ut9-U?}MfTx"> <mutation elseif="1" else="1"></mutation> <value name="IF0"> <block type="time_compare" id="u*K8[Qb,hpISkN(*OLKP"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">06:00</field> <field name="END_TIME">11:00</field> </block> </value> <statement name="DO0"> <block type="variables_set" id="Ewj(M6hnBxf[%w+wY~w|"> <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field> <value name="VALUE"> <block type="text" id="p`b3TvsbFfQ}bD%{XG3]"> <field name="TEXT">Trending Pop Top 20</field> </block> </value> <next> <block type="variables_set" id="Zyb_LI+5emAlsY=03v5F"> <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field> <value name="VALUE"> <block type="math_number" id="ZRnto~s^Kci~1U}.VrK-"> <field name="NUM">8</field> </block> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="time_compare" id="vg@ARk#AQ~).-V315-E_"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">11:00</field> <field name="END_TIME">22:00</field> </block> </value> <statement name="DO1"> <block type="variables_set" id="hoUh1(hfn:hw1s(;lX}L"> <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field> <value name="VALUE"> <block type="text" id="k;9{LbsAoJ|K[T4l)Ryf"> <field name="TEXT">Kiss Radio</field> </block> </value> <next> <block type="variables_set" id="lv0#@2W8*0oUTZw3,=;A"> <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field> <value name="VALUE"> <block type="math_number" id="zD`f+L(YWyt^95kiKInB"> <field name="NUM">8</field> </block> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="HQkthbK|%3C5BypV)uG2"> <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field> <value name="VALUE"> <block type="text" id="GTAatKN.Kp:vQ0|6#D`+"> <field name="TEXT">Chill Alternative Radio</field> </block> </value> <next> <block type="variables_set" id="!]$20E=2,9IhRD5$}XHV"> <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field> <value name="VALUE"> <block type="math_number" id="*_]jAf+,p_I:f55GK6u3"> <field name="NUM">8</field> </block> </value> </block> </next> </block> </statement> </block> </statement> <next> <block type="control" id="F=#ltD~p9}{oK}eB/S)t"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonos.0.root.192_168_178_154.volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="BwN:*K;U{bE@{,q-^h`_"> <field name="NUM">10</field> </block> </value> <next> <block type="control" id="UPuqe0tp[8pBjO@$f|{#"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonos.0.root.192_168_178_154.favorites_set</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="variables_get" id="Do70@rfVY5X!?Lo7@yv|"> <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field> </block> </value> <next> <block type="debug" id="#]k0E*)!/ScnT7$t@ajO"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="{LO6WhVe57CZ]NAb|KM7"> <field name="TEXT">ausgeführt</field> </shadow> </value> <next> <block type="timeouts_settimeout_variable" id="`F0,V3[!E1n@Y{x)3cud"> <field name="NAME">timeout2</field> <value name="DELAY_MS"> <shadow type="math_number" id="7zg/F-pce`$W0!low-XY"> <field name="NUM">1000</field> </shadow> <block type="math_arithmetic" id="k_[KoKtcc!BZnzu))ge3"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id=",5S3T@Z:@_Y_Vk,fvtE~"> <field name="NUM">1</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="_6{BAi*fIO%IHa95ms}U"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="J5)[vS]aTqlNF8+yp*YX"> <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field> </block> </value> </block> </value> <statement name="STATEMENT"> <block type="control" id="0p2sc//RbCYcw|nVY0We"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonos.0.root.192_168_178_154.stop</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="aV.IEk-@1~CL:IVj5k@#"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml> -
erstmal vielen Dank. Aber so ganz gehts noch nicht, sobald ich mich kurz nicht im bewegen geht der presence wieder auf false und wenn ich mich dann bewege, fängt es halt wieder von vorne an....

<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="pzzqm$SqBn%w0y6pcX)I">favorit</variable> <variable id="yZcv]eS9Fv9kHL[~aA1U">Dauer</variable> <variable type="timeout" id="timeout2">timeout2</variable> </variables> <block type="on_ext" id="n@B:I40g5DsrSS92+%Ap" x="-37" y="112"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">gt</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="5pNs/~BubV(m2`e~;G=}"> <field name="oid">hue.0.Hue_motion_sensor_Bad.presence</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="XgXb(,$ikh-R%*G((~.6"> <value name="IF0"> <block type="logic_negate" id="U:+CrDxg=`sRbMkt-hS="> <value name="BOOL"> <block type="timeouts_gettimeout" id="Dim`ZJ]hQr/O`B8vv_6C"> <field name="NAME">timeout2</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="EUiQ7mRa}ut9-U?}MfTx"> <mutation elseif="1" else="1"></mutation> <value name="IF0"> <block type="time_compare" id="u*K8[Qb,hpISkN(*OLKP"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">06:00</field> <field name="END_TIME">11:00</field> </block> </value> <statement name="DO0"> <block type="variables_set" id="Ewj(M6hnBxf[%w+wY~w|"> <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field> <value name="VALUE"> <block type="text" id="p`b3TvsbFfQ}bD%{XG3]"> <field name="TEXT">Trending Pop Top 20</field> </block> </value> <next> <block type="variables_set" id="Zyb_LI+5emAlsY=03v5F"> <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field> <value name="VALUE"> <block type="math_number" id="ZRnto~s^Kci~1U}.VrK-"> <field name="NUM">8</field> </block> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="time_compare" id="vg@ARk#AQ~).-V315-E_"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">11:00</field> <field name="END_TIME">22:00</field> </block> </value> <statement name="DO1"> <block type="variables_set" id="hoUh1(hfn:hw1s(;lX}L"> <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field> <value name="VALUE"> <block type="text" id="k;9{LbsAoJ|K[T4l)Ryf"> <field name="TEXT">Kiss Radio</field> </block> </value> <next> <block type="variables_set" id="lv0#@2W8*0oUTZw3,=;A"> <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field> <value name="VALUE"> <block type="math_number" id="zD`f+L(YWyt^95kiKInB"> <field name="NUM">8</field> </block> </value> </block> </next> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="HQkthbK|%3C5BypV)uG2"> <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field> <value name="VALUE"> <block type="text" id="GTAatKN.Kp:vQ0|6#D`+"> <field name="TEXT">Chill Alternative Radio</field> </block> </value> <next> <block type="variables_set" id="!]$20E=2,9IhRD5$}XHV"> <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field> <value name="VALUE"> <block type="math_number" id="*_]jAf+,p_I:f55GK6u3"> <field name="NUM">8</field> </block> </value> </block> </next> </block> </statement> </block> </statement> <next> <block type="control" id="F=#ltD~p9}{oK}eB/S)t"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonos.0.root.192_168_178_154.volume</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="BwN:*K;U{bE@{,q-^h`_"> <field name="NUM">10</field> </block> </value> <next> <block type="control" id="UPuqe0tp[8pBjO@$f|{#"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">sonos.0.root.192_168_178_154.favorites_set</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="variables_get" id="Do70@rfVY5X!?Lo7@yv|"> <field name="VAR" id="pzzqm$SqBn%w0y6pcX)I">favorit</field> </block> </value> <next> <block type="debug" id="#]k0E*)!/ScnT7$t@ajO"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="{LO6WhVe57CZ]NAb|KM7"> <field name="TEXT">ausgeführt</field> </shadow> </value> <next> <block type="timeouts_settimeout_variable" id="`F0,V3[!E1n@Y{x)3cud"> <field name="NAME">timeout2</field> <value name="DELAY_MS"> <shadow type="math_number" id="7zg/F-pce`$W0!low-XY"> <field name="NUM">1000</field> </shadow> <block type="math_arithmetic" id="k_[KoKtcc!BZnzu))ge3"> <field name="OP">MULTIPLY</field> <value name="A"> <shadow type="math_number" id=",5S3T@Z:@_Y_Vk,fvtE~"> <field name="NUM">1</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="_6{BAi*fIO%IHa95ms}U"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="J5)[vS]aTqlNF8+yp*YX"> <field name="VAR" id="yZcv]eS9Fv9kHL[~aA1U">Dauer</field> </block> </value> </block> </value> <statement name="STATEMENT"> <block type="control" id="0p2sc//RbCYcw|nVY0We"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonos.0.root.192_168_178_154.stop</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="aV.IEk-@1~CL:IVj5k@#"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>@Olli_M sagte: bewege, fängt es halt wieder von vorne an....
Die Klammer "falls nicht Verzögerung timeout" muss über alle Blöcke gehen.
@Olli_M sagte in Bad Musik Bewegung:
6000 ms am Ende aber warum x dann der Dauer?
60000 * Minuten = ms.
EDIT: Dein Blockly korrigiert:

