NEWS
WLED Farbe speichern wenn AN
-
Hallo zusammen,
ich habe ein Problem bei meinem ioBroker-Ablauf mit WLED.
Ich habe ein bekanntes script für die Garagenbeleuchtung etwas angepasst, welches eigentlich auch läuft.
Nun will ich aber das wenn das WLED schon an ist, wegen Weihnachten oder einfach nur so, der ioBroker die Variablen speichert und nachdem das script durchgelaufen ist, wieder in den Ursprung zurück geht.
Ich habe einiges Probiert aber irgendwie ist da bei mir der Wurm drin.
Kann mir da einer vielleicht helfen?<block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="c9_Lh@FHI;poTY]d1N5m" x="137.544" y="-737.912"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="WjOXLVJGy[6y?6hjV-Mz"> <field name="oid">hm-rpc.1.00241BE989EB2A.1.DOOR_STATE</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="uo1;aloPBxJ`=1@%hy1I"> <field name="oid">hm-rpc.1.00241BE989EB2A.1.PROCESS</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="onn#PV{L?j]Dc=%Fef%$"> <value name="IF0"> <block type="logic_compare" id="#YP5#{q=#f@Rp|{O^2Z_"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="$,#2(@cu.=,*%OYOjy_+"> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.on</field> </block> </value> <value name="B"> <block type="logic_boolean" id="R.hZ{3DvqeoV3`.x[^a$"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="update" id="cDdZFz8O74KM(H:HpK3`"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.col.0_HEX</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id=")+l/l1.95*8rWh==~AVA"> <field name="VAR" id="KP|X=WF1uqxq[O%Vlzj?">WLED-colour</field> </block> </value> <next> <block type="update" id="Ltkpy1/i^KR8Bja0H{!I"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="B~z~)e1.@[AOYf.Ol(Sq"> <field name="VAR" id="Ni1]_]p-5F%`Vm$P[6h1">WLED-effect</field> </block> </value> <next> <block type="update" id="EzwK@aSgIWw89C!o(6io"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.sx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="+65b2O6FS.mKP+%8!0.j"> <field name="VAR" id="7Lp=xL]X6lAo1AaQJQ9_">WLED-speed</field> </block> </value> <next> <block type="update" id=")frokldXM}fk.,rER3@:"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.ix</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="g:O$},IfpO:K6b=mSd0N"> <field name="VAR" id="SiA|MyRL/R0[=b+mBSGr">WLED-intensity</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="control" id=",5Th~j85zjEul[hjL6f]"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.bri</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="GaLez8j=$O]s[C2aM3UO"> <field name="NUM">255</field> </block> </value> <next> <block type="control" id="tf8nTN6+S:f/o=%7)M4c"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.pal</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Mg_y@P!(MdyG,hcR.5?c"> <field name="NUM">0</field> </block> </value> <next> <block type="comment" id="|.}yo!UY%E.io9eYMnQT"> <field name="COMMENT">Blinken wenn Tor offen steht</field> <next> <block type="controls_if" id=",@Lx9^G~B5i-c)pyVlOR"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="m`3bnJo{foviH#58p/6~"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="r-o=Yo%l8+4T|xOzvymW"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="{RXl1Zv9Wp)NB!O89qUB"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.00241BE989EB2A.1.DOOR_STATE</field> </block> </value> <value name="B"> <block type="math_number" id="`{r27b4XssS^sD2,.P!W"> <field name="NUM">3</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="}5rWZ|5++f^y@TH%Hn_i"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="U28a?Ey+7kd~#i;#tF@d"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.00241BE989EB2A.1.PROCESS</field> </block> </value> <value name="B"> <block type="math_number" id="px|27Mw)V!MXohA?P(bq"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="TR:~~bI=%|{]uNS~%?ju"> <field name="NAME">timeout2</field> <field name="DELAY">2</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id=")C@*m7SC_Vvum7aCxo{}"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.col.0_HEX</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="colour_picker" id="sKv%;Yxy]jRvLs;CX;vo"> <field name="COLOUR">#ff0000</field> </block> </value> <next> <block type="control" id="MK@eXiH#%R!-,mSUoW8d"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.sx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="{(``q!RpLr+]^{D,){x%"> <field name="NUM">224</field> </block> </value> <next> <block type="control" id="[`s]$w#vS1[Jj.$+M!$T"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="|Ep%mypN1d==F(ku+@Yq"> <field name="NUM">1</field> </block> </value> <next> <block type="control" id="|CnVFW6uoD`kX:!QQz!y"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.ix</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="FUV4Q4xX)#M5T9GOm+ID"> <field name="NUM">50</field> </block> </value> <next> <block type="controls_if" id="V]+^j(zM~=lgiW7l{t]["> <value name="IF0"> <block type="logic_compare" id="4??aQx#Nl$#Do#IO)iOM"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="(!rE6k+rJ:2DVg??S(O("> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.on</field> </block> </value> <value name="B"> <block type="logic_boolean" id="}(Z6)HA?(1yc!2z(}]YP"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="xjA|Ed2#+PL+lbIp:/[8"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="GM|J5+QYq:8]Jj[6G]t/"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="debug" id="Xly2sZz^9#=QV!X@5C,1"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id=")~!|#eoyJfM#UcPCh}vX"> <field name="TEXT">Tor steht offen</field> </shadow> </value> <next> <block type="telegram" id="9^kbVZz?|u`#X5Y[$D5s"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="Y:!588~ygr)hDKBTX/RC"> <field name="TEXT">Das Tor steht offen</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="timeouts_cleartimeout" id="R[%zPjNKgi]M%+?yZjHx"> <field name="NAME">timeout2</field> </block> </statement> <next> <block type="comment" id="BmUpP%TTUI/QLV4}#1I8"> <field name="COMMENT">Tor fährt auf</field> <next> <block type="controls_if" id="m^?.SDbC2hIAR|TSjBzD"> <value name="IF0"> <block type="logic_compare" id="Tbg:GyG|U6WplQ!Vgt+K"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="UX%w2t;J{j+0Jg-Ndirh"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.00241BE989EB2A.1.PROCESS</field> </block> </value> <value name="B"> <block type="math_number" id="0omD~bqzq!@t;CRzb*q4"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="0FN@=:9[V:VMV(3q@]V8"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.col.0_HEX</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="colour_picker" id="~QqI`tU=2(JzdsOwJ?e]"> <field name="COLOUR">#ff0000</field> </block> </value> <next> <block type="control" id="aNsgLKWr8d3d2pp:U$LX"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.sx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="-|6`nbA6_~]_e:=S)HCX"> <field name="NUM">220</field> </block> </value> <next> <block type="control" id="TonY@DG~?)S+7x30]Dyr"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="87RX20#eqAcjTAE_HP^$"> <field name="NUM">60</field> </block> </value> <next> <block type="control" id="tACF}f9#YI%kb)_^~#tK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.ix</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="3)?eMSV_T6rr8vPxLDM`"> <field name="NUM">240</field> </block> </value> <next> <block type="controls_if" id="N1N[)/BO`pF[czQ93kCV"> <value name="IF0"> <block type="logic_compare" id="[bkQ6s.C~/t:(654{#zS"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="v#2OQsxo+_^wXxh90J#W"> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.on</field> </block> </value> <value name="B"> <block type="logic_boolean" id="M%LNwyQa[pbyTaJ$)-}M"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="dq7,xCgtU:6,mwQ159$Z"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=",f0aP;aZkZU=OfR-YPNv"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="debug" id="BX+vsWE^{rZ;X$hE/g`p"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="k[c#!OFkH^oWlBA]IS|:"> <field name="TEXT">Tor fährt</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="dJwuZ-x3Sr8V2t5qvbo,"> <field name="COMMENT">Tor ist offen oder Zu</field> <next> <block type="controls_if" id="+mA^40o}yz6AO:6KZjiD"> <value name="IF0"> <block type="logic_operation" id="~Na(m{xafV4A7_hIFS:|"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="Jh+pi.Xgd{4=#?8Q?iK0"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="eB}rRsU6)0*87QKhvOQ4"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.00241BE989EB2A.1.DOOR_STATE</field> </block> </value> <value name="B"> <block type="math_number" id=")nZI[eh#G%.=^NrN9I09"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="[-yJR@%z?[q/qo!x.|?N"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="#4j_HR=_I]$e%.3rkPxI"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.00241BE989EB2A.1.DOOR_STATE</field> </block> </value> <value name="B"> <block type="math_number" id="7|qs5v9aps}S/{CU!x`)"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="f_I;.`nF_*Y,keUX-sX2"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.col.0_HEX</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="colour_picker" id="7!?#)Qh||Ds,HgKqFs7."> <field name="COLOUR">#33ff33</field> </block> </value> <next> <block type="control" id="M:I/},FhH-}xYMoza$sw"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="%tl!Tr|Y}JyWb_2B5Lu%"> <field name="NUM">0</field> </block> </value> <next> <block type="controls_if" id="cXTc:dK~jiqnXPOW{mXe"> <value name="IF0"> <block type="logic_compare" id="$8FWvHL`ALzdAf])Sp5R"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="gKAu^oX|@A^ZLjkb=wf."> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.on</field> </block> </value> <value name="B"> <block type="logic_boolean" id="oBTm=X1%@]k-wcC(bsQj"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="$P~8xhYnUtR{;bD8_w5$"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="NE[;nD[Uf^TBp.@s6:sS"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="timeouts_wait" id="GCb`Y8H!?N^rLk~@KVuo"> <field name="DELAY">3</field> <field name="UNIT">sec</field> <next> <block type="control" id="viL)Yw+_JR78%{Ei(L6u"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.col.0_HEX</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="colour_picker" id="QZM|eLB0U9tqK7`|{nfX"> <field name="COLOUR">#ffffff</field> </block> </value> <next> <block type="control" id="r=Y#M}%^7:Qd$Uq?(I`="> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.ix</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="@lH3HROapgMKw/C]d3nQ"> <field name="NUM">215</field> </block> </value> <next> <block type="control" id="E7G*)C[COUSr?l4YMU14"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="UWfddRq)6DVMs7a,k.)N"> <field name="NUM">60</field> </block> </value> <next> <block type="controls_if" id="j+go^vPn.];!D?,0t.nN"> <value name="IF0"> <block type="logic_compare" id="eNp0nwk8dLEJgjVSqY0;"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="mGs9h@4yCa],U|K/t7o}"> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.on</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Zcf_I}vE~?)O;;E8|/am"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="/%bg?bqlRPQf0bsYuvMW"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="LVDUgEhXX.[Q^/D1FA9G"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="timeouts_wait" id="R43lb1vG!PcSenMjz)O+"> <field name="DELAY">1100</field> <field name="UNIT">ms</field> <next> <block type="control" id="DYLdpWUdRQ[J%U-4dxx#"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="lM6Q)sdGdY|DeFXzV_6]"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="timeouts_wait" id="V_w:J!6QHz~s.Mov.wrw"> <field name="DELAY">1500</field> <field name="UNIT">ms</field> <next> <block type="control" id="i[/$u*#{wd/C%bNO,xt6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="}g!.2eE4p5q@|6B9{~f_"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="C{f1HunIEv3FS^)|U5Vp"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="(@P--X?MknBg=lGfIxDO"> <field name="NUM">85</field> </block> </value> <next> <block type="control" id="c%,?0B:5N=`7R=2AiTRo"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.ix</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="^%dqsT:Z@-$K#Y^va5{2"> <field name="NUM">35</field> </block> </value> <next> <block type="control" id=".x|1o!Y*.]0E24i%qMxp"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.sx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="i4#wBy(!Hl)q9h`vF9bk"> <field name="NUM">77</field> </block> </value> <next> <block type="controls_if" id="%0FB5~Ed`A.=M{5q~u-|"> <value name="IF0"> <block type="logic_compare" id="a9YV9!:f;_$Ba`i/()4P"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="g60u=H1WwrXni9~A+c8F"> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.on</field> </block> </value> <value name="B"> <block type="logic_boolean" id="BB4OdZOGc_-J:fP@g!A^"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="#G?:^DAAcmcO,-FtUC-B"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=")IL(AVk)[[^_l@?FO|]X"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="timeouts_wait" id="Z{5p)M]{fi41U]0#FTtA"> <field name="DELAY">10</field> <field name="UNIT">sec</field> <next> <block type="control" id="~3Qk0YY~;5``mypX|8mD"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="GBAw8WykD`HWS=8}TKF#"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="timeouts_wait" id="?X[a31=6XWGggz4+bEwq"> <field name="DELAY">1100</field> <field name="UNIT">ms</field> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="controls_if" id="O+)z}uD4RK.@:PNr~FOz"> <value name="IF0"> <block type="logic_compare" id="RS)#FJ==CE?-w(z0,S+#"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="GVsg_VPMj8flLTvkQ=6J"> <field name="VAR" id="XcYf4a|t+te0y$).F48R">WLED-wasOn</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Z(+0fWUJ;{l]152jhZ[e"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="$m?Jnk6,~3MzKurjH%X_"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.col.0_HEX</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="M$#(dD]%}Q_3IfWCXI]7"> <field name="VAR" id="KP|X=WF1uqxq[O%Vlzj?">WLED-colour</field> </block> </value> <next> <block type="control" id="?%V7=0MQV*)bL[=Cg5nq"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="=1]ysZ:eEfh;0Q=QVT5|"> <field name="VAR" id="Ni1]_]p-5F%`Vm$P[6h1">WLED-effect</field> </block> </value> <next> <block type="control" id="RJsCFv.7pRC.)m85vECh"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.ix</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="q)({axet9vxE=BA=YSW!"> <field name="VAR" id="SiA|MyRL/R0[=b+mBSGr">WLED-intensity</field> </block> </value> <next> <block type="control" id=":h-2~#zZR_!XwdpO!$:T"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.sx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="/}x%-yVn_9V$ntF]69T*"> <field name="VAR" id="7Lp=xL]X6lAo1AaQJQ9_">WLED-speed</field> </block> </value> <next> <block type="variables_set" id="mT)NNgkIU$)I,W{01G@x"> <field name="VAR" id="XcYf4a|t+te0y$).F48R">WLED-wasOn</field> <value name="VALUE"> <block type="logic_boolean" id="rll[i}IJC:M9AmyucWd8"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="K#c#Yi=+@=3I8hj)?;-x"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="VapGv%E_^jnVdOJ[dqlJ"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block>
-
Hallo,
du musst die ganzen Variablen auch setzen, die sind ja alle garnicht definiert.
So musst du es machen:
-
@cinimod
Hey,
danke für die Antwort.
Wie meinst du das? Anstelle von setze auf aktualisiere?
Denn ich setzte sie ja am ende vom script.
ich habe es schon mit aktualisiere versucht. -
Hey,
ich hatte versehentlich den falschen Code eingefügt. Ich habe es tatsächlich so auch drin.
Aber irgendwie ist der wurm drin. Egal was ich änder, es kommt irgendwas anderes raus.
Jetzt ist es so, das er mir die Farbe und Funktion aus dem Block, das das Tor fährt holt.
Gibt es irgendwie die Möglichkeit die Variablen einmal fest zu schrieben und dann nicht nochmal überschriebt?Ich habe auch schon versucht, weitere Abfragen reinzupacken das es nur gespeichert wird, wenn das Tor offen oder geschlossen ist.
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="KP|X=WF1uqxq[O%Vlzj?">WLED-colour</variable> <variable id="Ni1]_]p-5F%`Vm$P[6h1">WLED-effect</variable> <variable id="7Lp=xL]X6lAo1AaQJQ9_">WLED-speed</variable> <variable id="SiA|MyRL/R0[=b+mBSGr">WLED-intensity</variable> <variable id="tiBW,9NirV2|kuYaSJF;">WLED-pallette</variable> <variable type="timeout" id="timeout2">timeout2</variable> <variable id="XcYf4a|t+te0y$).F48R">WLED-wasOn</variable> <variable id="8l.Jn2vr1bh5S695BD/6">WLED-end</variable> </variables> <block type="on_ext" id="c9_Lh@FHI;poTY]d1N5m" x="238" y="-812"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="WjOXLVJGy[6y?6hjV-Mz"> <field name="oid">hm-rpc.1.00241BE989EB2A.1.DOOR_STATE</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="uo1;aloPBxJ`=1@%hy1I"> <field name="oid">hm-rpc.1.00241BE989EB2A.1.PROCESS</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="pJRYsw:O#Kyoo9vS3q2L"> <value name="IF0"> <block type="logic_compare" id="/{6kCc$:rcG#0W*!G|]?"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="ekoV*d1wqFpp,Hhj#wl["> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.on</field> </block> </value> <value name="B"> <block type="logic_boolean" id="pH[$`Z@VHt@=$QCw3g!D"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id=".SuLemi|%;=MFws[Iy@G"> <field name="VAR" id="KP|X=WF1uqxq[O%Vlzj?">WLED-colour</field> <value name="VALUE"> <block type="get_value" id="(S6*6)3E.(TLofVh+~=F"> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.seg.0.col.0_HEX</field> </block> </value> <next> <block type="variables_set" id="QtXu!nLJ{n?wmj)P)#`W"> <field name="VAR" id="Ni1]_]p-5F%`Vm$P[6h1">WLED-effect</field> <value name="VALUE"> <block type="get_value" id="*u|/o^YV9(uBnc#ffA$5"> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> </block> </value> <next> <block type="variables_set" id=":jk=a71$4~W8kUS.ko@U"> <field name="VAR" id="7Lp=xL]X6lAo1AaQJQ9_">WLED-speed</field> <value name="VALUE"> <block type="get_value" id="~ToF])JuHNZK@|SZFBNE"> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.seg.0.sx</field> </block> </value> <next> <block type="variables_set" id="kynSZ7E5VyFGpQI{xIoE"> <field name="VAR" id="SiA|MyRL/R0[=b+mBSGr">WLED-intensity</field> <value name="VALUE"> <block type="get_value" id="rq{M`knhG@j*[]#i-KrP"> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.seg.0.ix</field> </block> </value> <next> <block type="variables_set" id="]`;C_rZ:%U?|,4:Mbf-y"> <field name="VAR" id="tiBW,9NirV2|kuYaSJF;">WLED-pallette</field> <value name="VALUE"> <block type="get_value" id=".P:pZ[a1=yrG*7GzdlJm"> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.seg.0.pal</field> </block> </value> <next> <block type="variables_set" id="=nUZl+19-SkS%]fSg(SP"> <field name="VAR" id="XcYf4a|t+te0y$).F48R">WLED-wasOn</field> <value name="VALUE"> <block type="logic_boolean" id="$82Y-QRMBnR|uYo{4U1~"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="control" id=",5Th~j85zjEul[hjL6f]"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.bri</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="GaLez8j=$O]s[C2aM3UO"> <field name="NUM">255</field> </block> </value> <next> <block type="control" id="tf8nTN6+S:f/o=%7)M4c"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.pal</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="Mg_y@P!(MdyG,hcR.5?c"> <field name="NUM">0</field> </block> </value> <next> <block type="comment" id="|.}yo!UY%E.io9eYMnQT"> <field name="COMMENT">Blinken wenn Tor offen steht</field> <next> <block type="controls_if" id=",@Lx9^G~B5i-c)pyVlOR"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="m`3bnJo{foviH#58p/6~"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="r-o=Yo%l8+4T|xOzvymW"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="{RXl1Zv9Wp)NB!O89qUB"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.00241BE989EB2A.1.DOOR_STATE</field> </block> </value> <value name="B"> <block type="math_number" id="`{r27b4XssS^sD2,.P!W"> <field name="NUM">3</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="}5rWZ|5++f^y@TH%Hn_i"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="U28a?Ey+7kd~#i;#tF@d"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.00241BE989EB2A.1.PROCESS</field> </block> </value> <value name="B"> <block type="math_number" id="px|27Mw)V!MXohA?P(bq"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="TR:~~bI=%|{]uNS~%?ju"> <field name="NAME">timeout2</field> <field name="DELAY">3</field> <field name="UNIT">sec</field> <statement name="STATEMENT"> <block type="control" id=")C@*m7SC_Vvum7aCxo{}"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.col.0_HEX</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="colour_picker" id="sKv%;Yxy]jRvLs;CX;vo"> <field name="COLOUR">#ff0000</field> </block> </value> <next> <block type="control" id="MK@eXiH#%R!-,mSUoW8d"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.sx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="{(``q!RpLr+]^{D,){x%"> <field name="NUM">224</field> </block> </value> <next> <block type="control" id="[`s]$w#vS1[Jj.$+M!$T"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="|Ep%mypN1d==F(ku+@Yq"> <field name="NUM">1</field> </block> </value> <next> <block type="control" id="|CnVFW6uoD`kX:!QQz!y"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.ix</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="FUV4Q4xX)#M5T9GOm+ID"> <field name="NUM">50</field> </block> </value> <next> <block type="controls_if" id="V]+^j(zM~=lgiW7l{t]["> <value name="IF0"> <block type="logic_compare" id="4??aQx#Nl$#Do#IO)iOM"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="(!rE6k+rJ:2DVg??S(O("> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.on</field> </block> </value> <value name="B"> <block type="logic_boolean" id="}(Z6)HA?(1yc!2z(}]YP"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="xjA|Ed2#+PL+lbIp:/[8"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="GM|J5+QYq:8]Jj[6G]t/"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="debug" id="Xly2sZz^9#=QV!X@5C,1"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id=")~!|#eoyJfM#UcPCh}vX"> <field name="TEXT">Tor steht offen</field> </shadow> </value> <next> <block type="telegram" id="9^kbVZz?|u`#X5Y[$D5s"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="Y:!588~ygr)hDKBTX/RC"> <field name="TEXT">Das Tor steht offen</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="timeouts_cleartimeout" id="R[%zPjNKgi]M%+?yZjHx"> <field name="NAME">timeout2</field> </block> </statement> <next> <block type="comment" id="BmUpP%TTUI/QLV4}#1I8"> <field name="COMMENT">Tor fährt auf</field> <next> <block type="controls_if" id="m^?.SDbC2hIAR|TSjBzD"> <value name="IF0"> <block type="logic_compare" id="Tbg:GyG|U6WplQ!Vgt+K"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="UX%w2t;J{j+0Jg-Ndirh"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.00241BE989EB2A.1.PROCESS</field> </block> </value> <value name="B"> <block type="math_number" id="0omD~bqzq!@t;CRzb*q4"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="0FN@=:9[V:VMV(3q@]V8"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.col.0_HEX</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="colour_picker" id="~QqI`tU=2(JzdsOwJ?e]"> <field name="COLOUR">#ff0000</field> </block> </value> <next> <block type="control" id="aNsgLKWr8d3d2pp:U$LX"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.sx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="-|6`nbA6_~]_e:=S)HCX"> <field name="NUM">220</field> </block> </value> <next> <block type="control" id="TonY@DG~?)S+7x30]Dyr"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="87RX20#eqAcjTAE_HP^$"> <field name="NUM">60</field> </block> </value> <next> <block type="control" id="tACF}f9#YI%kb)_^~#tK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.ix</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="3)?eMSV_T6rr8vPxLDM`"> <field name="NUM">240</field> </block> </value> <next> <block type="controls_if" id="N1N[)/BO`pF[czQ93kCV"> <value name="IF0"> <block type="logic_compare" id="[bkQ6s.C~/t:(654{#zS"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="v#2OQsxo+_^wXxh90J#W"> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.on</field> </block> </value> <value name="B"> <block type="logic_boolean" id="M%LNwyQa[pbyTaJ$)-}M"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="dq7,xCgtU:6,mwQ159$Z"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=",f0aP;aZkZU=OfR-YPNv"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="debug" id="BX+vsWE^{rZ;X$hE/g`p"> <field name="Severity">log</field> <value name="TEXT"> <shadow type="text" id="k[c#!OFkH^oWlBA]IS|:"> <field name="TEXT">Tor fährt</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="dJwuZ-x3Sr8V2t5qvbo,"> <field name="COMMENT">Tor ist offen oder Zu</field> <next> <block type="controls_if" id="+mA^40o}yz6AO:6KZjiD"> <value name="IF0"> <block type="logic_operation" id="~Na(m{xafV4A7_hIFS:|"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="Jh+pi.Xgd{4=#?8Q?iK0"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="eB}rRsU6)0*87QKhvOQ4"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.00241BE989EB2A.1.DOOR_STATE</field> </block> </value> <value name="B"> <block type="math_number" id=")nZI[eh#G%.=^NrN9I09"> <field name="NUM">1</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="[-yJR@%z?[q/qo!x.|?N"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="#4j_HR=_I]$e%.3rkPxI"> <field name="ATTR">val</field> <field name="OID">hm-rpc.1.00241BE989EB2A.1.DOOR_STATE</field> </block> </value> <value name="B"> <block type="math_number" id="7|qs5v9aps}S/{CU!x`)"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="f_I;.`nF_*Y,keUX-sX2"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.col.0_HEX</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="colour_picker" id="7!?#)Qh||Ds,HgKqFs7."> <field name="COLOUR">#33ff33</field> </block> </value> <next> <block type="control" id="M:I/},FhH-}xYMoza$sw"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="%tl!Tr|Y}JyWb_2B5Lu%"> <field name="NUM">0</field> </block> </value> <next> <block type="controls_if" id="cXTc:dK~jiqnXPOW{mXe"> <value name="IF0"> <block type="logic_compare" id="$8FWvHL`ALzdAf])Sp5R"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="gKAu^oX|@A^ZLjkb=wf."> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.on</field> </block> </value> <value name="B"> <block type="logic_boolean" id="oBTm=X1%@]k-wcC(bsQj"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="$P~8xhYnUtR{;bD8_w5$"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="NE[;nD[Uf^TBp.@s6:sS"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="timeouts_wait" id="GCb`Y8H!?N^rLk~@KVuo"> <field name="DELAY">3</field> <field name="UNIT">sec</field> <next> <block type="control" id="viL)Yw+_JR78%{Ei(L6u"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.col.0_HEX</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="colour_picker" id="QZM|eLB0U9tqK7`|{nfX"> <field name="COLOUR">#ffffff</field> </block> </value> <next> <block type="control" id="r=Y#M}%^7:Qd$Uq?(I`="> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.ix</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="@lH3HROapgMKw/C]d3nQ"> <field name="NUM">215</field> </block> </value> <next> <block type="control" id="E7G*)C[COUSr?l4YMU14"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="UWfddRq)6DVMs7a,k.)N"> <field name="NUM">60</field> </block> </value> <next> <block type="controls_if" id="j+go^vPn.];!D?,0t.nN"> <value name="IF0"> <block type="logic_compare" id="eNp0nwk8dLEJgjVSqY0;"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="mGs9h@4yCa],U|K/t7o}"> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.on</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Zcf_I}vE~?)O;;E8|/am"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="/%bg?bqlRPQf0bsYuvMW"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="LVDUgEhXX.[Q^/D1FA9G"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="timeouts_wait" id="R43lb1vG!PcSenMjz)O+"> <field name="DELAY">1100</field> <field name="UNIT">ms</field> <next> <block type="control" id="DYLdpWUdRQ[J%U-4dxx#"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="lM6Q)sdGdY|DeFXzV_6]"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="timeouts_wait" id="V_w:J!6QHz~s.Mov.wrw"> <field name="DELAY">1500</field> <field name="UNIT">ms</field> <next> <block type="control" id="i[/$u*#{wd/C%bNO,xt6"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="}g!.2eE4p5q@|6B9{~f_"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="C{f1HunIEv3FS^)|U5Vp"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="(@P--X?MknBg=lGfIxDO"> <field name="NUM">85</field> </block> </value> <next> <block type="control" id="c%,?0B:5N=`7R=2AiTRo"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.ix</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="^%dqsT:Z@-$K#Y^va5{2"> <field name="NUM">35</field> </block> </value> <next> <block type="control" id=".x|1o!Y*.]0E24i%qMxp"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.sx</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="i4#wBy(!Hl)q9h`vF9bk"> <field name="NUM">77</field> </block> </value> <next> <block type="controls_if" id="%0FB5~Ed`A.=M{5q~u-|"> <value name="IF0"> <block type="logic_compare" id="a9YV9!:f;_$Ba`i/()4P"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="g60u=H1WwrXni9~A+c8F"> <field name="ATTR">val</field> <field name="OID">wled.0.4417930e5a1f.on</field> </block> </value> <value name="B"> <block type="logic_boolean" id="BB4OdZOGc_-J:fP@g!A^"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="#G?:^DAAcmcO,-FtUC-B"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=")IL(AVk)[[^_l@?FO|]X"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="timeouts_wait" id="Z{5p)M]{fi41U]0#FTtA"> <field name="DELAY">5</field> <field name="UNIT">sec</field> <next> <block type="control" id="~3Qk0YY~;5``mypX|8mD"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="GBAw8WykD`HWS=8}TKF#"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="timeouts_wait" id="?X[a31=6XWGggz4+bEwq"> <field name="DELAY">1100</field> <field name="UNIT">ms</field> <next> <block type="variables_set" id="}VCxV|C+5t^s-nSz=n~d"> <field name="VAR" id="8l.Jn2vr1bh5S695BD/6">WLED-end</field> <value name="VALUE"> <block type="logic_boolean" id="r5B~Z__*l5{dg|?f];I["> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="controls_if" id="O+)z}uD4RK.@:PNr~FOz"> <value name="IF0"> <block type="logic_operation" id="!Y[LH@dZGgMIq:w@/-ir"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="RS)#FJ==CE?-w(z0,S+#"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="GVsg_VPMj8flLTvkQ=6J"> <field name="VAR" id="XcYf4a|t+te0y$).F48R">WLED-wasOn</field> </block> </value> <value name="B"> <block type="logic_boolean" id="Z(+0fWUJ;{l]152jhZ[e"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="24UKH+kLVUW/iTU.t_tJ"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="{tVM-ufqW4E?FSq0lEOh"> <field name="VAR" id="8l.Jn2vr1bh5S695BD/6">WLED-end</field> </block> </value> <value name="B"> <block type="logic_boolean" id="u?A?t^N:=.$)3BAckWF("> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="$m?Jnk6,~3MzKurjH%X_"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.col.0_HEX</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">4</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id="M$#(dD]%}Q_3IfWCXI]7"> <field name="VAR" id="KP|X=WF1uqxq[O%Vlzj?">WLED-colour</field> </block> </value> <next> <block type="control" id="?%V7=0MQV*)bL[=Cg5nq"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.fx</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">4</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id="=1]ysZ:eEfh;0Q=QVT5|"> <field name="VAR" id="Ni1]_]p-5F%`Vm$P[6h1">WLED-effect</field> </block> </value> <next> <block type="control" id="RJsCFv.7pRC.)m85vECh"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.ix</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">4</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id="q)({axet9vxE=BA=YSW!"> <field name="VAR" id="SiA|MyRL/R0[=b+mBSGr">WLED-intensity</field> </block> </value> <next> <block type="control" id=":h-2~#zZR_!XwdpO!$:T"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.sx</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">4</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id="/}x%-yVn_9V$ntF]69T*"> <field name="VAR" id="7Lp=xL]X6lAo1AaQJQ9_">WLED-speed</field> </block> </value> <next> <block type="control" id="^mTQ$[i~:J)f+Au{neS`"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.4417930e5a1f.seg.0.pal</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">4</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="variables_get" id="uaR0gC3!DJ0Hsw],`g(Q"> <field name="VAR" id="tiBW,9NirV2|kuYaSJF;">WLED-pallette</field> </block> </value> <next> <block type="variables_set" id="mT)NNgkIU$)I,W{01G@x"> <field name="VAR" id="XcYf4a|t+te0y$).F48R">WLED-wasOn</field> <value name="VALUE"> <block type="logic_boolean" id="rll[i}IJC:M9AmyucWd8"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="K#c#Yi=+@=3I8hj)?;-x"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">wled.0.4417930e5a1f.on</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">4</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="VapGv%E_^jnVdOJ[dqlJ"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </xml>
-
@alanodoug
in WLED einen Preset erstellen mit allen einstellungen und mit ioBroker dieses Preset aufrufen müsste doch funktionieren. -
@muchul
Hey danke,
aber mit dem presets klappt das denke ich nicht. Da ich die komplette funktionen von WLED nutzen möchte.