NEWS
Rasenroboter - Laufzeit/Ladezeit/Messerzustand
-
Liebe Community,
Für all jene unter euch welche wie ich einen ziemlich veralteten "analogen" Rasenroboter ohne Adapter, Wifi oder sonstigen Netzwerkeigenschaften haben.
Ich habe mir ein Blockly gebaut welches mir folgende Parameter in Datenpunkte schreibt:- Laufzeit
- Mähzyklen
- Ladezeit
- Ladezyklen
- Messer-Laufzeit
- Messerzustand
- Benachrichtigung per Pushover falls der Rasenroboter irgendwo stecken geblieben ist (12:30 und 19:00)
Realisiert hab ich alles über einen einfachen Shelly Plug, welcher mir den Stromverbrauch von der Dockingstation misst.
Abhängig von eurem Gerät müsst ihr euch vorab die Verbrauchswerte beim Laden / Mähen dokumentieren und entsprechend im Skript anpassen.Folgende Datenpunkte müssen angelegt werden:
P.S.: Geht selbstverständlich auch mit Saugrobotern
Viel Spaß damit!
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="UtOxnB/uF1~qX~mF4|B7">Ladezyklen</variable> <variable type="cron" id="schedule1">schedule1</variable> <variable id="6l.p]/@0t,Vq{iQzG+,m">Ladezeit</variable> <variable type="cron" id="schedule2">schedule2</variable> <variable id="SA/U8;nkIm1oi{Y;xU`J">Messerzustand</variable> <variable id="#6btDDy?iZ!l,V3]+M[x">Dauer</variable> <variable id="S%q^h*#XQb0x[vvt7K:}">Laufzeit</variable> <variable id="]{EMz8hSy!}OcdP`Mqzw">Dauer2</variable> <variable type="interval" id="Intervall">Intervall</variable> <variable id="n;D/|E/#Aj0-?q30K:{9">Trigger1</variable> <variable id=")tGESEmT]pYF.v)Eih|^">Tage</variable> <variable id="7HHU8I(Li4`B4yd.j9v}">Mähzyklen</variable> <variable id="eegO]!DoTm*@-6LlTDgg">Trigger2</variable> <variable id="+i1]:)A33z/[vSzaG;4v">Tage2</variable> <variable type="interval" id="Intervall2">Intervall2</variable> <variable id="H68M?Flzm6{D=L;BBK%C">Stunden</variable> <variable id="1QM:d*4Rif(@N(e.}J]_">Stunden2</variable> <variable id="%7ZRF/p3a}h!c1c;Pkqj">Messerlaufzeit</variable> <variable id=";M]VNL_)$W;Cm)4apwb]">Minuten</variable> <variable id="[+GiHx*PU+apd;m9?ooC">Minuten2</variable> <variable id="Jyr]SpQCUB)T*mci^oil">Sekunden</variable> <variable id="TQAtt[O0LV+p8$:j(ip]">Sekunden2</variable> </variables> <block type="comment" id="l%CtB/HVkkDQmRi8$}:a" x="-488" y="13"> <field name="COMMENT">Angelegte Datenpunkte hier eintragen</field> <next> <block type="variables_set" id="b*7urQ]O9WzPx,jA{A@H"> <field name="VAR" id="UtOxnB/uF1~qX~mF4|B7">Ladezyklen</field> <value name="VALUE"> <block type="get_value" id="xjkkybm,gL(H3hKep#^X"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Energie.Rasenroboter.Ladezyklen</field> </block> </value> <next> <block type="variables_set" id="d/8H{bVEv}6H!7w~H{C="> <field name="VAR" id="6l.p]/@0t,Vq{iQzG+,m">Ladezeit</field> <value name="VALUE"> <block type="get_value" id="X?V`Mk,DCA.*^0-VeN|/"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Energie.Rasenroboter.Ladezeit</field> </block> </value> <next> <block type="variables_set" id="|N_/h:KSMf:BU|5@--=-"> <field name="VAR" id="S%q^h*#XQb0x[vvt7K:}">Laufzeit</field> <value name="VALUE"> <block type="get_value" id="4#HRdsj%~tnWfx%Lp(0X"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Energie.Rasenroboter.Laufzeit</field> </block> </value> <next> <block type="variables_set" id="5*BzhlXA/([lQrJpMuq?"> <field name="VAR" id="7HHU8I(Li4`B4yd.j9v}">Mähzyklen</field> <value name="VALUE"> <block type="get_value" id="S`OMRJf%1[**T%[R{a$l"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Energie.Rasenroboter.Mähzyklen</field> </block> </value> <next> <block type="variables_set" id="y*agJYh{V-L;r*`9%]|f"> <field name="VAR" id="SA/U8;nkIm1oi{Y;xU`J">Messerzustand</field> <value name="VALUE"> <block type="get_value" id="%Tn07}]9g8vw)qh31O1@"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Energie.Rasenroboter.Messerzustand</field> </block> </value> <next> <block type="variables_set" id="jm7}k,JeI878pxsIBc+("> <field name="VAR" id="%7ZRF/p3a}h!c1c;Pkqj">Messerlaufzeit</field> <value name="VALUE"> <block type="get_value" id="0oLw?YwgS^j~.#$3daz."> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Energie.Rasenroboter.Messerlaufzeit</field> </block> </value> <next> <block type="variables_set" id="g#b3@=4(cx.)GJ,-j%k/"> <field name="VAR" id="n;D/|E/#Aj0-?q30K:{9">Trigger1</field> <value name="VALUE"> <block type="math_number" id="pl(e+e)7[]eiz%weTy(H"> <field name="NUM">0</field> </block> </value> <next> <block type="variables_set" id="a{T%dI#ZB5jVa9AwmXrk"> <field name="VAR" id="eegO]!DoTm*@-6LlTDgg">Trigger2</field> <value name="VALUE"> <block type="math_number" id="Mgh=gQGtDX5@_dK}=NEi"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> <block type="comment" id="~(kP9`@k.5Kkj)Hs-wm^" x="363" y="237"> <field name="COMMENT">Berechnung Messerlaufzeit</field> <next> <block type="comment" id="kxkvv!!n{z!lGhU-FwmW"> <field name="COMMENT">Entsprechenden Datenpunkt als Trigger auswählen</field> <next> <block type="on" id="!82#p%S=P|!QS7e6B8x]"> <field name="OID">0_userdata.0.Energie.Rasenroboter.Messerlaufzeit</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="variables_set" id="eU6a@ffm.U]v7qAgmFDz"> <field name="VAR" id="SA/U8;nkIm1oi{Y;xU`J">Messerzustand</field> <value name="VALUE"> <block type="math_arithmetic" id="djJ3ChUJf_sYP,@F1(Qx"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="#%SHmlOHgov|#WDNOeVs"> <field name="NUM">100</field> </shadow> </value> <value name="B"> <shadow type="math_number" id="L82yuc`cA-$THp]uTUvv"> <field name="NUM">1</field> </shadow> <block type="math_rndfixed" id="^@]1llFNe7L#k7{`YX%{"> <field name="n">1</field> <value name="x"> <shadow type="math_number" id="TvJX6Dl`t~4ZT[Rqs?ks"> <field name="NUM">3.1234</field> </shadow> <block type="math_arithmetic" id="D=qk~F?%p28{*z=Vk[H="> <field name="OP">DIVIDE</field> <value name="A"> <shadow type="math_number" id=";WeV@9~!W4AO4b44DE=@"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="y4]01fFvjjof?UwC?CQX"> <field name="VAR" id="%7ZRF/p3a}h!c1c;Pkqj">Messerlaufzeit</field> </block> </value> <value name="B"> <shadow type="math_number" id="t`drfCS!48oWGDi1bm/4"> <field name="NUM">7200</field> </shadow> </value> </block> </value> </block> </value> </block> </value> <next> <block type="control_ex" id="B#|ETM,aqy`_(6;~bpvq"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="EcGn~vV;|q`huWWuYa/("> <field name="oid">0_userdata.0.Energie.Rasenroboter.Messerzustand</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean" id="TH};hT+sbjm::gsrT^ln"> <field name="BOOL">TRUE</field> </shadow> <block type="math_rndfixed" id="l!wKO/Z8Sd_@sa0;%zFV"> <field name="n">1</field> <value name="x"> <shadow type="math_number" id="V@q%|%i%p%ieaaV|`=y6"> <field name="NUM">3.1234</field> </shadow> <block type="variables_get" id="{kH_e5$nJ`7fBI]3^wd7"> <field name="VAR" id="SA/U8;nkIm1oi{Y;xU`J">Messerzustand</field> </block> </value> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="Y%Ee%u;C{{;$9^*yr[26"> <field name="NUM">0</field> </shadow> </value> </block> </next> </block> </statement> </block> </next> </block> </next> </block> <block type="comment" id="u$s16G@.y,hLabZ|VCX;" x="1287" y="237"> <field name="COMMENT">Messer tausch</field> <next> <block type="comment" id="3{)19mHvKzg]=NuJNj{."> <field name="COMMENT">Entsprechenden Datenpunkt als Trigger auswählen</field> <next> <block type="on_ext" id="]k~eRANI6rYk*x*Gphj."> <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="E/]JGLnm-WWdzGmz3|Ba"> <field name="oid">0_userdata.0.Energie.Rasenroboter.Reset_Messer</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="eK-[M[Hwu%0]M%!x8C4h"> <value name="IF0"> <block type="logic_compare" id="?jx/7f2:v1p^iBVV:L5)"> <field name="OP">EQ</field> <value name="A"> <block type="on_source" id="BiN}ZhttCm;n6EIyEPsq"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="logic_boolean" id="0h+I@VCF8WeZxRe}g~C2"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_clearinterval" id="/YVoSMqhD0_[oHWG0De0"> <field name="NAME">Intervall2</field> <next> <block type="variables_set" id="eT%vcw.QgFD@aPo{r,xd"> <field name="VAR" id="%7ZRF/p3a}h!c1c;Pkqj">Messerlaufzeit</field> <value name="VALUE"> <block type="math_number" id="#KJ+M9y-Mr#-^Nkr-bpZ"> <field name="NUM">0</field> </block> </value> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> <block type="comment" id="?j,llH1n1V^vdM{+I^vK" x="-488" y="362"> <field name="COMMENT">Abfrage Modus</field> <next> <block type="comment" id="*zr}E@(VWCq!.!yYMi1-"> <field name="COMMENT">Entsprechenden Datenpunkt (Shelly) als Trigger auswählen</field> <next> <block type="on_ext" id="h?)|(G{%eGUaa/e:b0$V"> <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=":d0,l#etWP|i7c2kq/,R"> <field name="oid">shelly.0.SHPLG-S#B52343#1.Relay0.Power</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="1^+HyBfR33sjxvCa#cX1"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="{m`ss4XqhH-QDbSP[9--" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="U.z.ASr#5}yv#0XaH2gG"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="aue1r66Go41N5=|Jx~E)"> <field name="OP">GTE</field> <value name="A"> <block type="on_source" id="w:7s][Di7G(7fBqW/~0l"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="9U][#^%z`3*S,B6o_3a9"> <field name="NUM">60</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="*gaKSEfRn,D`Jt|`d%hb"> <field name="OP">LTE</field> <value name="A"> <block type="on_source" id="@DWvN~n[)9nO:RLGq[C/"> <field name="ATTR">oldState.val</field> </block> </value> <value name="B"> <block type="math_number" id="%~7g!vUNnY|*([)R*[ES"> <field name="NUM">60</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="l/9O2e~h!6rgKr!|$y^D"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="[GzN;BHVBk;$z9R6FEI)"> <field name="VAR" id="n;D/|E/#Aj0-?q30K:{9">Trigger1</field> </block> </value> <value name="B"> <block type="math_number" id="GL:zvn|nFff!s2Z(Lqme"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_setinterval" id="U-25_Qfr6!}NmD7J0zmy"> <field name="NAME">Intervall</field> <field name="INTERVAL">1000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="math_change" id="{t1q#`8:R:DU?2*YsTr6"> <field name="VAR" id="6l.p]/@0t,Vq{iQzG+,m">Ladezeit</field> <value name="DELTA"> <shadow type="math_number" id="]x65+LeYD7FR;)mkS-zj"> <field name="NUM">1</field> </shadow> </value> <next> <block type="control_ex" id=",:Ca04}g??0Uu^)6jm.r"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="{zKUnc9p-@dQlyLSSfa*"> <field name="oid">0_userdata.0.Energie.Rasenroboter.Ladezeit</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean" id=".QGLqJ}2[#MKZu9knB-D"> <field name="BOOL">TRUE</field> </shadow> <block type="variables_get" id=".gc}cI4kI^ZSrej`zhn2"> <field name="VAR" id="6l.p]/@0t,Vq{iQzG+,m">Ladezeit</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="YkYlQ1{K0]%xFMlQGx0|"> <field name="NUM">0</field> </shadow> </value> </block> </next> </block> </statement> <next> <block type="math_change" id="1+X{396?QimZK:.iZ^#%"> <field name="VAR" id="UtOxnB/uF1~qX~mF4|B7">Ladezyklen</field> <value name="DELTA"> <shadow type="math_number" id="BBspAA40f2qI`g1)31W7"> <field name="NUM">1</field> </shadow> </value> <next> <block type="control_ex" id="q!M%|+UTP`y-o-bhx5@F"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="J5aYMOIOuH4i*Sf1`a6a"> <field name="oid">0_userdata.0.Energie.Rasenroboter.Ladezyklen</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean"> <field name="BOOL">TRUE</field> </shadow> <block type="variables_get" id="n==3@tt8?C*]V0=vGfe6"> <field name="VAR" id="UtOxnB/uF1~qX~mF4|B7">Ladezyklen</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="knMl7n1fMsBp]v3*,/1j"> <field name="NUM">0</field> </shadow> </value> <next> <block type="variables_set" id="k8yLj?m{8_eEI~u%VQ_Y"> <field name="VAR" id="n;D/|E/#Aj0-?q30K:{9">Trigger1</field> <value name="VALUE"> <block type="math_number" id="Hja.=~B6Xhs;nh~Ar{Z."> <field name="NUM">1</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="SU7*)Y!S5#c7!m0AJ/N$"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="M19V}b)j42I3$X21K;xe"> <field name="OP">LTE</field> <value name="A"> <block type="on_source" id="^tFYy;tYCZWNl]0g]Ho}"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="Ec+W6J8}N`9F$ghx$5F6"> <field name="NUM">60</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="hg88XtYeJ/ofqFS)/.vp"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="(HS0Ln)yXoBKx:f[,,29"> <field name="VAR" id="n;D/|E/#Aj0-?q30K:{9">Trigger1</field> </block> </value> <value name="B"> <block type="math_number" id="[0|MPXqnqWV=kxo0Q*ev"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="%Zj%4sP-)q}s8V{9b(P^"> <field name="VAR" id="n;D/|E/#Aj0-?q30K:{9">Trigger1</field> <value name="VALUE"> <block type="math_number" id="[c%6eHdEE]v%}`^%woy$"> <field name="NUM">0</field> </block> </value> <next> <block type="timeouts_clearinterval" id=")`.dTsJc0ep-ZBCi$D;r"> <field name="NAME">Intervall</field> </block> </next> </block> </statement> <next> <block type="controls_if" id="vx8wWEI4=CGYCS7,,_qb"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_operation" id="i1u|}/A73{|Gy1w-Mr,z" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="yCk{OK.Gk(CH.D+03q#X"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="SwSR2WfmA6{H8iX!bkx-"> <field name="OP">LTE</field> <value name="A"> <block type="on_source" id="vMpxdupbjJPHU?$58ojg"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="#L[)D!awH^[KFLJ`!8YI"> <field name="NUM">7.5</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="XL,:s$rxD00(!Y*w^DsN"> <field name="OP">GTE</field> <value name="A"> <block type="on_source" id="+eUe?v!7Udl^{$CNGY!0"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="-kDgaKpnDNts3;^kPH(,"> <field name="NUM">5</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="$qQFLCx;M.uI8::Ijp2H"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="wov15%|!dTQ(R`E(,KXN"> <field name="VAR" id="eegO]!DoTm*@-6LlTDgg">Trigger2</field> </block> </value> <value name="B"> <block type="math_number" id="5_?0;86`~a6a_VZ|QV`1"> <field name="NUM">0</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_setinterval" id="{IuHmv_+A9S`j/]IM9gz"> <field name="NAME">Intervall2</field> <field name="INTERVAL">1000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="math_change" id="y@(#tXSL`o0[wfIcuv27"> <field name="VAR" id="S%q^h*#XQb0x[vvt7K:}">Laufzeit</field> <value name="DELTA"> <shadow type="math_number" id="y|/Aqhi7DRz,+.$f~tLA"> <field name="NUM">1</field> </shadow> </value> <next> <block type="control_ex" id=")Mx)?%#dvAP$fc`x8QZT"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="H*6.|^AeXq2w#)89B9lr"> <field name="oid">0_userdata.0.Energie.Rasenroboter.Laufzeit</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean"> <field name="BOOL">TRUE</field> </shadow> <block type="variables_get" id="C*|p5u:qzSWx#A7WMezo"> <field name="VAR" id="S%q^h*#XQb0x[vvt7K:}">Laufzeit</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="-Kj2S`0ev6seWyf0Yi_1"> <field name="NUM">0</field> </shadow> </value> <next> <block type="math_change" id="mXKem[4~Md{:=(,3@T)M"> <field name="VAR" id="%7ZRF/p3a}h!c1c;Pkqj">Messerlaufzeit</field> <value name="DELTA"> <shadow type="math_number" id="V~Hrk},ap05ZxSJt(Zy*"> <field name="NUM">1</field> </shadow> </value> <next> <block type="control_ex" id="nTd/```;=6zsaNZe$7~V"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="dtDJU[%b5mCKAsazPBD."> <field name="oid">0_userdata.0.Energie.Rasenroboter.Messerlaufzeit</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean"> <field name="BOOL">TRUE</field> </shadow> <block type="variables_get" id="`5ddO7}],ce_AbVojkBq"> <field name="VAR" id="%7ZRF/p3a}h!c1c;Pkqj">Messerlaufzeit</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id=";[1Fa@*%K|7YpMDXBUip"> <field name="NUM">0</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="math_change" id="!^^F_k0HNHzxPhg@ckmC"> <field name="VAR" id="7HHU8I(Li4`B4yd.j9v}">Mähzyklen</field> <value name="DELTA"> <shadow type="math_number" id="GYD.N16;V^Y)p`C4/W:#"> <field name="NUM">1</field> </shadow> </value> <next> <block type="control_ex" id="#$WB08Z~XXKzHtrI]m]s"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="Y$udWg:E{.(u*=OA:gm]"> <field name="oid">0_userdata.0.Energie.Rasenroboter.Mähzyklen</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean"> <field name="BOOL">TRUE</field> </shadow> <block type="variables_get" id="91nYs/xOV[%kT5zQ1JFg"> <field name="VAR" id="7HHU8I(Li4`B4yd.j9v}">Mähzyklen</field> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="jXQJbE`y*Dxg$,}ldH!L"> <field name="NUM">0</field> </shadow> </value> <next> <block type="variables_set" id="Rw7kO2Y7r#%+Oko}iD-*"> <field name="VAR" id="eegO]!DoTm*@-6LlTDgg">Trigger2</field> <value name="VALUE"> <block type="math_number" id="VqoCgcgtJo_DC,u9[3gN"> <field name="NUM">1</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_operation" id="{1)yV,0vfCGWhy32dA)}"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="%tnZe5PNTByOlg)?#w.F"> <field name="OP">GT</field> <value name="A"> <block type="on_source" id=".[bn4ulC6gu,_1Alu*eI"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="*swzgWHJqNk#b$Q5J^RF"> <field name="NUM">7.5</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="t7w90/wD?j(jFBnL9T5/"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="_u!U|o~ux_bXbTFa*UTq"> <field name="VAR" id="eegO]!DoTm*@-6LlTDgg">Trigger2</field> </block> </value> <value name="B"> <block type="math_number" id="Xid+MZKBH.I_wOYCslwC"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="F9zNWo--Dprk,CaQi*r?"> <field name="VAR" id="eegO]!DoTm*@-6LlTDgg">Trigger2</field> <value name="VALUE"> <block type="math_number" id="c8,eaywWzBC0ZMF.wN*["> <field name="NUM">0</field> </block> </value> <next> <block type="timeouts_clearinterval" id="Ug2`c{uUl@XPc1hq7SGL"> <field name="NAME">Intervall2</field> </block> </next> </block> </statement> </block> </next> </block> </statement> </block> </next> </block> </next> </block> <block type="comment" id=")r-v1$OJ[t?r=+IZ[5vK" x="363" y="688"> <field name="COMMENT">Laufzeit</field> <next> <block type="comment" id="zV:RmFK`aEry/`*#V%1b"> <field name="COMMENT">Entsprechenden Datenpunkt als Trigger auswählen</field> <next> <block type="on_ext" id="V5AmN2Mb:.EqU*?EV:Vi"> <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="v2VB#;*$UTdB.g*O./-T"> <field name="oid">0_userdata.0.Energie.Rasenroboter.Laufzeit</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="UPTyfTg;8qM9gB+4_+d("> <field name="VAR" id="]{EMz8hSy!}OcdP`Mqzw">Dauer2</field> <value name="VALUE"> <block type="variables_get" id="~xXy@m7xTJDWe:^D~rW^"> <field name="VAR" id="S%q^h*#XQb0x[vvt7K:}">Laufzeit</field> </block> </value> <next> <block type="variables_set" id="MZm]GC8$n7!x_YhDA6NY"> <field name="VAR" id="+i1]:)A33z/[vSzaG;4v">Tage2</field> <value name="VALUE"> <block type="math_round" id="~Zg]ij|rhpaUW[+^A+CH"> <field name="OP">ROUNDDOWN</field> <value name="NUM"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">3.1</field> </shadow> <block type="math_arithmetic" id="#E#u~YuoH$7q%Doto$n5"> <field name="OP">DIVIDE</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="t.b+sl1#?J|76j8AKLjY"> <field name="VAR" id="]{EMz8hSy!}OcdP`Mqzw">Dauer2</field> </block> </value> <value name="B"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_number" id="/?C%r*Ts0vsL#2FSt0J`"> <field name="NUM">86400</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id=",jUHbrP:}^+@y3;7RH*M"> <field name="VAR" id="1QM:d*4Rif(@N(e.}J]_">Stunden2</field> <value name="VALUE"> <block type="math_round" id="D]6J+)U{M!j2sHyEkTD6"> <field name="OP">ROUNDDOWN</field> <value name="NUM"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">3.1</field> </shadow> <block type="math_modulo" id="6r2UKXe(xn69;+^%2U:x"> <value name="DIVIDEND"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">64</field> </shadow> <block type="math_arithmetic" id="`XRHtk](O7Ci|)FDN7.?"> <field name="OP">DIVIDE</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="S.rGr3Hx)AC|p5EQ#ier"> <field name="VAR" id="]{EMz8hSy!}OcdP`Mqzw">Dauer2</field> </block> </value> <value name="B"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_number" id="o,84x,8@4c=yxRshtw#h"> <field name="NUM">3600</field> </block> </value> </block> </value> <value name="DIVISOR"> <shadow type="math_number" id=".RC~h6pjNWb:NqeqvY]n"> <field name="NUM">24</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="MQEllR}Ix^e4XmWx%[_="> <field name="VAR" id="[+GiHx*PU+apd;m9?ooC">Minuten2</field> <value name="VALUE"> <block type="math_round" id="_^.[ZIeBiY7S-UJ}%8|]"> <field name="OP">ROUNDDOWN</field> <value name="NUM"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">3.1</field> </shadow> <block type="math_modulo" id="=:DsP2w]Ts3QyF;=d=Z^"> <value name="DIVIDEND"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">64</field> </shadow> <block type="math_arithmetic" id="T$cBSATAYHn#N+MkOiYQ"> <field name="OP">DIVIDE</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="0ZM`0XcQ=uy(A|@i~To%"> <field name="VAR" id="]{EMz8hSy!}OcdP`Mqzw">Dauer2</field> </block> </value> <value name="B"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">1</field> </shadow> <block type="math_number" id="H3kqN-8VF}y$Nu}SQW?e"> <field name="NUM">60</field> </block> </value> </block> </value> <value name="DIVISOR"> <shadow type="math_number" id="Gr$%1.lo`dvaf_CUk@oc"> <field name="NUM">60</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="|xc6xXH}m3^|}CSa2@v}"> <field name="VAR" id="TQAtt[O0LV+p8$:j(ip]">Sekunden2</field> <value name="VALUE"> <block type="math_modulo" id="U;(~a3OI~[m@iPC`OpGl"> <value name="DIVIDEND"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number"> <field name="NUM">64</field> </shadow> <block type="variables_get" id="uPXG9+Jg|J8{0NCW23_Z"> <field name="VAR" id="]{EMz8hSy!}OcdP`Mqzw">Dauer2</field> </block> </value> <value name="DIVISOR"> <shadow type="math_number" id="2zvwW}w.ER%O9a!I:`KQ"> <field name="NUM">60</field> </shadow> </value> </block> </value> <next> <block type="control_ex" id="*CMxK[80rZcw{#zyN8mi"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="KXppAcZJl?r,$[{fd{MT"> <field name="oid">0_userdata.0.Energie.Rasenroboter.Laufzeit_umgerechnet</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean"> <field name="BOOL">TRUE</field> </shadow> <block type="text_join" id="w*t#R3f.t+9J*Jm:BZ[r"> <mutation items="8"></mutation> <value name="ADD0"> <block type="variables_get" id=";_rcD9Fy)~;Q+;Rl[u5~"> <field name="VAR" id="+i1]:)A33z/[vSzaG;4v">Tage2</field> </block> </value> <value name="ADD1"> <block type="text" id="l49B`9b*6$2XcjaX!@j)"> <field name="TEXT">T </field> </block> </value> <value name="ADD2"> <block type="variables_get" id="97eIJ^S+%Fv.ZyNvsrln"> <field name="VAR" id="1QM:d*4Rif(@N(e.}J]_">Stunden2</field> </block> </value> <value name="ADD3"> <block type="text" id="Plnk[tjpzoUDvkE`()c2"> <field name="TEXT">S </field> </block> </value> <value name="ADD4"> <block type="variables_get" id="2(!F!*]L+rD_YCfRmHB`"> <field name="VAR" id="[+GiHx*PU+apd;m9?ooC">Minuten2</field> </block> </value> <value name="ADD5"> <block type="text" id="Zy4PH~Vu(esY?!F/?V1G"> <field name="TEXT">M </field> </block> </value> <value name="ADD6"> <block type="variables_get" id="TIDUNo_jB:@vrpGKibw,"> <field name="VAR" id="TQAtt[O0LV+p8$:j(ip]">Sekunden2</field> </block> </value> <value name="ADD7"> <block type="text" id=":26X^xXx3$t#U}(-dKS!"> <field name="TEXT">s</field> </block> </value> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="1xa_]wcYiD:%0~#C*%Y("> <field name="NUM">0</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> <block type="comment" id="su.@RdLP-NmHB9KxBq|m" x="1163" y="713"> <field name="COMMENT">Ladezeit</field> <next> <block type="comment" id="i]+NJtK[c$LAExmTdG;Q"> <field name="COMMENT">Entsprechenden Datenpunkt als Trigger auswählen</field> <next> <block type="on_ext" id="=#_*d}mvh9eO]ZO7jWfV"> <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=")*|d#^V}SWHMOB8|Vw)#"> <field name="oid">0_userdata.0.Energie.Rasenroboter.Ladezeit</field> </shadow> </value> <statement name="STATEMENT"> <block type="variables_set" id="NGhPKnI{-#S+~-F(/+4V"> <field name="VAR" id="#6btDDy?iZ!l,V3]+M[x">Dauer</field> <value name="VALUE"> <block type="variables_get" id="H*Z`MOzt/Fnhc~__/g;."> <field name="VAR" id="6l.p]/@0t,Vq{iQzG+,m">Ladezeit</field> </block> </value> <next> <block type="variables_set" id="Sm7w-b~@F1b=S==:S9+r"> <field name="VAR" id=")tGESEmT]pYF.v)Eih|^">Tage</field> <value name="VALUE"> <block type="math_round" id="xi=g@xHGER/T10.(r93|"> <field name="OP">ROUNDDOWN</field> <value name="NUM"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="~S?pQpLpEFpa}{mQW}9u"> <field name="NUM">3.1</field> </shadow> <block type="math_arithmetic" id="iumt6*=QPH?P=aQmK%(b"> <field name="OP">DIVIDE</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="ss`$pp4N5KKR^%MLk[D%"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="rgi-r`PN.ucKW~sdteP5"> <field name="VAR" id="#6btDDy?iZ!l,V3]+M[x">Dauer</field> </block> </value> <value name="B"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="sG@8|B`I9EJyZbW3Bw~?"> <field name="NUM">1</field> </shadow> <block type="math_number" id="~|C2.UnvXs:[5^6V:!GP"> <field name="NUM">86400</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="to`OEZ#;|PmOdO?,xF_U"> <field name="VAR" id="H68M?Flzm6{D=L;BBK%C">Stunden</field> <value name="VALUE"> <block type="math_round" id="4^C^0hI%D[PPGw|Q51gp"> <field name="OP">ROUNDDOWN</field> <value name="NUM"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="~S?pQpLpEFpa}{mQW}9u"> <field name="NUM">3.1</field> </shadow> <block type="math_modulo" id="Q+$cIIL:6y4drDlY_ECh"> <value name="DIVIDEND"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="iy$xPJVc:g=bcolI1bFD"> <field name="NUM">64</field> </shadow> <block type="math_arithmetic" id="}%sfc15Dcwyaj7Hq`|;V"> <field name="OP">DIVIDE</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="ss`$pp4N5KKR^%MLk[D%"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="si[BlX(p=RNnGJw3wXaW"> <field name="VAR" id="#6btDDy?iZ!l,V3]+M[x">Dauer</field> </block> </value> <value name="B"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="sG@8|B`I9EJyZbW3Bw~?"> <field name="NUM">1</field> </shadow> <block type="math_number" id="#U$78u5#qCOP:~(}+-+^"> <field name="NUM">3600</field> </block> </value> </block> </value> <value name="DIVISOR"> <shadow type="math_number" id="B/S$l*V/xyMAQJgIdrE4"> <field name="NUM">24</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="O-%R!_LPrg}X?k?Q[RSR"> <field name="VAR" id=";M]VNL_)$W;Cm)4apwb]">Minuten</field> <value name="VALUE"> <block type="math_round" id="~*hJK[4dJ*K}#VV%O,qV"> <field name="OP">ROUNDDOWN</field> <value name="NUM"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="~S?pQpLpEFpa}{mQW}9u"> <field name="NUM">3.1</field> </shadow> <block type="math_modulo" id="hN/x.G#X6Y9]yDgL}EH;"> <value name="DIVIDEND"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="iy$xPJVc:g=bcolI1bFD"> <field name="NUM">64</field> </shadow> <block type="math_arithmetic" id="?UI^*D?-Os8}ADtscPBk"> <field name="OP">DIVIDE</field> <value name="A"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="ss`$pp4N5KKR^%MLk[D%"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="+1`ruy!k=mJDZ9V.E%jh"> <field name="VAR" id="#6btDDy?iZ!l,V3]+M[x">Dauer</field> </block> </value> <value name="B"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="sG@8|B`I9EJyZbW3Bw~?"> <field name="NUM">1</field> </shadow> <block type="math_number" id="JW-Vm8M6qw.R$AE-Dp,h"> <field name="NUM">60</field> </block> </value> </block> </value> <value name="DIVISOR"> <shadow type="math_number" id="~%aHqA8i)W;b43`,6.(0"> <field name="NUM">60</field> </shadow> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="+lLLq,w7.p(XvQo:l~n{"> <field name="VAR" id="Jyr]SpQCUB)T*mci^oil">Sekunden</field> <value name="VALUE"> <block type="math_modulo" id="l%R%U7ScDU47,66yP*Ia"> <value name="DIVIDEND"> <shadow xmlns="http://www.w3.org/1999/xhtml" type="math_number" id="iy$xPJVc:g=bcolI1bFD"> <field name="NUM">64</field> </shadow> <block type="variables_get" id="iS^1Rsjx{XDVs0f5`uGK"> <field name="VAR" id="#6btDDy?iZ!l,V3]+M[x">Dauer</field> </block> </value> <value name="DIVISOR"> <shadow type="math_number" id="uu!+F}OJ.-0mNo;2N0v+"> <field name="NUM">60</field> </shadow> </value> </block> </value> <next> <block type="control_ex" id="=d}R=pFy,@M2%{AoGk;/"> <field name="TYPE">false</field> <field name="CLEAR_RUNNING">FALSE</field> <value name="OID"> <shadow type="field_oid" id="FG^*[ouAc])wf;8MjC-V"> <field name="oid">0_userdata.0.Energie.Rasenroboter.Ladezeit_umgerechnet</field> </shadow> </value> <value name="VALUE"> <shadow type="logic_boolean" id="H!A{QegciO8+KtAwGU1)"> <field name="BOOL">TRUE</field> </shadow> <block type="text_join" id="IMQM|rT6)3.U!t0gzDeE"> <mutation items="8"></mutation> <value name="ADD0"> <block type="variables_get" id="AEuZrhGcq`:b9D$1EUv2"> <field name="VAR" id=")tGESEmT]pYF.v)Eih|^">Tage</field> </block> </value> <value name="ADD1"> <block type="text" id="-PZE@i1lwivG:)mE1RBF"> <field name="TEXT">T </field> </block> </value> <value name="ADD2"> <block type="variables_get" id="ahR|//tRz@U^a(7*H#(e"> <field name="VAR" id="H68M?Flzm6{D=L;BBK%C">Stunden</field> </block> </value> <value name="ADD3"> <block type="text" id="U6Jsi4f^Pf5_3Rt?7YbK"> <field name="TEXT">S </field> </block> </value> <value name="ADD4"> <block type="variables_get" id="1o2w?6.gthlIa^+0_QaP"> <field name="VAR" id=";M]VNL_)$W;Cm)4apwb]">Minuten</field> </block> </value> <value name="ADD5"> <block type="text" id="r60i]S/ZsD@n(*_|C9$|"> <field name="TEXT">M </field> </block> </value> <value name="ADD6"> <block type="variables_get" id="JH;~zJ28k}}/dhdHzsmF"> <field name="VAR" id="Jyr]SpQCUB)T*mci^oil">Sekunden</field> </block> </value> <value name="ADD7"> <block type="text" id="r1vCJbBz?HBY0B$x4z_Z"> <field name="TEXT">s</field> </block> </value> </block> </value> <value name="DELAY_MS"> <shadow type="math_number" id="{W--^O#$9Ulp_Y^d|u=_"> <field name="NUM">0</field> </shadow> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> <block type="comment" id="(jOsq7CLsB^vWSF,n79y" x="362" y="1438"> <field name="COMMENT">Abfrage "Stecken geblieben"</field> <next> <block type="schedule_create" id="_skawqT=-MiyR;;{h:V4"> <field name="NAME">schedule1</field> <value name="SCHEDULE"> <shadow type="field_cron" id="sg]E[@]WL$1Qfx^)!F=l"> <field name="CRON">0 19 * * *</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="^[*JqDpxWWFXdLFev}AR"> <value name="IF0"> <block type="logic_compare" id="EJ*P{i;o7z?r~#s/mG29"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="ORjhY@X2T[8$ed7$stsW"> <field name="VAR" id="eegO]!DoTm*@-6LlTDgg">Trigger2</field> </block> </value> <value name="B"> <block type="math_number" id="q2BOluu`%rk`)ohMdG{X"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="pushover" id="grhp*r*7|(4OkSTo@,OV"> <field name="INSTANCE"></field> <field name="SOUND"></field> <field name="PRIORITY">0</field> <field name="LOG"></field> <value name="MESSAGE"> <shadow type="text" id=",34hQ8uIKUT:(iQuq)ii"> <field name="TEXT">text</field> </shadow> <block type="text" id="l54/M{Gtizcsk/!5Zg|+"> <field name="TEXT">Der Rasenroboter ist stecken geblieben</field> </block> </value> <value name="SOUND_CUSTOM"> <shadow type="text" id="uD*kdCB30r0syF.0nVz+"> <field name="TEXT"></field> </shadow> </value> <value name="TITLE"> <block type="text" id="+ws9f0=6pz!pl;]4`wO["> <field name="TEXT">Rasenroboter</field> </block> </value> </block> </statement> </block> </statement> <next> <block type="schedule_create" id="M%L@;z_a?aP,%Ax[6qhM"> <field name="NAME">schedule2</field> <value name="SCHEDULE"> <shadow type="field_cron" id="9M:6B}[V:[CP/C,j,PyB"> <field name="CRON">30 12 * * *</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="/GSyhz/hKj],v*7s_B8r"> <value name="IF0"> <block type="logic_compare" id="?0$P@!;R?lcH;g?W~dSj"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="hJwN]*/AN9grm-D!-q~~"> <field name="VAR" id="eegO]!DoTm*@-6LlTDgg">Trigger2</field> </block> </value> <value name="B"> <block type="math_number" id="$24Q-k40yVQzBX5tbEy}"> <field name="NUM">1</field> </block> </value> </block> </value> <statement name="DO0"> <block type="pushover" id="]uu=^(rm$:t6Iqgdz2ar"> <field name="INSTANCE"></field> <field name="SOUND"></field> <field name="PRIORITY">0</field> <field name="LOG"></field> <value name="MESSAGE"> <shadow type="text"> <field name="TEXT">text</field> </shadow> <block type="text" id="H9fzbu!:ldDo3D4d$Kop"> <field name="TEXT">Der Rasenroboter ist stecken geblieben</field> </block> </value> <value name="SOUND_CUSTOM"> <shadow type="text" id="fPdId1sz!j7G,q4~-Fi,"> <field name="TEXT"></field> </shadow> </value> <value name="TITLE"> <block type="text" id="GM7nBDv@aSE2-KtH8oG#"> <field name="TEXT">Rasenroboter</field> </block> </value> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </xml> ``
-
@bloop Bitte auch einen Screenshot vom Blockly einstellen
-
@djmarc75 Erledigt