NEWS
[Frage] Blockly - "if" mit Wochentage eingrenzen
-
! ````
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id="eJb}g8KK|QLIQdnXwqWD" x="65" y="-965"><field name="COMMENT">Mo-So Wochentag = 2 = Dienstag Wochentag > 5 = Wochenende (Samstag oder Sonntag) Wochentad < 6 = Arbeitswoche (Montag bis Freitag)</field>
<next><block type="schedule" id="c|;MRuVnd8fva-~-4=[U"><field name="SCHEDULE">/30 * * * 0-6</field>
<statement name="STATEMENT"><block type="comment" id=")Ci(qYIfWczY%jgw[qS8"><field name="COMMENT">Arbeit</field>
<next><block type="controls_if" id="#?v{k7:OfCqcqtIzH~z"><mutation else="1"></mutation>
<value name="IF0"><block type="logic_compare" id="lg5igbNtX-UN/fL%s}U6"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id=".Kzi#@mU+8GM~AWVXj%"><field name="ATTR">val</field>
<field name="OID">javascript.0.Variable.Person.VAR100_Arbeit</field></block></value>
<value name="B"><block type="logic_boolean" id="y42H^{%jaLi#2=7|Zde/"><field name="BOOL">TRUE</field></block></value></block></value>
<statement name="DO0"><block type="comment" id="]tjA!-+r);r^tnrZ@Y]"><field name="COMMENT">Aufstehen Arbeit Mo-Fr <6</field>
<next><block type="controls_if" id="?n5I*[By}J~m_kFcQdBS"><value name="IF0"><block type="logic_operation" id="@.5WQLLngW?9j@Rt3xJ:"><field name="OP">AND</field>
<value name="A"><block type="logic_compare" id="630ho-4EA3L(R19tP*p"><field name="OP">LT</field> <value name="A"><block type="time_get" id="?mXL_j%XkZWqH/ckQZMt"><mutation format="false" language="false"></mutation> <field name="OPTION">wd</field></block></value> <value name="B"><block type="text" id="iWyIrO06;|(Qoq^IV!}C"><field name="TEXT">6</field></block></value></block></value> <value name="B"><block type="time_compare_ex" id="uPfeP_GZLr{idZllO[Wn"><mutation 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="9Z)6:x6:US2mm/Sk%QL8"><field name="TEXT">04:00</field></shadow></value> <value name="END_TIME"><shadow type="text" id="Ra2Q)|9.}3piNeggm^fL"><field name="TEXT">05:50</field></shadow></value></block></value></block></value> <statement name="DO0"><block type="control" id="w+co9}p?})8i-[|75Cs*"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="text" id="XFE_1AYk580G1/MF;3:*"><field name="TEXT">Aufstehzeit Arbeit Mo-Fr Hue</field></block></value> <next><block type="debug" id="hXGMK@9.5{Kf?n7A0(Cw"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="i614)}
m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow>
<block type="text_join" id="fbS7.9}v{;},7-EE~Z_"><mutation items="2"></mutation> <value name="ADD0"><block type="field_oid" id="Fhb}8=Cq2aPbDA-he2[k"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value> <value name="ADD1"><block type="text" id="4u/9O%k@s)4dkyfn(,eo"><field name="TEXT">auf Aufstehzeit Arbeit Mo-Fr gesetzt</field></block></value></block></value></block></next></block></statement> <next><block type="comment" id="dwFeoHF:(%YV]1cMPW^7"><field name="COMMENT">Aufstehen Arbeit WE >5</field> <next><block type="controls_if" id="2-6p:]3RzEQ:*,7#^zFe"><value name="IF0"><block type="logic_operation" id="*Afx}KWJtCypPPt:2|HD"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="9BnWtUYlT
ju~Ij2f.0T"><field name="OP">GT</field>
<value name="A"><block type="time_get" id=";GKJXkbvGsFJ({5u*@0"><mutation format="false" language="false"></mutation> <field name="OPTION">wd</field></block></value> <value name="B"><block type="text" id=",ti,OTc!jU.1-InP,AM%"><field name="TEXT">5</field></block></value></block></value> <value name="B"><block type="time_compare_ex" id="t|2pOSv4Oa,{tb?]_kc*"><mutation 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="l[cj@u/2FtGdq(,.M*8["><field name="TEXT">09:30</field></shadow></value> <value name="END_TIME"><shadow type="text" id="A|Pkt?]
]a:~6_zhY|wX"><field name="TEXT">12:30</field></shadow></value></block></value></block></value>
<statement name="DO0"><block type="control" id="Sy!jY|;r_I;2[gF.aZt6"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="text" id="@U-#HIP)sD[L1?Q+t33c"><field name="TEXT">Aufstehzeit Arbeit WE Hue</field></block></value>
<next><block type="debug" id="pS1t{E0a/G^0V{aysh#"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="i614)}
m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow>
<block type="text_join" id="pCH!8EYu]mPlyRsN(Rs"><mutation items="2"></mutation> <value name="ADD0"><block type="field_oid" id="pE~D6n:*iZdB1yA)hR|/"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value> <value name="ADD1"><block type="text" id="BZ9-Q~!/
P,6WI6(jl6b"><field name="TEXT">auf Aufstehzeit Arbeit WE gesetzt</field></block></value></block></value></block></next></block></statement>
<next><block type="comment" id="+H1T6|DoH}3fnckp8_z"><field name="COMMENT">Daemmerung Arbeit HiFi Mo-So</field> <next><block type="controls_if" id="1yv,9_cZu?{s|8R}G0S
"><value name="IF0"><block type="logic_operation" id=".yT#mK]/k|tc!1cR!p{|"><field name="OP">AND</field>
<value name="A"><block type="logic_compare" id="+={uCVHyCS},lv7E@}Se"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="8s12K-0B]GO[pxHZBfhm"><field name="ATTR">val</field>
<field name="OID">javascript.0.Variable.WHG.VAR200_HiFi_An</field></block></value>
<value name="B"><block type="logic_boolean" id="[sk}|x|Co7.FJI@7OQFb"><field name="BOOL">TRUE</field></block></value></block></value>
<value name="B"><block type="logic_compare" id="d]424_6QhEdZQ,qC48,z"><field name="OP">EQ</field>
<value name="A"><block type="time_compare_ex" id="fbhTH2!e52EySHRPB=X|"><mutation 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="d+La6SVqr6jUF_1X?#~"><field name="TEXT">14:00</field></shadow></value> <value name="END_TIME"><shadow type="text" id="1d!SpDWMg1Eg;UcdXwo4"><field name="TEXT">21:25</field></shadow></value></block></value> <value name="B"><block type="logic_boolean" id="r%/RWZVDIrmS5k?h2Stk"><field name="BOOL">TRUE</field></block></value></block></value></block></value> <statement name="DO0"><block type="control" id="YFZYKcWiwFK9i9T7xGFD"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="text" id="l3xz5iteH8235OwCpZ50"><field name="TEXT">Daemmerung Arbeit Hue</field></block></value> <next><block type="debug" id="#tcTGQ8AJWbJE^1w*
(x"><field name="Severity">log</field>
<value name="TEXT"><shadow type="text" id="i614)}m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow> <block type="text_join" id="(I-D~gQ]:W!-yK?/:Z5Q"><mutation items="2"></mutation> <value name="ADD0"><block type="field_oid" id="6=^*t
]3y.[-=Qu3C+aE"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value>
<value name="ADD1"><block type="text" id="v=0j|u3|aPFZyY9a#ppo"><field name="TEXT">auf Daemmerung Arbeit gesetzt</field></block></value></block></value></block></next></block></statement>
<next><block type="comment" id="0=^8i
IZ5R9Fd=ESC:u"><field name="COMMENT">Einschlaf Arbeit Mo-Do <5</field>
<next><block type="controls_if" id="FK3Zu093D,TDqegvptie"><value name="IF0"><block type="logic_operation" id="/%u{Vsp,qG14{^w:lqv"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="jc1@)wFzgi-Px?^SG9vL"><field name="OP">LT</field> <value name="A"><block type="time_get" id="|PZ7Jq;;7Z[Y_gfTgH3-"><mutation format="false" language="false"></mutation> <field name="OPTION">wd</field></block></value> <value name="B"><block type="text" id="Q?![c~5qR/hs+;/!AMa^"><field name="TEXT">5</field></block></value></block></value> <value name="B"><block type="time_compare_ex" id="||-4;9Qo35;B^EXB#IWV"><mutation 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="w./M~,?{5B
=:?F.nvuO"><field name="TEXT">21:26</field></shadow></value>
<value name="END_TIME"><shadow type="text" id="w#yY0A%V_k17:jk-Hj="><field name="TEXT">23:30</field></shadow></value></block></value></block></value> <statement name="DO0"><block type="control" id=";[iyF:Ch9iuUrL.1GJZU"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="text" id="55Y
+OS-h4N?A+[IP72x"><field name="TEXT">Einschlaf Hue</field></block></value>
<next><block type="debug" id=":B.S8.x:QH0yg[2=Uh"><field name="Severity">log</field>
<value name="TEXT"><shadow type="text" id="i614)}m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow> <block type="text_join" id="hHgj4i55J[?T8T/;6dNn"><mutation items="2"></mutation> <value name="ADD0"><block type="field_oid" id="uepHj2:iYuWz%ppnOKh["><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value> <value name="ADD1"><block type="text" id="9Xg{4)WlU/UDQ2*ml19x"><field name="TEXT">Einschlaf gesetzt</field></block></value></block></value></block></next></block></statement> <next><block type="comment" id="WugZZP[c}p~Wy*#i1?Q]"><field name="COMMENT">Auto Daemmerung Fr-So >4</field> <next><block type="controls_if" id="ijfiUP/@3d~U7.d@nL7w"><value name="IF0"><block type="logic_operation" id="0@nwqy6.@hrl,mxeBcU^"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="tHr{RUhqhO2QYQ[ib+xH"><field name="OP">GT</field> <value name="A"><block type="time_get" id="D3o8}NL.:C#??jl1]
T|"><mutation format="false" language="false"></mutation>
<field name="OPTION">wd</field></block></value>
<value name="B"><block type="text" id="HZ8xHd71/0iA;Iqa0k}C"><field name="TEXT">4</field></block></value></block></value>
<value name="B"><block type="time_compare_ex" id="mE0:Q.jc[s:TAI6HR+D"><mutation 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="!S[a@]4rG;Y{xp5[R7|w"><field name="TEXT">21:26</field></shadow></value> <value name="END_TIME"><shadow type="text" id="8lcdrYv38}K-qQlGdc{F"><field name="TEXT">23:30</field></shadow></value></block></value></block></value> <statement name="DO0"><block type="control" id="R6Dz#,njq}OTiD67
;Qd"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="text" id="Jq92-2w@GoQ^.4L3Xiun"><field name="TEXT">Daemmerung Hue</field></block></value>
<next><block type="debug" id="emlhh*#hq!fT(shY_(x"><field name="Severity">log</field>
<value name="TEXT"><shadow type="text" id="i614)}m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow> <block type="text_join" id="*Zl#2{^NAf?c
/bWnCiW"><mutation items="2"></mutation>
<value name="ADD0"><block type="field_oid" id="ptHjb?r4:Dbmhkx4QW9q"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value>
<value name="ADD1"><block type="text" id="I^j4.,VM|!~^,^tA7,{"><field name="TEXT">Daemmerung gesetzt</field></block></value></block></value></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement>
<statement name="ELSE"><block type="comment" id="A5B.6R.}ZLM6-EOuXXx"><field name="COMMENT">Urlaub</field> <next><block type="controls_if" id="d9R@IHuCPqW0Q5cXQaN7"><value name="IF0"><block type="logic_compare" id="-5%s!K):_]*,y_RV2~[G"><field name="OP">EQ</field> <value name="A"><block type="get_value" id=";xn6+pwzvyY6@mhntq~L"><field name="ATTR">val</field> <field name="OID">javascript.0.Variable.Person.VAR100_Arbeit</field></block></value> <value name="B"><block type="logic_boolean" id="bYhI|5WMubvj/D6c:aj1"><field name="BOOL">FALSE</field></block></value></block></value> <statement name="DO0"><block type="comment" id="sDxm|E]Pi8NASyvE%XCo"><field name="COMMENT">Aufstehen Urlaub</field> <next><block type="controls_if" id="~c^AEtQBSV5;RPmo]Z57"><value name="IF0"><block type="time_compare_ex" id="(zqTbNDYKu0:zxp+_wL3"><mutation 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="@}:#Q0[k*~Jd^BL[Gl[V"><field name="TEXT">09:30</field></shadow></value> <value name="END_TIME"><shadow type="text" id=")|e5}OO|0UPQ/@DeQe^_"><field name="TEXT">11:00</field></shadow></value></block></value> <statement name="DO0"><block type="control" id="/QE?sY(al4eyD
G||5Yr"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="text" id="#]IJCc.ui%cDqw_J5DT"><field name="TEXT">Aufstehzeit Urlaub Hue</field></block></value> <next><block type="debug" id="Zu[;@Id7mJzS%)u0+JXQ"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="i614)}
m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow>
<block type="text_join" id=")fneWOZ_GW{IC@/%mvp("><mutation items="2"></mutation>
<value name="ADD0"><block type="field_oid" id="F^)j03giLn(Bc7Bw0-q9"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value>
<value name="ADD1"><block type="text" id="M9{E#5ie[~A7nhi));)C"><field name="TEXT">auf Aufstehzeit Urlaub gesetzt</field></block></value></block></value></block></next></block></statement></block></next></block></statement>
<next><block type="comment" id="Pe~J38p.]m^jo@D_69CB"><field name="COMMENT">Daemmerung HiFi Urlaub</field>
<next><block type="controls_if" id="JG{)garR5(ydfL.dwN%"><value name="IF0"><block type="logic_operation" id="%@6r=VKASm(r~_mF.wOk"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="#Z^,Ov?qS[iotjI+^,83"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="yH%b(%JeT8r:I(DXuXTn"><field name="ATTR">val</field> <field name="OID">javascript.0.Variable.WHG.VAR200_HiFi_An</field></block></value> <value name="B"><block type="logic_boolean" id="OT32T_C-*MOrLfX(/~|M"><field name="BOOL">TRUE</field></block></value></block></value> <value name="B"><block type="logic_compare" id="?eS:N*S-J)O}uONFfMzZ"><field name="OP">EQ</field> <value name="A"><block type="time_compare_ex" id="MNXF:1bOwHD{%@uyy(C;"><mutation 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="uzqHBIek61}}O,qyf*^6"><field name="TEXT">14:00</field></shadow></value> <value name="END_TIME"><shadow type="text" id="0^kf?Ml?nGjf9+
)rL4}"><field name="TEXT">21:25</field></shadow></value></block></value>
<value name="B"><block type="logic_boolean" id="LHIqmO6Ymca3TwyG[
G"><field name="BOOL">TRUE</field></block></value></block></value></block></value>
<statement name="DO0"><block type="control" id="jkn06thS2ocl6}Q6Eyzd"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="text" id="b}rP^zC50Y/:~9?ud8|?"><field name="TEXT">Daemmerung Urlaub Hue</field></block></value>
<next><block type="debug" id=",K2ZJ)f;1N@4YaIWc@W|"><field name="Severity">log</field>
<value name="TEXT"><shadow type="text" id="i614)}m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow> <block type="text_join" id="?FRFcBj*0%[zsAp+fxm|"><mutation items="2"></mutation> <value name="ADD0"><block type="field_oid" id="BbfkC@#-eo
)|}5Z?pP6"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value>
<value name="ADD1"><block type="text" id="Q|Ws4g0_@0O(KKbPgo="><field name="TEXT">auf Daemmerung Urlaub gesetzt</field></block></value></block></value></block></next></block></statement> <next><block type="comment" id="?VUemN18J(1E,8c-S~kY"><field name="COMMENT">Daemmerung Auto Urlaub</field> <next><block type="controls_if" id="?fiA1}^!|eZBocthy??A"><value name="IF0"><block type="time_compare_ex" id="GN:j{6pBd{zIU7wKf}e="><mutation 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="uBGWU/8n
yBa1|NI7elZ"><field name="TEXT">21:26</field></shadow></value>
<value name="END_TIME"><shadow type="text" id="ne62D@EJrbwRBCG+V9s"><field name="TEXT">23:30</field></shadow></value></block></value> <statement name="DO0"><block type="control" id="tCVvl7I(rutr.L_#|yta"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="text" id="#AC!uQOBb~LKDS,0;I/M"><field name="TEXT">Daemmerung Urlaub Hue</field></block></value> <next><block type="debug" id="2{DikCKC){}Y!G?;s)y#"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="i614)}
m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow>
<block type="text_join" id="`l^m+m}TK?/KC%[8=k%g"><mutation items="2"></mutation>
<value name="ADD0"><block type="field_oid" id="c5~N4^)HL6Hc+5/1,oT0"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value>
<value name="ADD1"><block type="text" id="p(2!.,fJc[!v/6ac0k6H"><field name="TEXT">Daemmerung Urlaub gesetzt</field></block></value></block></value></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block></next></block></xml> -
Danke So? Hab mich jetzt nichts mehr dazu schreiben trauen :?
-
Danke So? Hab mich jetzt nichts mehr dazu schreiben trauen :? `
Du hast jetzt wohl alles richtig gemacht.Ich kann den Export allerdings immer noch nicht einlesen.
Bekommst Du eine Fehlermeldung wenn Du auf "Blöcke prüfen" klickst?
Vielleicht liegt es ja auch an mir.
Kann jemand anders den Export importieren?
Grüße
-
Glaub schon, dass ich die Blöcke geprüft habe. Kann nur leider gerade nicht nochmal nachschauen, glaube shreddere gerade ioBroker mit z wave adapter und admin adapter update :oops: melde mich wieder, wenns wieder geht
-
Könntet ihr mir eventuell sagen was in das Textfeld reingehört? `
Das Feld zum Vergleichen mit dem Wochentag ist <u>kein Textfeld</u>, sondern mus eine Zahl sein, so wie von rantanplan geschrieben.
@rantanplan:Wie ich bereits geschrieben habe werden die Wochentage von 1 bis 7 dargestellt. Nicht von 0 bis 6.
Z.B.
Wochentag = 2 = Dienstag
Wochentag > 5 = Wochenende (Samstag oder Sonntag)
Wochentag < 6 = Arbeitswoche (Montag bis Freitag) `
Für das Auslösen zu jeder Minute trage einfach 5 Sterne in den Zeitplan ein: * * * * *
-
Dankeschön aber haut leider noch immer nicht hin. Zu Testzwecken habe ich den Parsus "Daemmerung Arbeit HiFi Mo-So" rausgelöscht, weil das ja jetzt zutreffen würde und er dann ohne die Wochentage triggert. Dafür habe ich bei "Aufstehen Arbeit WE >5" die Uhrzeit bis 15:00 eingetragen. Objektvariable ändert sich leider nicht.
Kann man "jede Sekunde" prüfen eigentlich dann auch im Produktiven so lassen? Fordert ihm das nicht zu viel Rechenleistung ab wenn da mehrere Sachen alle Sekunden laufen? Der Grund von meinem Umstieg von Homey war, dass das ganze so lahm wurde. Lichteinschalten dauerte von 10-50 Sekunden. Vermute, dass die Regeln einfach zu komplex wurden für das Maschinchen und daher bin ich auf das tolle ioBroker gestoßen Macht ioBroker sowas komplexes gar nichts aus? Oder geht der auch irgendwann in die Knie? Hardware ist momentan noch ein Rasperry Pi 3, wenn ich alles einigermaßen hinbekomme würde ich aber auf nen Intel Nuc Gen 7 wechseln.
! ````
<block xmlns="http://www.w3.org/1999/xhtml" type="schedule" id="c|;MRuVnd8fva-~-4=[U" x="65" y="-939"><field name="SCHEDULE">*****</field>
<statement name="STATEMENT"><block type="comment" id=")Ci(qYIfWczY%jgw[qS8"><field name="COMMENT">Arbeit</field>
<next><block type="controls_if" id="#?v{k7:OfCqcqtIzH~z"><mutation else="1"></mutation>
<value name="IF0"><block type="logic_compare" id="lg5igbNtX-UN/fL%s}U6"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id=".Kzi#@mU+8GM~AWVXj%"><field name="ATTR">val</field>
<field name="OID">javascript.0.Variable.Person.VAR100_Arbeit</field></block></value>
<value name="B"><block type="logic_boolean" id="y42H^{%jaLi#2=7|Zde/"><field name="BOOL">TRUE</field></block></value></block></value>
<statement name="DO0"><block type="comment" id="]tjA!-+r);r^tnrZ@Y]"><field name="COMMENT">Aufstehen Arbeit Mo-Fr <6</field>
<next><block type="controls_if" id="?n5I[By}J~m_kFcQdBS"><value name="IF0"><block type="logic_operation" id="@.5WQLLngW?9j@Rt3xJ:"><field name="OP">AND</field>
<value name="A"><block type="logic_compare" id="630ho-4EA3L(R19tP*p"><field name="OP">LT</field> <value name="A"><block type="time_get" id="?mXL_j%XkZWqH/ckQZMt"><mutation format="false" language="false"></mutation> <field name="OPTION">wd</field></block></value> <value name="B"><block type="math_number" id="t[S6ZXf!K*~ZSH|S4%e="><field name="NUM">6</field></block></value></block></value> <value name="B"><block type="time_compare_ex" id="uPfeP_GZLr{idZllO[Wn"><mutation 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="9Z)6:x6:US2mm/Sk%QL8"><field name="TEXT">04:00</field></shadow></value> <value name="END_TIME"><shadow type="text" id="Ra2Q)|9.}3piNeggm^fL"><field name="TEXT">05:50</field></shadow></value></block></value></block></value> <statement name="DO0"><block type="control" id="w+co9}p?})8i-[|75Cs*"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="text" id="XFE_1AYk580G1/MF;3:*"><field name="TEXT">Aufstehzeit Arbeit Mo-Fr Hue</field></block></value> <next><block type="debug" id="hXGMK@9.5{Kf?n7A0(Cw"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="i614)}
m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow>
<block type="text_join" id="fbS7.9}v{;},7-EE~Z_"><mutation items="2"></mutation> <value name="ADD0"><block type="field_oid" id="Fhb}8=Cq2aPbDA-he2[k"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value> <value name="ADD1"><block type="text" id="4u/9O%k@s)4dkyfn(,eo"><field name="TEXT">auf Aufstehzeit Arbeit Mo-Fr gesetzt</field></block></value></block></value></block></next></block></statement> <next><block type="comment" id="dwFeoHF:(%YV]1cMPW^7"><field name="COMMENT">Aufstehen Arbeit WE >5</field> <next><block type="controls_if" id="2-6p:]3RzEQ:*,7#^zFe"><value name="IF0"><block type="logic_operation" id="*Afx}KWJtCypPPt:2|HD"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="9BnWtUYlT
ju~Ij2f.0T"><field name="OP">GT</field>
<value name="A"><block type="time_get" id=";GKJXkbvGsFJ({5u*@0"><mutation format="false" language="false"></mutation> <field name="OPTION">wd</field></block></value> <value name="B"><block type="math_number" id=";Uhz{yb?r~by!MA@bN-5"><field name="NUM">5</field></block></value></block></value> <value name="B"><block type="time_compare_ex" id="t|2pOSv4Oa,{tb?]_kc*"><mutation 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="l[cj@u/2FtGdq(,.M*8["><field name="TEXT">09:30</field></shadow></value> <value name="END_TIME"><shadow type="text" id="A|Pkt?]
]a:~6_zhY|wX"><field name="TEXT">12:30</field></shadow></value></block></value></block></value>
<statement name="DO0"><block type="control" id="Sy!jY|;r_I;2[gF.aZt6"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="text" id="@U-#HIP)sD[L1?Q+t33c"><field name="TEXT">Aufstehzeit Arbeit WE Hue</field></block></value>
<next><block type="debug" id="pS1t{E0a/G^0V{aysh#"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="i614)}
m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow>
<block type="text_join" id="pCH!8EYu]mPlyRsN(Rs"><mutation items="2"></mutation> <value name="ADD0"><block type="field_oid" id="pE~D6n:*iZdB1yA)hR|/"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value> <value name="ADD1"><block type="text" id="BZ9-Q~!/
P,6WI6(jl6b"><field name="TEXT">auf Aufstehzeit Arbeit WE gesetzt</field></block></value></block></value></block></next></block></statement>
<next><block type="comment" id="+H1T6|DoH}3fnckp8_z"><field name="COMMENT">Daemmerung Arbeit HiFi Mo-So</field> <next><block type="controls_if" id="1yv,9_cZu?{s|8R}G0S
"><value name="IF0"><block type="logic_operation" id=".yT#mK]/k|tc!1cR!p{|"><field name="OP">AND</field>
<value name="A"><block type="logic_compare" id="+={uCVHyCS},lv7E@}Se"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="8s12K-0B]GO[pxHZBfhm"><field name="ATTR">val</field>
<field name="OID">javascript.0.Variable.WHG.VAR200_HiFi_An</field></block></value>
<value name="B"><block type="logic_boolean" id="[sk}|x|Co7.FJI@7OQFb"><field name="BOOL">TRUE</field></block></value></block></value>
<value name="B"><block type="logic_compare" id="d]424_6QhEdZQ,qC48,z"><field name="OP">EQ</field>
<value name="A"><block type="time_compare_ex" id="fbhTH2!e52EySHRPB=X|"><mutation 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="d+La6SVqr6jUF_1X?#~"><field name="TEXT">14:00</field></shadow></value> <value name="END_TIME"><shadow type="text" id="1d!SpDWMg1Eg;UcdXwo4"><field name="TEXT">21:25</field></shadow></value></block></value> <value name="B"><block type="logic_boolean" id="r%/RWZVDIrmS5k?h2Stk"><field name="BOOL">TRUE</field></block></value></block></value></block></value> <statement name="DO0"><block type="control" id="YFZYKcWiwFK9i9T7xGFD"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="text" id="l3xz5iteH8235OwCpZ50"><field name="TEXT">Daemmerung Arbeit Hue</field></block></value> <next><block type="debug" id="#tcTGQ8AJWbJE^1w*
(x"><field name="Severity">log</field>
<value name="TEXT"><shadow type="text" id="i614)}m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow> <block type="text_join" id="(I-D~gQ]:W!-yK?/:Z5Q"><mutation items="2"></mutation> <value name="ADD0"><block type="field_oid" id="6=^*t
]3y.[-=Qu3C+aE"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value>
<value name="ADD1"><block type="text" id="v=0j|u3|aPFZyY9a#ppo"><field name="TEXT">auf Daemmerung Arbeit gesetzt</field></block></value></block></value></block></next></block></statement>
<next><block type="comment" id="0=^8i
IZ5R9Fd=ESC:u"><field name="COMMENT">Einschlaf Arbeit Mo-Do <5</field>
<next><block type="controls_if" id="FK3Zu093D,TDqegvptie"><value name="IF0"><block type="logic_operation" id="/%u{Vsp,qG14{^w:lqv"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="jc1@)wFzgi-Px?^SG9vL"><field name="OP">LT</field> <value name="A"><block type="time_get" id="|PZ7Jq;;7Z[Y_gfTgH3-"><mutation format="false" language="false"></mutation> <field name="OPTION">wd</field></block></value> <value name="B"><block type="math_number" id=":vQfL+JuuV*7beR:Mb:l"><field name="NUM">5</field></block></value></block></value> <value name="B"><block type="time_compare_ex" id="||-4;9Qo35;B^EXB#IWV"><mutation 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="w./M~,?{5B
=:?F.nvuO"><field name="TEXT">21:26</field></shadow></value>
<value name="END_TIME"><shadow type="text" id="w#yY0A%V_k17:jk-Hj="><field name="TEXT">23:30</field></shadow></value></block></value></block></value> <statement name="DO0"><block type="control" id=";[iyF:Ch9iuUrL.1GJZU"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="text" id="55Y
+OS-h4N?A+[IP72x"><field name="TEXT">Einschlaf Hue</field></block></value>
<next><block type="debug" id=":B.S8.x:QH0yg[2=Uh"><field name="Severity">log</field>
<value name="TEXT"><shadow type="text" id="i614)}m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow> <block type="text_join" id="hHgj4i55J[?T8T/;6dNn"><mutation items="2"></mutation> <value name="ADD0"><block type="field_oid" id="uepHj2:iYuWz%ppnOKh["><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value> <value name="ADD1"><block type="text" id="9Xg{4)WlU/UDQ2*ml19x"><field name="TEXT">Einschlaf gesetzt</field></block></value></block></value></block></next></block></statement> <next><block type="comment" id="WugZZP[c}p~Wy*#i1?Q]"><field name="COMMENT">Auto Daemmerung Fr-So >4</field> <next><block type="controls_if" id="ijfiUP/@3d~U7.d@nL7w"><value name="IF0"><block type="logic_operation" id="0@nwqy6.@hrl,mxeBcU^"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="tHr{RUhqhO2QYQ[ib+xH"><field name="OP">GT</field> <value name="A"><block type="time_get" id="D3o8}NL.:C#??jl1]
T|"><mutation format="false" language="false"></mutation>
<field name="OPTION">wd</field></block></value>
<value name="B"><block type="math_number" id="O-:RW#uG{Es[e2.G~[K"><field name="NUM">4</field></block></value></block></value> <value name="B"><block type="time_compare_ex" id="mE0:Q.jc[s:TAI6HR
+D"><mutation 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="!S[a@]4rG;Y{xp5[R7|w"><field name="TEXT">21:26</field></shadow></value>
<value name="END_TIME"><shadow type="text" id="8lcdrYv38}K-qQlGdc{F"><field name="TEXT">23:30</field></shadow></value></block></value></block></value>
<statement name="DO0"><block type="control" id="R6Dz#,njq}OTiD67;Qd"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="text" id="Jq92-2w@GoQ^.4L3Xiun"><field name="TEXT">Daemmerung Hue</field></block></value> <next><block type="debug" id="emlhh*#hq!fT(shY_*(x"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="i614)}
m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow>
<block type="text_join" id="Zl#2{^NAf?c/bWnCiW"><mutation items="2"></mutation> <value name="ADD0"><block type="field_oid" id="ptHjb?r4:Dbmhkx4QW9q"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value> <value name="ADD1"><block type="text" id="I^j4.,VM|!~^,^tA*7,{"><field name="TEXT">Daemmerung gesetzt</field></block></value></block></value></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement> <statement name="ELSE"><block type="comment" id="A5B.6R.}ZLM6-EO
uXXx"><field name="COMMENT">Urlaub</field>
<next><block type="controls_if" id="d9R@IHuCPqW0Q5cXQaN7"><value name="IF0"><block type="logic_compare" id="-5%s!K):_],y_RV2~[G"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id=";xn6+pwzvyY6@mhntq~L"><field name="ATTR">val</field>
<field name="OID">javascript.0.Variable.Person.VAR100_Arbeit</field></block></value>
<value name="B"><block type="logic_boolean" id="bYhI|5WMubvj/D6c:aj1"><field name="BOOL">FALSE</field></block></value></block></value>
<statement name="DO0"><block type="comment" id="sDxm|E]Pi8NASyvE%XCo"><field name="COMMENT">Aufstehen Urlaub</field>
<next><block type="controls_if" id="~c^AEtQBSV5;RPmo]Z57"><value name="IF0"><block type="time_compare_ex" id="(zqTbNDYKu0:zxp+wL3"><mutation 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="@}:#Q0[k*~Jd^BL[Gl[V"><field name="TEXT">09:30</field></shadow></value>
<value name="END_TIME"><shadow type="text" id=")|e5}OO|0UPQ/@DeQe^"><field name="TEXT">11:00</field></shadow></value></block></value>
<statement name="DO0"><block type="control" id="/QE?sY(al4eyDG||5Yr"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="text" id="#]IJCc.ui%cDqw_J5D
T"><field name="TEXT">Aufstehzeit Urlaub Hue</field></block></value>
<next><block type="debug" id="Zu[;@Id7mJzS%)u0+JXQ"><field name="Severity">log</field>
<value name="TEXT"><shadow type="text" id="i614)}m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow> <block type="text_join" id=")fneWOZ_GW{IC@/%mvp("><mutation items="2"></mutation> <value name="ADD0"><block type="field_oid" id="F^)j03giLn(Bc7Bw0-q9"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value> <value name="ADD1"><block type="text" id="M9{E#5ie[~A7nhi));)C"><field name="TEXT">auf Aufstehzeit Urlaub gesetzt</field></block></value></block></value></block></next></block></statement></block></next></block></statement> <next><block type="comment" id="Pe~J38p.]m^jo@D_69CB"><field name="COMMENT">Daemmerung HiFi Urlaub</field> <next><block type="controls_if" id="JG{)garR5(ydf
L.dwN%"><value name="IF0"><block type="logic_operation" id="%@6r=VKASm(r~mF.wOk"><field name="OP">AND</field>
<value name="A"><block type="logic_compare" id="#Z^,Ov?qS[iotjI+^,83"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="yH%b(%JeT8r:I(DXuXTn"><field name="ATTR">val</field>
<field name="OID">javascript.0.Variable.WHG.VAR200_HiFi_An</field></block></value>
<value name="B"><block type="logic_boolean" id="OT32T_C-MOrLfX(/~|M"><field name="BOOL">TRUE</field></block></value></block></value>
<value name="B"><block type="logic_compare" id="?eS:NS-J)O}uONFfMzZ"><field name="OP">EQ</field>
<value name="A"><block type="time_compare_ex" id="MNXF:1bOwHD{%@uyy(C;"><mutation 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="uzqHBIek61}}O,qyf*^6"><field name="TEXT">14:00</field></shadow></value>
<value name="END_TIME"><shadow type="text" id="0^kf?Ml?nGjf9+)rL4}"><field name="TEXT">21:25</field></shadow></value></block></value> <value name="B"><block type="logic_boolean" id="LHIqmO6
Ymca3TwyG[G"><field name="BOOL">TRUE</field></block></value></block></value></block></value> <statement name="DO0"><block type="control" id="jkn06thS2ocl6}Q6Eyzd"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="text" id="b}rP^zC50Y/:~9?ud8|?"><field name="TEXT">Daemmerung Urlaub Hue</field></block></value> <next><block type="debug" id=",K2ZJ)f;1N@4YaIWc@W|"><field name="Severity">log</field> <value name="TEXT"><shadow type="text" id="i614)}
m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow>
<block type="text_join" id="?FRFcBj*0%[zsAp+fxm|"><mutation items="2"></mutation>
<value name="ADD0"><block type="field_oid" id="BbfkC@#-eo)|}5Z?pP6"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value> <value name="ADD1"><block type="text" id="Q|Ws4
g0@0O(KKbPgo="><field name="TEXT">auf Daemmerung Urlaub gesetzt</field></block></value></block></value></block></next></block></statement>
<next><block type="comment" id="?VUemN18J(1E,8c-S~kY"><field name="COMMENT">Daemmerung Auto Urlaub</field>
<next><block type="controls_if" id="?fiA1}^!|eZBocthy??A"><value name="IF0"><block type="time_compare_ex" id="GN:j{6pBd{zIU7wKf}e="><mutation 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="uBGWU/8nyBa1|NI7elZ"><field name="TEXT">21:26</field></shadow></value> <value name="END_TIME"><shadow type="text" id="ne62D@EJrbwRBC
G+V9s"><field name="TEXT">23:30</field></shadow></value></block></value>
<statement name="DO0"><block type="control" id="tCVvl7I(rutr.L_#|yta"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="text" id="#AC!uQOBb~LKDS,0;I/M"><field name="TEXT">Daemmerung Urlaub Hue</field></block></value>
<next><block type="debug" id="2{DikCKC){}Y!G?;s)y#"><field name="Severity">log</field>
<value name="TEXT"><shadow type="text" id="i614)}m8~UK+G?RiO|f"><field name="TEXT">test</field></shadow> <block type="text_join" id="
l^m+m}TK?/KC%[8=k%g"><mutation items="2"></mutation>
<value name="ADD0"><block type="field_oid" id="c5~N4^)HL6Hc+5/1,oT0"><field name="oid">javascript.0.Variable.HUE.WHG_VAR800_Tageseinteilung</field></block></value>
<value name="ADD1"><block type="text" id="p(2!.,fJc[!v/6ac0k6H"><field name="TEXT">Daemmerung Urlaub gesetzt</field></block></value></block></value></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block> -
Zwischen den Sternen im Zeitplan müssen Leerzeichen stehen.
-
Du hast generell (außer um 21:25 Uhr) vergessen, zu programmieren, was am Ende der angegebenen Zeitspanne passieren soll (Sonst-Zweige fehlen).
-
looool jetzt habe ich alle Böcke geschossen, die man schießen kann? Vielen lieben Dank, jetzt geht es. Wünsche euch schon einmal Frohe Ostern, falls wir uns nicht mehr lesen….
-
looool jetzt habe ich alle Böcke geschossen, die man schießen kann? `
Also doch ein Fehler im Blockly?Frohe Ostern
-
Jein. Das was du gesagt hast war schon der Fehler. Habe dann beim Trigger Zeitplan noch einen Fehler eingebaut, weil kein Leerzeichen zwischen den Sternen war.