NEWS
Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung
-
@13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
Und ich bekomme es absolut nicht mehr hin, ein neues, funktionierendes Skript zu schreiben.
was hast du den schon fertig ?
-
@13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
Hi zusammen,
nachdem mein Raspberry abgeschmiert ist, konnte ich leider mein aktuelles WLED Garagentor Skript nicht wiederherstellen.Was hast Du denn bzgl Wiederherstellen schon versucht?
Hast Du schon diesen Thread gesehen?
https://forum.iobroker.net/topic/22069/skripte-aus-backup-herausholen/26
-
@13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
Hi zusammen,
nachdem mein Raspberry abgeschmiert ist, konnte ich leider mein aktuelles WLED Garagentor Skript nicht wiederherstellen.Was hast Du denn bzgl Wiederherstellen schon versucht?
Hast Du schon diesen Thread gesehen?
https://forum.iobroker.net/topic/22069/skripte-aus-backup-herausholen/26
@martinp sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
Hast Du schon diesen Thread gesehen?
@13patrick37
Oder alternativ https://forum.iobroker.net/topic/68740/ein-skript-aus-backup-zurückspielen/2?_=1762167695111
um gezielt ein einzelnes Blockly aus einem Backup zu holen. -
@martinp sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
Hast Du schon diesen Thread gesehen?
@13patrick37
Oder alternativ https://forum.iobroker.net/topic/68740/ein-skript-aus-backup-zurückspielen/2?_=1762167695111
um gezielt ein einzelnes Blockly aus einem Backup zu holen.@codierknecht said in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
@martinp sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
Hast Du schon diesen Thread gesehen?
@13patrick37
Oder alternativ https://forum.iobroker.net/topic/68740/ein-skript-aus-backup-zurückspielen/2?_=1762167695111
um gezielt ein einzelnes Blockly aus einem Backup zu holen.Überragend!! Jetzt habe ich schonmal das Skript wieder! Top - danke!
Nur noch eine Frage zum Datenpunkt - wenn Garage in Bewegung ist soll es einen Datenpunkt mit wahr setzen. Nutze ich hier einen string?
-
@codierknecht said in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
@martinp sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
Hast Du schon diesen Thread gesehen?
@13patrick37
Oder alternativ https://forum.iobroker.net/topic/68740/ein-skript-aus-backup-zurückspielen/2?_=1762167695111
um gezielt ein einzelnes Blockly aus einem Backup zu holen.Überragend!! Jetzt habe ich schonmal das Skript wieder! Top - danke!
Nur noch eine Frage zum Datenpunkt - wenn Garage in Bewegung ist soll es einen Datenpunkt mit wahr setzen. Nutze ich hier einen string?
@13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
eine Frage zum Datenpunkt - wenn Garage in Bewegung ist soll es einen Datenpunkt mit wahr setzen
Wie ist der denn definiert?
-
@13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
eine Frage zum Datenpunkt - wenn Garage in Bewegung ist soll es einen Datenpunkt mit wahr setzen
Wie ist der denn definiert?
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</variable> <variable id="`mAjS]P=RuR7uqc{ipQ`">Tor_in_Bewegung</variable> <variable id="]_%]yGuJ+6l`+e^JVS4H">Tor_offen_dauer_grün</variable> <variable id="O4FHleH:tl6~UI~DkJgr">Tor_grün_blinken</variable> <variable id="Um:Oj{57SH~GJP8C[(hN">Spot</variable> <variable id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</variable> <variable type="timeout" id="Spot Einschalten3">Spot Einschalten3</variable> <variable type="timeout" id="Grün dauer ein2">Grün dauer ein2</variable> <variable type="timeout" id="Endschalter zu alles aus">Endschalter zu alles aus</variable> <variable type="timeout" id="Spot Einschalten2">Spot Einschalten2</variable> </variables> <block type="comment" id="wLPF9*DamS1TcwlFnOq6" x="163" y="90"> <field name="COMMENT">&S2=(Anzahl der LED)</field> <next> <block type="variables_set" id="wCy#f}B32Rs#h3tVd/7y"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> <value name="VALUE"> <block type="text" id="2~=;U~T1w[VM2EFh!90~"> <field name="TEXT">http://192.168.178.38/win&</field> </block> </value> <next> <block type="variables_set" id="Z5c%uZqfQ.UBPN(~~#e7"> <field name="VAR" id="`mAjS]P=RuR7uqc{ipQ`">Tor_in_Bewegung</field> <value name="VALUE"> <block type="text" id="WFd~H{OfUHF7Pp@9ExQC"> <field name="TEXT">SM=0&SS=0&SV=2&S=0&S2=296&GP=1&SP=0&RV=0&SB=255&A=255&R=255&G=0&B=0&W=0&R2=0&G2=0&B2=0&W2=0&FX=60&SX=203&IX=246&T=1</field> </block> </value> <next> <block type="variables_set" id=":HR=,q0iDD[Bh]+6]j2x"> <field name="VAR" id="]_%]yGuJ+6l`+e^JVS4H">Tor_offen_dauer_grün</field> <value name="VALUE"> <block type="text" id="dfI^O:`ov.`4QGyo[B_c"> <field name="TEXT">SM=0&S2=296&SS=0&SV=0&A=255&R=0&G=255&B=0&GP=0&SP=0&FX=0&T=1</field> </block> </value> <next> <block type="variables_set" id="u|VN3}h]89w}`u,*G;Um"> <field name="VAR" id="O4FHleH:tl6~UI~DkJgr">Tor_grün_blinken</field> <value name="VALUE"> <block type="text" id="L8f_z/#e*i_W_[*^eU[9"> <field name="TEXT">SM=0&SS=0&SV=0&S2=296&A=255&R=0&G=255&B=0&R2=0&G=255&B=0&GP=0&SP=0&FX=1&T=1</field> </block> </value> <next> <block type="variables_set" id="ceV2PzJ$}ar?Bk@~jxc("> <field name="VAR" id="Um:Oj{57SH~GJP8C[(hN">Spot</field> <value name="VALUE"> <block type="text" id="[|sy^auHo1-zOm3;L^^_"> <field name="TEXT">SM=0&S2=296&SS=0&SV=0&A=255&R=255&G=190&B=127&GP=4&SP=32&IX=246&FX=0&T=1</field> </block> </value> <next> <block type="variables_set" id="9/F*;FkHU|6(7rCiITW3"> <field name="VAR" id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</field> <value name="VALUE"> <block type="text" id="FOY#k|qLCYVxlLh/_acs"> <field name="TEXT">T=0</field> </block> </value> <next> <block type="comment" id="zeXAjy|E#I,^C,B]Dh7h"> <field name="COMMENT">ACHTUNG die Endschalter für AUF abfragen</field> <next> <block type="comment" id="9-Trv:F3zPe+BX5@y/[p"> <field name="COMMENT">um das Grüne Licht / Spot zu starten</field> <next> <block type="on_ext" id="v5?`O4SHcr}Nd7P#H;6e"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="_wPH/$mF4jZM@f/mg/MD"> <field name="oid">zigbee.0.00158d0007e2f9d4.opened</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="T7{#EbRHXmRlo2Xq[~Jq"> <field name="oid">zigbee.0.00158d0007e2fb36.opened</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="S6f,79TI[l$4}=Si,aqa"> <field name="oid">zigbee.0.001788010cdc8130.illuminance</field> </shadow> </value> <statement name="STATEMENT"> <block type="comment" id="Lna.HF8[AF}FW{{z]@CG"> <field name="COMMENT">Sensor Aqara</field> <next> <block type="controls_if" id="W%#h}eIET7l[*r_S-eVZ"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="wG~IV%=~_1BtuyDSJ59@" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="v%atUy]qWal)tQxya%Ky" inline="false"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="#+rkU$vdA2fG6?=ajjmc"> <field name="ATTR">val</field> <field name="OID">zigbee.0.001788010cdc8130.illuminance</field> </block> </value> <value name="B"> <block type="math_number" id="%mwg[_?BlO%WA1R,J^cB"> <field name="NUM">120</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="FB-Oh#6Bj(_^`$-yu;%i" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="vK(|LmVGSlJQ~pV5D#zQ" inline="false"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=":D03lvcBw)A{DpJ3ZpYL"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0007e2f9d4.opened</field> </block> </value> <value name="B"> <block type="logic_boolean" id="fhtS#Gf_~{.zHChBMvp1"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Ty@[+*1}kB_cIcf:T4c?" inline="false"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ks+Pn:yT51o5MFo!kXZs"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0007e2fb36.opened</field> </block> </value> <value name="B"> <block type="logic_boolean" id="w:`HT`@B^:TI9)Wr;WGs"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="IrTe=+CN4@]r*hihDyiP"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Messwerte.Szenen.Garagentor_in_bewe</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="B7CINQQG?6gkawXe3$KJ"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="request" id="u6]M_o0lmx+1QS3_1*^="> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id="e{{7P{@W#b%2xvxE_eId"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="$a#0I]ocAv%yKuny3uG,"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="N,n09%*EyKyG$mX#+I.-"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="G4rLlef1a/5|Cmj/X]a."> <field name="VAR" id="`mAjS]P=RuR7uqc{ipQ`">Tor_in_Bewegung</field> </block> </value> </block> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="p)GSQ4P@/Wx12ym8Q`O;" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="}112~z=6MVQjjZvkzC1x" inline="false"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="3NZtEuh5:ZEHFrd1=RRm"> <field name="ATTR">val</field> <field name="OID">zigbee.0.001788010cdc8130.illuminance</field> </block> </value> <value name="B"> <block type="math_number" id="(6?[ymBdC~+)a/RL54IF"> <field name="NUM">120</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id=")R!HZq(me8JhA%l}x78=" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="v?#V|X/)Jpb`eX,z`ec{" inline="false"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="~Ey@j|/TLa4F~36Ld;Vj"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0007e2fb36.opened</field> </block> </value> <value name="B"> <block type="logic_boolean" id="N.Jfs`-X$)lmR8g`YPRp"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="iw_.}.KvQ,l:zNd.@c%1" inline="false"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="L8k1|HuV~aVd9u;|S9xT"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0007e2f9d4.opened</field> </block> </value> <value name="B"> <block type="logic_boolean" id="^)yH#4i4|(f|GsdKeRU6"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="request" id="EC|aded,,tGS*2UQ2X.F"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id="ZfYA*N!(k%jzJ.6{ER0j"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="@4B60l_nJp#lV$RY=!Mg"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="Kd-O-|~AOu-ES*gBw^Bo"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="-tm^F}%F:[7Y,kIL%05M"> <field name="VAR" id="O4FHleH:tl6~UI~DkJgr">Tor_grün_blinken</field> </block> </value> </block> </value> <next> <block type="timeouts_cleartimeout" id="Y1?22j!rtHfI3=5/k$2="> <field name="NAME">Grün dauer ein2</field> <next> <block type="timeouts_settimeout" id=",e|l:x%B([-}bdh1!f]6"> <field name="NAME">Grün dauer ein2</field> <field name="DELAY">1</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="request" id="TrEfk2y^lkCRXIrrbA|p"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id=":X,S`|6@xE|S[_y;%CIV"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="Vb+`N?||?{c89-@#s^@i"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="-w~WPwbh?GYK+Dx*CZV1"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="2D{p=f}:@jF0n}G~-;fw"> <field name="VAR" id="]_%]yGuJ+6l`+e^JVS4H">Tor_offen_dauer_grün</field> </block> </value> </block> </value> <next> <block type="timeouts_cleartimeout" id="hUk_z`]$8^X%fMaWP`::"> <field name="NAME">Grün dauer ein2</field> <next> <block type="timeouts_settimeout" id="j/aYA#wkLYF^Gc]4m.r!"> <field name="NAME">Spot Einschalten2</field> <field name="DELAY">5</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="request" id="si#*fieAZdnC.F@ag^%k"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id="o|}fW7)o=NiBUQRgWBSd"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="+Ey2hFJuE:3NC*.wX#P|"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="v~NV75Ox_)N9J{c21Vm1"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="7JTO]uOo;c4$D.Vx/$hs"> <field name="VAR" id="Um:Oj{57SH~GJP8C[(hN">Spot</field> </block> </value> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> <next> <block type="comment" id="oCTMmmFLPEc+-A]T%Fud"> <field name="COMMENT">Endschalter vom Tor zu alles aus</field> <next> <block type="on_ext" id="Kl7[t92[q;LHwWyWzccF"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="q}0i_/?}QjB+F08AYb8j"> <field name="oid">zigbee.0.00158d0007e2f9d4.opened</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="W__/eC.Y1858qsIxou^="> <value name="IF0"> <block type="logic_operation" id=";0RM7(N/H^K$kFIi}mIb" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="4=IE9J[nD(AuNElj+Nw."> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="}lz)+|lgPT`$iFyO@Fsc"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_boolean" id="y|8Y0:Qe!%J;iYe3Y},T"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="VlyuUN/n4]*evEq%;o.5" inline="false"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="llg/0-ibVdRCKZl+nC-["> <field name="ATTR">val</field> <field name="OID">zigbee.0.001788010cdc8130.illuminance</field> </block> </value> <value name="B"> <block type="math_number" id="(}HN#_]@w]obCwjyPH8K"> <field name="NUM">120</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="C=Ievn6b/2Az7(kol,o/"> <field name="NAME">Spot Einschalten3</field> <field name="DELAY">1</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="request" id="p;#.?^s:l/v*ZZ:CA4LH"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id="MhM`A@PAJMKKIuD;`k)3"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="c^XJVr(oMxVv%`lH+y1V"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="WW,wSQ:#!yfnCx2cc=m_"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="rJ(-BNJn`B~##jgAlpD+"> <field name="VAR" id="Um:Oj{57SH~GJP8C[(hN">Spot</field> </block> </value> </block> </value> </block> </statement> <next> <block type="timeouts_settimeout" id="bUkj%WD(;aLc?n^-Np-L"> <field name="NAME">Endschalter zu alles aus</field> <field name="DELAY">60</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="request" id="^;Umnn((|geyUTI8qDyC"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id="(ioj6MV?=7#yE+G!gW6W"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="ugY=.{Me=%vqfbq)MEB0"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="c8bNA.j:JFOO39%@bDz,"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="j6WLjln`VupX~o!u)#%t"> <field name="VAR" id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</field> </block> </value> </block> </value> </block> </statement> <next> <block type="control" id="Vg5;7=!oOLC)#;dLcRcm"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Messwerte.Szenen.Garagentor_in_bewe</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="9ge$6dw#HB.q.~W*q@4G"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> <block type="comment" id="}oz*i0NN;e8RQC2W=niu" x="1237" y="62"> <field name="COMMENT">!!!! ACHTUNG MUSS auf wurde aktualisiert stehen</field> <next> <block type="comment" id="E[P^*NqX=b,.*QlSem/("> <field name="COMMENT">Handsender HM</field> <next> <block type="comment" id="R8VTNLfH;shX|iU?}B*#"> <field name="COMMENT">Spot einschalten</field> <next> <block type="on_ext" id="^Y#tI3BbL;c)mz(Zfnbi" collapsed="true" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="WX)Pm6)r3{Is@kU$i3^r"> <field name="oid">javascript.0.Garage.GaragentorLicht</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="ecQyt_SaZP?;z4^QgG~I"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="c,*]p,_n)IOpbQ68g(L-"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="ijed7W4/F1EaZNJhue]e"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Qc,MX8[p`[*wq5uv6%`Z"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </statement> <next> <block type="comment" id="#mEy;Itxn2~_D)$92I!e"> <field name="COMMENT">Garagentor öffnen / schliessen</field> <next> <block type="on_ext" id="85Xyy):=QU10G-zca6P." collapsed="true" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="$j#2tln^uy1?+kJZ;Dft"> <field name="oid">hm-rpc.0.NEQ1136838.2.PRESS_SHORT</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="9lEpkEQu-AV:TeM2KSgA"> <value name="IF0"> <block type="on_source" id="Vv/]h%942IrB),_k^+wg"> <field name="ATTR">id</field> </block> </value> </block> </statement> <next> <block type="comment" id="~56Mx89X*7K*A)eBjv0q"> <field name="COMMENT">Licht und Garagentor</field> <next> <block type="on_ext" id="JU#.UH:mr_W*2w0L$yXO" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="MxxWTnkJM@,Wb@`_JoH`"> <field name="oid">hm-rpc.0.NEQ1136838.1.PRESS_SHORT</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="Y~b[0:!pIax(wxcX[RDz"> <value name="IF0"> <block type="on_source" id="s..^Q@AY$S=G,w2;+|+:"> <field name="ATTR">id</field> </block> </value> </block> </statement> <next> <block type="comment" id="d/g1NaL^f;8oFx5gsunx"> <field name="COMMENT">Garagentor Stop und Licht aus</field> <next> <block type="on_ext" id="@1ut$?Y_NYcXF}Y}V7t2" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="-GyZcivsp5AZsjF]lc@-"> <field name="oid">hm-rpc.0.NEQ1136838.4.PRESS_SHORT</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="E=tOj6K9-wSsCcxqA/F."> <value name="IF0"> <block type="on_source" id="[g@[LK/RgL_rBucKRdn#"> <field name="ATTR">id</field> </block> </value> <statement name="DO0"> <block type="variables_set" id="M8x@C:oD[Sfslxvb3FO3"> <field name="VAR" id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</field> <value name="VALUE"> <block type="logic_boolean" id="rK2(M1.Ai5~YfFu~U,Y}"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>Kannst dir das Skript gern mal anschauen. Oder soll ich lieber Screenshot posten?
Bekomme noch folgende Fehlermeldung:script.js.Außenbereich.Skript_1: request package is deprecated - please use httpGet (or a stable lib like axios) instead!Funktioniert erstmal alles. Bin nur der Meinung, dass es vielleicht zu umständlich ist.
Ich will nur noch über einen Datenpunkt, siehe Skript, ein "wahr" setzen, wenn die Garage in Bewegung ist. -
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</variable> <variable id="`mAjS]P=RuR7uqc{ipQ`">Tor_in_Bewegung</variable> <variable id="]_%]yGuJ+6l`+e^JVS4H">Tor_offen_dauer_grün</variable> <variable id="O4FHleH:tl6~UI~DkJgr">Tor_grün_blinken</variable> <variable id="Um:Oj{57SH~GJP8C[(hN">Spot</variable> <variable id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</variable> <variable type="timeout" id="Spot Einschalten3">Spot Einschalten3</variable> <variable type="timeout" id="Grün dauer ein2">Grün dauer ein2</variable> <variable type="timeout" id="Endschalter zu alles aus">Endschalter zu alles aus</variable> <variable type="timeout" id="Spot Einschalten2">Spot Einschalten2</variable> </variables> <block type="comment" id="wLPF9*DamS1TcwlFnOq6" x="163" y="90"> <field name="COMMENT">&S2=(Anzahl der LED)</field> <next> <block type="variables_set" id="wCy#f}B32Rs#h3tVd/7y"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> <value name="VALUE"> <block type="text" id="2~=;U~T1w[VM2EFh!90~"> <field name="TEXT">http://192.168.178.38/win&</field> </block> </value> <next> <block type="variables_set" id="Z5c%uZqfQ.UBPN(~~#e7"> <field name="VAR" id="`mAjS]P=RuR7uqc{ipQ`">Tor_in_Bewegung</field> <value name="VALUE"> <block type="text" id="WFd~H{OfUHF7Pp@9ExQC"> <field name="TEXT">SM=0&SS=0&SV=2&S=0&S2=296&GP=1&SP=0&RV=0&SB=255&A=255&R=255&G=0&B=0&W=0&R2=0&G2=0&B2=0&W2=0&FX=60&SX=203&IX=246&T=1</field> </block> </value> <next> <block type="variables_set" id=":HR=,q0iDD[Bh]+6]j2x"> <field name="VAR" id="]_%]yGuJ+6l`+e^JVS4H">Tor_offen_dauer_grün</field> <value name="VALUE"> <block type="text" id="dfI^O:`ov.`4QGyo[B_c"> <field name="TEXT">SM=0&S2=296&SS=0&SV=0&A=255&R=0&G=255&B=0&GP=0&SP=0&FX=0&T=1</field> </block> </value> <next> <block type="variables_set" id="u|VN3}h]89w}`u,*G;Um"> <field name="VAR" id="O4FHleH:tl6~UI~DkJgr">Tor_grün_blinken</field> <value name="VALUE"> <block type="text" id="L8f_z/#e*i_W_[*^eU[9"> <field name="TEXT">SM=0&SS=0&SV=0&S2=296&A=255&R=0&G=255&B=0&R2=0&G=255&B=0&GP=0&SP=0&FX=1&T=1</field> </block> </value> <next> <block type="variables_set" id="ceV2PzJ$}ar?Bk@~jxc("> <field name="VAR" id="Um:Oj{57SH~GJP8C[(hN">Spot</field> <value name="VALUE"> <block type="text" id="[|sy^auHo1-zOm3;L^^_"> <field name="TEXT">SM=0&S2=296&SS=0&SV=0&A=255&R=255&G=190&B=127&GP=4&SP=32&IX=246&FX=0&T=1</field> </block> </value> <next> <block type="variables_set" id="9/F*;FkHU|6(7rCiITW3"> <field name="VAR" id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</field> <value name="VALUE"> <block type="text" id="FOY#k|qLCYVxlLh/_acs"> <field name="TEXT">T=0</field> </block> </value> <next> <block type="comment" id="zeXAjy|E#I,^C,B]Dh7h"> <field name="COMMENT">ACHTUNG die Endschalter für AUF abfragen</field> <next> <block type="comment" id="9-Trv:F3zPe+BX5@y/[p"> <field name="COMMENT">um das Grüne Licht / Spot zu starten</field> <next> <block type="on_ext" id="v5?`O4SHcr}Nd7P#H;6e"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="_wPH/$mF4jZM@f/mg/MD"> <field name="oid">zigbee.0.00158d0007e2f9d4.opened</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="T7{#EbRHXmRlo2Xq[~Jq"> <field name="oid">zigbee.0.00158d0007e2fb36.opened</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="S6f,79TI[l$4}=Si,aqa"> <field name="oid">zigbee.0.001788010cdc8130.illuminance</field> </shadow> </value> <statement name="STATEMENT"> <block type="comment" id="Lna.HF8[AF}FW{{z]@CG"> <field name="COMMENT">Sensor Aqara</field> <next> <block type="controls_if" id="W%#h}eIET7l[*r_S-eVZ"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="wG~IV%=~_1BtuyDSJ59@" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="v%atUy]qWal)tQxya%Ky" inline="false"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="#+rkU$vdA2fG6?=ajjmc"> <field name="ATTR">val</field> <field name="OID">zigbee.0.001788010cdc8130.illuminance</field> </block> </value> <value name="B"> <block type="math_number" id="%mwg[_?BlO%WA1R,J^cB"> <field name="NUM">120</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="FB-Oh#6Bj(_^`$-yu;%i" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="vK(|LmVGSlJQ~pV5D#zQ" inline="false"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=":D03lvcBw)A{DpJ3ZpYL"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0007e2f9d4.opened</field> </block> </value> <value name="B"> <block type="logic_boolean" id="fhtS#Gf_~{.zHChBMvp1"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Ty@[+*1}kB_cIcf:T4c?" inline="false"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ks+Pn:yT51o5MFo!kXZs"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0007e2fb36.opened</field> </block> </value> <value name="B"> <block type="logic_boolean" id="w:`HT`@B^:TI9)Wr;WGs"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="IrTe=+CN4@]r*hihDyiP"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Messwerte.Szenen.Garagentor_in_bewe</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="B7CINQQG?6gkawXe3$KJ"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="request" id="u6]M_o0lmx+1QS3_1*^="> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id="e{{7P{@W#b%2xvxE_eId"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="$a#0I]ocAv%yKuny3uG,"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="N,n09%*EyKyG$mX#+I.-"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="G4rLlef1a/5|Cmj/X]a."> <field name="VAR" id="`mAjS]P=RuR7uqc{ipQ`">Tor_in_Bewegung</field> </block> </value> </block> </value> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="p)GSQ4P@/Wx12ym8Q`O;" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="}112~z=6MVQjjZvkzC1x" inline="false"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="3NZtEuh5:ZEHFrd1=RRm"> <field name="ATTR">val</field> <field name="OID">zigbee.0.001788010cdc8130.illuminance</field> </block> </value> <value name="B"> <block type="math_number" id="(6?[ymBdC~+)a/RL54IF"> <field name="NUM">120</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id=")R!HZq(me8JhA%l}x78=" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="v?#V|X/)Jpb`eX,z`ec{" inline="false"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="~Ey@j|/TLa4F~36Ld;Vj"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0007e2fb36.opened</field> </block> </value> <value name="B"> <block type="logic_boolean" id="N.Jfs`-X$)lmR8g`YPRp"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="iw_.}.KvQ,l:zNd.@c%1" inline="false"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="L8k1|HuV~aVd9u;|S9xT"> <field name="ATTR">val</field> <field name="OID">zigbee.0.00158d0007e2f9d4.opened</field> </block> </value> <value name="B"> <block type="logic_boolean" id="^)yH#4i4|(f|GsdKeRU6"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="request" id="EC|aded,,tGS*2UQ2X.F"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id="ZfYA*N!(k%jzJ.6{ER0j"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="@4B60l_nJp#lV$RY=!Mg"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="Kd-O-|~AOu-ES*gBw^Bo"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="-tm^F}%F:[7Y,kIL%05M"> <field name="VAR" id="O4FHleH:tl6~UI~DkJgr">Tor_grün_blinken</field> </block> </value> </block> </value> <next> <block type="timeouts_cleartimeout" id="Y1?22j!rtHfI3=5/k$2="> <field name="NAME">Grün dauer ein2</field> <next> <block type="timeouts_settimeout" id=",e|l:x%B([-}bdh1!f]6"> <field name="NAME">Grün dauer ein2</field> <field name="DELAY">1</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="request" id="TrEfk2y^lkCRXIrrbA|p"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id=":X,S`|6@xE|S[_y;%CIV"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="Vb+`N?||?{c89-@#s^@i"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="-w~WPwbh?GYK+Dx*CZV1"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="2D{p=f}:@jF0n}G~-;fw"> <field name="VAR" id="]_%]yGuJ+6l`+e^JVS4H">Tor_offen_dauer_grün</field> </block> </value> </block> </value> <next> <block type="timeouts_cleartimeout" id="hUk_z`]$8^X%fMaWP`::"> <field name="NAME">Grün dauer ein2</field> <next> <block type="timeouts_settimeout" id="j/aYA#wkLYF^Gc]4m.r!"> <field name="NAME">Spot Einschalten2</field> <field name="DELAY">5</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="request" id="si#*fieAZdnC.F@ag^%k"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id="o|}fW7)o=NiBUQRgWBSd"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="+Ey2hFJuE:3NC*.wX#P|"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="v~NV75Ox_)N9J{c21Vm1"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="7JTO]uOo;c4$D.Vx/$hs"> <field name="VAR" id="Um:Oj{57SH~GJP8C[(hN">Spot</field> </block> </value> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> <next> <block type="comment" id="oCTMmmFLPEc+-A]T%Fud"> <field name="COMMENT">Endschalter vom Tor zu alles aus</field> <next> <block type="on_ext" id="Kl7[t92[q;LHwWyWzccF"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="q}0i_/?}QjB+F08AYb8j"> <field name="oid">zigbee.0.00158d0007e2f9d4.opened</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="W__/eC.Y1858qsIxou^="> <value name="IF0"> <block type="logic_operation" id=";0RM7(N/H^K$kFIi}mIb" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="4=IE9J[nD(AuNElj+Nw."> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="}lz)+|lgPT`$iFyO@Fsc"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_boolean" id="y|8Y0:Qe!%J;iYe3Y},T"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="VlyuUN/n4]*evEq%;o.5" inline="false"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="llg/0-ibVdRCKZl+nC-["> <field name="ATTR">val</field> <field name="OID">zigbee.0.001788010cdc8130.illuminance</field> </block> </value> <value name="B"> <block type="math_number" id="(}HN#_]@w]obCwjyPH8K"> <field name="NUM">120</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="C=Ievn6b/2Az7(kol,o/"> <field name="NAME">Spot Einschalten3</field> <field name="DELAY">1</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="request" id="p;#.?^s:l/v*ZZ:CA4LH"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id="MhM`A@PAJMKKIuD;`k)3"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="c^XJVr(oMxVv%`lH+y1V"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="WW,wSQ:#!yfnCx2cc=m_"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="rJ(-BNJn`B~##jgAlpD+"> <field name="VAR" id="Um:Oj{57SH~GJP8C[(hN">Spot</field> </block> </value> </block> </value> </block> </statement> <next> <block type="timeouts_settimeout" id="bUkj%WD(;aLc?n^-Np-L"> <field name="NAME">Endschalter zu alles aus</field> <field name="DELAY">60</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="request" id="^;Umnn((|geyUTI8qDyC"> <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="URL"> <shadow type="text" id="(ioj6MV?=7#yE+G!gW6W"> <field name="TEXT">text</field> </shadow> <block type="text_join" id="ugY=.{Me=%vqfbq)MEB0"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="c8bNA.j:JFOO39%@bDz,"> <field name="VAR" id="*OTdEQ@gmp6[ml}Z-7G3">IP_Adresse_WLED</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="j6WLjln`VupX~o!u)#%t"> <field name="VAR" id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</field> </block> </value> </block> </value> </block> </statement> <next> <block type="control" id="Vg5;7=!oOLC)#;dLcRcm"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">0_userdata.0.Messwerte.Szenen.Garagentor_in_bewe</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="9ge$6dw#HB.q.~W*q@4G"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> <block type="comment" id="}oz*i0NN;e8RQC2W=niu" x="1237" y="62"> <field name="COMMENT">!!!! ACHTUNG MUSS auf wurde aktualisiert stehen</field> <next> <block type="comment" id="E[P^*NqX=b,.*QlSem/("> <field name="COMMENT">Handsender HM</field> <next> <block type="comment" id="R8VTNLfH;shX|iU?}B*#"> <field name="COMMENT">Spot einschalten</field> <next> <block type="on_ext" id="^Y#tI3BbL;c)mz(Zfnbi" collapsed="true" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="WX)Pm6)r3{Is@kU$i3^r"> <field name="oid">javascript.0.Garage.GaragentorLicht</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="ecQyt_SaZP?;z4^QgG~I"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="c,*]p,_n)IOpbQ68g(L-"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="ijed7W4/F1EaZNJhue]e"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Qc,MX8[p`[*wq5uv6%`Z"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </statement> <next> <block type="comment" id="#mEy;Itxn2~_D)$92I!e"> <field name="COMMENT">Garagentor öffnen / schliessen</field> <next> <block type="on_ext" id="85Xyy):=QU10G-zca6P." collapsed="true" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="$j#2tln^uy1?+kJZ;Dft"> <field name="oid">hm-rpc.0.NEQ1136838.2.PRESS_SHORT</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="9lEpkEQu-AV:TeM2KSgA"> <value name="IF0"> <block type="on_source" id="Vv/]h%942IrB),_k^+wg"> <field name="ATTR">id</field> </block> </value> </block> </statement> <next> <block type="comment" id="~56Mx89X*7K*A)eBjv0q"> <field name="COMMENT">Licht und Garagentor</field> <next> <block type="on_ext" id="JU#.UH:mr_W*2w0L$yXO" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="MxxWTnkJM@,Wb@`_JoH`"> <field name="oid">hm-rpc.0.NEQ1136838.1.PRESS_SHORT</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="Y~b[0:!pIax(wxcX[RDz"> <value name="IF0"> <block type="on_source" id="s..^Q@AY$S=G,w2;+|+:"> <field name="ATTR">id</field> </block> </value> </block> </statement> <next> <block type="comment" id="d/g1NaL^f;8oFx5gsunx"> <field name="COMMENT">Garagentor Stop und Licht aus</field> <next> <block type="on_ext" id="@1ut$?Y_NYcXF}Y}V7t2" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="-GyZcivsp5AZsjF]lc@-"> <field name="oid">hm-rpc.0.NEQ1136838.4.PRESS_SHORT</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="E=tOj6K9-wSsCcxqA/F."> <value name="IF0"> <block type="on_source" id="[g@[LK/RgL_rBucKRdn#"> <field name="ATTR">id</field> </block> </value> <statement name="DO0"> <block type="variables_set" id="M8x@C:oD[Sfslxvb3FO3"> <field name="VAR" id="FE;=bub#@-:/yZ/%L*yZ">komplett_aus</field> <value name="VALUE"> <block type="logic_boolean" id="rK2(M1.Ai5~YfFu~U,Y}"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>Kannst dir das Skript gern mal anschauen. Oder soll ich lieber Screenshot posten?
Bekomme noch folgende Fehlermeldung:script.js.Außenbereich.Skript_1: request package is deprecated - please use httpGet (or a stable lib like axios) instead!Funktioniert erstmal alles. Bin nur der Meinung, dass es vielleicht zu umständlich ist.
Ich will nur noch über einen Datenpunkt, siehe Skript, ein "wahr" setzen, wenn die Garage in Bewegung ist.@13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
Kannst dir das Skript gern mal anschauen. Oder soll ich lieber Screenshot posten?
Bitte Blockly immer als Screenshot liefern.
Den Code kann man optional (hinter 'nem Spoiler) zusätzlich liefern.
Nur die allerwenigsten haben Lust, ein Blockly erstmal zu importieren (was gar nicht immer geht) um einen Blick darauf zu werfen.
-
@13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
Kannst dir das Skript gern mal anschauen. Oder soll ich lieber Screenshot posten?
Bitte Blockly immer als Screenshot liefern.
Den Code kann man optional (hinter 'nem Spoiler) zusätzlich liefern.
Nur die allerwenigsten haben Lust, ein Blockly erstmal zu importieren (was gar nicht immer geht) um einen Blick darauf zu werfen.
-
@13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
eine Frage zum Datenpunkt - wenn Garage in Bewegung ist soll es einen Datenpunkt mit wahr setzen
Wie ist der denn definiert?
@codierknecht sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
Wie ist der denn definiert?
@13patrick37
Zeig mal bitte die Definition (Objektdaten, also das JSON) dieses "Datenpunktes" (bitte in Code-Tags) -
@codierknecht sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
Wie ist der denn definiert?
@13patrick37
Zeig mal bitte die Definition (Objektdaten, also das JSON) dieses "Datenpunktes" (bitte in Code-Tags){ "0_userdata.0.Messwerte.Szenen.Garagentor_in_bewe": { "common": { "name": "Neuer Zustand1", "desc": "", "role": "switch", "type": "boolean", "read": true, "write": true }, "type": "state", "native": {}, "_id": "0_userdata.0.Messwerte.Szenen.Garagentor_in_bewe", "from": "system.adapter.admin.0", "user": "system.user.admin", "ts": 1762192731441, "val": false, "ack": false } }Ich habe nun den http-request doch auf die normalen WLED Presets geändert. Ich bin mir nur bei dem timeout Block unsicher ob das so korrekt ist:
Wenn Garage offen dann Preset 1 (leuchtet grün), danach sollen zwei andere Presets ablaufen und zu den Spots (3) übergehen und so bleiben, solange die Garage geöffnet ist.
-
Nur damit ich das richtig verstehe:
- Endschalter "unten" geschlossen
Tor ist zu - alles aus - Endschalter "unten" öffnet
Rotes Lauflicht - Endschalter "oben" wird geschlossen
Tor ist oben. Dauerlicht weiß und Spots einschalten - Endschalter "oben" öffnet
Spots aus und rotes Lauflicht
Wozu genau sollen da die Timeouts dienen?
- Endschalter "unten" geschlossen
-
Nur damit ich das richtig verstehe:
- Endschalter "unten" geschlossen
Tor ist zu - alles aus - Endschalter "unten" öffnet
Rotes Lauflicht - Endschalter "oben" wird geschlossen
Tor ist oben. Dauerlicht weiß und Spots einschalten - Endschalter "oben" öffnet
Spots aus und rotes Lauflicht
Wozu genau sollen da die Timeouts dienen?
Endschalter unten offen und oben offen = Lauflicht
Endschalter oben zu und unten offen = grünes Licht, danach weißes Lauflicht und dann Spots. (Daher die Timeouts)
Sobald wieder alles in Endlage ist (oben offen, unten geschlossen) noch 60sek Spots, dann aus.Den Datenpunkt habe ich gesetzt, dass das Garagentorlicht nicht währenddessen angeht, falls ich durch den BWM laufe.
Beispiel zur Beleuchtung: https://www.youtube.com/watch?v=M8xCgQUihd8
- Endschalter "unten" geschlossen
-
Endschalter unten offen und oben offen = Lauflicht
Endschalter oben zu und unten offen = grünes Licht, danach weißes Lauflicht und dann Spots. (Daher die Timeouts)
Sobald wieder alles in Endlage ist (oben offen, unten geschlossen) noch 60sek Spots, dann aus.Den Datenpunkt habe ich gesetzt, dass das Garagentorlicht nicht währenddessen angeht, falls ich durch den BWM laufe.
Beispiel zur Beleuchtung: https://www.youtube.com/watch?v=M8xCgQUihd8
-
@codierknecht
Danke, wird getestet! :)Und was sagst du zum Datenpunkt? ok so?
-
@codierknecht
Danke, wird getestet! :)Und was sagst du zum Datenpunkt? ok so?
@13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
Und was sagst du zum Datenpunkt? ok so?
Soll ja nur ein Flag sein, oder? Sollte passen.
-
Hi, also öffnen und schließen mit Lauflicht funktioniert so! Auch das grüne Dauerlicht.
Habe nur zwei Probleme:-
Lauflicht rot geht nicht aus, wenn Garage geschlossen ist. Im Skript fehlt etwas, dass er erkennt dass alles geschlossen ist, nachdem vorher offen war.
-
teilweise reagiert das Lichtband sehr spät. Erst 5 Sekunden nachdem ich die Garage geöffnet habe.. entweder der untere Sensor reagiert zu spät oder der Impuls von WLED dauert zu lange? Wobei das schließen richtig schnell geht.
-
-
@codierknecht oder soll ich im unteren Feld einfach nochmal einen neuen Trigger erstellen, der nur die untere Endlage betrifft?
-
@codierknecht oder soll ich im unteren Feld einfach nochmal einen neuen Trigger erstellen, der nur die untere Endlage betrifft?
@13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
einen neuen Trigger erstellen
Du brauchst keinen neuen Trigger. Es gibt ja nur die beiden Endschalter ... und deren Status wir zu Beginn ermittelt.
Du muss im "falls" lediglich auf die passenden Werte der beiden Endschalter reagieren.
Wann ist denn "zu"? Wenn ES unten geschlossen und ES oben offen? -
@13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
einen neuen Trigger erstellen
Du brauchst keinen neuen Trigger. Es gibt ja nur die beiden Endschalter ... und deren Status wir zu Beginn ermittelt.
Du muss im "falls" lediglich auf die passenden Werte der beiden Endschalter reagieren.
Wann ist denn "zu"? Wenn ES unten geschlossen und ES oben offen?Wenn Garage zu:
Endschalter oben = open true
Endschalter unten = open falseIst die Frage, ob ich im unteren Bereich dann ein Sonst falls? Ich stehe auf dem Schlauch, wie er sonst den Wert nehmen soll?
-
Wenn Garage zu:
Endschalter oben = open true
Endschalter unten = open falseIst die Frage, ob ich im unteren Bereich dann ein Sonst falls? Ich stehe auf dem Schlauch, wie er sonst den Wert nehmen soll?
@13patrick37 sagte in Benötige Hilfe / Blockly Skript WLED Garagentor Beleuchtung:
Ist die Frage, ob ich im unteren Bereich dann ein Sonst falls? Ich stehe auf dem Schlauch, wie er sonst den Wert nehmen soll?
SonstFalls oben und nicht unten
Das müsste aber durch das globale "sonst" unten bereits abgedeckt sein.



