Klar zum Testen oder zum Manuellen Einschalten bestimmt ein Vorteil ein zusätzlicher Script.
Beiträge von Downforce
-
-
Könnte es vielleicht sein da ich ja Sensoren nicht manipuliere (die zeigen halt den realen Wert an)
das ich hier einstellen kann was ich will da die Messwerte immer wärme Anzeigen und deswegen ich keine (EIN)Schaltung manuell auslösen kann ?
-
Ich denke ich weiß wie die Schaltung funktionieren soll.´
An den Einstellung kann das nicht liegen.
Ich bekomme keine Schaltung mehr ausgelöst.
Kann das sein das die Schaltung hängen bleibt und nicht weiter läuft weil was nicht stimmt ?
Gestern Mittag hat es noch funktioniert jetzt nicht mehr.
Hier nochmal der Code zum Programm.
Code- <xml xmlns="http://www.w3.org/1999/xhtml">
- <variables>
- <variable type="" id="zQMpJ}6u+6Of|Q*3mz#m">PlusSollwertGarageTag</variable>
- <variable type="" id="or:ifKnPqurmq_WKC[iR">MaximalTempGarageTag</variable>
- <variable type="" id="6((KRKmh^9m%2i=6QElI">PlusSollwertGarageNacht</variable>
- <variable type="" id="zp6{9M.qHEhs8}O}08M-">MaximalTempGarageNacht</variable>
- <variable type="" id="sB1uhpjB[jivksR}}*9I">EinSollwertGarage</variable>
- <variable type="undefined" id="timeout">timeout</variable>
- <variable type="" id="9|PvNql`W.:@`bT~#BWP">AusSollwertGarage</variable>
- <variable type="" id="b2Wux9SOxGIiW0!n^tp$">MaxEinGarage</variable>
- <variable type="" id="@+:}N=T5Oi3lu]]];mSf">MaxAusGarage</variable>
- <variable type="undefined" id="Intervall">Intervall</variable>
- </variables>
- <block type="on_ext" id="Vqz)!X-8}*C#OdmFc@Yl" x="-687" y="-162">
- <mutation items="2"></mutation>
- <field name="CONDITION">ne</field>
- <field name="ACK_CONDITION"></field>
- <value name="OID0">
- <shadow type="field_oid" id=":.,zmZCyQ3Ri8^i+nI.[">
- <field name="oid">sonoff.0.Schildkroetenhaus.SI7021_Temperature</field>
- </shadow>
- </value>
- <value name="OID1">
- <shadow type="field_oid" id="Hh_m+Uf8n0{6[xx=P}h^">
- <field name="oid">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </shadow>
- </value>
- <statement name="STATEMENT">
- <block type="comment" id="cHcrQZp]AAcR]yqkQ`nc">
- <field name="COMMENT">Werte für den Tag ab 9:00 Uhr</field>
- <next>
- <block type="variables_set" id="+$d_WV/ROdNq+q_WPG%M">
- <field name="VAR" id="zQMpJ}6u+6Of|Q*3mz#m" variabletype="">PlusSollwertGarageTag</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="Ms87|+,jq2yK|$=C?mci">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="jsiLnzy|2_Y$ZgECKw$q">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Schildkroetenhaus.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="eFUJ*7:kQ1Zgl2rJv#[q">
- <field name="NUM">3</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="]n3p5m=C/qU$Xo,EYGTv">
- <field name="VAR" id="or:ifKnPqurmq_WKC[iR" variabletype="">MaximalTempGarageTag</field>
- <value name="VALUE">
- <block type="math_number" id="iS$HF[{YD4DV@abA#MR]">
- <field name="NUM">11</field>
- </block>
- </value>
- <next>
- <block type="comment" id="0g;Be$lb?W{@5DuLWv{?">
- <field name="COMMENT">Werte für die Nacht ab 18:00 Uhr</field>
- <next>
- <block type="variables_set" id="vGq3ATAcbB.bKjPO_|kz">
- <field name="VAR" id="6((KRKmh^9m%2i=6QElI" variabletype="">PlusSollwertGarageNacht</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="X(jo!+}bC5joL{0LtIRf">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="KN?F[%HK+unsAR,nE/v~">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Schildkroetenhaus.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="LmWAO|LGWQpubfwf*Lm;">
- <field name="NUM">2</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="LEnS5B58+E-~k9U[Soq%">
- <field name="VAR" id="zp6{9M.qHEhs8}O}08M-" variabletype="">MaximalTempGarageNacht</field>
- <value name="VALUE">
- <block type="math_number" id=",!k,++q7dztLX[5EQEhk">
- <field name="NUM">6</field>
- </block>
- </value>
- <next>
- <block type="controls_if" id="FXX}1^Re%4c~e?%#m]A5">
- <mutation else="1"></mutation>
- <value name="IF0">
- <block type="time_compare_ex" id="Ws}_u]FuEY(ZOfj[Xcn:">
- <mutation 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="~Klmpzz$y,Ond.^EVh.C">
- <field name="TEXT">9:00</field>
- </shadow>
- </value>
- <value name="END_TIME">
- <shadow type="text" id="]QK*J$|CKKZw=Rb*`Wlm">
- <field name="TEXT">18:00</field>
- </shadow>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="variables_set" id="!JgGJlqoQFBx6xKeuI[r">
- <field name="VAR" id="sB1uhpjB[jivksR}}*9I" variabletype="">EinSollwertGarage</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="C[$+(S8XQ(t:AWcM_O7?">
- <field name="OP">MINUS</field>
- <value name="A">
- <shadow type="math_number" id="}cK!J5U!%5QG)K-FCezD">
- <field name="NUM">1</field>
- </shadow>
- <block type="variables_get" id="1NLi.z#*nuBPSF2p@i,h">
- <field name="VAR" id="zQMpJ}6u+6Of|Q*3mz#m" variabletype="">PlusSollwertGarageTag</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="G0-cAPMv(ay2NKOW1C%5">
- <field name="NUM">0.5</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="YD/r[w;sUpd!5c_-5Y/U">
- <field name="VAR" id="9|PvNql`W.:@`bT~#BWP" variabletype="">AusSollwertGarage</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="CYf|G~[;Sz1$B8msr`Ur">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="variables_get" id="}2vFbaXpl[pIhCgp0vc4">
- <field name="VAR" id="zQMpJ}6u+6Of|Q*3mz#m" variabletype="">PlusSollwertGarageTag</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="t(V?=uUaDVKqVrXuE/$v">
- <field name="NUM">0.5</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="/oU7iia!5$YN3WuG!:IU">
- <field name="VAR" id="b2Wux9SOxGIiW0!n^tp$" variabletype="">MaxEinGarage</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="VnXXr|XeLDiw5Bb`O_M#">
- <field name="OP">MINUS</field>
- <value name="A">
- <shadow type="math_number" id="Uv8m#:4gxnnYhP8{%Tds">
- <field name="NUM">1</field>
- </shadow>
- <block type="variables_get" id="HB(O$q[w||Ck?PM|F7*N">
- <field name="VAR" id="or:ifKnPqurmq_WKC[iR" variabletype="">MaximalTempGarageTag</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id=",FYiHA5%]^-%/8gNO8r^">
- <field name="NUM">0.5</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="mt/7s-^LKLo]GPWn9L5E">
- <field name="VAR" id="@+:}N=T5Oi3lu]]];mSf" variabletype="">MaxAusGarage</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="F2^^A?:iN5dI9O~cxum}">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="variables_get" id="1i21gtPwCy~IMEbZE7xw">
- <field name="VAR" id="or:ifKnPqurmq_WKC[iR" variabletype="">MaximalTempGarageTag</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="83?u$!{,jjj=WD0nK``{">
- <field name="NUM">0.5</field>
- </shadow>
- </value>
- </block>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <statement name="ELSE">
- <block type="variables_set" id="$3b*Op*+G$2zy52s+]u9">
- <field name="VAR" id="sB1uhpjB[jivksR}}*9I" variabletype="">EinSollwertGarage</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="_;%m9zs,UTTgo(Vgb/2%">
- <field name="OP">MINUS</field>
- <value name="A">
- <shadow type="math_number" id="k:ouy6[mg#~^I||qsl7=">
- <field name="NUM">1</field>
- </shadow>
- <block type="variables_get" id="8irhY^2`5NBd^jrg0k-R">
- <field name="VAR" id="6((KRKmh^9m%2i=6QElI" variabletype="">PlusSollwertGarageNacht</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="rKQH{KTnbeCYQ:*.v#a]">
- <field name="NUM">0.5</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="hgeThmz}fAfPY*:`9UAp">
- <field name="VAR" id="9|PvNql`W.:@`bT~#BWP" variabletype="">AusSollwertGarage</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="KGDZy}?A[Tr|j8Q+W/mo">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="variables_get" id="qZRG4CkSMO*qh~R*W`$l">
- <field name="VAR" id="6((KRKmh^9m%2i=6QElI" variabletype="">PlusSollwertGarageNacht</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="Em;La2UGI9|_p^vjPwk@">
- <field name="NUM">0.5</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="{NUx#%p_0o{#-CE?0!3_">
- <field name="VAR" id="b2Wux9SOxGIiW0!n^tp$" variabletype="">MaxEinGarage</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="KfEZK2YWF*%S,O3GB-XS">
- <field name="OP">MINUS</field>
- <value name="A">
- <shadow type="math_number" id="g#KjM+bhl,Gt,VZhjPWh">
- <field name="NUM">1</field>
- </shadow>
- <block type="variables_get" id="#v%p`IYH`FRyRs#Im(of">
- <field name="VAR" id="zp6{9M.qHEhs8}O}08M-" variabletype="">MaximalTempGarageNacht</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="cX$Z`aA7z[ou~n{@sdNw">
- <field name="NUM">0.5</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="qk!s,~qa{H==4cyrUq=a">
- <field name="VAR" id="@+:}N=T5Oi3lu]]];mSf" variabletype="">MaxAusGarage</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="2|`$!w+CV+VcVJC2%1)@">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="variables_get" id="8hF4#Y`va$AsGu7Awwp.">
- <field name="VAR" id="zp6{9M.qHEhs8}O}08M-" variabletype="">MaximalTempGarageNacht</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="|WZ3.x6E^#+F85sVPZBR">
- <field name="NUM">0.5</field>
- </shadow>
- </value>
- </block>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="timeouts_settimeout" id="-TI2jiY|Gu#);#!/I6`#">
- <field name="NAME">timeout</field>
- <field name="DELAY">1000</field>
- <field name="UNIT">ms</field>
- <statement name="STATEMENT">
- <block type="controls_if" id="~1=5?CT4)lxxREA4ScxZ">
- <mutation elseif="1"></mutation>
- <value name="IF0">
- <block type="logic_operation" id="Uxyt7qup0qyFjSgUUF]P" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_operation" id="Bj@tOPu5^hT2T{EPRREt" inline="false">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_compare" id="cyVq4Mx`:/_:_GW0Z1_5">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id="~gbIyg#F9]~+p{$0)(r=">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="variables_get" id=":@Vq?jikpBVP|FaL8tbv">
- <field name="VAR" id="9|PvNql`W.:@`bT~#BWP" variabletype="">AusSollwertGarage</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="yFz*Z0%NK)B]R0-]O7/q">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id="ejX1{5$g*jj:G78XFf2.">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="variables_get" id="jrH.mM7i9s*2+qcC)Q]c">
- <field name="VAR" id="@+:}N=T5Oi3lu]]];mSf" variabletype="">MaxAusGarage</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="XEZ$br;*n~Mic9h3ETI#">
- <field name="OP">NEQ</field>
- <value name="A">
- <block type="get_value" id="TbbGiVGnoQ{cuv*Phe^~">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.POWER</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="z;Fq-K,4bESG^@kbi:7*">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="control" id="]@7v^12xKr^dw;JxU-U=">
- <mutation delay_input="false"></mutation>
- <field name="OID">sonoff.0.Garage-Temperatur.POWER</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="lZfDkBsZfW(aFYL8s#0r">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="timeouts_clearinterval" id="Oy/?T[cN^B8q6;^!mLLu">
- <field name="NAME">Intervall</field>
- <next>
- <block type="email" id="Wo1$:r1KpLp~UGw[1)w/">
- <field name="INSTANCE"></field>
- <field name="IS_HTML">FALSE</field>
- <field name="LOG"></field>
- <value name="TO">
- <shadow type="text" id="vtgjLkJpEMGICL_:*#mg">
- <field name="TEXT">Test@gmail.com </field>
- </shadow>
- </value>
- <value name="TEXT">
- <shadow type="text" id="JTutrMb:XSQ3}C%RADWR">
- <field name="TEXT"></field>
- </shadow>
- <block type="text_join" id="`.TUk~rPfm}lvSs9T6nP">
- <mutation items="6"></mutation>
- <value name="ADD0">
- <block type="text" id="~^EwnVGx+GHg|JvJg`:%">
- <field name="TEXT">Luftheizung Aus -</field>
- </block>
- </value>
- <value name="ADD1">
- <block type="text" id="XHPYJHvmvPyc_$IGuv0=">
- <field name="TEXT">Betriebszeit : </field>
- </block>
- </value>
- <value name="ADD2">
- <block type="math_rndfixed" id="1PL8)!AvJqEXv8AI,r2L">
- <field name="n">2</field>
- <value name="x">
- <shadow type="math_number" id="~:PlXX4*+khQr#W)c;R0">
- <field name="NUM">3.1234</field>
- </shadow>
- <block type="get_value" id="F[y:`J1~u%0L?`AC|#}#">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungBetriebszeith</field>
- </block>
- </value>
- </block>
- </value>
- <value name="ADD3">
- <block type="text" id="C.K2}kVlc_W6|V#%5o`r">
- <field name="TEXT"> Stunden oder </field>
- </block>
- </value>
- <value name="ADD4">
- <block type="get_value" id="XT(N1gzi:UGk{oqATNbX">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungGarageBetriebszeitm</field>
- </block>
- </value>
- <value name="ADD5">
- <block type="text" id="EeLbI|NTKn.UdW@jxWzW">
- <field name="TEXT"> - Minuten</field>
- </block>
- </value>
- </block>
- </value>
- <value name="SUBJECT">
- <shadow type="text" id="{H6Z)W^Na]#/.q8Yf1cg">
- <field name="TEXT">Garage</field>
- </shadow>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <value name="IF1">
- <block type="logic_operation" id="P7`jwr9J,[J}_a5LVK4Y" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="PR7apOB|J4hZU5m+S7f(">
- <field name="OP">LT</field>
- <value name="A">
- <block type="get_value" id="#@TEDN9eRnnWjZ!:kZQ0">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="variables_get" id="SSx`Si8EAw^nNv-!dGtl">
- <field name="VAR" id="sB1uhpjB[jivksR}}*9I" variabletype="">EinSollwertGarage</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="#{EBl?Z7_fQe!-+EoTh`" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="uWB:sJaDI62~p8_~8{GZ">
- <field name="OP">LT</field>
- <value name="A">
- <block type="get_value" id="?sW07ajC;YKS~O|)JpD%">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="variables_get" id="fRu!ZQ#F0Oy`@7dn0lY0">
- <field name="VAR" id="b2Wux9SOxGIiW0!n^tp$" variabletype="">MaxEinGarage</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="QYmnp{R/AM(JTkFo)i0j">
- <field name="OP">NEQ</field>
- <value name="A">
- <block type="get_value" id="D^cBhp^3IGt#d~v9=:h8">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.POWER</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="L(R2[867e9uiQ32CuqQV">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO1">
- <block type="control" id="@l=9PP#@uptYzX8}Q@-/">
- <mutation delay_input="false"></mutation>
- <field name="OID">sonoff.0.Garage-Temperatur.POWER</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="uz1R(kPx8|U8XCJ#=.G/">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="timeouts_setinterval" id="e|FY9h;~]/YRE?cl_y]+">
- <field name="NAME">Intervall</field>
- <field name="INTERVAL">1</field>
- <field name="UNIT">min</field>
- <statement name="STATEMENT">
- <block type="control" id="UafBp45cf%cE;0],HHDW">
- <mutation delay_input="false"></mutation>
- <field name="OID">0_userdata.0.HeizungGarageBetriebszeitm</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="$dxwY5@.$T7|z])#V$+@">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="GjS|zaX$*`*PQHa}ZCqx">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="bqgC66@Cmwf}*P.sYG5q">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungGarageBetriebszeitm</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="(u8^oD*(8Og17l6{fnSo">
- <field name="NUM">1</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="control" id="Ll7l~](VgHOggaEO@R{L">
- <mutation delay_input="false"></mutation>
- <field name="OID">0_userdata.0.HeizungBetriebszeith</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="18k(EuTp9#9NBs={DKXA">
- <field name="OP">DIVIDE</field>
- <value name="A">
- <shadow type="math_number" id="GjS|zaX$*`*PQHa}ZCqx">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="Sm}]cae6wmPM4FUU(gd8">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungGarageBetriebszeitm</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="m1TD)qx7)Oa-n8F*V8|h">
- <field name="NUM">60</field>
- </shadow>
- </value>
- </block>
- </value>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="email" id="=TB1r?QLtgz-=FF^jGSx">
- <field name="INSTANCE"></field>
- <field name="IS_HTML">FALSE</field>
- <field name="LOG"></field>
- <value name="TO">
- <shadow type="text" id="jiCYzqw9^6J1]D$;:Aj|">
- <field name="TEXT">Test@gmail.com </field>
- </shadow>
- </value>
- <value name="TEXT">
- <shadow type="text" id="H7-r|uQUIE7V1H7_(D.O">
- <field name="TEXT"></field>
- </shadow>
- <block type="text_join" id="l2ol:LZJW@2[4W~4wSqg">
- <mutation items="6"></mutation>
- <value name="ADD0">
- <block type="text" id="*$9h^aaFksAQ(vb^D-0P">
- <field name="TEXT">Luftheizung Ein -</field>
- </block>
- </value>
- <value name="ADD1">
- <block type="text" id="={N$K|cGdO|2dvHH1@AZ">
- <field name="TEXT">Betriebszeit : </field>
- </block>
- </value>
- <value name="ADD2">
- <block type="math_rndfixed" id="Qt$l@e}d8CWq~)V+RW;Q">
- <field name="n">2</field>
- <value name="x">
- <shadow type="math_number" id="~:PlXX4*+khQr#W)c;R0">
- <field name="NUM">3.1234</field>
- </shadow>
- <block type="get_value" id="B@b^8~?Lrkk?o74|IJkW">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungBetriebszeith</field>
- </block>
- </value>
- </block>
- </value>
- <value name="ADD3">
- <block type="text" id="@7)=JuL5l!E@QdhiFML^">
- <field name="TEXT"> Stunden oder </field>
- </block>
- </value>
- <value name="ADD4">
- <block type="get_value" id="fAxjx]eN,fAqso)rHLwF">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungGarageBetriebszeitm</field>
- </block>
- </value>
- <value name="ADD5">
- <block type="text" id="M@?*YM+2,2![f03yfpnw">
- <field name="TEXT"> - Minuten</field>
- </block>
- </value>
- </block>
- </value>
- <value name="SUBJECT">
- <shadow type="text" id="-9sTJ*Y_)GuKpkr.{^=b">
- <field name="TEXT">Garage</field>
- </shadow>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </xml>
-
Hallo
Bin gerade beim austesten in Blockly und dem IObroker.
Wollte mir eine Email senden lassen wenn die CPU Temperatur zu hoch wird und eine wenn sie zu tief ist.
1. scheitere ich an der Zeiteinstellung wie oft das Mail gesendet wird möchte nur 1 Mail haben nicht immer wieder eine neue.
2.wie ich die andere Temperatur noch einfüge sonst müsste ich noch einen weiteren Skript laufen lassen nur für den zu tief Email.
Code- <xml xmlns="http://www.w3.org/1999/xhtml">
- <block type="on" id="JRz%0U-kcuTWVL/WS{Lh" x="-262" y="-561">
- <field name="OID">rpi2.0.temperature.soc_temp</field>
- <field name="CONDITION">any</field>
- <field name="ACK_CONDITION"></field>
- <next>
- <block type="controls_if" id="D~]{+%VMHL_W7tAHUrI%">
- <mutation elseif="1"></mutation>
- <value name="IF0">
- <block type="logic_compare" id="pjDwqxR38`[b}AjF.`s;">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id="QEiJ3S7?;wTA!O0JV-x}">
- <field name="ATTR">val</field>
- <field name="OID">rpi2.0.temperature.soc_temp</field>
- </block>
- </value>
- <value name="B">
- <block type="text" id="N_70qV[+1!m0r#6+#f07">
- <field name="TEXT">50</field>
- </block>
- </value>
- </block>
- </value>
- <value name="IF1">
- <block type="logic_compare" id="#~.5u5RWhvf41G0|E*=s">
- <field name="OP">LT</field>
- <value name="A">
- <block type="get_value" id="2EKH?i6!3Y(}4m8H][Z8">
- <field name="ATTR">val</field>
- <field name="OID">rpi2.0.temperature.soc_temp</field>
- </block>
- </value>
- <value name="B">
- <block type="text" id="ZA^3GOU{Zx}W!IMmA/M#">
- <field name="TEXT">40</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO1">
- <block type="schedule" id=".o`-J~_Nz!d2J,7?`T-a">
- <field name="SCHEDULE">*/30 * * * *</field>
- <statement name="STATEMENT">
- <block type="email" id="cOGuZIQ59%W)d_X3L+{=">
- <field name="INSTANCE"></field>
- <field name="IS_HTML">FALSE</field>
- <field name="LOG"></field>
- <value name="TO">
- <shadow type="text" id="}0`!.ZmCC,ek;rypJ-6*">
- <field name="TEXT">Test@gmail.com </field>
- </shadow>
- </value>
- <value name="TEXT">
- <shadow type="text" id="Z8D;W?Tp;nDw.yS,|s(-">
- <field name="TEXT"></field>
- </shadow>
- </value>
- <value name="SUBJECT">
- <shadow type="text" id="~^*JPOW4A*=oT(?Bk1f)">
- <field name="TEXT">Temperatur zu hoch !</field>
- </shadow>
- </value>
- </block>
- </statement>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </xml>
-
Guter Hinweis und Ergänzung von Dir.
Überhaupt tolle Hilfe hier !
Das hätte ich als Anfänger nicht hinbekommen.
-
Wir haben 9:15 und die Temperatur im Außenbereich sind 7,3°C und die Garage hat 8,7°C
Meine Rechnung dazu sieht so aus:
7,3°C vom Außenbereich +3 = 10,3°C
mit dem Schaltbereich mit den 0,5 müsste das doch bei 9,8°C Einschalten und bei 10,8°C Ausschalten.
Aber es greift hier die maximalTempGarageTag der ist ja auf 8,0°C Eingestellt ist.
Da wir schon 8,7°C haben im Außenbereich erfolgt keine Schaltung bis wir unterhalb der 8,0°C fallen würden.
Ich hoffe meine Rechnung stimmt so.
-
Das habe ich verstanden Danke für die erneute Änderung.
Muss nur noch Testen ob alles auch geht.
Gebe morgen nochmal Rückmeldung dazu.
-
Hat jetzt nach einmal Ein und Aus Schalten den Wert gerundet.
Das sieht jetzt alles sehr gut aus.
Von meiner Seite ist das einstellen der Temperatur noch gewöhnungsbedürftig,da man die reale Temperaturen nicht direkt sieht
vom Außenbereich und Garage.
Jetzt habe ich es wieder nicht hinbekommen zu schalten.
kannst du mir mal ein Beispiel aufschreiben zum Ausschalten?
Habe es wie es aussieht immer noch nicht verstanden
Hier das letzte Beispiel von dir zum Einschalten was ich gemacht habe.
Rahmenbedingungen:
Außentemperatur 7,3°C
Garage 10,0°C
Zeit meine ich war 19:00
Einschalttemp +4
Ausschalttemp +5
Max.Einschaltemp 11°C
Max.Ausschaltemp 13°C
-
-
Frank wenn ich dich nicht hätte
Habe es mal so gemacht,jetzt warte ich mal ab bis die nächste Email kommt.
Leider hat das nicht funktioniert konnte auch auf den Bilder kein Fehler finden zu meiner Version.
Email Text sieht so aus : Luftheizung Aus -Betriebszeit : 18.933333333333334 Stunden oder 1137 - Minuten
Die 18,93 Stunden gibt es ja so nicht und Kommastellen hat sich auch nicht reduziert.
Code- <xml xmlns="http://www.w3.org/1999/xhtml">
- <variables>
- <variable type="" id="sB1uhpjB[jivksR}}*9I">Einschalttemp</variable>
- <variable type="undefined" id="timeout">timeout</variable>
- <variable type="" id="9|PvNql`W.:@`bT~#BWP">Ausschalttemp</variable>
- <variable type="" id="b2Wux9SOxGIiW0!n^tp$">MaxEinschalttemp</variable>
- <variable type="" id="@+:}N=T5Oi3lu]]];mSf">MaxAuschalttemp</variable>
- <variable type="undefined" id="Intervall">Intervall</variable>
- </variables>
- <block type="on_ext" id="Vqz)!X-8}*C#OdmFc@Yl" x="-413" y="-111">
- <mutation items="2"></mutation>
- <field name="CONDITION">ne</field>
- <field name="ACK_CONDITION"></field>
- <value name="OID0">
- <shadow type="field_oid" id=":.,zmZCyQ3Ri8^i+nI.[">
- <field name="oid">sonoff.0.Schildkroetenhaus.SI7021_Temperature</field>
- </shadow>
- </value>
- <value name="OID1">
- <shadow type="field_oid" id="Hh_m+Uf8n0{6[xx=P}h^">
- <field name="oid">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </shadow>
- </value>
- <statement name="STATEMENT">
- <block type="controls_if" id="FXX}1^Re%4c~e?%#m]A5">
- <mutation else="1"></mutation>
- <value name="IF0">
- <block type="time_compare_ex" id="Ws}_u]FuEY(ZOfj[Xcn:">
- <mutation 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="~Klmpzz$y,Ond.^EVh.C">
- <field name="TEXT">9:00</field>
- </shadow>
- </value>
- <value name="END_TIME">
- <shadow type="text" id="]QK*J$|CKKZw=Rb*`Wlm">
- <field name="TEXT">18:00</field>
- </shadow>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="variables_set" id="+$d_WV/ROdNq+q_WPG%M">
- <field name="VAR" id="sB1uhpjB[jivksR}}*9I" variabletype="">Einschalttemp</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="Ms87|+,jq2yK|$=C?mci">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="jsiLnzy|2_Y$ZgECKw$q">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Schildkroetenhaus.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="eFUJ*7:kQ1Zgl2rJv#[q">
- <field name="NUM">5</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="!JgGJlqoQFBx6xKeuI[r">
- <field name="VAR" id="9|PvNql`W.:@`bT~#BWP" variabletype="">Ausschalttemp</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="2PNUg}*[LEw+FZLv?!yH">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="myOB,o29lStV:!7/{yL)">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Schildkroetenhaus.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="zkXYY0WHt8jW}|z|u?Xu">
- <field name="NUM">6</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="]n3p5m=C/qU$Xo,EYGTv">
- <field name="VAR" id="b2Wux9SOxGIiW0!n^tp$" variabletype="">MaxEinschalttemp</field>
- <value name="VALUE">
- <block type="math_number" id="iS$HF[{YD4DV@abA#MR]">
- <field name="NUM">10</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="mt/7s-^LKLo]GPWn9L5E">
- <field name="VAR" id="@+:}N=T5Oi3lu]]];mSf" variabletype="">MaxAuschalttemp</field>
- <value name="VALUE">
- <block type="math_number" id="cVyqzFiUB4Bh!:.DA}a-">
- <field name="NUM">12</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <statement name="ELSE">
- <block type="variables_set" id="vGq3ATAcbB.bKjPO_|kz">
- <field name="VAR" id="sB1uhpjB[jivksR}}*9I" variabletype="">Einschalttemp</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="X(jo!+}bC5joL{0LtIRf">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="KN?F[%HK+unsAR,nE/v~">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Schildkroetenhaus.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="LmWAO|LGWQpubfwf*Lm;">
- <field name="NUM">1</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="LPU/?Ef][;NUeBUu?N9H">
- <field name="VAR" id="9|PvNql`W.:@`bT~#BWP" variabletype="">Ausschalttemp</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="~8VBJNVxc3YARJ[aH6YS">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="I%YPi%/vS`R+%l4eXx#G">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Schildkroetenhaus.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="`*GaUQn0-(jP4?d9r8vP">
- <field name="NUM">2</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="A2K8_qcc/!3vcBe4)$Sk">
- <field name="VAR" id="b2Wux9SOxGIiW0!n^tp$" variabletype="">MaxEinschalttemp</field>
- <value name="VALUE">
- <block type="math_number" id="~$v5Vi!^O9@sqlsh1Qs8">
- <field name="NUM">6</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="/oU7iia!5$YN3WuG!:IU">
- <field name="VAR" id="@+:}N=T5Oi3lu]]];mSf" variabletype="">MaxAuschalttemp</field>
- <value name="VALUE">
- <block type="math_number" id="W+|O`}T2-ZfZ2!;C:`$}">
- <field name="NUM">8</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="timeouts_settimeout" id="-TI2jiY|Gu#);#!/I6`#">
- <field name="NAME">timeout</field>
- <field name="DELAY">1000</field>
- <field name="UNIT">ms</field>
- <statement name="STATEMENT">
- <block type="controls_if" id="~1=5?CT4)lxxREA4ScxZ">
- <mutation elseif="1"></mutation>
- <value name="IF0">
- <block type="logic_operation" id="Uxyt7qup0qyFjSgUUF]P" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_operation" id="Bj@tOPu5^hT2T{EPRREt" inline="false">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_compare" id="cyVq4Mx`:/_:_GW0Z1_5">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id="~gbIyg#F9]~+p{$0)(r=">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="variables_get" id=":@Vq?jikpBVP|FaL8tbv">
- <field name="VAR" id="9|PvNql`W.:@`bT~#BWP" variabletype="">Ausschalttemp</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="yFz*Z0%NK)B]R0-]O7/q">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id="ejX1{5$g*jj:G78XFf2.">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="variables_get" id="jrH.mM7i9s*2+qcC)Q]c">
- <field name="VAR" id="@+:}N=T5Oi3lu]]];mSf" variabletype="">MaxAuschalttemp</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="XEZ$br;*n~Mic9h3ETI#">
- <field name="OP">NEQ</field>
- <value name="A">
- <block type="get_value" id="TbbGiVGnoQ{cuv*Phe^~">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.POWER</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="z;Fq-K,4bESG^@kbi:7*">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="control" id="]@7v^12xKr^dw;JxU-U=">
- <mutation delay_input="false"></mutation>
- <field name="OID">sonoff.0.Garage-Temperatur.POWER</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="lZfDkBsZfW(aFYL8s#0r">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="timeouts_clearinterval" id="Oy/?T[cN^B8q6;^!mLLu">
- <field name="NAME">Intervall</field>
- <next>
- <block type="email" id="Wo1$:r1KpLp~UGw[1)w/">
- <field name="INSTANCE"></field>
- <field name="IS_HTML">FALSE</field>
- <field name="LOG"></field>
- <value name="TO">
- <shadow type="text" id="vtgjLkJpEMGICL_:*#mg">
- <field name="TEXT">Test@gmail.com </field>
- </shadow>
- </value>
- <value name="TEXT">
- <shadow type="text" id="JTutrMb:XSQ3}C%RADWR">
- <field name="TEXT"></field>
- </shadow>
- <block type="text_join" id="`.TUk~rPfm}lvSs9T6nP">
- <mutation items="6"></mutation>
- <value name="ADD0">
- <block type="text" id="~^EwnVGx+GHg|JvJg`:%">
- <field name="TEXT">Luftheizung Aus -</field>
- </block>
- </value>
- <value name="ADD1">
- <block type="text" id="XHPYJHvmvPyc_$IGuv0=">
- <field name="TEXT">Betriebszeit : </field>
- </block>
- </value>
- <value name="ADD2">
- <block type="get_value" id="HFIuBH9m.!w^igG(/,zV">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungBetriebszeith</field>
- </block>
- </value>
- <value name="ADD3">
- <block type="text" id="C.K2}kVlc_W6|V#%5o`r">
- <field name="TEXT"> Stunden oder </field>
- </block>
- </value>
- <value name="ADD4">
- <block type="get_value" id="XT(N1gzi:UGk{oqATNbX">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungGarageBetriebszeitm</field>
- </block>
- </value>
- <value name="ADD5">
- <block type="text" id="EeLbI|NTKn.UdW@jxWzW">
- <field name="TEXT"> - Minuten</field>
- </block>
- </value>
- </block>
- </value>
- <value name="SUBJECT">
- <shadow type="text" id="{H6Z)W^Na]#/.q8Yf1cg">
- <field name="TEXT">Garage</field>
- </shadow>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <value name="IF1">
- <block type="logic_operation" id="P7`jwr9J,[J}_a5LVK4Y" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="PR7apOB|J4hZU5m+S7f(">
- <field name="OP">LT</field>
- <value name="A">
- <block type="get_value" id="#@TEDN9eRnnWjZ!:kZQ0">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="variables_get" id="SSx`Si8EAw^nNv-!dGtl">
- <field name="VAR" id="sB1uhpjB[jivksR}}*9I" variabletype="">Einschalttemp</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="#{EBl?Z7_fQe!-+EoTh`" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="uWB:sJaDI62~p8_~8{GZ">
- <field name="OP">LT</field>
- <value name="A">
- <block type="get_value" id="?sW07ajC;YKS~O|)JpD%">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="variables_get" id="fRu!ZQ#F0Oy`@7dn0lY0">
- <field name="VAR" id="b2Wux9SOxGIiW0!n^tp$" variabletype="">MaxEinschalttemp</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="QYmnp{R/AM(JTkFo)i0j">
- <field name="OP">NEQ</field>
- <value name="A">
- <block type="get_value" id="D^cBhp^3IGt#d~v9=:h8">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.POWER</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="L(R2[867e9uiQ32CuqQV">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO1">
- <block type="control" id="@l=9PP#@uptYzX8}Q@-/">
- <mutation delay_input="false"></mutation>
- <field name="OID">sonoff.0.Garage-Temperatur.POWER</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="uz1R(kPx8|U8XCJ#=.G/">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="timeouts_setinterval" id="e|FY9h;~]/YRE?cl_y]+">
- <field name="NAME">Intervall</field>
- <field name="INTERVAL">1</field>
- <field name="UNIT">min</field>
- <statement name="STATEMENT">
- <block type="control" id="UafBp45cf%cE;0],HHDW">
- <mutation delay_input="false"></mutation>
- <field name="OID">0_userdata.0.HeizungGarageBetriebszeitm</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="$dxwY5@.$T7|z])#V$+@">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="GjS|zaX$*`*PQHa}ZCqx">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="bqgC66@Cmwf}*P.sYG5q">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungGarageBetriebszeitm</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="(u8^oD*(8Og17l6{fnSo">
- <field name="NUM">1</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="control" id="Ll7l~](VgHOggaEO@R{L">
- <mutation delay_input="false"></mutation>
- <field name="OID">0_userdata.0.HeizungBetriebszeith</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="math_rndfixed" id="Qt$l@e}d8CWq~)V+RW;Q">
- <field name="n">2</field>
- <value name="x">
- <shadow type="math_number" id="~:PlXX4*+khQr#W)c;R0">
- <field name="NUM">3.1234</field>
- </shadow>
- <block type="math_arithmetic" id="18k(EuTp9#9NBs={DKXA">
- <field name="OP">DIVIDE</field>
- <value name="A">
- <shadow type="math_number" id="GjS|zaX$*`*PQHa}ZCqx">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="Sm}]cae6wmPM4FUU(gd8">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungGarageBetriebszeitm</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="m1TD)qx7)Oa-n8F*V8|h">
- <field name="NUM">60</field>
- </shadow>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="email" id="=TB1r?QLtgz-=FF^jGSx">
- <field name="INSTANCE"></field>
- <field name="IS_HTML">FALSE</field>
- <field name="LOG"></field>
- <value name="TO">
- <shadow type="text" id="jiCYzqw9^6J1]D$;:Aj|">
- <field name="TEXT">Test@gmail.com </field>
- </shadow>
- </value>
- <value name="TEXT">
- <shadow type="text" id="H7-r|uQUIE7V1H7_(D.O">
- <field name="TEXT"></field>
- </shadow>
- <block type="text_join" id="l2ol:LZJW@2[4W~4wSqg">
- <mutation items="6"></mutation>
- <value name="ADD0">
- <block type="text" id="*$9h^aaFksAQ(vb^D-0P">
- <field name="TEXT">Luftheizung Ein -</field>
- </block>
- </value>
- <value name="ADD1">
- <block type="text" id="={N$K|cGdO|2dvHH1@AZ">
- <field name="TEXT">Betriebszeit : </field>
- </block>
- </value>
- <value name="ADD2">
- <block type="get_value" id="B@b^8~?Lrkk?o74|IJkW">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungBetriebszeith</field>
- </block>
- </value>
- <value name="ADD3">
- <block type="text" id="@7)=JuL5l!E@QdhiFML^">
- <field name="TEXT"> Stunden oder </field>
- </block>
- </value>
- <value name="ADD4">
- <block type="get_value" id="fAxjx]eN,fAqso)rHLwF">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungGarageBetriebszeitm</field>
- </block>
- </value>
- <value name="ADD5">
- <block type="text" id="M@?*YM+2,2![f03yfpnw">
- <field name="TEXT"> - Minuten</field>
- </block>
- </value>
- </block>
- </value>
- <value name="SUBJECT">
- <shadow type="text" id="-9sTJ*Y_)GuKpkr.{^=b">
- <field name="TEXT">Garage</field>
- </shadow>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </statement>
- </block>
- <block type="comment" id="_hewI_B.wH.zlcTISOvc" x="338" y="413">
- <field name="COMMENT">ID sonoff.0.Garage-Temperatur.Power auswählen</field>
- </block>
- </xml>
-
Kann man nicht einfach die Nachkommastellen reduzieren ?
Hier genügt 2 Stück nach dem Komma.
-
So Emailfunktion ist gegeben aber etwas unschön ist das unendlich viele Nachkommastellen dabei stehen.
Z.B.
Luftheizung Aus Betriebszeit 2.316666666666667 Stunden
Würde das gerne nur in 2.31 Stunden Anzeigen lassen geht das noch zu machen ?
-
-
Und wenn ich beides will geht das auch ?
-
Bei den beiden roten Pfeilen bei den Betriebsstunden.
Was soll ich hier auswählen die Stunden oder die Minuten ?
Oder nur der Ordner " 0_userdata.0 " wo die beiden darin liegen?
Ich nehme an die meinst den Ordner " 0_userdata.0 " habe ich mal damit gemacht.
ID auswahl habe ich auch gemacht.
Test läuft damit noch bisher ohne Fehler,mal jetzt abwarten ob jetzt alles so bleibt.
-
So wie ich leider erst jetzt merke das ich jede Minute eine Email bekomme Heizung aus.
Kann man das reduzieren auf nur 1 Nachricht ?
-
Hier der aktuelle Skript mit allen änderungen.
Code- <xml xmlns="http://www.w3.org/1999/xhtml">
- <variables>
- <variable type="" id="sB1uhpjB[jivksR}}*9I">Einschalttemp</variable>
- <variable type="undefined" id="timeout">timeout</variable>
- <variable type="" id="9|PvNql`W.:@`bT~#BWP">Ausschalttemp</variable>
- <variable type="" id="b2Wux9SOxGIiW0!n^tp$">MaxEinschalttemp</variable>
- <variable type="" id="@+:}N=T5Oi3lu]]];mSf">MaxAuschalttemp</variable>
- <variable type="undefined" id="Intervall">Intervall</variable>
- </variables>
- <block type="on_ext" id="Vqz)!X-8}*C#OdmFc@Yl" x="-413" y="-111">
- <mutation items="2"></mutation>
- <field name="CONDITION">ne</field>
- <field name="ACK_CONDITION"></field>
- <value name="OID0">
- <shadow type="field_oid" id=":.,zmZCyQ3Ri8^i+nI.[">
- <field name="oid">sonoff.0.Schildkroetenhaus.SI7021_Temperature</field>
- </shadow>
- </value>
- <value name="OID1">
- <shadow type="field_oid" id="Hh_m+Uf8n0{6[xx=P}h^">
- <field name="oid">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </shadow>
- </value>
- <statement name="STATEMENT">
- <block type="controls_if" id="FXX}1^Re%4c~e?%#m]A5">
- <mutation else="1"></mutation>
- <value name="IF0">
- <block type="time_compare_ex" id="Ws}_u]FuEY(ZOfj[Xcn:">
- <mutation 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="~Klmpzz$y,Ond.^EVh.C">
- <field name="TEXT">9:00</field>
- </shadow>
- </value>
- <value name="END_TIME">
- <shadow type="text" id="]QK*J$|CKKZw=Rb*`Wlm">
- <field name="TEXT">18:00</field>
- </shadow>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="variables_set" id="+$d_WV/ROdNq+q_WPG%M">
- <field name="VAR" id="sB1uhpjB[jivksR}}*9I" variabletype="">Einschalttemp</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="Ms87|+,jq2yK|$=C?mci">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="jsiLnzy|2_Y$ZgECKw$q">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Schildkroetenhaus.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="eFUJ*7:kQ1Zgl2rJv#[q">
- <field name="NUM">5</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="!JgGJlqoQFBx6xKeuI[r">
- <field name="VAR" id="9|PvNql`W.:@`bT~#BWP" variabletype="">Ausschalttemp</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="2PNUg}*[LEw+FZLv?!yH">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="myOB,o29lStV:!7/{yL)">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Schildkroetenhaus.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="zkXYY0WHt8jW}|z|u?Xu">
- <field name="NUM">6</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="]n3p5m=C/qU$Xo,EYGTv">
- <field name="VAR" id="b2Wux9SOxGIiW0!n^tp$" variabletype="">MaxEinschalttemp</field>
- <value name="VALUE">
- <block type="math_number" id="iS$HF[{YD4DV@abA#MR]">
- <field name="NUM">10</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="mt/7s-^LKLo]GPWn9L5E">
- <field name="VAR" id="@+:}N=T5Oi3lu]]];mSf" variabletype="">MaxAuschalttemp</field>
- <value name="VALUE">
- <block type="math_number" id="cVyqzFiUB4Bh!:.DA}a-">
- <field name="NUM">12</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <statement name="ELSE">
- <block type="variables_set" id="vGq3ATAcbB.bKjPO_|kz">
- <field name="VAR" id="sB1uhpjB[jivksR}}*9I" variabletype="">Einschalttemp</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="X(jo!+}bC5joL{0LtIRf">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="KN?F[%HK+unsAR,nE/v~">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Schildkroetenhaus.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="LmWAO|LGWQpubfwf*Lm;">
- <field name="NUM">1</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="LPU/?Ef][;NUeBUu?N9H">
- <field name="VAR" id="9|PvNql`W.:@`bT~#BWP" variabletype="">Ausschalttemp</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="~8VBJNVxc3YARJ[aH6YS">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="b~X1wfC@%]=dH*b;~}zm">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="I%YPi%/vS`R+%l4eXx#G">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Schildkroetenhaus.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="`*GaUQn0-(jP4?d9r8vP">
- <field name="NUM">2</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="variables_set" id="A2K8_qcc/!3vcBe4)$Sk">
- <field name="VAR" id="b2Wux9SOxGIiW0!n^tp$" variabletype="">MaxEinschalttemp</field>
- <value name="VALUE">
- <block type="math_number" id="~$v5Vi!^O9@sqlsh1Qs8">
- <field name="NUM">6</field>
- </block>
- </value>
- <next>
- <block type="variables_set" id="/oU7iia!5$YN3WuG!:IU">
- <field name="VAR" id="@+:}N=T5Oi3lu]]];mSf" variabletype="">MaxAuschalttemp</field>
- <value name="VALUE">
- <block type="math_number" id="W+|O`}T2-ZfZ2!;C:`$}">
- <field name="NUM">8</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="timeouts_settimeout" id="-TI2jiY|Gu#);#!/I6`#">
- <field name="NAME">timeout</field>
- <field name="DELAY">1000</field>
- <field name="UNIT">ms</field>
- <statement name="STATEMENT">
- <block type="controls_if" id="~1=5?CT4)lxxREA4ScxZ">
- <mutation elseif="1"></mutation>
- <value name="IF0">
- <block type="logic_operation" id="Uxyt7qup0qyFjSgUUF]P" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_operation" id="Bj@tOPu5^hT2T{EPRREt" inline="false">
- <field name="OP">OR</field>
- <value name="A">
- <block type="logic_compare" id="cyVq4Mx`:/_:_GW0Z1_5">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id="~gbIyg#F9]~+p{$0)(r=">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="variables_get" id=":@Vq?jikpBVP|FaL8tbv">
- <field name="VAR" id="9|PvNql`W.:@`bT~#BWP" variabletype="">Ausschalttemp</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="yFz*Z0%NK)B]R0-]O7/q">
- <field name="OP">GT</field>
- <value name="A">
- <block type="get_value" id="ejX1{5$g*jj:G78XFf2.">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="variables_get" id="jrH.mM7i9s*2+qcC)Q]c">
- <field name="VAR" id="@+:}N=T5Oi3lu]]];mSf" variabletype="">MaxAuschalttemp</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="XEZ$br;*n~Mic9h3ETI#">
- <field name="OP">NEQ</field>
- <value name="A">
- <block type="get_value" id="TbbGiVGnoQ{cuv*Phe^~">
- <field name="ATTR">val</field>
- <field name="OID">ID auswählen</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="z;Fq-K,4bESG^@kbi:7*">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="control" id="]@7v^12xKr^dw;JxU-U=">
- <mutation delay_input="false"></mutation>
- <field name="OID">sonoff.0.Garage-Temperatur.POWER</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="lZfDkBsZfW(aFYL8s#0r">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="timeouts_clearinterval" id="Oy/?T[cN^B8q6;^!mLLu">
- <field name="NAME">Intervall</field>
- <next>
- <block type="email" id="Wo1$:r1KpLp~UGw[1)w/">
- <field name="INSTANCE"></field>
- <field name="IS_HTML">FALSE</field>
- <field name="LOG"></field>
- <value name="TO">
- <shadow type="text" id="vtgjLkJpEMGICL_:*#mg">
- <field name="TEXT">Test@gmail.com </field>
- </shadow>
- </value>
- <value name="TEXT">
- <shadow type="text" id="JTutrMb:XSQ3}C%RADWR">
- <field name="TEXT">Luftheizung Aus</field>
- </shadow>
- </value>
- <value name="SUBJECT">
- <shadow type="text" id="{H6Z)W^Na]#/.q8Yf1cg">
- <field name="TEXT">Garage</field>
- </shadow>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <value name="IF1">
- <block type="logic_operation" id="P7`jwr9J,[J}_a5LVK4Y" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="PR7apOB|J4hZU5m+S7f(">
- <field name="OP">LT</field>
- <value name="A">
- <block type="get_value" id="#@TEDN9eRnnWjZ!:kZQ0">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="variables_get" id="SSx`Si8EAw^nNv-!dGtl">
- <field name="VAR" id="sB1uhpjB[jivksR}}*9I" variabletype="">Einschalttemp</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_operation" id="#{EBl?Z7_fQe!-+EoTh`" inline="false">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="uWB:sJaDI62~p8_~8{GZ">
- <field name="OP">LT</field>
- <value name="A">
- <block type="get_value" id="?sW07ajC;YKS~O|)JpD%">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.Garage-Temperatur.SI7021_Temperature</field>
- </block>
- </value>
- <value name="B">
- <block type="variables_get" id="fRu!ZQ#F0Oy`@7dn0lY0">
- <field name="VAR" id="b2Wux9SOxGIiW0!n^tp$" variabletype="">MaxEinschalttemp</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="QYmnp{R/AM(JTkFo)i0j">
- <field name="OP">NEQ</field>
- <value name="A">
- <block type="get_value" id="D^cBhp^3IGt#d~v9=:h8">
- <field name="ATTR">val</field>
- <field name="OID">ID auswählen</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="L(R2[867e9uiQ32CuqQV">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO1">
- <block type="control" id="@l=9PP#@uptYzX8}Q@-/">
- <mutation delay_input="false"></mutation>
- <field name="OID">sonoff.0.Garage-Temperatur.POWER</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="uz1R(kPx8|U8XCJ#=.G/">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="timeouts_setinterval" id="e|FY9h;~]/YRE?cl_y]+">
- <field name="NAME">Intervall</field>
- <field name="INTERVAL">1</field>
- <field name="UNIT">min</field>
- <statement name="STATEMENT">
- <block type="control" id="UafBp45cf%cE;0],HHDW">
- <mutation delay_input="false"></mutation>
- <field name="OID">0_userdata.0.HeizungGarageBetriebszeitm</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="$dxwY5@.$T7|z])#V$+@">
- <field name="OP">ADD</field>
- <value name="A">
- <shadow type="math_number" id="GjS|zaX$*`*PQHa}ZCqx">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="bqgC66@Cmwf}*P.sYG5q">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungGarageBetriebszeitm</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="(u8^oD*(8Og17l6{fnSo">
- <field name="NUM">1</field>
- </shadow>
- </value>
- </block>
- </value>
- <next>
- <block type="control" id="Ll7l~](VgHOggaEO@R{L">
- <mutation delay_input="false"></mutation>
- <field name="OID">0_userdata.0.HeizungBetriebszeith</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="math_arithmetic" id="18k(EuTp9#9NBs={DKXA">
- <field name="OP">DIVIDE</field>
- <value name="A">
- <shadow type="math_number" id="GjS|zaX$*`*PQHa}ZCqx">
- <field name="NUM">1</field>
- </shadow>
- <block type="get_value" id="Sm}]cae6wmPM4FUU(gd8">
- <field name="ATTR">val</field>
- <field name="OID">0_userdata.0.HeizungGarageBetriebszeitm</field>
- </block>
- </value>
- <value name="B">
- <shadow type="math_number" id="m1TD)qx7)Oa-n8F*V8|h">
- <field name="NUM">60</field>
- </shadow>
- </value>
- </block>
- </value>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="email" id="=TB1r?QLtgz-=FF^jGSx">
- <field name="INSTANCE"></field>
- <field name="IS_HTML">FALSE</field>
- <field name="LOG"></field>
- <value name="TO">
- <shadow type="text" id="jiCYzqw9^6J1]D$;:Aj|">
- <field name="TEXT">Test@gmail.com </field>
- </shadow>
- </value>
- <value name="TEXT">
- <shadow type="text" id="H7-r|uQUIE7V1H7_(D.O">
- <field name="TEXT">Luftheizung Ein</field>
- </shadow>
- </value>
- <value name="SUBJECT">
- <shadow type="text" id="-9sTJ*Y_)GuKpkr.{^=b">
- <field name="TEXT">Garage</field>
- </shadow>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </statement>
- </block>
- </next>
- </block>
- </statement>
- </block>
- <block type="comment" id="_hewI_B.wH.zlcTISOvc" x="213" y="413">
- <field name="COMMENT">ID sonoff.0.Garage-Temperatur.Power auswählen</field>
- </block>
- </xml>
-
So Skript läuft jetzt mit Betriebstundenzähler.
Kann ich den Betriebszeit nur im IoBroker ersehen bzw. im dem Ordner den ich erstellt habe ?
Kann man den in der Email beim Ein und Ausschalten den nicht gleich mit versenden ?
Wie kann ich den Zählerstand manuell reseten ?
-
Um 9:01 ging eine Email an mich raus also geht das mal schon mit der Schaltung und der Email.
Um 18:03 ging die Heizung wieder aus mit Email.
Das Thema Objekt Ordner Erstellen Ordner mit " 0_userdata.0" muss der genau so heißen beim erstellen ?
Egal habe sie genau so erstellt.Und nun?
-
Skript ist aber noch nicht aktiviert dafür habe nur mal das eben in Ruhe erstellt.
Warte bis heute Abend damit.