NEWS
Fehler im Blockly Skript?
-
Hallo zusammen,
vieleicht kann mir jemand einmal mit meinem Skript zur Weckersteuerung helfen.
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="comment" id="=~.x=m%ycv!}CXTHjk2." x="88" y="-187"> <field name="COMMENT">Weckersteuerung Logitech Squeezebox</field> <next> <block type="schedule" id="TZ$7DDhrIXUwBtk[x2iG"> <field name="SCHEDULE">*/30 0-5 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id=".ZHZLZx@Gr`OX^,[ufGi"> <mutation elseif="2"></mutation> <value name="IF0"> <block type="logic_operation" id="]pay3y@ae^Q2tSPhxqH]"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="FsgQ/+^h__4~.|gP~]60"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="(}/0l4Y#e4[%;IFJsq3q"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="l3f?)3X.B+vl^~;6]~E3"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="tQVy#gbfCs|spB6U+_k]"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Urlaub</field> </block> </value> <value name="B"> <block type="logic_boolean" id="1howKr:;}Ba5NyEdKo(:"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="V_7cNP-Fy2#%VG:Ah:~w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="VdKL+)a@$MxKCa]w3;UB"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.krank</field> </block> </value> <value name="B"> <block type="logic_boolean" id="N$g*::H4S~nOkr_uwk,_"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="vuITMj+3=a5c8W3y,%dX"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="CJ[Hr0b}D#|q/d#UIoan"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Feiertag</field> </block> </value> <value name="B"> <block type="logic_boolean" id="ZsiDK9YC%5ZF{d}b,tsc"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="J{o_AsZY`M5ZuYqUb!l5"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="P[j!)eL@.hnTfPi1[vH-"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="Nb$Br`3Qp}UH#CVnj9P^"> <field name="NUM">6</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="KJ*0Ac2~HG,%VVSd`)9q"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="tn!(+5t~$;|NeGKpiDnx"> <field name="TEXT">"alarm","enableall"</field> </block> </value> <next> <block type="control" id="yVyC$h}yg+?R5aaV(I~/"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="!]4]Vg5`TEi$r~cuuZ1O"> <field name="TEXT">"alarm","update","id:81bf1cdf","enabled:0"</field> </block> </value> <next> <block type="control" id=":|^7]J]0G~]$~m4@t@n0"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="B.u6t,yHX4`qWKYb^:~o"> <field name="TEXT">"alarm","update","id:d70d52aa","enabled:0"</field> </block> </value> <next> <block type="debug" id="2z/?Y,KZ%b3S|-%z]1$5"> <field name="Severity">error</field> <value name="TEXT"> <shadow type="text" id="+V/#[]M@{(eJ22Y2mB=e"> <field name="TEXT">Wecker 1 und 2 aus - (Feiertag, Wochenende, Urlaub, krank)!</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="Gu1_A=Uy)1;#Q#)1urvq"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="PG-,d,GSzD5*-4U[$XH4"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="NB_mQV-HCv:/u[DjG)Tg"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Homeoffice</field> </block> </value> <value name="B"> <block type="logic_boolean" id="w.O/Qv(,_G+$Vh/7F9Yx"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="H?Q?w=@O(E}:;XCP~~SL"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="-w7fxDVUui01BZ%YA%-2"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="44qpB5?3EA3z=oLwI-e_"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="comment" id=":3FGUCm85Eg6#h;fGMb)"> <field name="COMMENT">HomeOffice-Wecker2 aktiv setzen, Wecker1 Arbeit aus</field> <next> <block type="control" id="aYo4E[AjnOIK0+z=]Q8="> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="]bPhy^Bo`rv2Kf_Mgw%."> <field name="TEXT">"alarm","enableall"</field> </block> </value> <next> <block type="control" id="{(HQSbjyqX8|yJ+z%B[p"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="=2nBcIgNYV6#t3[JA3Ea"> <field name="TEXT">"alarm","update","id:81bf1cdf","enabled:0"</field> </block> </value> <next> <block type="control" id="YlLe~FFSpkPncOof^$Lv"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="WxcgKXli+j!QwK93@BI1"> <field name="TEXT">"alarm","update","id:d70d52aa","enabled:1"</field> </block> </value> <next> <block type="debug" id="2;(bM+6)cg]fP*Ht=mxb"> <field name="Severity">error</field> <value name="TEXT"> <shadow type="text" id="RSt)^FbTG??PpZA1CEeX"> <field name="TEXT">Radiowecker - Homeoffice!</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_operation" id="+nOe?4$U7?IbH:ZMd~5Q"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="^J_oELVKE@GnhT2`xUO]"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="2k*VjZ,p$2rlD:/.]J8!"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="o%`[U9JV+P*t9)pwkU#b"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="uRx`:|-FVd5FO_;A7%ms"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Urlaub</field> </block> </value> <value name="B"> <block type="logic_boolean" id="svG]g=~;_5EMRs[pc~NL"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="!fI@?2}5XTI#KW:CMg_L"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="u^jX|%Tw(m`Xb],eyrtL"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.krank</field> </block> </value> <value name="B"> <block type="logic_boolean" id="F9nt6=Gx`%4|;[bWbN]#"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Cq*1C~TJTV}}DpWCdinc"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Jf-@CO]?@([cayi}P|Zx"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Feiertag</field> </block> </value> <value name="B"> <block type="logic_boolean" id="+9*viY8_|=UzK+%Ds#K%"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="+Di9R/?E*2eYr4kg2Ekf"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="M7m^:T3jB6W3}8tje09x"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="Q.NK1p2J`7_*d?gan^^*"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <statement name="DO2"> <block type="comment" id=";{;)xPC.?nLa%v}Ak%]q"> <field name="COMMENT"> Wecker1 Arbeit aktiv setzen, HomeOffice-Wecker2 aus</field> <next> <block type="control" id="%+XExA,r5#rLgc~FQ;eK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id=")()!VOv?6/6D?WA/*Wsf"> <field name="TEXT">"alarm","enableall"</field> </block> </value> <next> <block type="control" id="u$xtE^}DpRBoh#-LL*|4"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id=",C{xi|$4vlforq-U~ed$"> <field name="TEXT">"alarm","update","id:81bf1cdf","enabled:1"</field> </block> </value> <next> <block type="control" id="YmK:D9f^5u)3x+m6k^{8"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="bMl]4`%y#b{N3^[=|im`"> <field name="TEXT">"alarm","update","id:d70d52aa","enabled:0"</field> </block> </value> <next> <block type="debug" id="d#yaVgc,e-2xCq^r069m"> <field name="Severity">error</field> <value name="TEXT"> <shadow type="text" id="kKA}Z0};u)3U6ghBJ4`O"> <field name="TEXT">Radiowecker - normal Büro!</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </xml>Das Skrpit steuert je nach Kalendereintrag den entsprechenden Wecker in meiner Squeezebox. Heute war ein ganz normaler Bürotag, somit hätte der Wecker mit der ID 81bf1cdf klingeln müssen. Das tat er aber nicht. Es ging der Wecker mit der anderen ID.
In der LOG steht aber, dass der normale "Büro-Wecker" aktiviert wird.
Habe ich vielleicht einen Fehler in meinem Skript?
.. hier nochmal die Variablen aus dem Kalender von heute. Also diese werden korrekt abgefragt.

