NEWS
Rolladen/Beschattung Blockly
-
Hallo,
ich habe mir folgendes einfaches Blockly zusammen geklickt.
Es funktioniert aber nicht.
Kann mir einer der Spezis vielleicht sagen wo ich da meinen Fehler eingebaut habe.
Hier der export
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id="025W,vKkAw^{oaLn#?{k" x="-837" y="-412"><field name="COMMENT">Kommentar</field> <next><block type="on" id="[A/^r*g:1xbUF4OHUqj!"><field name="OID">weatherunderground.0.current.temp_c</field> <field name="CONDITION">ne</field> <statement name="STATEMENT"><block type="controls_if" id="3drE2#7[?4(6%Xl(F)w{"><value name="IF0"><block type="time_compare" id="p9/4|1%s,,A;/BQ,-#:f"><mutation end_time="true"></mutation> <field name="OPTION">between</field> <field name="START_TIME">10:00</field> <field name="END_TIME">20:00</field></block></value> <statement name="DO0"><block type="controls_if" id="h|_NPlK@BJ=P!NR|r:7?"><mutation elseif="1"></mutation> <value name="IF0"><block type="logic_operation" id="a.h`?p4?W/ZJii{yjRh+"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="_5H;+jU5l.Au2K(7t=Wa"><field name="OP">GT</field> <value name="A"><block type="get_value" id="r2V7h0ipiGV;W(~TB+12"><field name="ATTR">val</field> <field name="OID">weatherunderground.0.current.temp_c</field></block></value> <value name="B"><block type="math_number" id="f;T3}6D]Xg/6z260.`fg"><field name="NUM">23</field></block></value></block></value> <value name="B"><block type="logic_compare" id="[8q+*CXWXyNrL-.rf#=H"><field name="OP">GT</field> <value name="A"><block type="get_value" id="Gu88%e*lsH7=Q;Y.1j@w"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.NEQ1296140.1.BRIGHTNESS</field></block></value> <value name="B"><block type="math_number" id="#KxsJQ{}yh1V9@Zyo2Vm"><field name="NUM">200</field></block></value></block></value></block></value> <statement name="DO0"><block type="controls_if" id="7`4r`m*8qqH~w~4#QUcG"><value name="IF0"><block type="logic_compare" id=",`.,.AiYaFHV[0~WOCMc"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="CMXy.LP)L^.q*v!6YT=6"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.OEQ0429874.1.STATE</field></block></value> <value name="B"><block type="logic_boolean" id="MUtE)Y_XPETBvb+7}vq1"><field name="BOOL">FALSE</field></block></value></block></value> <statement name="DO0"><block type="control" id="iU@~#H2;bcdlY?QvL.zW"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ0259191.1.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="NvWqI9{*hSbI1n)KL6-O"><field name="NUM">70</field></block></value> <next><block type="control" id="XfjVm;;_1E[KES{?5X=u"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ0259579.1.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="[ai%|D3-NYC/Jd/Y^DK2"><field name="NUM">50</field></block></value> <next><block type="control" id="V]@n=;yFN7a}DGZ%cW~*"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ0050030.1.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="ryu24Si)|b~Je*]^nEP9"><field name="NUM">50</field></block></value></block></next></block></next></block></statement> <next><block type="debug" id="c;B/43|A-AlvB+wjwUBQ"><field name="Severity">debug</field> <value name="TEXT"><shadow type="text" id="67^Q=Kd)fij7+o3m0(Rj"><field name="TEXT">Beschattung</field></shadow></value></block></next></block></statement> <value name="IF1"><block type="logic_operation" id="#)WrPdx|S5eU||f8*;oW"><field name="OP">AND</field> <value name="A"><block type="logic_compare" id="CP|Rw%pNYH2USxJNN+Xv"><field name="OP">LTE</field> <value name="A"><block type="get_value" id="}PHqqS!AGZndv2+LrgZn"><field name="ATTR">val</field> <field name="OID">weatherunderground.0.current.temp_c</field></block></value> <value name="B"><block type="math_number" id="4d/|k5M/gMH2j8TORCX4"><field name="NUM">23</field></block></value></block></value> <value name="B"><block type="logic_compare" id="uYkP3l;t~jhh9`a;chw!"><field name="OP">LT</field> <value name="A"><block type="get_value" id="%je[;-7K~=s#oTV*+dYm"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.NEQ1296140.1.BRIGHTNESS</field></block></value> <value name="B"><block type="math_number" id="RU(0%J;QuQa)+6{@RMTT"><field name="NUM">210</field></block></value></block></value></block></value> <statement name="DO1"><block type="control" id="?:(?jC@rtT;t1){oI[2|"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ0259191.1.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="y%/y_!2m}M!fSr=Lek+J"><field name="NUM">100</field></block></value> <next><block type="control" id="t:nPDB`(UW1*JK[LZZ^;"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ0259579.1.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="#kpwOsrwW;N)NF.{Rf0B"><field name="NUM">100</field></block></value> <next><block type="control" id="]UAA`SjHrzIrapR]}gb~"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.OEQ0050030.1.LEVEL</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="math_number" id="^E9nzjSRk6-Vho8*E%YV"><field name="NUM">100</field></block></value></block></next></block></next></block></statement></block></statement></block></statement></block></next></block></xml>
-
Auf den ersten Blick sehe ich kein Problem. Füg dir am besten innerhalb jeder Bedingung mal einen Debug-Block ein, damit du siehst, was aufgerufen wird und was nicht. Eventuell erkennst du dann schon dein Problem.
-
Ich bin noch anfänger oder Leihe,
Aber hebt das „sonst falls „nicht den ersten Block komplett aus für die Urzeit?
Gruß Ralf