Hallo,
ich versuche aktuell mal wieder die Pumpe mit PV Überschuss einzuschalten, und bei zu geringem Überschuss auszuschalten.
Leider quittiert die Pumpe jede Minute den Zustand, weil dieser geändert wird.
Wie passe ich das Skript am besten an?
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="schedule" id=".e|U:6w4vB1e()c)B=Wv" x="-862" y="-287">
<field name="SCHEDULE">{"time":{"start":"00:00","end":"23:59","mode":"minutes","interval":1},"period":{"days":1}}</field>
<statement name="STATEMENT">
<block type="debug" id="Pal]`7Vfr3H[C:e2oK|4">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="$A#hPY$,#xz5m/Y$4}w/">
<field name="TEXT">pumpe geht nicht an weil auto muss geladen werden</field>
</shadow>
<block type="get_value" id="T4dYRL`DK%*b*:2OFf0c">
<field name="ATTR">val</field>
<field name="OID">fronius.0.site.P_Grid</field>
</block>
</value>
<next>
<block type="debug" id=",R_?IBQv7U#W*D`;AFzo">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="$A#hPY$,#xz5m/Y$4}w/">
<field name="TEXT">pumpe geht nicht an weil auto muss geladen werden</field>
</shadow>
<block type="text_join" id="x41m3BaIs.ni56z-y.38">
<mutation items="2"></mutation>
<value name="ADD0">
<block type="get_value" id="_=0Yv!VI#c2tg#^|ooSD">
<field name="ATTR">val</field>
<field name="OID">bestway.0.sJWQl6WdudCn0r1MFd7AyE.remote.filter_power</field>
</block>
</value>
<value name="ADD1">
<block type="text" id="$ayF*%vP0rg]`PC5xT0p">
<field name="TEXT">Pumpe an oder aus</field>
</block>
</value>
</block>
</value>
<next>
<block type="controls_if" id="dZ8rl*;=95eq$?=WM=iN">
<value name="IF0">
<block type="logic_compare" id="Z%+N$!@G6ZAqXQ},^RLY">
<field name="OP">EQ</field>
<value name="A">
<block type="math_number" id="^tCRaSa[Eu2K*D#6CNtR">
<field name="NUM">1</field>
</block>
</value>
<value name="B">
<block type="get_value" id="Q5.PEp]qsWdyX2BYr^XC">
<field name="ATTR">val</field>
<field name="OID">0_userdata.0.Status.Verbrauchsprioritaeten</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="QGCP5*kz%ekzH;e0|.6~">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id=";bY4Zw66t[cN~dgVZS/b">
<field name="OP">LTE</field>
<value name="A">
<block type="convert_tonumber" id=";IN4Dhe~@Mav28;5Vo:}">
<value name="VALUE">
<block type="get_value" id="/#:4p:41mrZp@6h6SF#M">
<field name="ATTR">val</field>
<field name="OID">fronius.0.site.P_Grid</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="convert_tonumber" id="KgSug,#%Wwa}!sR}(rS|">
<value name="VALUE">
<block type="math_number" id="?btN;mT(3l4|b5%Cen+/">
<field name="NUM">-1000</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="debug" id=")xA$kQ.SL^TT7h{0^0Ql">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="9m@L3.,p[gnQW~G{+dq9">
<field name="TEXT">Pool-Pumpe geht an</field>
</shadow>
</value>
<next>
<block type="control" id="Z(VQt-X[Ycut}.}B6eqj">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">bestway.0.sJWQl6WdudCn0r1MFd7AyE.remote.filter_power</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">5</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">TRUE</field>
<value name="VALUE">
<block type="logic_boolean" id="~?-(+=Lzr:;;kh3f=4QL">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="telegram" id="[lU#*n3XZWyt8:=:LW94">
<field name="INSTANCE">.0</field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<field name="ESCAPING">FALSE</field>
<field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
<value name="MESSAGE">
<shadow type="text" id="`?F=6Vf3Z3=*A9|`a`Dw">
<field name="TEXT">Pool-Pumpe ist eingeschaltet</field>
</shadow>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
<statement name="ELSE">
<block type="debug" id="fl4($#_vvegFnA,2Nopl">
<field name="Severity">log</field>
<value name="TEXT">
<shadow type="text" id="h{*O~#y_cz?x^lvV(qt*">
<field name="TEXT">Pool-Pumpe bleibt aus</field>
</shadow>
</value>
<next>
<block type="control" id="n0W(f(bv{u,_RexUjjkh">
<mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
<field name="OID">bestway.0.sJWQl6WdudCn0r1MFd7AyE.remote.filter_power</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">5</field>
<field name="UNIT">sec</field>
<field name="CLEAR_RUNNING">TRUE</field>
<value name="VALUE">
<block type="logic_boolean" id="d;QZEfVR[115t5?PnxI}">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="telegram" id="5C_{8unx24A{FJ}sZ{kR">
<field name="INSTANCE">.0</field>
<field name="LOG"></field>
<field name="SILENT">FALSE</field>
<field name="PARSEMODE">default</field>
<field name="ESCAPING">FALSE</field>
<field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
<value name="MESSAGE">
<shadow type="text" id="1n~[P4%)v{@VsI?NJ(=q">
<field name="TEXT">Pool-Pumpe ist ausgeschaltet</field>
</shadow>
</value>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
Des Weiteren sendet er mir die Message jede Minute per Telegram. Kann ich das irgendwie unterbinden?
Danke, Lg