Danke euch!
Gruß surfer ;-)
-
Hallo zusammen,
vieleicht kann mir jemand einmal mit meinem Skript zur Weckersteuerung helfen.
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="comment" id="=~.x=m%ycv!}CXTHjk2." x="88" y="-187"> <field name="COMMENT">Weckersteuerung Logitech Squeezebox</field> <next> <block type="schedule" id="TZ$7DDhrIXUwBtk[x2iG"> <field name="SCHEDULE">*/30 0-5 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id=".ZHZLZx@Gr`OX^,[ufGi"> <mutation elseif="2"></mutation> <value name="IF0"> <block type="logic_operation" id="]pay3y@ae^Q2tSPhxqH]"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="FsgQ/+^h__4~.|gP~]60"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="(}/0l4Y#e4[%;IFJsq3q"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="l3f?)3X.B+vl^~;6]~E3"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="tQVy#gbfCs|spB6U+_k]"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Urlaub</field> </block> </value> <value name="B"> <block type="logic_boolean" id="1howKr:;}Ba5NyEdKo(:"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="V_7cNP-Fy2#%VG:Ah:~w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="VdKL+)a@$MxKCa]w3;UB"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.krank</field> </block> </value> <value name="B"> <block type="logic_boolean" id="N$g*::H4S~nOkr_uwk,_"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="vuITMj+3=a5c8W3y,%dX"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="CJ[Hr0b}D#|q/d#UIoan"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Feiertag</field> </block> </value> <value name="B"> <block type="logic_boolean" id="ZsiDK9YC%5ZF{d}b,tsc"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="J{o_AsZY`M5ZuYqUb!l5"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="P[j!)eL@.hnTfPi1[vH-"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="Nb$Br`3Qp}UH#CVnj9P^"> <field name="NUM">6</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="KJ*0Ac2~HG,%VVSd`)9q"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="tn!(+5t~$;|NeGKpiDnx"> <field name="TEXT">"alarm","enableall"</field> </block> </value> <next> <block type="control" id="yVyC$h}yg+?R5aaV(I~/"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="!]4]Vg5`TEi$r~cuuZ1O"> <field name="TEXT">"alarm","update","id:81bf1cdf","enabled:0"</field> </block> </value> <next> <block type="control" id=":|^7]J]0G~]$~m4@t@n0"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="B.u6t,yHX4`qWKYb^:~o"> <field name="TEXT">"alarm","update","id:d70d52aa","enabled:0"</field> </block> </value> <next> <block type="debug" id="2z/?Y,KZ%b3S|-%z]1$5"> <field name="Severity">error</field> <value name="TEXT"> <shadow type="text" id="+V/#[]M@{(eJ22Y2mB=e"> <field name="TEXT">Wecker 1 und 2 aus - (Feiertag, Wochenende, Urlaub, krank)!</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="Gu1_A=Uy)1;#Q#)1urvq"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="PG-,d,GSzD5*-4U[$XH4"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="NB_mQV-HCv:/u[DjG)Tg"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Homeoffice</field> </block> </value> <value name="B"> <block type="logic_boolean" id="w.O/Qv(,_G+$Vh/7F9Yx"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="H?Q?w=@O(E}:;XCP~~SL"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="-w7fxDVUui01BZ%YA%-2"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="44qpB5?3EA3z=oLwI-e_"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="comment" id=":3FGUCm85Eg6#h;fGMb)"> <field name="COMMENT">HomeOffice-Wecker2 aktiv setzen, Wecker1 Arbeit aus</field> <next> <block type="control" id="aYo4E[AjnOIK0+z=]Q8="> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="]bPhy^Bo`rv2Kf_Mgw%."> <field name="TEXT">"alarm","enableall"</field> </block> </value> <next> <block type="control" id="{(HQSbjyqX8|yJ+z%B[p"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="=2nBcIgNYV6#t3[JA3Ea"> <field name="TEXT">"alarm","update","id:81bf1cdf","enabled:0"</field> </block> </value> <next> <block type="control" id="YlLe~FFSpkPncOof^$Lv"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="WxcgKXli+j!QwK93@BI1"> <field name="TEXT">"alarm","update","id:d70d52aa","enabled:1"</field> </block> </value> <next> <block type="debug" id="2;(bM+6)cg]fP*Ht=mxb"> <field name="Severity">error</field> <value name="TEXT"> <shadow type="text" id="RSt)^FbTG??PpZA1CEeX"> <field name="TEXT">Radiowecker - Homeoffice!</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_operation" id="+nOe?4$U7?IbH:ZMd~5Q"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="^J_oELVKE@GnhT2`xUO]"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="2k*VjZ,p$2rlD:/.]J8!"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="o%`[U9JV+P*t9)pwkU#b"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="uRx`:|-FVd5FO_;A7%ms"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Urlaub</field> </block> </value> <value name="B"> <block type="logic_boolean" id="svG]g=~;_5EMRs[pc~NL"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="!fI@?2}5XTI#KW:CMg_L"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="u^jX|%Tw(m`Xb],eyrtL"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.krank</field> </block> </value> <value name="B"> <block type="logic_boolean" id="F9nt6=Gx`%4|;[bWbN]#"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Cq*1C~TJTV}}DpWCdinc"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Jf-@CO]?@([cayi}P|Zx"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Feiertag</field> </block> </value> <value name="B"> <block type="logic_boolean" id="+9*viY8_|=UzK+%Ds#K%"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="+Di9R/?E*2eYr4kg2Ekf"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="M7m^:T3jB6W3}8tje09x"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="Q.NK1p2J`7_*d?gan^^*"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <statement name="DO2"> <block type="comment" id=";{;)xPC.?nLa%v}Ak%]q"> <field name="COMMENT"> Wecker1 Arbeit aktiv setzen, HomeOffice-Wecker2 aus</field> <next> <block type="control" id="%+XExA,r5#rLgc~FQ;eK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id=")()!VOv?6/6D?WA/*Wsf"> <field name="TEXT">"alarm","enableall"</field> </block> </value> <next> <block type="control" id="u$xtE^}DpRBoh#-LL*|4"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id=",C{xi|$4vlforq-U~ed$"> <field name="TEXT">"alarm","update","id:81bf1cdf","enabled:1"</field> </block> </value> <next> <block type="control" id="YmK:D9f^5u)3x+m6k^{8"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="bMl]4`%y#b{N3^[=|im`"> <field name="TEXT">"alarm","update","id:d70d52aa","enabled:0"</field> </block> </value> <next> <block type="debug" id="d#yaVgc,e-2xCq^r069m"> <field name="Severity">error</field> <value name="TEXT"> <shadow type="text" id="kKA}Z0};u)3U6ghBJ4`O"> <field name="TEXT">Radiowecker - normal Büro!</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </xml>Das Skrpit steuert je nach Kalendereintrag den entsprechenden Wecker in meiner Squeezebox. Heute war ein ganz normaler Bürotag, somit hätte der Wecker mit der ID 81bf1cdf klingeln müssen. Das tat er aber nicht. Es ging der Wecker mit der anderen ID.
In der LOG steht aber, dass der normale "Büro-Wecker" aktiviert wird.
Habe ich vielleicht einen Fehler in meinem Skript?
.. hier nochmal die Variablen aus dem Kalender von heute. Also diese werden korrekt abgefragt.

