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


