NEWS
Aus Esp32 Soc wert soll Tasmota Gosund schalten
-
@sralus
Du hast nicht den Blockly-Export (XML) gepostet. Möchtest du in Javascript weiter programmieren? -
@paul53 Sorry
hoffe das ist nun richtig .. -
@sralus sagte: hoffe das ist nun richtig ..
Nein. Rechts oben der Export-Button:
Dort unten "IN DIE ZWISCHENABLAGE KOPIEREN" und dann mittels Strg-V in Code tags übernehmen.
-
@paul53 ok
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="smc+b.VLa_UiINUKtNHM">freigabe</variable> <variable id="%x.ht`Gvdji_eJHlZi3|">akator</variable> <variable id="OioQhFWyl4r@},SXcFZ|">wirkleistung</variable> </variables> <block type="variables_set" id="7r]m4Hw~+Bq[Fg?S%s7e" x="-3137" y="-2137"> <field name="VAR" id="smc+b.VLa_UiINUKtNHM">freigabe</field> <value name="VALUE"> <block type="logic_ternary" id=".:h6oJmB8oxWM6,6PCzp"> <value name="IF"> <block type="variables_get" id="0Qtb+#Q`k?^F`~xeqx6+"> <field name="VAR" id="%x.ht`Gvdji_eJHlZi3|">akator</field> </block> </value> <value name="THEN"> <block type="logic_compare" id="%Az?,;R%{`JZ]k[v$2$j"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="s|s$e4N{RAp@ftKe2CM@"> <field name="VAR" id="OioQhFWyl4r@},SXcFZ|">wirkleistung</field> </block> </value> <value name="B"> <block type="math_number" id="HX,5!9;y1lj3+l7;`6fW"> <field name="NUM">200</field> </block> </value> </block> </value> <value name="ELSE"> <block type="logic_compare" id="|a?sX!LjLou.Gqa/1!3L"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="OiI){}vEXdn?VLTZ@ZwK"> <field name="VAR" id="OioQhFWyl4r@},SXcFZ|">wirkleistung</field> </block> </value> <value name="B"> <block type="math_number" id="kBs|4MDb9=^:{dq5k)Xp"> <field name="NUM">2800</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="%^.DGaVnsq/!Wc_{p-IN"> <field name="VAR" id="%x.ht`Gvdji_eJHlZi3|">akator</field> <value name="VALUE"> <block type="get_value" id="|SZI9.`oF_(I5x,KhwW7"> <field name="ATTR">val</field> <field name="OID">sonoff.1.Tasmota1.POWER</field> </block> </value> <next> <block type="variables_set" id="ZJXi-{G:P?7c$;{u@w,g"> <field name="VAR" id="OioQhFWyl4r@},SXcFZ|">wirkleistung</field> <value name="VALUE"> <block type="get_value" id="T_D`PrR54kS_eo004Ti!"> <field name="ATTR">val</field> <field name="OID">mqtt.0.solaranzeige.3.ac_wirkleistung</field> </block> </value> <next> <block type="on" id="-Mk_mb-es!cq=MVXg,[H"> <field name="OID">mqtt.0.Data.Percent_Remain</field> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="Cs]e0[au,$508-RRa~,u"> <value name="IF0"> <block type="variables_get" id="b1_~z[@?(~Zk%Gsad++4"> <field name="VAR" id="smc+b.VLa_UiINUKtNHM">freigabe</field> </block> </value> <statement name="DO0"> <block type="controls_if" id=",c}Sa~}yD^}^K9ygY|3Z"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="pq/=X+I7HF?`QE1g]PUx"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id="vZZ-M)TZ%_rX+W~tgc6l"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="%/(^ommiIj/46G$/w|yq"> <field name="NUM">70</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Oe=(~AC2#|j8]~fD4+#?"> <field name="VAR" id="%x.ht`Gvdji_eJHlZi3|">akator</field> <value name="VALUE"> <block type="logic_boolean" id="VCS}vnf*1Pew^DYtsr?-"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="`;A$W3_1L!*L]4miStiQ"> <field name="OP">GT</field> <value name="A"> <block type="on_source" id="_e7s61Nq0ItOEu[r*Doy"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="/bwD2|zMt}m4@)$kc,aJ"> <field name="NUM">71</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="M^O@Sd,duEsjIQV?erLn"> <field name="VAR" id="%x.ht`Gvdji_eJHlZi3|">akator</field> <value name="VALUE"> <block type="logic_boolean" id="5HouemIBi48UDE/}1R|^"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="sDP,tw2TK~03tky2kB#4"> <value name="IF0"> <block type="logic_compare" id="f(hqrsjY@~xq7V7.RbU@"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="g7A;E6(G:`jm|nkKM+S9"> <field name="VAR" id="%x.ht`Gvdji_eJHlZi3|">akator</field> </block> </value> <value name="B"> <block type="get_value" id="yFJke=;9vd.F{BtaFxr1"> <field name="ATTR">val</field> <field name="OID">sonoff.1.Tasmota1.POWER</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="uh38dUI8,48L(Z(liUgP"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.1.Tasmota1.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="tgboN);[ScLgQmoDh8x3"> <field name="VAR" id="%x.ht`Gvdji_eJHlZi3|">akator</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> <block type="on" id="eUOAOIs)K^VM`~/ymSrX" x="-2337" y="-2037"> <field name="OID">mqtt.0.solaranzeige.3.ac_wirkleistung</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="Q+=g^R[cQ/3%%3#@5,~+"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="7#J5-~%M))b%h1DBmq!:"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id=";3$U0Q|+xogRq%bUeOji"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="r=.=mkJA$EO`X98dHXJ@"> <field name="NUM">200</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="9(W,}ZcQQHI8db-ud)Bq"> <field name="VAR" id="smc+b.VLa_UiINUKtNHM">freigabe</field> <value name="VALUE"> <block type="math_number" id="%6|xctEjqm:jEt`=CIu?"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="%GMBjdO?Xd4huO2.nxd8"> <field name="OP">GT</field> <value name="A"> <block type="on_source" id="G$r-UTGpx-`8{Sj_t%)+"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="+(/;BS[,+eSo.Nu6Imp+"> <field name="NUM">2800</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="I!I*+k}X4D`:0yGjFTAZ"> <field name="VAR" id="smc+b.VLa_UiINUKtNHM">freigabe</field> <value name="VALUE"> <block type="math_number" id="[G0g`(.dd$jNjq%L`ujZ"> <field name="NUM">0</field> </block> </value> <next> <block type="controls_if" id="vbJP$)c$tbqh:lI}5PRp"> <value name="IF0"> <block type="get_value" id="jQF!pto@Za6.QdjL;Q*b"> <field name="ATTR">val</field> <field name="OID">sonoff.1.Tasmota1.POWER</field> </block> </value> <statement name="DO0"> <block type="control" id="ieQx6-gk6B@Dh3F{cz5/"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.1.Tasmota1.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="B=k%?u7KD!ei,CR?U%a0"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> </xml>
-
@sralus sagte: um 17:00 Uhr soll der Boiler nicht mehr heizen,
-
@paul53 Super Danke.
Habe es soweit angepasst.Alternativ hattest du mir damals eine steuerung geschrieben die auf PV und SOC schaltet.
könnte man das script auch parallel laufen lassen ?oder ist es zu aufwendig SOC - PV - Active Power- in einem Script zu schalten?
das hättte nur den Vorteil das bei guten sommertagen es an manchen tagen auch um 19:00 ~ 20:00 Uhr noch genug PV überschuss vorhanden ist.
Aber SOC + Acitve Power + Zeit ist schon ein Vorteil !!Hier wäre noch die SOC- PV - Schaltung.
Vielen DANK !!<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="OioQhFWyl4r@},SXcFZ|">wirkleistung</variable> <variable id="+7:dug[=LBwDYTNyBaLO">solarleistung</variable> <variable id="smc+b.VLa_UiINUKtNHM">freigabe</variable> <variable id="%x.ht`Gvdji_eJHlZi3|">akator</variable> </variables> <block type="variables_get" id="s|s$e4N{RAp@ftKe2CM@" x="-2912" y="-2312"> <field name="VAR" id="OioQhFWyl4r@},SXcFZ|">wirkleistung</field> </block> <block type="variables_get" id="OiI){}vEXdn?VLTZ@ZwK" x="-2762" y="-2312"> <field name="VAR" id="OioQhFWyl4r@},SXcFZ|">wirkleistung</field> </block> <block type="variables_get" id=";RTU5LTZrid;Ntl-MD9-" x="-2612" y="-2312"> <field name="VAR" id="+7:dug[=LBwDYTNyBaLO">solarleistung</field> </block> <block type="variables_set" id="7r]m4Hw~+Bq[Fg?S%s7e" x="-3212" y="-2212"> <field name="VAR" id="smc+b.VLa_UiINUKtNHM">freigabe</field> <value name="VALUE"> <block type="logic_ternary" id=".:h6oJmB8oxWM6,6PCzp"> <value name="IF"> <block type="variables_get" id="0Qtb+#Q`k?^F`~xeqx6+"> <field name="VAR" id="%x.ht`Gvdji_eJHlZi3|">akator</field> </block> </value> <value name="THEN"> <block type="logic_compare" id="%Az?,;R%{`JZ]k[v$2$j"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="BhkhGrZ+sey9#zFfO@KN"> <field name="VAR" id="+7:dug[=LBwDYTNyBaLO">solarleistung</field> </block> </value> <value name="B"> <block type="math_number" id="HX,5!9;y1lj3+l7;`6fW"> <field name="NUM">200</field> </block> </value> </block> </value> <value name="ELSE"> <block type="logic_compare" id="|a?sX!LjLou.Gqa/1!3L"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="a2fJ!TbgE/`%Jwt{l,Yn"> <field name="VAR" id="+7:dug[=LBwDYTNyBaLO">solarleistung</field> </block> </value> <value name="B"> <block type="math_number" id="kBs|4MDb9=^:{dq5k)Xp"> <field name="NUM">90</field> </block> </value> </block> </value> </block> </value> <next> <block type="variables_set" id="ZJXi-{G:P?7c$;{u@w,g"> <field name="VAR" id="+7:dug[=LBwDYTNyBaLO">solarleistung</field> <value name="VALUE"> <block type="get_value" id="T_D`PrR54kS_eo004Ti!"> <field name="ATTR">val</field> <field name="OID">mqtt.0.solaranzeige.3.solarleistung1</field> </block> </value> <next> <block type="on" id="-Mk_mb-es!cq=MVXg,[H"> <field name="OID">mqtt.0.Data.Percent_Remain</field> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="Cs]e0[au,$508-RRa~,u"> <value name="IF0"> <block type="variables_get" id="b1_~z[@?(~Zk%Gsad++4"> <field name="VAR" id="smc+b.VLa_UiINUKtNHM">freigabe</field> </block> </value> <statement name="DO0"> <block type="controls_if" id=",c}Sa~}yD^}^K9ygY|3Z"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="pq/=X+I7HF?`QE1g]PUx"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id="vZZ-M)TZ%_rX+W~tgc6l"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="%/(^ommiIj/46G$/w|yq"> <field name="NUM">55</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Oe=(~AC2#|j8]~fD4+#?"> <field name="VAR" id="%x.ht`Gvdji_eJHlZi3|">akator</field> <value name="VALUE"> <block type="logic_boolean" id="VCS}vnf*1Pew^DYtsr?-"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="`;A$W3_1L!*L]4miStiQ"> <field name="OP">GTE</field> <value name="A"> <block type="on_source" id="_e7s61Nq0ItOEu[r*Doy"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="/bwD2|zMt}m4@)$kc,aJ"> <field name="NUM">56</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="M^O@Sd,duEsjIQV?erLn"> <field name="VAR" id="%x.ht`Gvdji_eJHlZi3|">akator</field> <value name="VALUE"> <block type="logic_boolean" id="5HouemIBi48UDE/}1R|^"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="sDP,tw2TK~03tky2kB#4"> <value name="IF0"> <block type="logic_compare" id="f(hqrsjY@~xq7V7.RbU@"> <field name="OP">NEQ</field> <value name="A"> <block type="variables_get" id="g7A;E6(G:`jm|nkKM+S9"> <field name="VAR" id="%x.ht`Gvdji_eJHlZi3|">akator</field> </block> </value> <value name="B"> <block type="get_value" id="yFJke=;9vd.F{BtaFxr1"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Tasmota.POWER</field> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="uh38dUI8,48L(Z(liUgP"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Tasmota.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="tgboN);[ScLgQmoDh8x3"> <field name="VAR" id="%x.ht`Gvdji_eJHlZi3|">akator</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </statement> <next> <block type="variables_set" id="%^.DGaVnsq/!Wc_{p-IN"> <field name="VAR" id="%x.ht`Gvdji_eJHlZi3|">akator</field> <value name="VALUE"> <block type="get_value" id="|SZI9.`oF_(I5x,KhwW7"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Tasmota.POWER</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> <block type="on" id="eUOAOIs)K^VM`~/ymSrX" x="-2587" y="-2212"> <field name="OID">mqtt.0.solaranzeige.3.solarleistung1</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="Q+=g^R[cQ/3%%3#@5,~+"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="7#J5-~%M))b%h1DBmq!:"> <field name="OP">GT</field> <value name="A"> <block type="on_source" id=";3$U0Q|+xogRq%bUeOji"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="r=.=mkJA$EO`X98dHXJ@"> <field name="NUM">200</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="9(W,}ZcQQHI8db-ud)Bq"> <field name="VAR" id="smc+b.VLa_UiINUKtNHM">freigabe</field> <value name="VALUE"> <block type="math_number" id="%6|xctEjqm:jEt`=CIu?"> <field name="NUM">1</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="%GMBjdO?Xd4huO2.nxd8"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id="G$r-UTGpx-`8{Sj_t%)+"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="+(/;BS[,+eSo.Nu6Imp+"> <field name="NUM">90</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="I!I*+k}X4D`:0yGjFTAZ"> <field name="VAR" id="smc+b.VLa_UiINUKtNHM">freigabe</field> <value name="VALUE"> <block type="math_number" id="[G0g`(.dd$jNjq%L`ujZ"> <field name="NUM">0</field> </block> </value> <next> <block type="controls_if" id="vbJP$)c$tbqh:lI}5PRp"> <value name="IF0"> <block type="get_value" id="jQF!pto@Za6.QdjL;Q*b"> <field name="ATTR">val</field> <field name="OID">sonoff.0.Tasmota.POWER</field> </block> </value> <statement name="DO0"> <block type="control" id="ieQx6-gk6B@Dh3F{cz5/"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">sonoff.0.Tasmota.POWER</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="B=k%?u7KD!ei,CR?U%a0"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> </xml>
-
@sralus sagte: Hier wäre noch die SOC- PV - Schaltung.
Ist ein PV-Leistung von 200 W nicht zu wenig, um den Heizstab freizugeben? Dann werden immer noch 1,8 kW aus dem Akku gezogen.
-
@paul53 Ja der wert war nur zum testen ...
Könnest du mir denn das skript so anpassen das ich :
SOC + Active Power und PV Wert zum schalten der Tasmota Steckdose habe?Das wäre super dann hätte ich meine Automatisierung für mich ok..
Danke vorab und sorry für die Umständlichkeiten...
Gruß
Sralusa
-
@sralus sagte: SOC + Active Power und PV Wert zum schalten
So?
Die Hysterese für den SoC erscheint mir zu gering.
-
@paul53 TOP SUPER !!!
Die werte passe ich noch an, Wenn ich ins Floating komme dann geht der PV Wert runter..
Den SOC WERT Bereich passe ich an..SUPER VIELEN DANK !!!
Ich werde es mal Testen und anpassen.
Viele Grüße
Sralus