NEWS
Vorlage zur Steuerung einer Bewässerungsanlage und Abfrage Wetterdienst (Blockly)
-
****So Leute habe jetzt mein erstes und sehr großes Script fertig.
Es werden meine 230v Magnetventile über Sonoff(Tasmota)_4ch gesteuert
Abfrage von YR.NO.Wetter und Berechnung vom Punktesystem.
Abgefragt wird
Regen heut und morgen
Luftdruck heut und morgen
Temperatur heut und morgen
Die Abfrage vom Wetterdienst habe ich im Netz gefunden. Kann aber nicht mehr sagen wo.
Wenn der Ersteller das liest bedanke ich mich noch mal bei Ihm für die tolle Vorarbeit.
Script läuft und tut auch genau das, was es soll.
Vielleicht braucht ja noch einer eine Vorlage um es zu verfeinern.
Bitte alle Scripts zu einen Script zusammen kopieren
immer ein nächste Zeile
das Script fängt immer links an****
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="schedule" id="LIU@O9=5kX8F}`;:w}Xb" x="2513" y="4612"><field name="SCHEDULE">0 8,18 * * *</field> <statement name="STATEMENT"><block type="comment" id="usFyjv-RtO{kxa^m=gwI"><field name="COMMENT">erst mal alle Ventile aus</field> <next><block type="comment" id="flK|mgnMq!dc[qBfT8_!"><field name="COMMENT">sonst schaft es die Pumpe nicht</field> <next><block type="control" id="0jI%SjL=4?(BrnNO{Y@P"><mutation delay_input="true"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_1-4.POWER3</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="VALUE"><block type="logic_boolean" id="F9vGql?[Es4SrXWWi3_O"><field name="BOOL">FALSE</field></block></value> <next><block type="control" id="]GL8a./YWH|:K(Mc2Dob"><mutation delay_input="true"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_5-8.POWER1</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="VALUE"><block type="logic_boolean" id="gWVNn`Ysc~_K;(vL{7~n"><field name="BOOL">FALSE</field></block></value> <next><block type="control" id="`Lx:3/d#PB8WgN3Vqd6H"><mutation delay_input="true"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_5-8.POWER2</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="VALUE"><block type="logic_boolean" id="w=W,MXGk|[JwUfsT=`Ly"><field name="BOOL">FALSE</field></block></value> <next><block type="control" id="}Z^Bpx.LM/rZZI,ncI*A"><mutation delay_input="true"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_1-4.POWER1</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="VALUE"><block type="logic_boolean" id="?|`J3sJh{zY^0q%5jY|w"><field name="BOOL">FALSE</field></block></value> <next><block type="control" id="k7uOPT`W6U9Cw0:yG[ok"><mutation delay_input="true"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_5-8.POWER3</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1000</field> <field name="UNIT">ms</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="VALUE"><block type="logic_boolean" id=",QkE%q00q~mxiR3p0#QL"><field name="BOOL">FALSE</field></block></value> <next><block type="comment" id="vYIf8~sX6#y3E5L+t;[:"><field name="COMMENT">Hier die Bewässerungs Zeit rein</field> <next><block type="comment" id="XUx%^|P0mJB~/6Jb-I*c"><field name="COMMENT">in Minuten für den trockensten Tag</field> <next><block type="comment" id="f4K~}hg~;g,(3u+fJ!M="><field name="COMMENT">also bei 100% Bewässerung</field> <next><block type="variables_set" id="OeHwHOb7[t2d1/{w?Ymi"><field name="VAR">Regner hinten Haus</field> <value name="VALUE"><block type="math_number" id=";8%)`[`k(hT!JWpl%PG)"><field name="NUM">20</field></block></value> <next><block type="variables_set" id="j91*bawRst/-ekw)2zJ{"><field name="VAR">Regner neben Haus</field> <value name="VALUE"><block type="math_number" id="v9W@Tn:z6lXw*bR}xm!!"><field name="NUM">6</field></block></value> <next><block type="variables_set" id="=x=AJ^=LBMP.]j|Z*N%-"><field name="VAR">Regner vorne Grube</field> <value name="VALUE"><block type="math_number" id="/FQ)k*Dm?#.B[);Ic!v="><field name="NUM">4</field></block></value> <next><block type="variables_set" id="DSc8,vk;b5}6[_-u+(h-"><field name="VAR">Regner vorm Haus</field> <value name="VALUE"><block type="math_number" id="tMd..nGW~kn_yG[)zMQp"><field name="NUM">10</field></block></value> <next><block type="comment" id="~w_6sDIe~.LrUm0!i;Y("><field name="COMMENT">Wetterdaten Regen abfragen für heute</field> <next><block type="comment" id="t%AYw8}2r8?cH-:QvS@e"><field name="COMMENT">abfrage Wetterdienst</field> <next><block type="variables_set" id=".v/~-5M]6.dUX=SH`e|-"><field name="VAR">Sprengen Pulse</field> <value name="VALUE"><block type="math_number" id="x+wk|Rxe3Ic1D*x/g_[P"><field name="NUM">0</field></block></value> <next><block type="controls_if" id="IZSA=(D,[q;2c24_-;E#"><value name="IF0"><block type="logic_compare" id="F~2CqU-j66c,GgL]={m;"><field name="OP">LT</field> <value name="A"><block type="convert_tonumber" id="#{j.!w906B1dsKJ{%9@y"><value name="VALUE"><block type="get_value" id="y:)sf*e*kIhMgewLG/+T"><field name="ATTR">val</field> <field name="OID">yr.0.forecast.day0.precipitation</field></block></value></block></value> <value name="B"><block type="math_number" id="cV*E!E7%m:.u-zb(xf%!"><field name="NUM">0.5</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="1q2wS~O^B`_}l=.`)obx"><field name="VAR">Sprengen Pulse</field> <value name="VALUE"><block type="math_arithmetic" id="VYqr:Y=``ECx89Ybq1gY"><field name="OP">ADD</field> <value name="A"><shadow type="math_number" id="E,I.z2f*YxvwxKOeZ.8K"><field name="NUM">1</field></shadow> <block type="variables_get" id="QMy@}jb+a8^l_ssC[uRJ"><field name="VAR">Sprengen Pulse</field></block></value> <value name="B"><shadow type="math_number" id="Cz,1bDaoEfc^9q~ZMz%7"><field name="NUM">1</field></shadow> <block type="math_number" id="]DE1We_]HA~TEwVdh2ij"><field name="NUM">2</field></block></value></block></value></block></statement> <next><block type="controls_if" id="+`p6?FoS|-Yj~e:fQN8}"><value name="IF0"><block type="logic_compare" id="9@q7?!V`o+Sn5M`zm[+M"><field name="OP">LT</field> <value name="A"><block type="convert_tonumber" id="vg*T(!UoYxhe)m+/vR^T"><value name="VALUE"><block type="get_value" id="(b81O;+NuvD0yvGjO2}u"><field name="ATTR">val</field> <field name="OID">yr.0.forecast.day0.precipitation</field></block></value></block></value> <value name="B"><block type="math_number" id="T-+zt]H1oC,QNm[OQ/|O"><field name="NUM">0.2</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="P-LnYb;qe8U*@_Jk/9oZ"><field name="VAR">Sprengen Pulse</field> <value name="VALUE"><block type="math_arithmetic" id="}Zp[i[Rs`.aYeD)aI?Fp"><field name="OP">ADD</field> <value name="A"><shadow type="math_number" id="E,I.z2f*YxvwxKOeZ.8K"><field name="NUM">1</field></shadow> <block type="variables_get" id="6I}2vjA18,4.Bc@;DHvc"><field name="VAR">Sprengen Pulse</field></block></value> <value name="B"><shadow type="math_number" id="Cz,1bDaoEfc^9q~ZMz%7"><field name="NUM">1</field></shadow> <block type="math_number" id="Ig;[:+,E^z8A2j}OQD!c"><field name="NUM">1</field></block></value></block></value></block></statement> <next><block type="comment" id="bK_i=75i2ERy1`VE+PB@"><field name="COMMENT">Wetterdaten Regen abfragen für morgen</field> <next><block type="controls_if" id="u=qk(;CmtwDxdTyQP#W5"><value name="IF0"><block type="logic_compare" id="U_6/j#31v0m|nLYH!CU("><field name="OP">LT</field> <value name="A"><block type="convert_tonumber" id="56pFeyg:QU_=(|lA5+U:"><value name="VALUE"><block type="get_value" id="SFd/V4r6g+/*d=!J)M(e"><field name="ATTR">val</field> <field name="OID">yr.0.forecast.day1.precipitation</field></block></value></block></value> <value name="B"><block type="math_number" id="FjWU}]j;juM^/{eZod+P"><field name="NUM">0.5</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="Ei9cCA`D_cDl#JyqHwy2"><field name="VAR">Sprengen Pulse</field> <value name="VALUE"><block type="math_arithmetic" id="s64oZ%S`OgFnCJzsJs*%"><field name="OP">ADD</field> <value name="A"><shadow type="math_number" id="E,I.z2f*YxvwxKOeZ.8K"><field name="NUM">1</field></shadow> <block type="variables_get" id="=5g_(CRc6,/-v3uoUTzr"><field name="VAR">Sprengen Pulse</field></block></value> <value name="B"><shadow type="math_number" id="Cz,1bDaoEfc^9q~ZMz%7"><field name="NUM">1</field></shadow> <block type="math_number" id="D:sO@F,Z?3s3{jh4pUe("><field name="NUM">2</field></block></value></block></value></block></statement> <next><block type="controls_if" id="/ii#j4T7RJzpW2jGQ-%G"><value name="IF0"><block type="logic_compare" id="O|K#BqlZWNDh^0n#V*_a"><field name="OP">LT</field> <value name="A"><block type="convert_tonumber" id="#~-ej)T8F|kJ*(5hg`gY"><value name="VALUE"><block type="get_value" id="eC.iYpIPA~*W*P:pu!h]"><field name="ATTR">val</field> <field name="OID">yr.0.forecast.day1.precipitation</field></block></value></block></value> <value name="B"><block type="math_number" id="s_)i7b}LE}+d0jR@O~1;"><field name="NUM">0.2</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="-thxk._aRn{DCKm|kXHk"><field name="VAR">Sprengen Pulse</field> <value name="VALUE"><block type="math_arithmetic" id="D4l*DrL|dF~L[1DZd94G"><field name="OP">ADD</field> <value name="A"><shadow type="math_number" id="E,I.z2f*YxvwxKOeZ.8K"><field name="NUM">1</field></shadow> <block type="variables_get" id="DUj*W`pwLp4SE361!3iP"><field name="VAR">Sprengen Pulse</field></block></value> <value name="B"><shadow type="math_number" id="Cz,1bDaoEfc^9q~ZMz%7"><field name="NUM">1</field></shadow> <block type="math_number" id="[D5.n#K_)?+r#e}g:ggL"><field name="NUM">1</field></block></value></block></value></block></statement> <next><block type="comment" id="*H`hd:N0Ev/}DO?Ua95D"><field name="COMMENT">Wetterdaten Temperatur abfragen für heute</field> <next><block type="controls_if" id="cp`*.g!f1`CG?Ecp4]+V"><value name="IF0"><block type="logic_compare" id="/OZ~}sU78:4C^0o#0OAo"><field name="OP">GT</field> <value name="A"><block type="convert_tonumber" id="O9VKzhVadh]_{F*9ni9X"><value name="VALUE"><block type="get_value" id="Gq0{:U4Kvb4`YtUH[Rvt"><field name="ATTR">val</field> <field name="OID">yr.0.forecast.day0.temperatureActual</field></block></value></block></value> <value name="B"><block type="math_number" id="T[vSNHJU@(-OzTzr`.jl"><field name="NUM">18</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="+{vS6|AyjbTRO78JC*QI"><field name="VAR">Sprengen Pulse</field> <value name="VALUE"><block type="math_arithmetic" id="8sHv]W|]k-CaG!;(^4Eg"><field name="OP">ADD</field> <value name="A"><shadow type="math_number" id="E,I.z2f*YxvwxKOeZ.8K"><field name="NUM">1</field></shadow> <block type="variables_get" id="a3M~|?OZbkc2c.YGYV,^"><field name="VAR">Sprengen Pulse</field></block></value> <value name="B"><shadow type="math_number" id="Cz,1bDaoEfc^9q~ZMz%7"><field name="NUM">1</field></shadow> <block type="math_number" id="oHr;rJi|h:iEDVao%`?!"><field name="NUM">1</field></block></value></block></value></block></statement> <next><block type="controls_if" id="+2@D(55`T5p6LHheJ{Q1"><value name="IF0"><block type="logic_compare" id="XEK/]Of.{K.E(IGo?tA]"><field name="OP">GT</field> <value name="A"><block type="convert_tonumber" id="v6jkU0Cz9zElDdt#EaWx"><value name="VALUE"><block type="get_value" id="n-t+~=;lclKV:gwq?vyd"><field name="ATTR">val</field> <field name="OID">yr.0.forecast.day0.temperatureActual</field></block></value></block></value> <value name="B"><block type="math_number" id="ODyuD,`S})?59:]:V.JR"><field name="NUM">22</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="2z.tC85mT8MC;r.5l0uh"><field name="VAR">Sprengen Pulse</field> <value name="VALUE"><block type="math_arithmetic" id="gHb3DL[Obcw{C.so@i*i"><field name="OP">ADD</field> <value name="A"><shadow type="math_number" id="E,I.z2f*YxvwxKOeZ.8K"><field name="NUM">1</field></shadow> <block type="variables_get" id="RY_O~f~_.B0l.;h7emxF"><field name="VAR">Sprengen Pulse</field></block></value> <value name="B"><shadow type="math_number" id="Cz,1bDaoEfc^9q~ZMz%7"><field name="NUM">1</field></shadow> <block type="math_number" id="M^1fj.6BY5L|.Fep,Ro8"><field name="NUM">1</field></block></value></block></value></block></statement> <next><block type="comment" id="Xz?Xb~(U`#KBL7Qg7mPd"><field name="COMMENT">Wetterdaten Temperatur abfragen für morgen</field> <next><block type="controls_if" id="]*S}H=E1Eq^}Yc%,0Lkl"><value name="IF0"><block type="logic_compare" id="ALYqPQR0jM+M{=D6D9L|"><field name="OP">GT</field> <value name="A"><block type="convert_tonumber" id="kNaTCr!A!@+au@|Hn1yf"><value name="VALUE"><block type="get_value" id="Iclmx=qBeM2v7o3`Utg:"><field name="ATTR">val</field> <field name="OID">yr.0.forecast.day1.temperatureMax</field></block></value></block></value> <value name="B"><block type="math_number" id="^,I`/T#@2JfEng.vZP05"><field name="NUM">18</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="owU}sB!j43r@r(y%CwI%"><field name="VAR">Sprengen Pulse</field> <value name="VALUE"><block type="math_arithmetic" id="?r=%sj0a}ux@8H)+_(`q"><field name="OP">ADD</field> <value name="A"><shadow type="math_number" id="E,I.z2f*YxvwxKOeZ.8K"><field name="NUM">1</field></shadow> <block type="variables_get" id="NN.Jr2+u|U_.^|i3WJfH"><field name="VAR">Sprengen Pulse</field></block></value> <value name="B"><shadow type="math_number" id="Cz,1bDaoEfc^9q~ZMz%7"><field name="NUM">1</field></shadow> <block type="math_number" id="Rr#VQm,5rG0ksPowoO=?"><field name="NUM">1</field></block></value></block></value></block></statement> <next><block type="controls_if" id="L#3s{3#rU1o*!%MG9ePy"><value name="IF0"><block type="logic_compare" id="/OEPGW^zTuCxt3=F}J=Z"><field name="OP">GT</field> <value name="A"><block type="convert_tonumber" id="kK%P^`4E(S-}4Y6^;_{."><value name="VALUE"><block type="get_value" id="fpWC8]lc@JPgU/H2AFW?"><field name="ATTR">val</field> <field name="OID">yr.0.forecast.day1.temperatureMax</field></block></value></block></value> <value name="B"><block type="math_number" id="U1sH=6C6(:qElmWM@v]u"><field name="NUM">22</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="Khd+2T[s){wL4gCUUkVm"><field name="VAR">Sprengen Pulse</field> <value name="VALUE"><block type="math_arithmetic" id="ptCg(MplgnRE]8:1kPBV"><field name="OP">ADD</field> <value name="A"><shadow type="math_number" id="E,I.z2f*YxvwxKOeZ.8K"><field name="NUM">1</field></shadow> <block type="variables_get" id="yvk;XAR1;%R}JnHac_Cg"><field name="VAR">Sprengen Pulse</field></block></value> <value name="B"><shadow type="math_number" id="Cz,1bDaoEfc^9q~ZMz%7"><field name="NUM">1</field></shadow> <block type="math_number" id="81R2Zt%n0#hYMPgPBC}{"><field name="NUM">1</field></block></value></block></value></block></statement> <next><block type="comment" id="%!;OZ*)c:A7wDgoPClX0"><field name="COMMENT">Wetterdaten Luftdruck abfragen für heute und morgen</field> <next><block type="controls_if" id="2O=x0ih)`8!PhMvFaD.2"><value name="IF0"><block type="logic_compare" id="@?iga,yJ7z#z|p`Wu4Bp"><field name="OP">GT</field> <value name="A"><block type="convert_tonumber" id="9YF~p^IV#n3S=QFNt]f~"><value name="VALUE"><block type="get_value" id="fV9xaBMMm;`@XC4X#FzF"><field name="ATTR">val</field> <field name="OID">yr.0.forecast.day0.pressure</field></block></value></block></value> <value name="B"><block type="math_number" id="6h?./--)h2[f6nI7Ajw/"><field name="NUM">1010</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id=".#FF=0lej2u15[I4J7zf"><field name="VAR">Sprengen Pulse</field> <value name="VALUE"><block type="math_arithmetic" id="PvapIAlkmg?Nx9IX:UO_"><field name="OP">ADD</field> <value name="A"><shadow type="math_number" id="E,I.z2f*YxvwxKOeZ.8K"><field name="NUM">1</field></shadow> <block type="variables_get" id="x%So_f3v^,h+5:oM}N#S"><field name="VAR">Sprengen Pulse</field></block></value> <value name="B"><shadow type="math_number" id="Cz,1bDaoEfc^9q~ZMz%7"><field name="NUM">1</field></shadow> <block type="math_number" id="OlEx]N#=JG:Qi,2QZSsc"><field name="NUM">1</field></block></value></block></value></block></statement> <next><block type="controls_if" id="0Tko?jmO7+Xh{E9mG}4z"><value name="IF0"><block type="logic_compare" id="|iV,C3lPc8g:%1b#5cM("><field name="OP">GT</field> <value name="A"><block type="convert_tonumber" id="Jw_D#pB3DliC6+Y62Ocs"><value name="VALUE"><block type="get_value" id="7E{@#WAQ+/vP7D|v@R!="><field name="ATTR">val</field> <field name="OID">yr.0.forecast.day1.pressure</field></block></value></block></value> <value name="B"><block type="math_number" id="MS/X,p(SkeDY@(}`._sw"><field name="NUM">1010</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id="`Uye8V@hnS;9A%BLraU~"><field name="VAR">Sprengen Pulse</field> <value name="VALUE"><block type="math_arithmetic" id="HD!]NE*WqP0o.2{ryal*"><field name="OP">ADD</field> <value name="A"><shadow type="math_number" id="E,I.z2f*YxvwxKOeZ.8K"><field name="NUM">1</field></shadow> <block type="variables_get" id="3Y+hTY6bRfH?{vK6);[Y"><field name="VAR">Sprengen Pulse</field></block></value> <value name="B"><shadow type="math_number" id="Cz,1bDaoEfc^9q~ZMz%7"><field name="NUM">1</field></shadow> <block type="math_number" id="S#=w:n9oXjLrP6rqFqx%"><field name="NUM">1</field></block></value></block></value></block></statement> <next><block type="comment" id=":u2]ei(Ia9OGy/cH?wrj"><field name="COMMENT">Sprengzeit bestimmen</field> <next><block type="comment" id="_]0Ohn)-B;?9x8`Y;BQl"><field name="COMMENT">errechnete Punkte zu %</field> <next><block type="controls_if" id="9,Yux3T`8+wOBgqEu]z6"><mutation elseif="3" else="1"></mutation> <value name="IF0"><block type="logic_compare" id="=+?M+{PDV;@l#LI7qQ}m"><field name="OP">GT</field> <value name="A"><block type="convert_tonumber" id="~h;7f3;tsO%z=5ZkxVbP"><value name="VALUE"><block type="variables_get" id="=ur+oPsEDDr;Gdq-Yko2"><field name="VAR">Sprengen Pulse</field></block></value></block></value> <value name="B"><block type="math_number" id="]-4!l%tuDEAK#/BX!d_i"><field name="NUM">10</field></block></value></block></value> <statement name="DO0"><block type="variables_set" id=";xTkJ/ODI.QQw_haDYUd"><field name="VAR">Spreng Prozente</field> <value name="VALUE"><block type="math_number" id="wy2LZ@yQA|+X1?eW~UA_"><field name="NUM">100</field></block></value></block></statement> <value name="IF1"><block type="logic_compare" id="rtZlo^j+]TL@HpDrZB;x"><field name="OP">GT</field> <value name="A"><block type="convert_tonumber" id="CZ9#Y~2riSv.6{|krj)/"><value name="VALUE"><block type="variables_get" id="mra9ovq|m:ud=,god`r`"><field name="VAR">Sprengen Pulse</field></block></value></block></value> <value name="B"><block type="math_number" id="QM!(i%gr7HDGZP(~J?Wx"><field name="NUM">9</field></block></value></block></value> <statement name="DO1"></statement></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></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></block></xml>
-
id="[kIP4YfPPQxiPuJ3HWgQ"> <field name="VAR">Spreng Prozente</field> <value name="VALUE"><block type="math_number" id="HGI`:)vWoP7UXo1b/NE["><field name="NUM">70</field></block></value> <value name="IF2"><block type="logic_compare" id="_Wd|V)Lksm;O5D*XW/dd"><field name="OP">GT</field> <value name="A"><block type="convert_tonumber" id="JdUZKb0hAZza1LVG4:t="><value name="VALUE"><block type="variables_get" id="{a^nGU#A5]J)X)u{^cxU"><field name="VAR">Sprengen Pulse</field></block></value></block></value> <value name="B"><block type="math_number" id="G^Z7Gy-u7V[Wiv#`+=IL"><field name="NUM">8</field></block></value></block></value> <statement name="DO2"><block type="variables_set" id="fUxRzHsomCLFJrocJ|l`"><field name="VAR">Spreng Prozente</field> <value name="VALUE"><block type="math_number" id="Obt1rZnXsY5?a3f3W7}D"><field name="NUM">50</field></block></value></block></statement> <value name="IF3"><block type="logic_compare" id="T|;FuQo)amevlUM7`7x?"><field name="OP">GT</field> <value name="A"><block type="convert_tonumber" id="/Vp^Uf9J4b^5Qkmk}coE"><value name="VALUE"><block type="variables_get" id="=+X+^YR:-BPhQR2(viS["><field name="VAR">Sprengen Pulse</field></block></value></block></value> <value name="B"><block type="math_number" id="E^C_!D[kDRW{~luxJPB)"><field name="NUM">7</field></block></value></block></value> <statement name="DO3"><block type="variables_set" id="KJiZsh[09azxD{=cYQ*:"><field name="VAR">Spreng Prozente</field> <value name="VALUE"><block type="math_number" id="Q5`xb)?@W1N?0Ev6qUzg"><field name="NUM">30</field></block></value></block></statement> <statement name="ELSE"><block type="variables_set" id="[xcQ462VYXu1T)P|H^K="><field name="VAR">Spreng Prozente</field> <value name="VALUE"><block type="math_number" id="XY90Aip`-;ur[,QJ+PU."><field name="NUM">0</field></block></value></block></statement> <next><block type="comment" id="V{Rd.EEcJ;yi(5d5%DCh"><field name="COMMENT">errechnete % durch 100</field> <next><block type="variables_set" id="#*Dfkzm0v@TWVybztHJl"><field name="VAR">Spreng Prozente durch 100</field> <value name="VALUE"><block type="math_arithmetic" id="V8?,,yR,{Q]DxkxD9w;}"><field name="OP">DIVIDE</field> <value name="A"><shadow type="math_number" id="u9V92@QIp{F:3l@)8ih["><field name="NUM">1</field></shadow> <block type="convert_tonumber" id="F|n}Jlc{Y9*?vp8{*z3}"><value name="VALUE"><block type="variables_get" id="(=07.z:9)4,DFfzRX)-;"><field name="VAR">Spreng Prozente</field></block></value></block></value> <value name="B"><shadow type="math_number" id="aFk=:MQP9yrK+n4?|(pW"><field name="NUM">100</field></shadow> <block type="math_number" id="SQOWKJ(r+QW{BS-|2n{E"><field name="NUM">100</field></block></value></block></value> <next><block type="comment" id=")##^[8{O7d?cSXu+8,@0"><field name="COMMENT">Ergebnis mal die oben eingegeben Minuten</field> <next><block type="variables_set" id="VZb4Uh9N^;EN-P`ABkiP"><field name="VAR">hinterm Haus Prozente durch 100 mal die Zeit</field> <value name="VALUE"><block type="math_arithmetic" id="qsC!AP}E(EU5WOLq_?ls"><field name="OP">MULTIPLY</field> <value name="A"><shadow type="math_number" id="u9V92@QIp{F:3l@)8ih["><field name="NUM">1</field></shadow> <block type="variables_get" id="0i!v6sX;JdgtiUSN}Lff"><field name="VAR">Spreng Prozente durch 100</field></block></value> <value name="B"><shadow type="math_number" id="mEI@lk9BU5G?^|ZBr_z]"><field name="NUM">100</field></shadow> <block type="variables_get" id="%:D?O4{32tPlp~._537U"><field name="VAR">Regner hinten Haus</field></block></value></block></value> <next><block type="variables_set" id="]nVM_g1?h@Ih/V4^A9rS"><field name="VAR">neben Haus Prozente durch 100 mal die Zeit</field> <value name="VALUE"><block type="math_arithmetic" id="4V_H/AFFIB[+)R14E;UY"><field name="OP">MULTIPLY</field> <value name="A"><shadow type="math_number" id="u9V92@QIp{F:3l@)8ih["><field name="NUM">1</field></shadow> <block type="variables_get" id="sPmy}j1V(!R3oU@1Di{s"><field name="VAR">Spreng Prozente durch 100</field></block></value> <value name="B"><shadow type="math_number" id="mEI@lk9BU5G?^|ZBr_z]"><field name="NUM">100</field></shadow> <block type="variables_get" id="D,_8d2vdLgsi0!i1S~zb"><field name="VAR">Regner neben Haus</field></block></value></block></value> <next><block type="variables_set" id="(,udqb_Oi2;S}t=9!IL["><field name="VAR">vorne Grube Prozente durch 100 mal die Zeit</field> <value name="VALUE"><block type="math_arithmetic" id="zl~_2*u{{:RaY=cL_~|z"><field name="OP">MULTIPLY</field> <value name="A"><shadow type="math_number" id="u9V92@QIp{F:3l@)8ih["><field name="NUM">1</field></shadow> <block type="variables_get" id="hF~}ewk}Gv0,M2nk(Wwz"><field name="VAR">Spreng Prozente durch 100</field></block></value> <value name="B"><shadow type="math_number" id="mEI@lk9BU5G?^|ZBr_z]"><field name="NUM">100</field></shadow> <block type="variables_get" id="U03`}k{js;*|^BKiev8:"><field name="VAR">Regner vorne Grube</field></block></value></block></value> <next><block type="variables_set" id="y90`qWKf}{xA,lR7|(vg"><field name="VAR">vorm Haus Prozente durch 100 mal die Zeit</field> <value name="VALUE"><block type="math_arithmetic" id="Vo}U|L6VVfnUopeD;QcH"><field name="OP">MULTIPLY</field> <value name="A"><shadow type="math_number" id="u9V92@QIp{F:3l@)8ih["><field name="NUM">1</field></shadow> <block type="variables_get" id="I/gH;V#a;@u8;#B#ZZx%"><field name="VAR">Spreng Prozente durch 100</field></block></value> <value name="B"><shadow type="math_number" id="mEI@lk9BU5G?^|ZBr_z]"><field name="NUM">100</field></shadow> <block type="variables_get" id=":13B4gJfLn.kh}e];bcR"><field name="VAR">Regner vorm Haus</field></block></value></block></value> <next><block type="comment" id="aAS58+A{k4%gzu*2)k={"><field name="COMMENT">Ergebnis in Minuten läuft die Schleife</field> <next><block type="variables_set" id="{!F?ke:1G1:z[kWYnFaj"><field name="VAR">Zeit für die Intervalle</field> <value name="VALUE"><block type="math_number" id=")nvbo}LI8mGC?OAKa,V0"><field name="NUM">0</field></block></value> <next><block type="control" id="QDtRpeCf0i,uk*dzL?o6"><mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_1-4.POWER2</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="hce_Xe87GR^@S#e8%boA"><field name="BOOL">TRUE</field></block></value> <next><block type="timeouts_setinterval" id="4lrHq{pCg;0mB]pzMsnA"><field name="NAME">Intervall</field> <field name="INTERVAL">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"><block type="math_change" id="#_Q/ve[C:]{ykyuG)2Gl"><field name="VAR">Zeit für die Intervalle</field> <value name="DELTA"><shadow type="math_number" id="VD/KIVyzJjgU14H1Bqt1"><field name="NUM">1</field></shadow> <block type="math_number" id="_;-;~B?q170N(TUj?uKN"><field name="NUM">1</field></block></value> <next><block type="controls_if" id="dnM-og6[EP@WmxE:?Y~M"><value name="IF0"><block type="logic_compare" id="ppjv*iPu:rNk=RF!fs6L"><field name="OP">GTE</field> <value name="A"><block type="variables_get" id="K9LmtFR;!~@I`|a}AJ74"><field name="VAR">Zeit für die Intervalle</field></block></value> <value name="B"><block type="variables_get" id="9=O56E,M[Dp5f19yc1ml"><field name="VAR">hinterm Haus Prozente durch 100 mal die Zeit</field></block></value></block></value> <statement name="DO0"><block type="timeouts_clearinterval" id="[8XI34TgvS`tyDL}mtUi"><field name="NAME">Intervall</field> <next><block type="control" id="JT-(w4O7_}db0|UtMJ{|"><mutation delay_input="true"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_1-4.POWER2</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="`zr2UZ3K,*[@Eqkl0/~i"><field name="BOOL">FALSE</field></block></value> <next><block type="control" id=";1DKV1RuMa9)441St55d"><mutation delay_input="true"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_1-4.POWER1</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">30</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="B#~tFJv,T]5Z*jdLo9_~"><field name="BOOL">TRUE</field></block></value> <next><block type="timeouts_settimeout" id="!H}PEAnlJgI`4?|-h_^("><field name="NAME">timeout</field> <field name="DELAY">65</field> <field name="UNIT">sec</field> <statement name="STATEMENT"><block type="control" id="L0o9S/1:3sv;f`q96p)#"><mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_1-4.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="!55)pjhF/x;6/.0crZ1*"><field name="BOOL">FALSE</field></block></value></block></statement></block></next></block></next></block></next></block></statement></block></next></block></statement> <next><block type="on" id="ce!^:X=ZTRN8t*8fO#Z3"><field name="OID">sonoff.0.Sonoff_Rasen_1-4.POWER2</field> <field name="CONDITION">false</field> <field name="ACK_CONDITION">false</field> <statement name="STATEMENT"><block type="variables_set" id="G@Mj.j^a`w9MgGl1FBDu"><field name="VAR">Zeit für die Intervalle</field> <value name="VALUE"><block type="math_number" id="A]Q9r:!#vg?X{!,=NM7;"><field name="NUM">0</field></block></value> <next><block type="control" id="ISPewzDGSt+JWje}J)[b"><mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_1-4.POWER3</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="~LY@{XQ)lcFDbcV9wFUq"><field name="BOOL">TRUE</field></block></value> <next><block type="timeouts_setinterval" id="qwh8Mli!`ynhDPk(cQs`"><field name="NAME">Intervall2</field> <field name="INTERVAL">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"><block type="math_change" id="rn_5~IK/S]xU_8n5OUGm"><field name="VAR">Zeit für die Intervalle</field> <value name="DELTA"><shadow type="math_number" id="VD/KIVyzJjgU14H1Bqt1"><field name="NUM">1</field></shadow> <block type="math_number" id="U|azVqZZIYNS{nqQ{]x:"><field name="NUM">1</field></block></value> <next><block type="controls_if" id="=5+{SSq(5A.fXL}jD?x4"><value name="IF0"><block type="logic_compare" id="~tW_S=xX%23Cj[34_Zwg"><field name="OP">GTE</field> <value name="A"><block type="variables_get" id="^h211Ww.[X0b^kEUKa:,"><field name="VAR">Zeit für die Intervalle</field></block></value> <value name="B"><block type="variables_get" id="P!`M|R!VN?~|UG|[%u`M"><field name="VAR">neben Haus Prozente durch 100 mal die Zeit</field></block></value></block></value> <statement name="DO0"><block type="timeouts_clearinterval" id="tS(gE(ERA|8k4~wt|zcu"><field name="NAME">Intervall2</field> <next><block type="control" id="qf/rxxd?.6x~sB9nQA~."><mutation delay_input="true"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_1-4.POWER3</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="~.FG3f,^Ijrj`3ee(_ih"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block></next></block></statement></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></next></block></next></block></next>
-
name="OID">sonoff.0.Sonoff_Rasen_1-4.POWER3 <field name="CONDITION">false</field> <field name="ACK_CONDITION">false</field> <statement name="STATEMENT"><block type="variables_set" id="O2bl#|dz|fMffa.@1wqE"><field name="VAR">Zeit für die Intervalle</field> <value name="VALUE"><block type="math_number" id="No^,mMr:^6V,m0NlQOY2"><field name="NUM">0</field></block></value> <next><block type="control" id="H),.=CgAGbWk^TV.#bI("><mutation delay_input="false"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_5-8.POWER1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="wQdA`ngj{?Uniqr30GCz"><field name="BOOL">TRUE</field></block></value> <next><block type="timeouts_setinterval" id="tps=2*`4Q4BXcTSl4=eJ"><field name="NAME">Intervall3</field> <field name="INTERVAL">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"><block type="math_change" id="SOmd^gG-}r%7~/tqvr}x"><field name="VAR">Zeit für die Intervalle</field> <value name="DELTA"><shadow type="math_number" id="VD/KIVyzJjgU14H1Bqt1"><field name="NUM">1</field></shadow> <block type="math_number" id="QfdjQ03:0Rc?w8JgLqD:"><field name="NUM">1</field></block></value> <next><block type="controls_if" id="TJ,(i1}f*BQLR0ogY.,5"><value name="IF0"><block type="logic_compare" id="aNk19Ylktq=sOnk{7{xi"><field name="OP">GTE</field> <value name="A"><block type="variables_get" id="~T?7lV9Ku/un1]=mHB!N"><field name="VAR">Zeit für die Intervalle</field></block></value> <value name="B"><block type="variables_get" id="fC@3ANG-eUPZ1e-7@b?o"><field name="VAR">neben Haus Prozente durch 100 mal die Zeit</field></block></value></block></value> <statement name="DO0"><block type="timeouts_clearinterval" id="YjJ.#XNo-Fj2A.K~w7jz"><field name="NAME">Intervall3</field> <next><block type="control" id="H84B1T+7)2+.5|CCU3}#"><mutation delay_input="true"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_5-8.POWER1</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="/OqQYPeMeR|i)K[(A2gh"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block></next></block></statement></block></next></block></next></block></statement> <next><block type="on" id="(3e/i;pH,6Q/K_1#zFa+"><field name="OID">sonoff.0.Sonoff_Rasen_1-4.POWER3</field> <field name="CONDITION">false</field> <field name="ACK_CONDITION">false</field> <statement name="STATEMENT"><block type="variables_set" id="tX.c0f]v6^NqNU(,6|Q0"><field name="VAR">Zeit für die Intervalle</field> <value name="VALUE"><block type="math_number" id=".,[?lZC1IK!G(GU|oX*L"><field name="NUM">0</field></block></value> <next><block type="control" id="?0iio9/O(}lx:DRpnv-,"><mutation delay_input="true"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_5-8.POWER2</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">1</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="VALUE"><block type="logic_boolean" id="DW1DIpmiVn^+[}WF[=Xo"><field name="BOOL">TRUE</field></block></value> <next><block type="timeouts_setinterval" id="4X}Egv3i37rG{yUNP^;9"><field name="NAME">Intervall4</field> <field name="INTERVAL">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"><block type="math_change" id="nqG9l4=iv.`H!z3c|jzX"><field name="VAR">Zeit für die Intervalle</field> <value name="DELTA"><shadow type="math_number" id="VD/KIVyzJjgU14H1Bqt1"><field name="NUM">1</field></shadow> <block type="math_number" id="h3Q%Vw+z,MkJNOA08+37"><field name="NUM">1</field></block></value> <next><block type="controls_if" id="EDa{v{M%pQ)R6oF%{-IR"><value name="IF0"><block type="logic_compare" id="R19Yivj]z!?KrES*lo8P"><field name="OP">GTE</field> <value name="A"><block type="variables_get" id="t(a}B/CN|!+SUs.wwY0X"><field name="VAR">Zeit für die Intervalle</field></block></value> <value name="B"><block type="variables_get" id="dwU0riMGD#m,:)KLqro_"><field name="VAR">neben Haus Prozente durch 100 mal die Zeit</field></block></value></block></value> <statement name="DO0"><block type="timeouts_clearinterval" id="@B{`q:IQdvMQoO?Y;f|["><field name="NAME">Intervall3</field> <next><block type="control" id="FZDGNVZ}N!Y,m^==`|B2"><mutation delay_input="true"></mutation> <field name="OID">sonoff.0.Sonoff_Rasen_5-8.POWER2</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="8Qi+X5;DNRo2`6s!;z3X"><field name="BOOL">FALSE</field></block></value></block></next></block></statement></block></next></block></statement></block></next></block></next></block></statement></block></next>
-
![](</s><ATTACHMENT )" />~~ -
Hallo!
Ich bastel auch an so einer Lösung, allerdings habe ich 16 Ventile zu steueren. Welche Ventile hast du eingesetzt?
Bei meiner Lösung habe ich darauf geachtet das bei Stromausfahl / Serverausfall die Ventile auf jeden Fall zugehen.
Die Datenpunkte werden gesetzt von welchem Adapter ? "yr.0.forecast.day0.precipitation"
Update: Script habe ich zusammen gesetzt.
Malc
-
Ja habe 230v Industrie Ventile Stromlos geschlossen.
Und zusätzlich noch ein Fritzdect200 davor.
Nur zur Sicherheit.
Hatte vorher Gardena Ventile die halten aber nur maximal 3 Jahre. Hatte dort immer das Problem das sie geöffnet haben, aber nicht mehr zu gingen. Das ist doof wenn Mann nicht zu Hause ist.
-
Ja habe 230v Industrie Ventile Stromlos geschlossen. `
Der genaue Typ würde mich interessieren. Ich habe aktuell 50 EUR 220V Ventile von Amazon. Die funktionieren ganz gut doch werden die erbärmlich heiss. So innerhalb 5 Minuten 100° sind da schnell zu messen. Werden deine auch so arg heiss?Meine haben lt. Datenblatt um die 12 Watt, natürlich muss das ja auch irgendwo hin. Ich hätte aber gern bessere Qualität.
Malc
-
Meine werden nicht mal Handwarm. Dann stimmt da was nicht. Wenn ich wieder zu Hause bin schaue ich mal nach wie sie heißen.
-
Das interessiert mich sehr!
Die Dinger die ich bei Amazon gefunden habe sehen ja eigentlich wertig aus, aber 14Watt müssen auch irgendwo verbrannt werden.
Ich kann deine Installtion nicht genau erkennen, die arbeiten aber bis welchem Druck max? Meine sind am "Stadtwasser" 5+ bar…
-
So ich hab noch mal geschaut.
Es sollten diese sein