NEWS
Amazon Music Playlist in Endlosschleife?
-
Hallo zusammen,
ich habe ein Script geschrieben, um beim Einschalten eines Geräts (ist unser Elektrokamin) über den Echo Dot die Amazon Music Playlist "Kamin" abzuspielen. Herausforderung: Er startet das ganze korrekt, spielt den "Song" aber nur einmal ab - geht 30 Minuten. Schalte ich innerhalb dieser 30 Minuten das Gerät aus, schaltet auch der Echo dot ab.
Hier das Script:
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="%9q;PVe^3y|GlJc1A`Nm">KaminLaeuft</variable> </variables> <block type="variables_set" id="ycG5HcVQN~xiJnuLxzP1" x="-837" y="-387"> <field name="VAR" id="%9q;PVe^3y|GlJc1A`Nm" variabletype="">KaminLaeuft</field> <value name="VALUE"> <block type="logic_boolean" id="I3Ht7LVg5R^=m?)Rly=x"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="on_ext" id=")rMR#JJ[F?c;ia5Boocb"> <mutation items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="fYF-yFnB|BImI^5{!C:]"> <field name="oid">sonoff.0.DVES_232BA0.ENERGY_Factor</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="wI^iVI:pvsH{,+PoJ+hG"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="Zg)uMv@cXt:3vTj-Nf``" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="g@7ZDRh}Nur]oI5Egkc|"> <field name="OP">GT</field> <value name="A"> <block type="get_value" id="oe@9Q5W:ggN]rM5,v#zg"> <field name="ATTR">val</field> <field name="OID">sonoff.0.DVES_232BA0.ENERGY_Factor</field> </block> </value> <value name="B"> <block type="math_number" id="{kP_!eD9rNh9`r`s]Q3A"> <field name="NUM">0.4</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="-j=S0rP6|r}ujoP8erf{"> <value name="BOOL"> <block type="variables_get" id="Fmh4d5c.9Y}L:VM1CXQd"> <field name="VAR" id="%9q;PVe^3y|GlJc1A`Nm" variabletype="">KaminLaeuft</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="oMF]TV~olH+5hwpM?aB3"> <field name="VAR" id="%9q;PVe^3y|GlJc1A`Nm" variabletype="">KaminLaeuft</field> <value name="VALUE"> <block type="logic_boolean" id="y};:JiCEKftvLzpi9udj"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="Ii2C}mXEQ,=_PzNhnV/="> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090XG06924100G9.Player.controlPlay</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="yjx8EyhF#xu4)T0|EFC^"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="T_!in=8@8Ykf=YS+?*ER"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090XG06924100G9.Player.controlPause</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="PbHjN{QFjfs)6ez5!q.?"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="CUNz6xF-48UPY3fNw/8)"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090XG06924100G9.Player.controlRepeat</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="yw9b8XXoBHb:=E5Vj=hj"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="Nfmf)9yPl`h5z{fB=c~k"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090XG06924100G9.Music-Provider.Amazon-Music-Playlist</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="F):To4a;PhAzp.]aX83b"> <field name="TEXT">playlist kamin</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id=",|1S-}C0Y!a~!QhkbLtB" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="Uvu#c}mt27h!c^nepsP_"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="l8@.?0=kc[2B43Mw1bmy"> <field name="ATTR">val</field> <field name="OID">sonoff.0.DVES_232BA0.ENERGY_Factor</field> </block> </value> <value name="B"> <block type="math_number" id="hbEd/lw-DDi35V]Ai!Pz"> <field name="NUM">0.4</field> </block> </value> </block> </value> <value name="B"> <block type="variables_get" id="8|BVPh;IHw;Hyn$B6h?h"> <field name="VAR" id="%9q;PVe^3y|GlJc1A`Nm" variabletype="">KaminLaeuft</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="p4PHyE!5@~x3HJ]Q{Ur?"> <field name="VAR" id="%9q;PVe^3y|GlJc1A`Nm" variabletype="">KaminLaeuft</field> <value name="VALUE"> <block type="logic_boolean" id="ByCs,;By^*N#{A)beq-3"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="KIz9pUg#_n)S%(XOI|QU"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090XG06924100G9.Player.controlPause</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="Ysgr)j1eaO~@SNTI,bJA"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="D!e55|Hg?=P5$bidVj{q"> <mutation delay_input="false"></mutation> <field name="OID">alexa2.0.Echo-Devices.G090XG06924100G9.Player.controlPlay</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="wcDX6iYtI:5MXg)-Ad:M"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </xml>Hier als Screenshot:

Kann mir jemand helfen?
Danke und VG
Christian
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