Danke euch!
Gruß surfer ;-)
-
@surfer09
Die Abfragen können vereinfacht werden und sind damit übersichtlicher. Einmal am Tag den Wecker zu stellen, sollte genügen.
-
Hallo zusammen,
vieleicht kann mir jemand einmal mit meinem Skript zur Weckersteuerung helfen.
<xml xmlns="https://developers.google.com/blockly/xml"> <block type="comment" id="=~.x=m%ycv!}CXTHjk2." x="88" y="-187"> <field name="COMMENT">Weckersteuerung Logitech Squeezebox</field> <next> <block type="schedule" id="TZ$7DDhrIXUwBtk[x2iG"> <field name="SCHEDULE">*/30 0-5 * * *</field> <statement name="STATEMENT"> <block type="controls_if" id=".ZHZLZx@Gr`OX^,[ufGi"> <mutation elseif="2"></mutation> <value name="IF0"> <block type="logic_operation" id="]pay3y@ae^Q2tSPhxqH]"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="FsgQ/+^h__4~.|gP~]60"> <field name="OP">OR</field> <value name="A"> <block type="logic_operation" id="(}/0l4Y#e4[%;IFJsq3q"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="l3f?)3X.B+vl^~;6]~E3"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="tQVy#gbfCs|spB6U+_k]"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Urlaub</field> </block> </value> <value name="B"> <block type="logic_boolean" id="1howKr:;}Ba5NyEdKo(:"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="V_7cNP-Fy2#%VG:Ah:~w"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="VdKL+)a@$MxKCa]w3;UB"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.krank</field> </block> </value> <value name="B"> <block type="logic_boolean" id="N$g*::H4S~nOkr_uwk,_"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="vuITMj+3=a5c8W3y,%dX"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="CJ[Hr0b}D#|q/d#UIoan"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Feiertag</field> </block> </value> <value name="B"> <block type="logic_boolean" id="ZsiDK9YC%5ZF{d}b,tsc"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="J{o_AsZY`M5ZuYqUb!l5"> <field name="OP">GTE</field> <value name="A"> <block type="time_get" id="P[j!)eL@.hnTfPi1[vH-"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="Nb$Br`3Qp}UH#CVnj9P^"> <field name="NUM">6</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="KJ*0Ac2~HG,%VVSd`)9q"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="tn!(+5t~$;|NeGKpiDnx"> <field name="TEXT">"alarm","enableall"</field> </block> </value> <next> <block type="control" id="yVyC$h}yg+?R5aaV(I~/"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="!]4]Vg5`TEi$r~cuuZ1O"> <field name="TEXT">"alarm","update","id:81bf1cdf","enabled:0"</field> </block> </value> <next> <block type="control" id=":|^7]J]0G~]$~m4@t@n0"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="B.u6t,yHX4`qWKYb^:~o"> <field name="TEXT">"alarm","update","id:d70d52aa","enabled:0"</field> </block> </value> <next> <block type="debug" id="2z/?Y,KZ%b3S|-%z]1$5"> <field name="Severity">error</field> <value name="TEXT"> <shadow type="text" id="+V/#[]M@{(eJ22Y2mB=e"> <field name="TEXT">Wecker 1 und 2 aus - (Feiertag, Wochenende, Urlaub, krank)!</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="Gu1_A=Uy)1;#Q#)1urvq"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="PG-,d,GSzD5*-4U[$XH4"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="NB_mQV-HCv:/u[DjG)Tg"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Homeoffice</field> </block> </value> <value name="B"> <block type="logic_boolean" id="w.O/Qv(,_G+$Vh/7F9Yx"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="H?Q?w=@O(E}:;XCP~~SL"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="-w7fxDVUui01BZ%YA%-2"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="44qpB5?3EA3z=oLwI-e_"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="comment" id=":3FGUCm85Eg6#h;fGMb)"> <field name="COMMENT">HomeOffice-Wecker2 aktiv setzen, Wecker1 Arbeit aus</field> <next> <block type="control" id="aYo4E[AjnOIK0+z=]Q8="> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="]bPhy^Bo`rv2Kf_Mgw%."> <field name="TEXT">"alarm","enableall"</field> </block> </value> <next> <block type="control" id="{(HQSbjyqX8|yJ+z%B[p"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="=2nBcIgNYV6#t3[JA3Ea"> <field name="TEXT">"alarm","update","id:81bf1cdf","enabled:0"</field> </block> </value> <next> <block type="control" id="YlLe~FFSpkPncOof^$Lv"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="WxcgKXli+j!QwK93@BI1"> <field name="TEXT">"alarm","update","id:d70d52aa","enabled:1"</field> </block> </value> <next> <block type="debug" id="2;(bM+6)cg]fP*Ht=mxb"> <field name="Severity">error</field> <value name="TEXT"> <shadow type="text" id="RSt)^FbTG??PpZA1CEeX"> <field name="TEXT">Radiowecker - Homeoffice!</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF2"> <block type="logic_operation" id="+nOe?4$U7?IbH:ZMd~5Q"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="^J_oELVKE@GnhT2`xUO]"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="2k*VjZ,p$2rlD:/.]J8!"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="o%`[U9JV+P*t9)pwkU#b"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="uRx`:|-FVd5FO_;A7%ms"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Urlaub</field> </block> </value> <value name="B"> <block type="logic_boolean" id="svG]g=~;_5EMRs[pc~NL"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="!fI@?2}5XTI#KW:CMg_L"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="u^jX|%Tw(m`Xb],eyrtL"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.krank</field> </block> </value> <value name="B"> <block type="logic_boolean" id="F9nt6=Gx`%4|;[bWbN]#"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Cq*1C~TJTV}}DpWCdinc"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Jf-@CO]?@([cayi}P|Zx"> <field name="ATTR">val</field> <field name="OID">ical.0.events.0.today.Feiertag</field> </block> </value> <value name="B"> <block type="logic_boolean" id="+9*viY8_|=UzK+%Ds#K%"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="+Di9R/?E*2eYr4kg2Ekf"> <field name="OP">LTE</field> <value name="A"> <block type="time_get" id="M7m^:T3jB6W3}8tje09x"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">wd</field> </block> </value> <value name="B"> <block type="math_number" id="Q.NK1p2J`7_*d?gan^^*"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <statement name="DO2"> <block type="comment" id=";{;)xPC.?nLa%v}Ak%]q"> <field name="COMMENT"> Wecker1 Arbeit aktiv setzen, HomeOffice-Wecker2 aus</field> <next> <block type="control" id="%+XExA,r5#rLgc~FQ;eK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id=")()!VOv?6/6D?WA/*Wsf"> <field name="TEXT">"alarm","enableall"</field> </block> </value> <next> <block type="control" id="u$xtE^}DpRBoh#-LL*|4"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id=",C{xi|$4vlforq-U~ed$"> <field name="TEXT">"alarm","update","id:81bf1cdf","enabled:1"</field> </block> </value> <next> <block type="control" id="YmK:D9f^5u)3x+m6k^{8"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">squeezeboxrpc.0.Players.Squeezebox Radio.cmdGeneral</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="bMl]4`%y#b{N3^[=|im`"> <field name="TEXT">"alarm","update","id:d70d52aa","enabled:0"</field> </block> </value> <next> <block type="debug" id="d#yaVgc,e-2xCq^r069m"> <field name="Severity">error</field> <value name="TEXT"> <shadow type="text" id="kKA}Z0};u)3U6ghBJ4`O"> <field name="TEXT">Radiowecker - normal Büro!</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </xml>Das Skrpit steuert je nach Kalendereintrag den entsprechenden Wecker in meiner Squeezebox. Heute war ein ganz normaler Bürotag, somit hätte der Wecker mit der ID 81bf1cdf klingeln müssen. Das tat er aber nicht. Es ging der Wecker mit der anderen ID.
In der LOG steht aber, dass der normale "Büro-Wecker" aktiviert wird.
Habe ich vielleicht einen Fehler in meinem Skript?
.. hier nochmal die Variablen aus dem Kalender von heute. Also diese werden korrekt abgefragt.

Danke euch!
Gruß surfer ;-)
-
Hab den Fehler gefunden, das Skript war nicht Schuld. (falsche IP Adresse des Squeezebox Servers im Adapter)
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