NEWS
Tibber Hausspeicher
-
Hallo
In Anlehnung von "dataeasy 22. Okt. 2023, 11:55 Laden Hausspeicher via Tibber" habe ich folgendes Script gebaut das geht soweit auch gut.
Ich möchte aber das der die Batterie weiter voll macht auch wenn die Zeit rum ist.
Das Script Prüft jetzt auf die günstigste Stunde zB.3.00Uhr Nachts um 4.00Uhr schaltet der dann wieder um auf die eingegebenen 15% die Batterie wird nicht weiter geladen.
Der soll aber dann weiter Laden bis die Batterie 95% hat auch zB. 4.00Uhr.
Wie muss ich das Umsetzen das der den Batteriestatus auch Prüft.<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="]Z~$[_S[f86NwvF!BPXC">laden</variable> </variables> <block type="variables_set" id=",`Of*Q7O/m0ODTo8oVd8" x="-1088" y="-337"> <field name="VAR" id="]Z~$[_S[f86NwvF!BPXC">laden</field> <value name="VALUE"> <block type="logic_compare" id="?ao@.n4hb]Osq;zS;#Xp"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="zTbO!t.9/|]pZyzyV/#C"> <field name="ATTR">val</field> <field name="OID">modbus.0.inputRegisters.100.843_Battery_State_of_Charge_(System)</field> </block> </value> <value name="B"> <block type="math_number" id="cA%bY_Fc$e.*/^J^Z^[9"> <field name="NUM">95</field> </block> </value> </block> </value> <next> <block type="on" id="9iB{.pB9cSp3N7ofScOg"> <field name="OID">modbus.0.inputRegisters.100.843_Battery_State_of_Charge_(System)</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="`qA%%8sjGL{LXGaClQs]"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="hW_SE:dYjiBcLpVc@krl"> <field name="OP">GTE</field> <value name="A"> <block type="on_source" id="Oyy~Kkm(cHGW.bPY}]L`"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="y5;DFUg`7.v|qJ3lY{4v"> <field name="NUM">95</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="A,vTv7Hp2Hqn:P5*L7:D"> <field name="VAR" id="]Z~$[_S[f86NwvF!BPXC">laden</field> <value name="VALUE"> <block type="logic_boolean" id="G~OH47:?*JpdDjg`LoJz"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id=",x+k}mW5^eN,K=%KCG[u"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id="s!eby3Q_CC=$,J2#Xy?c"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="yGCU;aHfUMlJ2`w-[1Ro"> <field name="NUM">94</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="Oq#q9=@MZ:rMF@E!9)pD"> <field name="VAR" id="]Z~$[_S[f86NwvF!BPXC">laden</field> <value name="VALUE"> <block type="logic_boolean" id="VYdiX1g~(aq~lM?29uP3"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="procedures_callnoreturn" id="YL|qO.w6AYsoZ:TnAqNg"> <mutation name="Ladeschaltung"></mutation> </block> </next> </block> </statement> <next> <block type="on" id="jF{,-@?qN%em2@KAfC0-"> <field name="OID">0_userdata.0.Batterie_Laden_zu_Tibber_Preise.Uhrzeit</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="procedures_callnoreturn" id="9bS3bki3+qhv[.p~`7Yj"> <mutation name="Ladeschaltung"></mutation> </block> </statement> </block> </next> </block> </next> </block> <block type="procedures_defnoreturn" id="g*/e:/6,UzL@-G#`/rCJ" x="-1113" y="163"> <field name="NAME">Ladeschaltung</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="variables_set" id="_xUQsJ)C$aDjJS^N4KeP"> <field name="VAR" id="]Z~$[_S[f86NwvF!BPXC">laden</field> <value name="VALUE"> <block type="logic_operation" id="riG)R84?kt#IH,qS7(An" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare_ex" id="bt!(UXTtZoK##xer!Y96"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">between</field> <value name="START_TIME"> <shadow type="text" id=";v]IfRIEcFd1$S(E?9^+"> <field name="TEXT">00:00</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="mE%-2fJ`~MOHtOZ3qg9s"> <field name="TEXT">23:59</field> </shadow> </value> </block> </value> <value name="B"> <block type="logic_operation" id="G8ayrMvxZWSm{Bwl`SIg"> <field name="OP">AND</field> <value name="A"> <block type="variables_get" id="?$EKhFJcglW%H(n/Pum/"> <field name="VAR" id="]Z~$[_S[f86NwvF!BPXC">laden</field> </block> </value> <value name="B"> <block type="logic_compare" id="v?YiBrV6%-`_%`;?0Aq8"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="x8*m|;Nda{PTD:=,a44P"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Batterie_Laden_zu_Tibber_Preise.Uhrzeit</field> </block> </value> <value name="B"> <block type="time_get" id="Sm]U[X7F^FhG$T%}e8Ml"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">h</field> </block> </value> </block> </value> </block> </value> </block> </value> <next> <block type="control" id="@Yih|y4#~*Cgl}Lf0/.:"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">modbus.0.holdingRegisters.100.2901_ESS_Minimum_SoC_(unless_grid_fails)</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_ternary" id="xrXPk#`+{gI=@ivZtKZL"> <value name="IF"> <block type="variables_get" id="(=p!ft|V[M7=UB#z!kj1"> <field name="VAR" id="]Z~$[_S[f86NwvF!BPXC">laden</field> </block> </value> <value name="THEN"> <block type="math_number" id="8Ti,pRShI|nw?yC*aZG?"> <field name="NUM">95</field> </block> </value> <value name="ELSE"> <block type="math_number" id="{@r1OMOA8Xr]N3Tesr{i"> <field name="NUM">15</field> </block> </value> </block> </value> </block> </next> </block> </statement> </block> </xml>
-
Hallo
In Anlehnung von "dataeasy 22. Okt. 2023, 11:55 Laden Hausspeicher via Tibber" habe ich folgendes Script gebaut das geht soweit auch gut.
Ich möchte aber das der die Batterie weiter voll macht auch wenn die Zeit rum ist.
Das Script Prüft jetzt auf die günstigste Stunde zB.3.00Uhr Nachts um 4.00Uhr schaltet der dann wieder um auf die eingegebenen 15% die Batterie wird nicht weiter geladen.
Der soll aber dann weiter Laden bis die Batterie 95% hat auch zB. 4.00Uhr.
Wie muss ich das Umsetzen das der den Batteriestatus auch Prüft.<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable id="]Z~$[_S[f86NwvF!BPXC">laden</variable> </variables> <block type="variables_set" id=",`Of*Q7O/m0ODTo8oVd8" x="-1088" y="-337"> <field name="VAR" id="]Z~$[_S[f86NwvF!BPXC">laden</field> <value name="VALUE"> <block type="logic_compare" id="?ao@.n4hb]Osq;zS;#Xp"> <field name="OP">LT</field> <value name="A"> <block type="get_value" id="zTbO!t.9/|]pZyzyV/#C"> <field name="ATTR">val</field> <field name="OID">modbus.0.inputRegisters.100.843_Battery_State_of_Charge_(System)</field> </block> </value> <value name="B"> <block type="math_number" id="cA%bY_Fc$e.*/^J^Z^[9"> <field name="NUM">95</field> </block> </value> </block> </value> <next> <block type="on" id="9iB{.pB9cSp3N7ofScOg"> <field name="OID">modbus.0.inputRegisters.100.843_Battery_State_of_Charge_(System)</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="`qA%%8sjGL{LXGaClQs]"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="hW_SE:dYjiBcLpVc@krl"> <field name="OP">GTE</field> <value name="A"> <block type="on_source" id="Oyy~Kkm(cHGW.bPY}]L`"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="y5;DFUg`7.v|qJ3lY{4v"> <field name="NUM">95</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="A,vTv7Hp2Hqn:P5*L7:D"> <field name="VAR" id="]Z~$[_S[f86NwvF!BPXC">laden</field> <value name="VALUE"> <block type="logic_boolean" id="G~OH47:?*JpdDjg`LoJz"> <field name="BOOL">FALSE</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id=",x+k}mW5^eN,K=%KCG[u"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id="s!eby3Q_CC=$,J2#Xy?c"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="yGCU;aHfUMlJ2`w-[1Ro"> <field name="NUM">94</field> </block> </value> </block> </value> <statement name="DO1"> <block type="variables_set" id="Oq#q9=@MZ:rMF@E!9)pD"> <field name="VAR" id="]Z~$[_S[f86NwvF!BPXC">laden</field> <value name="VALUE"> <block type="logic_boolean" id="VYdiX1g~(aq~lM?29uP3"> <field name="BOOL">TRUE</field> </block> </value> </block> </statement> <next> <block type="procedures_callnoreturn" id="YL|qO.w6AYsoZ:TnAqNg"> <mutation name="Ladeschaltung"></mutation> </block> </next> </block> </statement> <next> <block type="on" id="jF{,-@?qN%em2@KAfC0-"> <field name="OID">0_userdata.0.Batterie_Laden_zu_Tibber_Preise.Uhrzeit</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="procedures_callnoreturn" id="9bS3bki3+qhv[.p~`7Yj"> <mutation name="Ladeschaltung"></mutation> </block> </statement> </block> </next> </block> </next> </block> <block type="procedures_defnoreturn" id="g*/e:/6,UzL@-G#`/rCJ" x="-1113" y="163"> <field name="NAME">Ladeschaltung</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="variables_set" id="_xUQsJ)C$aDjJS^N4KeP"> <field name="VAR" id="]Z~$[_S[f86NwvF!BPXC">laden</field> <value name="VALUE"> <block type="logic_operation" id="riG)R84?kt#IH,qS7(An" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="time_compare_ex" id="bt!(UXTtZoK##xer!Y96"> <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation> <field name="USE_ACTUAL_TIME">TRUE</field> <field name="OPTION">between</field> <value name="START_TIME"> <shadow type="text" id=";v]IfRIEcFd1$S(E?9^+"> <field name="TEXT">00:00</field> </shadow> </value> <value name="END_TIME"> <shadow type="text" id="mE%-2fJ`~MOHtOZ3qg9s"> <field name="TEXT">23:59</field> </shadow> </value> </block> </value> <value name="B"> <block type="logic_operation" id="G8ayrMvxZWSm{Bwl`SIg"> <field name="OP">AND</field> <value name="A"> <block type="variables_get" id="?$EKhFJcglW%H(n/Pum/"> <field name="VAR" id="]Z~$[_S[f86NwvF!BPXC">laden</field> </block> </value> <value name="B"> <block type="logic_compare" id="v?YiBrV6%-`_%`;?0Aq8"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="x8*m|;Nda{PTD:=,a44P"> <field name="ATTR">val</field> <field name="OID">0_userdata.0.Batterie_Laden_zu_Tibber_Preise.Uhrzeit</field> </block> </value> <value name="B"> <block type="time_get" id="Sm]U[X7F^FhG$T%}e8Ml"> <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation> <field name="OPTION">h</field> </block> </value> </block> </value> </block> </value> </block> </value> <next> <block type="control" id="@Yih|y4#~*Cgl}Lf0/.:"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">modbus.0.holdingRegisters.100.2901_ESS_Minimum_SoC_(unless_grid_fails)</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_ternary" id="xrXPk#`+{gI=@ivZtKZL"> <value name="IF"> <block type="variables_get" id="(=p!ft|V[M7=UB#z!kj1"> <field name="VAR" id="]Z~$[_S[f86NwvF!BPXC">laden</field> </block> </value> <value name="THEN"> <block type="math_number" id="8Ti,pRShI|nw?yC*aZG?"> <field name="NUM">95</field> </block> </value> <value name="ELSE"> <block type="math_number" id="{@r1OMOA8Xr]N3Tesr{i"> <field name="NUM">15</field> </block> </value> </block> </value> </block> </next> </block> </statement> </block> </xml>
-
@dirk-4 Ich verstehe nicht einmal deine Bedingungen?!
Du willst den Ladevorgang beginnen, wenn der Strom günstig ist und dann einfach voll laden, bis 95% erreicht sind?
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden