NEWS
Rollosteuerung
-
Ich bin seit einer Woche neu bei ioBroker und hab das erste Problem
mit dem meinem Programm.
Mein Rollo fährt alle Minute nach unten, kann mir einer helfen.
[spoiler<xml 1999/xmlns="<URL url=" http:/www.w3.org/xhtml"="">http://www.w3.org/1999/xhtml">
<block type="schedule" id="vVGiNXb%+2gtBz#!nYj!" x="-1813" y="-1088"><field name="SCHEDULE">*/1 * * * *</field>
<statement name="STATEMENT"><block type="variables_set" id="H?K%FS!H1KWN?o~hc:BE"><field name="VAR">tmpVar</field>
<value name="VALUE"><block type="math_arithmetic" id="VTY/n[lUUW#(Vj|0Ynf)" inline="false"><field name="OP">ADD</field>
<value name="A"><shadow type="math_number" id="~l^aI8a3}!=VAgd:Sop1"><field name="NUM">1</field></shadow>
<block type="time_get" id=",+W%E7*^NcqRU(29_ahJ"><mutation format="false" language="false"></mutation>
<field name="OPTION">m</field></block></value>
<value name="B"><shadow type="math_number" id="M_(XsL,pqedMFtkdBmzf"><field name="NUM">1</field></shadow>
<block type="math_arithmetic" id="WM%b_D:H}:omQapC*@dP"><field name="OP">MULTIPLY</field>
<value name="A"><shadow type="math_number" id="O)k}t%PQ@LFIbTz!9kvE"><field name="NUM">60</field></shadow></value>
<value name="B"><shadow type="math_number" id="K]d96jp+dotc+:*{OnVQ"><field name="NUM">1</field></shadow>
<block type="time_get" id="PyW{g1{c/)c=^uqaS4?F"><mutation format="false" language="false"></mutation>
<field name="OPTION">h</field></block></value></block></value></block></value>
<next><block type="controls_if" id="=)@o%prK5~F4vWKU~y{6"><mutation else="1"></mutation>
<value name="IF0"><block type="logic_compare" id="92R0Eg|iiU_Y;0kR4ltq"><field name="OP">GT</field>
<value name="A"><block type="variables_get" id="CNA)3)^qESy7(S~V[C{;"><field name="VAR">tmpVar</field></block></value>
<value name="B"><block type="math_number" id="TdkQ43kNKi~(/VatNz%m"><field name="NUM">720</field></block></value></block></value>
<statement name="DO0"><block type="comment" id="vI=#hS-u2IRkF^zU[+6@"><field name="COMMENT">Es geht Richtung Sonnenuntergang</field>
<next><block type="controls_if" id="Kv9Vz_es2+CO;84;n1?g"><value name="IF0"><block type="logic_compare" id="`Vj03xcM9QXdD,3G^OR^"><field name="OP">NEQ</field>
<value name="A"><block type="get_value" id="peIY;XzJz(d|e#Jj)eO*"><field name="ATTR">val</field>
<field name="OID">javascript.0.MinutenSA</field></block></value>
<value name="B"><block type="math_number" id="{Dx^.4n8YxvfO{uRww"><field name="NUM">999</field></block></value></block></value>
<statement name="DO0"><block type="control" id="Ref/|.A#+S[4FOpy!@V+"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.MinutenSA</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="math_number" id="uMoOUwf)MArjx{bh[UA{"><field name="NUM">999</field></block></value></block></statement>
<next><block type="variables_set" id="73%n,jcZT#5v4UhyMokT"><field name="VAR">tmpVar</field>
<value name="VALUE"><block type="math_arithmetic" id="iw{^B8#6Te[P+8hlz%H!" inline="false"><field name="OP">ADD</field>
<value name="A"><shadow type="math_number" id="~l^aI8a3}!=VAgd:Sop1"><field name="NUM">1</field></shadow>
<block type="convert_from_date" id="8cA=fum%HkUbz,d,HW2i"><mutation format="false" language="false"></mutation>
<field name="OPTION">m</field>
<value name="VALUE"><block type="time_astro" id="pyHR=)S0b4-N}}j:|znf"><field name="TYPE">sunset</field>
<field name="OFFSET">0</field></block></value></block></value>
<value name="B"><shadow type="math_number" id="M_(XsL,pqedMFtkdBmzf"><field name="NUM">1</field></shadow>
<block type="math_arithmetic" id="d(`jk,nMUkIvoDnNbA)A"><field name="OP">MULTIPLY</field>
<value name="A"><shadow type="math_number" id="Le{m.eM1MnJmG9U=_mP-"><field name="NUM">60</field></shadow></value>
<value name="B"><shadow type="math_number" id="K]d96jp+dotc+:*{OnVQ"><field name="NUM">1</field></shadow>
<block type="convert_from_date" id="dU8
E#!{4:UE#UMYwQX
"><mutation format="false" language="false"></mutation><field name="OPTION">h</field>
<value name="VALUE"><block type="time_astro" id="P5CuN,Lp;9|kAnjH]#9r"><field name="TYPE">sunset</field>
<field name="OFFSET">0</field></block></value></block></value></block></value></block></value>
<next><block type="variables_set" id="j6YPcIQeQh@U*ci,A~Vo"><field name="VAR">tmpVar</field>
<value name="VALUE"><block type="math_arithmetic" id="p{)7LYAaH3!|]@uK!f;+" inline="false"><field name="OP">MINUS</field>
<value name="A"><shadow type="math_number" id="rMo/U|,([_+]z-~s,MGy"><field name="NUM">1</field></shadow>
<block type="variables_get" id="GQ1[nGycK0,8b2XvO8AS"><field name="VAR">tmpVar</field></block></value>
<value name="B"><shadow type="math_number" id="My!mMfHGw..Fd%(I[%A1"><field name="NUM">1</field></shadow>
<block type="math_arithmetic" id="8X}}xjrJKyit2iAnC_h`"><field name="OP">ADD</field>
<value name="A"><shadow type="math_number" id="L]]T.y?4xyb|Kw*BT0G7"><field name="NUM">1</field></shadow>
<block type="time_get" id="}n#KTx5=s`@X^S.k6kBR"><mutation format="false" language="false"></mutation>
<field name="OPTION">m</field></block></value>
<value name="B"><shadow type="math_number" id="`Gii1#:=nuCc_%/LwG!m"><field name="NUM">1</field></shadow>
<block type="math_arithmetic" id="83w/4UoLSiURmG1G2N!S"><field name="OP">MULTIPLY</field>
<value name="A"><shadow type="math_number" id="/tkCg?]P4I]r2}m]0)H}"><field name="NUM">60</field></shadow></value>
<value name="B"><shadow type="math_number" id="%dev1yG{WJ{m(0[yTx?z"><field name="NUM">1</field></shadow>
<block type="time_get" id="NaEM`|RE6f:X~?U%?*{f"><mutation format="false" language="false"></mutation>
<field name="OPTION">h</field></block></value></block></value></block></value></block></value>
<next><block type="control" id=",]HLi9UL4?{PDxqY5#+,"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.MinutenSU</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="variables_get" id="|2H*w|X+^cZ^y]]05E3#"><field name="VAR">tmpVar</field></block></value>
<next><block type="controls_if" id=":Rk7e|zp:k|HjB,Klfxm"><value name="IF0"><block type="logic_operation" id="[{CrD%z#Sr~mo1mjmI#Z" inline="false"><field name="OP">AND</field>
<value name="A"><block type="logic_compare" id="u;?`R6fNBun^[z9R)dZ|"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="8mnt6.FVK8e)fEG;I`^P"><field name="ATTR">val</field>
<field name="OID">piface.0.SW_EG_AUTO</field></block></value>
<value name="B"><block type="logic_boolean" id="a%R0z/J`BY=;Uk=j5@bO"><field name="BOOL">TRUE</field></block></value></block></value>
<value name="B"><block type="logic_operation" id="a|bZRvb?~@hC#`wN{*5/" inline="false"><field name="OP">AND</field>
<value name="A"><block type="logic_compare" id="YutnG8C3wb]{q;XV95Qb"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="i#^L#o(N].Fwhzr^Y@38"><field name="ATTR">val</field>
<field name="OID">piface.0.OUT1</field></block></value>
<value name="B"><block type="logic_boolean" id="=Cp/;xV!jt*xvTRP7+2V"><field name="BOOL">FALSE</field></block></value></block></value>
<value name="B"><block type="logic_compare" id="T7E8WRVClsiMtQ8oZ=ne"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="?M4c-0jbggWS%=wlgZgo"><field name="ATTR">val</field>
<field name="OID">piface.0.OUT0</field></block></value>
<value name="B"><block type="logic_boolean" id="Z0|uwXl1Fq4s1YU%s^"><field name="BOOL">FALSE</field></block></value></block></value></block></value></block></value>
<statement name="DO0"><block type="control" id=",xE99l/yclYdJ)57]NE_"><mutation delay_input="false"></mutation>
<field name="OID">piface.0.OUT0</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="~YU;sFTS]cp+d^tUN1m5"><field name="BOOL">TRUE</field></block></value>
<next><block type="control" id="*[Y8SeF(hxHS-4T]2Ob^"><mutation delay_input="true"></mutation>
<field name="OID">piface.0.OUT0</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">20</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">TRUE</field>
<value name="VALUE"><block type="logic_boolean" id="E[K!hhCz+-Xi-}|V4xEN"><field name="BOOL">FALSE</field></block></value>
<next><block type="email" id="2]WKNLGmO-benvMZ.6]M"><field name="IS_HTML">FALSE</field>
<value name="TO</field></shadow></value>
<value name="TEXT"><shadow type="text" id="4x9V-+r3dY.?sp{]giOK"><field name="TEXT">Rollo ZU EG</field></shadow></value>
<value name="SUBJECT"><shadow type="text" id="R:lki~i9rN!{Fbb)+1"><field name="TEXT">Hausautomation</field></shadow></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement>
<statement name="ELSE"><block type="comment" id="2;aVyVfs/@Rm`vz7(3lW"><field name="COMMENT">Es geht Richtung Sonnenaufgang</field>
<next><block type="controls_if" id="N^;]Z=S2,tiR#A-GsPsQ"><value name="IF0"><block type="logic_compare" id="0:yF^_8V+hV~~),`(k96"><field name="OP">NEQ</field>
<value name="A"><block type="get_value" id="rnw{5e)9q+rqIxRJ[jCt"><field name="ATTR">val</field>
<field name="OID">javascript.0.MinutenSU</field></block></value>
<value name="B"><block type="math_number" id="1AaL1SJ(by.q~0GF~T8y"><field name="NUM">999</field></block></value></block></value>
<statement name="DO0"><block type="control" id="|U+jeT{^16)(S5/x-IZX"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.MinutenSU</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="math_number" id="?s_-ddzS,(Zx}=^v,rz="><field name="NUM">999</field></block></value></block></statement>
<next><block type="variables_set" id="+Bt:J8ktjNo^pdEc%[7G"><field name="VAR">tmpVar</field>
<value name="VALUE"><block type="math_arithmetic" id="M8(gKAhXzx,j}Bs!inxU" inline="false"><field name="OP">ADD</field>
<value name="A"><shadow type="math_number" id="~l^aI8a3}!=VAgd:Sop1"><field name="NUM">1</field></shadow>
<block type="convert_from_date" id="![*8.7d^6ee,z,|%9k8Z"><mutation format="false" language="false"></mutation>
<field name="OPTION">m</field>
<value name="VALUE"><block type="time_astro" id="!bNua++5@e)Lt=M)7U`9"><field name="TYPE">sunrise</field>
<field name="OFFSET">0</field></block></value></block></value>
<value name="B"><shadow type="math_number" id="M_(XsL,pqedMFtkdBmzf"><field name="NUM">1</field></shadow>
<block type="math_arithmetic" id="oGtre7X~N[zOCGz28evg" inline="false"><field name="OP">MULTIPLY</field>
<value name="A"><shadow type="math_number" id="{5jN@VsX#]zkJ,O4jlDJ"><field name="NUM">60</field></shadow></value>
<value name="B"><shadow type="math_number" id="K]d96jp+dotc+:*{OnVQ"><field name="NUM">1</field></shadow>
<block type="convert_from_date" id="z#VJzaape6]#JqC+VCzH"><mutation format="false" language="false"></mutation>
<field name="OPTION">h</field>
<value name="VALUE"><block type="time_astro" id="myW^hNV-B%jT}ZP!LefT"><field name="TYPE">sunrise</field>
<field name="OFFSET">0</field></block></value></block></value></block></value></block></value>
<next><block type="variables_set" id="N#n9QcDlh;D;nL#i1s[0"><field name="VAR">tmpVar</field>
<value name="VALUE"><block type="math_arithmetic" id="0K`.;3ARV[V{1F)IZPHH" inline="false"><field name="OP">MINUS</field>
<value name="A"><shadow type="math_number" id="rMo/U|,([_+]z-~s,MGy"><field name="NUM">1</field></shadow>
<block type="variables_get" id="8,-HZjVcS_FAG`b5M?BR"><field name="VAR">tmpVar</field></block></value>
<value name="B"><shadow type="math_number" id="My!mMfHGw..Fd%(I[%A1"><field name="NUM">1</field></shadow>
<block type="math_arithmetic" id="(G@z=!!JnAJL0UL6F/*`"><field name="OP">ADD</field>
<value name="A"><shadow type="math_number" id="L]]T.y?4xyb|Kw*BT0G7"><field name="NUM">1</field></shadow>
<block type="time_get" id="pUt?i=.X~7J3wKd0F)3f"><mutation format="false" language="false"></mutation>
<field name="OPTION">m</field></block></value>
<value name="B"><shadow type="math_number" id="`Gii1#:=nuCc_%/LwG!m"><field name="NUM">1</field></shadow>
<block type="math_arithmetic" id="uQtVMZ]]e4pn3W.i#|{6"><field name="OP">MULTIPLY</field>
<value name="A"><shadow type="math_number" id="~ROv;)8R`+7oCPO2II{V"><field name="NUM">60</field></shadow></value>
<value name="B"><shadow type="math_number" id="%dev1yG{WJ{m(0[yTx?z"><field name="NUM">1</field></shadow>
<block type="time_get" id="DKf;eubDY{F0[(|9s`l|"><mutation format="false" language="false"></mutation>
<field name="OPTION">h</field></block></value></block></value></block></value></block></value>
<next><block type="control" id="eDM:0@yO~X07NkL_WJ54"><mutation delay_input="false"></mutation>
<field name="OID">javascript.0.MinutenSA</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="variables_get" id="}W1zELgv,/1EGvhgJ0{V"><field name="VAR">tmpVar</field></block></value></block></next></block></next></block></next></block></next></block></statement></block></next></block></statement></block>
<block type="on" id="~Q]qBQC7}ajvI}E9k#qW" x="-1812" y="263"><field name="OID">piface.0.IN0</field>
<field name="CONDITION">any</field>
<statement name="STATEMENT"><block type="comment" id="9TKQnU5_i+`P08%@81O4"><field name="COMMENT">Rollo ueber Taster</field>
<next><block type="controls_if" id="2^|#.N@GK|ZGA(oE4DWk"><mutation elseif="1" else="1"></mutation>
<value name="IF0"><block type="logic_operation" id="I:[h5I(ci;em=~wk5yqX" inline="false"><field name="OP">AND</field>
<value name="A"><block type="logic_operation" id="XmEAkf3nOr4;04R]%Zn5" inline="false"><field name="OP">AND</field>
<value name="A"><block type="logic_compare" id="Sy17`:^=V5^[l^!tD…"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="=+|Y
QF
~5+4v[=5(Xwa"><field name="ATTR">val</field><field name="OID">piface.0.SW_EG_AUTO</field></block></value>
<value name="B"><block type="logic_boolean" id="u8Pg?)cqF7Rc8l8@zo/W"><field name="BOOL">FALSE</field></block></value></block></value>
<value name="B"><block type="get_value" id="7ZEO_82p9yTl9wa.ffFK"><field name="ATTR">val</field>
<field name="OID">piface.0.IN0</field></block></value></block></value>
<value name="B"><block type="logic_operation" id=")A%rTvF_L8_1,r{Uij9x" inline="false"><field name="OP">AND</field>
<value name="A"><block type="logic_compare" id="`UyJC_#)lX?HJfPplj~Q"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="2)iBDLWcp6ptst7e7iUJ"><field name="ATTR">val</field>
<field name="OID">piface.0.OUT0</field></block></value>
<value name="B"><block type="logic_boolean" id="r)#@brzhzs%=F/6tn`KG"><field name="BOOL">FALSE</field></block></value></block></value>
<value name="B"><block type="logic_compare" id="]`SxfR{xo(x{0SMafUh:"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="~;0vvk+LpQ%qtzV.0#(q"><field name="ATTR">val</field>
<field name="OID">piface.0.OUT1</field></block></value>
<value name="B"><block type="logic_boolean" id="d236jt5{=G0ak.0v`QxZ"><field name="BOOL">FALSE</field></block></value></block></value></block></value></block></value>
<statement name="DO0"><block type="control" id="qW_n2@L`Sv~!4O{Z8vv5"><mutation delay_input="false"></mutation>
<field name="OID">piface.0.OUT0</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="DAA4}hh=7##jaL2xjI-o"><field name="BOOL">TRUE</field></block></value></block></statement>
<value name="IF1"><block type="logic_operation" id="}1mWSyDqh;aD7Dz_]OD#" inline="false"><field name="OP">AND</field>
<value name="A"><block type="logic_operation" id=",oN@Cz1GYen4h~cov}Ky" inline="false"><field name="OP">AND</field>
<value name="A"><block type="logic_compare" id="V-MIKN]QBzlGmE4;^D7A"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="@2p)0PL[rJfL^~FuNa5S"><field name="ATTR">val</field>
<field name="OID">piface.0.OUT0</field></block></value>
<value name="B"><block type="logic_boolean" id="R_.-K@uO19651m[WZ[i5"><field name="BOOL">TRUE</field></block></value></block></value>
<value name="B"><block type="get_value" id="6*@-hzhG:m/pYteD)Mt%"><field name="ATTR">val</field>
<field name="OID">piface.0.IN0</field></block></value></block></value>
<value name="B"><block type="logic_compare" id=",x+f0OFT;}4?l)H)uPzd"><field name="OP">EQ</field>
<value name="A"><block type="get_value" id="QpEO6Vf,MXEMRf-JO7^."><field name="ATTR">val</field>
<field name="OID">piface.0.OUT1</field></block></value>
<value name="B"><block type="logic_boolean" id=";L*K`|kL6VKG824~{b;h"><field name="BOOL">FALSE</field></block></value></block></value></block></value>
<statement name="DO1"><block type="control" id="Ag(uwo(|f*IXn5k,4V,|"><mutation delay_input="true"></mutation>
<field name="OID">piface.0.OUT0</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">1000</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE"><block type="logic_boolean" id="Sd)2s7[_82%)1Uyr:vAV"><field name="BOOL">FALSE</field></block></value></block></statement></block></next></block></statement></block></xml> ]
4473_rollo_steuerung_m_fehler.txt
4473_rollo_steuerung_m_fehler.txt -
Hallo und Willkommen im Forum!
Code bitte hier im Forum in dem Post einbinden unter Benutzung der Code-Tags, ggf. auch noch Spoiler-Tags.
Danke
Rainer
-
Hallo RaimundV
Du hast das Script "Dynamischer Sonnenauf- und Sonnenuntergang" etwas falsch eingesetzt.
An dem Script sollte man nicht rum bauen.
Lass das Script so laufen wie es ist.
Triggern musst Du dann nur "MinutenSA" und/oder "MinutenSU"
Und dann Aktionen ausführen. Ist in dem Thread aber auch noch beschrieben.
Grüße
-
Das Skript ist wieder Original.
Globale Variablen "MinutenSA und MinutenSU der WERT ist unter "Objekte" rot bei Bestätigt steht fase.
Kann das sein das der Wert nicht im Skript läuft.
-
Hallo
MinutenSA / SU über das Script anlegen lassen?
(javascript.0.MinutenSA / javascript.0.MinutenSU)
Das Script 2x starten. Beim ersten Mal werden die Variablen angelegt.
Beim zweiten Start sind die dann im Script bekannt.
Blockly nicht unter "global" gespeichert?
Grüße
-
wie kann ich sehen da Blockly nicht unter "global" gespeichert ist
-
Siehe Screenshot, wo hier Common steht darf kein Global stehen
~~![](</s><URL url=)<link_text text="https://uploads.tapatalk-cdn.com/201712 ... 05c405.jpg">https://uploads.tapatalk-cdn.com/20171210/5e9ef7bf510b980ee3dcdea31505c405.jpg</link_text>" />
–-----------------------
Send from mobile device~~