NEWS
[gelöst] Script mit Blockly funktioniert nicht.
-
Kannst du mir einmal ein Block zeigen wenn ich es ohne variable mache und dafür ein Schalter mit state oder so nehme? Mit mind. zwei kontakte eine "und" und eine "oder" Verknüpfung. `
Hast Du Glück, dass es heute so warm ist und ich nur fauf auf der Terasse rumliege :DAlso ohne Variablen geht es nicht.
Aber Du hast ja schon die beiden "TFK-Nacht" und "TFK-Tag"
Dann noch zwei Blockly's
Einen für den Wandtaster um die TFK-xyz wahr/unwahr zu schalten.

Dann ein Blockly für die Überwachung Deiner Fenster und eine Aktion WENN TFK-xyz WAHR ist.

Hier noch die Exports:
Taster
! ````
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id="tpBa(f]sgsZ5M];F`uRs" x="-87" y="-12"><field name="COMMENT">Alarm-Variablen über Wandtaster schalten</field>
<next><block type="on_ext" id="7r*}c).]GtkEH)FR.:s."><mutation items="4"></mutation>
<field name="CONDITION">true</field><value name="OID0"><shadow type="field_oid" id="7P6[Xjf6pk@,%Tg7_bj7"><field name="oid">default</field></shadow> <block type="field_oid" id="VT[YRsoWd%g!buUj-#6T"><field name="oid">hm-rpc.0.MEQ1084629.1.PRESS_SHORT</field></block></value> <value name="OID1"><shadow type="field_oid" id="6%pe7i9q7k}biWmy/]~T"><field name="oid">default</field></shadow> <block type="field_oid" id="/.b(qBMraY8/snjHpj%p"><field name="oid">hm-rpc.0.MEQ1084629.2.PRESS_SHORT</field></block></value> <value name="OID2"><shadow type="field_oid" id="UYAY;BDcu2G#z8=%)UqM"><field name="oid">default</field></shadow> <block type="field_oid" id="RT]JV!5mz@*efP(1EpNk"><field name="oid">hm-rpc.0.MEQ1084629.3.PRESS_SHORT</field></block></value> <value name="OID3"><shadow type="field_oid" id=":,fs1z^Uv=y1SWkS}]Mu"><field name="oid">default</field></shadow> <block type="field_oid" id="}):el1:Dpz*|5%5n7*Sy"><field name="oid">hm-rpc.0.MEQ1084629.4.PRESS_SHORT</field></block></value> <statement name="STATEMENT"><block type="controls_if" id="53w`on3Q~KRaZW)3F6_["><mutation elseif="3"></mutation> <value name="IF0"><block type="get_value" id="P@NI`rXEcxZ3C#D/+y|k"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1084629.1.PRESS_SHORT</field></block></value> <statement name="DO0"><block type="comment" id="AxCb-VI,PHT~S=RtX;*#"><field name="COMMENT">Taste-1 TFK-Nacht auf WAHR</field> <next><block type="control" id="karJCbC+k?+MmD{-LwN_"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.TFK-Nacht</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="Lsmw:DH[l`8!:%Z}Dtv1"><field name="BOOL">TRUE</field></block></value> <next><block type="update" id="RJCz/J-c{~0vTl{{Q,d("><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.MEQ1084629.1.PRESS_SHORT</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="L+CPhg|qqbc(afwuaron"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement> <value name="IF1"><block type="get_value" id="Q+vuW#nnf}N2BRwH:#!g"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1084629.2.PRESS_SHORT</field></block></value> <statement name="DO1"><block type="comment" id="|?]=}.XT4(v/^7g_Z0H3"><field name="COMMENT">Taste-2 TFK-Nacht auf UNWAHR</field> <next><block type="control" id="Ez]P(8YXA-Kw8uCjQGsz"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.TFK-Nacht</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="Z|XE,YCa.mUnXw.~(hhQ"><field name="BOOL">FALSE</field></block></value> <next><block type="update" id="+y*gZ{|#X++c_9u6f0=U"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.MEQ1084629.2.PRESS_SHORT</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="4r^}UwL6aippE;?bzDM3"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement> <value name="IF2"><block type="get_value" id="9s9k@0h@h^}.l4vDWdX8"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1084629.3.PRESS_SHORT</field></block></value> <statement name="DO2"><block type="comment" id=",Z~^g}hA3OHTLtohJ3st"><field name="COMMENT">Taste-3 TFK-Tag auf WAHR</field> <next><block type="control" id="cc_t}?at?E%sHuP1Y6W@"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.TFK-Tag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id=":9Cua|8!JH6G@H=lcw.;"><field name="BOOL">TRUE</field></block></value> <next><block type="update" id="G#Vgo2(mE7gaYv#tu(I%"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.MEQ1084629.3.PRESS_SHORT</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="xz8v3;moy9r`6YTor2~p"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement> <value name="IF3"><block type="get_value" id="Wl/QZS8/)!J0mJN{TX(M"><field name="ATTR">val</field> <field name="OID">hm-rpc.0.MEQ1084629.4.PRESS_SHORT</field></block></value> <statement name="DO3"><block type="comment" id="5rWrH2b#-IdJJSK?1OD9"><field name="COMMENT">Taste-4 TFK-Tag auf UNWAHR</field> <next><block type="control" id="9L:^)f}EFy9uIEL1vi9~"><mutation delay_input="false"></mutation> <field name="OID">javascript.0.TFK-Tag</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="USDdIvLBtS)q)0gx_@%G"><field name="BOOL">FALSE</field></block></value> <next><block type="update" id="%eMy{(6%)(J~[3|~QR7@"><mutation delay_input="false"></mutation> <field name="OID">hm-rpc.0.MEQ1084629.4.PRESS_SHORT</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="v0`v(B=}M1:~:v!N}N3,"><field name="BOOL">FALSE</field></block></value></block></next></block></next></block></statement></block></statement></block></next></block></xml>! ````
Fenster
! ````
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="comment" id="OB0cz[QhM#J7k,mASdYu" x="-512" y="-363"><field name="COMMENT">Fensteraktoren überwachen TFK-Nacht</field>
<next><block type="on_ext" id="W=(hk)60,t,+J_DqQ)2b"><mutation items="2"></mutation>
<field name="CONDITION">true</field><value name="OID0"><shadow type="field_oid" id="{Vf_UILR6N3hHe^x4p_H"><field name="oid">default</field></shadow></value> <value name="OID1"><shadow type="field_oid" id="BPsY5JI-c/scctN!{kxB"><field name="oid">default</field></shadow></value> <statement name="STATEMENT"><block type="comment" id="o*5)8i]oR]tfoG(Qf0A("><field name="COMMENT">prüfen ob TFK-Nacht WAHR ist</field> <next><block type="controls_if" id="#rTyq8Vm/+`[Ea4zzQD5"><value name="IF0"><block type="logic_compare" id="lx3~+NiCwqf2/}F?tNP)"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="G4/IrtE^,w-dpV*^TL*M"><field name="ATTR">val</field> <field name="OID">javascript.0.TFK-Nacht</field></block></value> <value name="B"><block type="logic_boolean" id="L*3KNi(89:4Ng#LzWyju"><field name="BOOL">TRUE</field></block></value></block></value> <statement name="DO0"><block type="comment" id="fbO)#xAxQgZHCSR[b*nA"><field name="COMMENT">Irgendwas tun</field></block></statement></block></next></block></statement></block></next></block><block type="comment" id="TsctnGFpyDPhx}7vUJ@k" x="38" y="-363"><field name="COMMENT">Fensteraktoren überwachen TFK-Tag</field>
<next><block type="on_ext" id="t#9;Y7/:nK.GAFB6qYwG"><mutation items="2"></mutation>
<field name="CONDITION">true</field><value name="OID0"><shadow type="field_oid" id=":*7SxjE1l655Q-hW4iqY"><field name="oid">default</field></shadow></value> <value name="OID1"><shadow type="field_oid" id="z)RZh0E~~al9I|W!+b0e"><field name="oid">default</field></shadow></value> <statement name="STATEMENT"><block type="comment" id="l}ygRTd+dU[5}.AhB9*@"><field name="COMMENT">prüfen ob TFK-Tag WAHR ist</field> <next><block type="controls_if" id="Ni7P]/pq:G*D)?B%hL_p"><value name="IF0"><block type="logic_compare" id="Xx=hA8[ztb+QtY|Th}SK"><field name="OP">EQ</field> <value name="A"><block type="get_value" id="C6la+lXdp851P4{V2zj2"><field name="ATTR">val</field> <field name="OID">javascript.0.TFK-Tag</field></block></value> <value name="B"><block type="logic_boolean" id="Fj^dBjIY}`f*zVvnpMw)"><field name="BOOL">TRUE</field></block></value></block></value> <statement name="DO0"><block type="comment" id="QW-%o_K[%D{!0H6]aO.!"><field name="COMMENT">Irgendwas tun</field></block></statement></block></next></block></statement></block></next></block></xml>! ````
Grüße
-
Bitte erkläre mir wo ich das Thema schließen kann, ich habe was gefunden. `
Da warst Du schneller. :cry:Einach auf Deinen 1. Eintrag gehen, ändern anwählen [gelöst] ….. in den Betreff, absenden anwählen.
Grüße