Hallo,
Nachdem ich heute nun den ganzen Tag mit flashen und einrichten verbracht habe, habe ich ein Programm geschrieben welches nachts alles (fast alles) ausschalten soll, aber blockly sendet wohl keine Impulse? Javaskipt hingegen geht (Telegramm)
Skipt Nachts alles ausschlaten:
Code
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on_ext" id="Z%pwpo77Ke?O,D]Yl8r." x="-337" y="-187">
<mutation items="1"></mutation>
<field name="CONDITION">true</field>
<field name="ACK_CONDITION"></field>
<value name="OID0">
<shadow type="field_oid" id="Wkv)w9(ONU#s.Wro)[jM">
<field name="oid">default</field>
</shadow>
<block type="time_compare" id="+YA4b`OD=DA]0ExpK@Mr">
<mutation end_time="false"></mutation>
<field name="OPTION">>=</field>
<field name="START_TIME">16:43</field>
</block>
</value>
<statement name="STATEMENT">
<block type="comment" id="Ziul@eH%xgz3K3rm!cHz">
<field name="COMMENT">Herd?</field>
<next>
<block type="control" id="fLBB/][GhTP5[Ve,0vQV">
<mutation delay_input="false"></mutation>
<field name="OID">hs100.0.192_168_178_31.state</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="1xznliegdIBxuDoxZ[Zw">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="comment" id="Jgx[~FZU]xR~[g+ks:4G">
<field name="COMMENT">LED-Leiste Bad</field>
<next>
<block type="control" id="RnBOL4C`XSxPc)M}Bny.">
<mutation delay_input="true"></mutation>
<field name="OID">[definition='102','0']hue[/definition].0.Philips_hue.Led-Strip.on</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">1000</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="ck]wf,:kB5seuDR%c}TG">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="comment" id="~T20wuadFE5g1Ky4sj.t">
<field name="COMMENT">Esstisch</field>
<next>
<block type="control" id="2Mp8q%s,;A:|6l*IbVM:">
<mutation delay_input="true"></mutation>
<field name="OID">tradfri.0.L-65537.lightbulb.state</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">1500</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="]iE[IDwJKD,FIC}SC[p6">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="comment" id="`nR|3QUt%kT5rVyTW-`1">
<field name="COMMENT">Küchentisch</field>
<next>
<block type="control" id="hu242Q?T}k;xjKM9}iB(">
<mutation delay_input="true"></mutation>
<field name="OID">tradfri.0.L-65544.lightbulb.state</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">2000</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="dfW3rmEBEWIr!aUaD^`g">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="comment" id="@G@K+8);!+*LJ?:LmAlm">
<field name="COMMENT">Deckenlampe Flur groß</field>
<next>
<block type="control" id="Q9,t2Ox`R8=DLy{!h;oD">
<mutation delay_input="true"></mutation>
<field name="OID">tradfri.0.G-195470.state</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">2500</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="jhGBm_x.7OLQ],;fp.VU">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
Alles anzeigen
und hier noch ein weiteres wo mein [definition='25','0']Sonoff[/definition] th10 (Feuchtigkeitssensor) eine [definition='38','0']Infrarotheizung[/definition] im Bad nach Feuchtigkeit regeln soll! Welches auch nicht geht.
Code
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on" id="IF:L)/OlWx|9MkLU..}B" x="-462" y="-212">
<field name="OID">[definition='84','0']sonoff[/definition].0.Couchheizung.AM2301_Humidity</field>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id="j87.ZsAyGl(mU8^*6Tr;">
<mutation elseif="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="u]6#GJ?W(}eGZlWHNfmy">
<field name="OP">GTE</field>
<value name="A">
<block type="get_value" id="_0*k%JdKf23sQc076KVO">
<field name="ATTR">val</field>
<field name="OID">[definition='84','0']sonoff[/definition].0.Couchheizung.AM2301_Humidity</field>
</block>
</value>
<value name="B">
<block type="math_number" id="j*0OATgQry,o+Gwn]zZB">
<field name="NUM">60</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="p)NNq0O@oTT4jzW=lnZh">
<mutation delay_input="false"></mutation>
<field name="OID">[definition='84','0']sonoff[/definition].0.Couchheizung.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="SGs#kdn4GT_^=dq(:C0j">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</statement>
<value name="IF1">
<block type="logic_compare" id="PKN5S)mQ|YQG+HYQ?W},">
<field name="OP">LTE</field>
<value name="A">
<block type="get_value" id="%|S3|w)ggi^}8*9~^06K">
<field name="ATTR">val</field>
<field name="OID">[definition='84','0']sonoff[/definition].0.Couchheizung.AM2301_Humidity</field>
</block>
</value>
<value name="B">
<block type="math_number" id="oW;TPUunqp4(jnlg72zz">
<field name="NUM">50</field>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="control" id="s2}g7hQa8,Nn,M*WbHBl">
<mutation delay_input="false"></mutation>
<field name="OID">[definition='84','0']sonoff[/definition].0.Couchheizung.POWER</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="V,i?Dz~#m{mf;#a.CC`T">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Alles anzeigen
Ich frage mich wo da mein Fehler ist da Blockly so rein gar nicht laufen möchte???
Grüße Matcon