NEWS
Zeit seit letztem Regen für Rasenroboter [gelöst]
-
Hallo an alle,
ich habe gerade ein bißchen im Forum gesucht aber nicht so wirklich eine Lösung gefunden...
Ich habe einen Regensensor der bei Regen "trure" und folglich bie keinem Regen "false" meldet.
Jetzt schicke ich per Skript bei Regen den Roboter heim.
In einem nächsten Schritt würde ich gerne (in einer Schleife bzw. vergleichbarem) prüfen ob es schon länger als X Stunden nicht mehr geregnet hat, um den Roboter dann wieder nch Plan auf die Reise zu schicken.
Im Grunde geht es also darum, zu prüfen, ob der Datenpunkt "Regensensor" bereits seit mehr als X Stunden auf "false" stehr und wenn X eingetreten ist, den Befehl zur Rückkehr in den "scheduled Modus" zu senden.
Alternativ könnten natürlich auch einmal am Tag früh morgens geschaut werden,- ob der Roboter geparkt ist
- ob er geparkt ist, weil vormals Regen war
- ob bereits X Stunden vergangen sind, seit kein Regen mehr gefallen ist
Vielleicht gibt es da einen einfachen Ansatz?
-
@reutli Du kannst bei Regenende einen Timer starten, der nach gewünschter Zeit eine Variable oder einen Datenpunkt auf 'wahr' setzt. Bei Regenbeginn wird diese(r) auf 'falsch' gesetzt und der Timer gestoppt. Damit kannst du dann arbeiten.
-
@reutli müsste eigentlich mit "vorletzter Timestamp" gehen.
Differenz zwischen letzter Timestamp und vorletzter Timestamp bilden und prüfenedit:
Blödsinn, du willst ja nicht beim nächsten Regenb3ginn wissen wie lange trocken war -
@reutli
Wenn es dir hilft, ich habe das so gelöst.Wenn der Regensensor Regen meldet, starte ich einen Timer von 5 min. Wenn es danach immer noch regnet, schicke icg den Mähroboter in die Garage. Das soll verhindern, dass der Mähroboter schon beim ersten Regentropfen in die Garage fährt.
Meldet der Regensensor Trockenheit, so starte ich einen zweiten Timer und warte eine Stunde bis der Rasen wieder etwas abgetrocknet ist. Dann schicke ich den Mähroboter wieder zum Mähen.<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id=")qq.XN{O][a,8$TMF:61">Regenparken</variable> <variable type="timeout" id="timeout">timeout</variable> <variable type="timeout" id="timeout2">timeout2</variable> </variables> <block type="comment" id="9z:eQ68dD}T5T1g,7WtN" x="-1212" y="-287"> <field name="COMMENT">Hussi-Regensteuerung</field> <next> <block type="create" id="|mRCi9LiQnrZGTClXag]"> <field name="NAME">javascript.0.Eigene_Datenpunkte.timer1</field> <value name="VALUE"> <block type="math_number" id="DZ3,^7e6Z$V7`6MXrgq;"> <field name="NUM">0</field> </block> </value> <value name="COMMON"> <block type="text" id="9#:DwIgyWO`h.2k;p*:X"> <field name="TEXT">{"type":"number"}</field> </block> </value> <next> <block type="create" id="seqn|CEE5rux6bP!{f1-"> <field name="NAME">javascript.0.Eigene_Datenpunkte.timer2</field> <value name="VALUE"> <block type="math_number" id=",7(y*c0ZPH5wt`;X=f.v"> <field name="NUM">0</field> </block> </value> <value name="COMMON"> <block type="text" id="lACtWRpm8vzH9$B#5Kd#"> <field name="TEXT">{"type":"number"}</field> </block> </value> <next> <block type="control" id="{KMLZ2:]*_vsOPFE8JOY"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.timer1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="LV4n8z+[yVBQHO,d/b$b"> <field name="NUM">0</field> </block> </value> <next> <block type="control" id="^q{W(o{yBx;i?AMy-RUK"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.timer2</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="nRp~%`dR6IMu`g~@K#l0"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="7v]Po/X[}%(^`_m^:~%g"> <field name="VAR" id=")qq.XN{O][a,8$TMF:61">Regenparken</field> <value name="VALUE"> <block type="logic_boolean" id="V/uqATq;LxYo_.GE(H5g"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="controls_if" id="^k$D0(0#$pnNFRSfJaU]"> <value name="IF0"> <block type="time_compare_ex" id="MG)jhP^Y$N5xF8P^o6@C"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">between</field> <value name="START_TIME"> <shadow type="text" id="[[3{)Hcj+Iq^;=+RuB65"> <field name="TEXT">10:00</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="+GZ~s1daq5NE)*M10l#T"> <field name="TEXT">17:00</field> </shadow> </value> </block> </value> <statement name="DO0"> <block type="on_ext" id="5rsrba8`+NZ:dEs%9Uwd"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="0D?JC2+buJ0}-O1F^QU_"> <field name="oid">hm-rega.0.39780</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="i9#z8!YlZX(!l^~EK+M9"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="e7!|]bu$XZNe_26rQ+[Q"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="_q-@j$3W/,HX_LMr21?T"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="E{@q2)yc0C7f+S)uHZlI"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.39780</field> </block> </value> <value name="B"> <block type="logic_boolean" id="*Sa)?zi4;1~xX77tCaw."> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_multi_or" id="6Q6;G;an9/tmO(~HqD~y"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation> <value name="OR0"> <block type="logic_compare" id="7CQ|ysAGb}n%O%t*1+?T"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="?SD4o|;[CW`~R[k_BI88"> <field name="ATTR">val</field> <field name="OID">husqvarna-automower.0.3f4a276f-9fb2-440e-bcea-98f5f04880d2.mower.activity</field> </block> </value> <value name="B"> <block type="text" id="3AECFhRnNkQlKR|HP%^{"> <field name="TEXT">MOWING</field> </block> </value> </block> </value> <value name="OR1"> <block type="logic_compare" id="+(GXM(i06?VJkvT:VIyM"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=")*~cFLTuXQkETdS-sUsl"> <field name="ATTR">val</field> <field name="OID">husqvarna-automower.0.3f4a276f-9fb2-440e-bcea-98f5f04880d2.mower.activity</field> </block> </value> <value name="B"> <block type="text" id="=Kv|(SI/Wc*L6NbR#xcU"> <field name="TEXT">PARKED_IN_CS</field> </block> </value> </block> </value> <value name="OR2"> <block type="logic_compare" id=":A/Wg-i,WQw_/WU]uuwQ"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id=";]VsIuTM_kGh?9QP,BYp"> <field name="ATTR">val</field> <field name="OID">husqvarna-automower.0.3f4a276f-9fb2-440e-bcea-98f5f04880d2.mower.activity</field> </block> </value> <value name="B"> <block type="text" id="PbvFKep_fo_G=dEHqD|5"> <field name="TEXT">CHARGING</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="dh*}[_{!@{Fu%g[`fT!Y"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.timer1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="?$yE|_tk5[*mv!L)HjFF"> <field name="NUM">5</field> </block> </value> <next> <block type="control" id="Lxk4Nh2)Vo|Ve~;ts0a["> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.timer2</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="6!da8^Z.8Q33O]nxosNy"> <field name="NUM">0</field> </block> </value> <next> <block type="on" id="WrKQdt/.YQDt=!b%6ajb"> <field name="OID">javascript.0.Eigene_Datenpunkte.timer1</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="Pk:{n1##~|t#fBZ#h`-%"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="pI1%7lkqkXMc%8?61v#1"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="087c(RRd06U=:DniKyu/"> <field name="NAME">timeout</field> <next> <block type="timeouts_settimeout" id="r=bH@y~!#FS*{]^tf%s}"> <field name="NAME">timeout</field> <field name="DELAY">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="update" id="_Zx93ErD+Ahe~(?Y=vop"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.timer1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="p(;H*eC!l~4Bz^BtD}px"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="55vyY[_{qWz8mmJ1`w;U"> <field name="NUM">1</field> </shadow> <block type="on_source" id="Ie)ceo9*dN[e`Kd9-crg"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <shadow type="math_number" id="h7@p?ht_M],G#C!P$v?b"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </statement> </block> </next> </block> </statement> <statement name="ELSE"> <block type="timeouts_cleartimeout" id="v(9Lz44geUh4?d1B,.,*"> <field name="NAME">timeout</field> <next> <block type="controls_if" id="!{Rd?fl@cyYAu?i~aA}Y"> <value name="IF0"> <block type="logic_compare" id="AHtg}Ja?rD-hIt9{AP[z"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="^nW|0S`%nyMZ|wqKkds|"> <field name="ATTR">oldState.val</field> </block> </value> <value name="B"> <block type="math_number" id="uq0;rtUN68CxUwr|K@qw"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="/m/bU8P)+cSaDd;z?ZUK"> <value name="IF0"> <block type="logic_operation" id="CQ{!V=+gKxBVk+^+Oh#{"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="/!7u5iO#C9kBOBJ3xF_o"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="QTY$gMl+gmzO=;?`;6Mm"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.39780</field> </block> </value> <value name="B"> <block type="logic_boolean" id="?Qz3evo,zRJM}_g4u8A]"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="?$93mY$m1pCi=K]ZlZ1y"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="(yb@?sX4INe/[)N$jx{^"> <field name="ATTR">val</field> <field name="OID">husqvarna-automower.0.3f4a276f-9fb2-440e-bcea-98f5f04880d2.mower.activity</field> </block> </value> <value name="B"> <block type="text" id="};i:kI1*{JSBVL/x~3[n"> <field name="TEXT">MOWING</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="y8=JPszZlvqQ6,#y#d;*"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="Qzs!bg-Xe7mZH`NhSXR@"> <field name="TEXT">Mäher in Garage</field> </shadow> </value> <next> <block type="comment" id="iLlL_0Byo7`=#},@=W^9"> <field name="COMMENT">Befehl für Fahrt in Garage</field> <next> <block type="control" id="Fyg(e;4D!YvUjeq*NO-O"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">husqvarna-automower.0.3f4a276f-9fb2-440e-bcea-98f5f04880d2.ACTIONS.PARKUNTILFURTHERNOTICE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="E-7Tb`3H9iJIx4+6)I[,"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="K#FeH+s2JQ$lD-ui,ZDT"> <field name="VAR" id=")qq.XN{O][a,8$TMF:61">Regenparken</field> <value name="VALUE"> <block type="logic_boolean" id="s||NjE0yaJ,/Gs,%aV?9"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="control" id="8zNO=M/8{.[x/dNEJBDl"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.timer1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="G(Z@XnrL*(sfs`+4mAo,"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="controls_if" id="u`/vnmuDbpwt$LgNbrJ;"> <value name="IF0"> <block type="logic_multi_and" id="C/CRiYQFU`1kzZcn.UK`"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <value name="AND0"> <block type="logic_operation" id="dgr:4!wI`(Nn5a#]gf#d"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id=".967A^iP~|EY7nv-N*?S"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="}W9M;wH{g|Bp.LZUWp=S"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.39780</field> </block> </value> <value name="B"> <block type="logic_boolean" id="bLkii9`N@_R76G-XGE[d"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="XErs/^~n-a,0$DmwkK]s"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="/8ThBMq}B~d-TQP#gBc8"> <field name="ATTR">val</field> <field name="OID">husqvarna-automower.0.3f4a276f-9fb2-440e-bcea-98f5f04880d2.mower.activity</field> </block> </value> <value name="B"> <block type="text" id="Ye@0CvKo1nPND*^e?D!x"> <field name="TEXT">MOWING</field> </block> </value> </block> </value> </block> </value> <value name="AND1"> <block type="logic_compare" id="V)zCJ}o#ZMvV.dyx(G(A"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="uE4`2=n5UM+Z]p:;i-:z"> <field name="VAR" id=")qq.XN{O][a,8$TMF:61">Regenparken</field> </block> </value> <value name="B"> <block type="logic_boolean" id="qUQc61F5!Ai/[Qc*i}J]"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id=":.;+zIOp8O#-o[Y{6?tq"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.timer2</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="8KRr=]~CFTkAjXMQk-sR"> <field name="NUM">60</field> </block> </value> <next> <block type="control" id="HNd08hkJBl#u-5mhJ-eX"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.timer1</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="vc;I:0d~u_t/f3dkOY6q"> <field name="NUM">0</field> </block> </value> <next> <block type="on" id="]8_pYI@p2ApOWixz%bGT"> <field name="OID">javascript.0.Eigene_Datenpunkte.timer2</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="v3khv3!KdVu9COV+g;-7"> <mutation else="1"></mutation> <value name="IF0"> <block type="on_source" id="U^@0$f)Th/T^rhFZz8DX"> <field name="ATTR">state.val</field> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="*m2DhGD@uS]_,SBUG_;/"> <field name="NAME">timeout2</field> <next> <block type="timeouts_settimeout" id="ILDx,GSIx=PlF|Qunfc3"> <field name="NAME">timeout2</field> <field name="DELAY">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="update" id="Xl.5Tnhix23epJFlAY[8"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.timer2</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_arithmetic" id="BGIM20ap!~hd=WoNC]iz"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="55vyY[_{qWz8mmJ1`w;U"> <field name="NUM">1</field> </shadow> <block type="on_source" id="q?YZa_l.Z?)mBHSbk1e_"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <shadow type="math_number" id="r;R$kn3*fXMz=ZP!TDa`"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </statement> </block> </next> </block> </statement> <statement name="ELSE"> <block type="timeouts_cleartimeout" id="GD.l)vz(EHefKK!ri(]/"> <field name="NAME">timeout2</field> <next> <block type="controls_if" id="{ojTRC8FxQ42ofH]sJft"> <value name="IF0"> <block type="logic_compare" id="=f8[i|fgPHzDr(BzPeGT"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="o)Z;02qL1gp/aApEyDIU"> <field name="ATTR">oldState.val</field> </block> </value> <value name="B"> <block type="math_number" id="?zL?_73g5Zv8e4|(n0W4"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="Uk2XT+NR=w9NK@W[4gow"> <value name="IF0"> <block type="logic_operation" id="fc:x_*wZYVptty.h^Jq`"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="`-fw#8{HlmU(M6H81]CF"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="m.h@^NM8x6zg9x:;+R2|"> <field name="ATTR">val</field> <field name="OID">hm-rega.0.39780</field> </block> </value> <value name="B"> <block type="logic_boolean" id=".lZ@^0(oJfe,K|JI?!re"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="3Ok!(LT|U4O=#WD8M.)H"> <field name="OP">NEQ</field> <value name="A"> <block type="get_value" id="6JLSE%IBG;FQ4dc/;M)v"> <field name="ATTR">val</field> <field name="OID">husqvarna-automower.0.3f4a276f-9fb2-440e-bcea-98f5f04880d2.mower.activity</field> </block> </value> <value name="B"> <block type="text" id="Hl(di$$o8Y9YPR=2D`Yx"> <field name="TEXT">MOWING</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="debug" id="ZDlpyQx6u3W[#m3v{5h*"> <field name="Severity">info</field> <value name="TEXT"> <shadow type="text" id="-v;#Zbs`SR[`pw39^2nQ"> <field name="TEXT">Mäher fährt wieder</field> </shadow> </value> <next> <block type="comment" id="iK/O$w4);:Cf_M.F`IeD"> <field name="COMMENT">Befehl für weiteres Mähen</field> <next> <block type="control" id="Kc*?YSX/]=F@y$=febg%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">husqvarna-automower.0.3f4a276f-9fb2-440e-bcea-98f5f04880d2.ACTIONS.RESUMESCHEDULE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="fAdKH)qH(o^Mm3`IrPML"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="Unc(c~7@01JKv`Hx|OsW"> <field name="VAR" id=")qq.XN{O][a,8$TMF:61">Regenparken</field> <value name="VALUE"> <block type="logic_boolean" id="nz/|@Xu%r,,o+|F2_oOQ"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="control" id="!w3)x/;7fdreW$8*mg?m"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.timer2</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="math_number" id="k_UI/n?9_Dmkq;RNzrO#"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>
-
@reutli sagte: prüfen, ob der Datenpunkt "Regensensor" bereits seit mehr als X Stunden auf "false"
"Letzte Änderung" enthält die Information in ms.
-
Deinen Ansatz habe ich verstanden, das Blockly aber ehrlich gesagt nicht. Auch sind da Trigger in Trigger, was nicht so optimal ist.
Denke ich muss da nochmals forschen.... -
@paul53 Da war auch mein Denkfehler!
es gibt ja nach x Minuten Trockenheit keine Änderung
-
@kanumouse bitte Blocklys immer auch als Bild einstellen!
@reutli sagte in Zeit seit letztem Regen für Rasenroboter:
Auch sind da Trigger in Trigger, was nicht so optimal ist.
das kann man an der xml nicht direkt erkennen
-
@paul53
Ja, da fehlt mit aber noch der Algo wie ich das am besten alles setze.
Also wie setze ich "es hat aufgehört zu regenen seit n Stunden (bzw. ms). Damit könnte ich ja dann ggf. morgens prüfen, ob die Variable größer als die X Stunden ist. -
@homoran sagte in Zeit seit letztem Regen für Rasenroboter:
das kann man an der xml nicht direkt erkennen
aber wenn man's importiert ;o)
-
@reutli sagte in Zeit seit letztem Regen für Rasenroboter:
aber wenn man's importiert
wohin denn?
unterwegs auf dem Handy?https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1
-
@reutli
Mein Blockly ist vielleicht nicht optimal, aber es funktioniert! -
@kanumouse
Das glaube ich - danke dafür!
Wollte das auch nciht schlecht machen, aber ich muss verstehen was ich umsetze und da hängt es gerade.
Also nichts für ungut -
-
@paul53 an diese Blöcke muss ich mich noch gewöhnen!
letzte Änderung ohne Trigger!
Wie oft hätte ich das gebraucht -
@paul53
Danke, damit werde ich mal experimentieren.
Mit diesen Blöcken geht's mir aber wie @Homoran ... da muss ich erst mal durchblicken.Noch eine Frage: "letzte Änderung" ermittelt ausschließlich das letzte ÄNDERN eien Datenpunktes, in dem Fall also von "wahr2 Auf "falsch" oder umgekehrt, kein versuchtes Aktualisieren odersontiges...?
-
@reutli sagte in Zeit seit letztem Regen für Rasenroboter:
@paul53
Danke, damit werde ich mal experimentieren.
Mit diesen Blöcken geht's mir aber wie @Homoran ... da muss ich erst mal durchblicken.Noch eine Frage: "letzte Änderung" ermittelt ausschließlich das letzte ÄNDERN eien Datenpunktes, in dem Fall also von "wahr2 Auf "falsch" oder umgekehrt, kein versuchtes Aktualisieren odersontiges...?
genau, Änderung = Wert des Datenpunktes hat sich geändert.
das andere wäre "wurde aktualisiert" -
ok, thx
-
@homoran sagte: letzte Änderung ohne Trigger!
Wie oft hätte ich das gebraucht"Letzte Änderung" gab es an der Stelle schon immer. Hinzugekommen sind nur Attribute des statischen Objektes unter getObject(id).common.
-
@paul53
Ich habe jetzt mal was gebaut. Was aber noch nicht funktioniert ist die Auswertung der Zeit, da "Letzte Änderung" als Zeitstempel (Datumsformat) und nicht in ms gespeichert wird.
Was muss ich ändern, damit nach letzter Änderung + 120min meine Bedingung war wird?