NEWS
Überschussladung an nicht-smarter Wallbox Hilfe!?
-
Hallo Forum,
Da wir bald einen ein Hybridfahrzeug bekommen und eine PV Anlage mit 12,7kW haben, möchte ich hierfür gerne eine Überschussladeregelung auf Blockly realisieren. Ich bin leider absoluter Blockly Einsteiger und neige dazu Skripte unnötig aufzublasen.
Als Hardware ist vorhanden:
Fahrzeug (kann nur einphasig laden Max 3,6kW)
Wallbox evc04-ac11 ( Dreiphasig angefahren) Funktionen: Potfreier Kontakt für Freigabe und für Lastabwurfladen mit 1,8kW
Im Zählerschrank ein Shelly 3em das Einspeisung und bezug auf allen drei Phasen überwacht.Was will ich erreichen:
Das Skript soll bei ausreichender Einspeisung von min 1,5kW nach einer Minute die Wallbox freigeben und den Lastabwurf aktivieren. Damit soll die Box mit 1,8kW laden.
Wenn der Überschuss aber 3kW oder höher wird, soll die Wallbox den Lastabwurf beenden und mit vollen 3,6kW laden.
Sollte länger wie 5 Minuten über 1kW aus dem Netz bezogen werden, soll die Ladefreigabe beendet werden.
Das Ganze soll für Abends oder schlechtes Wetter mit einem Taster auf 4h volle Ladeleistung freigegen werden können.Ich benutze Blockly hierfür zum ersten mal in einem "größeren" Umfang und bin über Eure Vorschläge Tipps und Kritik wirklich dankbar. Ich konnte das Blockly noch nicht testen und denke das es viele Fehler enthält und eventuell komplett geändert werden muss.
So nun mein Werk (bitte nicht lachenDanke
-
@sub7
Pro Datenpunkt immer nur einen Trigger verwenden! Mehrere Trigger verschwenden Ressourcen. -
-
@sub7 sagte: meinst du so?
Ja, das mit dem Trigger meine ich so. Den Rest habe ich noch nicht angeschaut.
-
@sub7
Zwei Sachen fallen mir auf den ersten Blick auf:- Die Vergleiche sind falsch herum
- Die Timeouts werden mehrfach gestartet und lassen sich deshalb nicht mehr stoppen.
Prinzip:
-
Mit den Vergleichen hast du natürlich Recht.
Nur das mit den mehrfach gestarteten Timern sehe ich nicht. In meiner Logik muss der Trigger 1 Min Anliegen damit Geschalten wird. Sonst wird der Timout wieder resettet. Aber deine ausführung sieht irgendwie eleganter aus.
Ich stehe ehrlich gesagt jetzt ein wenig auf dem Schlauch und weiß nicht wie ich das Delay in meine skript bekomme und wie ich das Skript dann am Pc auf Funktion testen kann. -
Wäre es vielleicht möglich das sich jemand das Skript anschaut und grobe Fehler eventuell korrigiert, ich komme im Moment leider nicht weiter. Danke
-
@sub7 sagte: grobe Fehler eventuell korrigiert
Ohne Gewähr.
EDIT: Wichtige Änderung eingefügt 05.12. 21:51 Uhr
-
Vielen Dank Paul, was bedeutet denn ein schraffierter Block?
-
@sub7 sagte: was bedeutet denn ein schraffierter Block?
Der Block ist deaktiviert (wird nicht ausgeführt). Die Ladefreigabe erfolgte bereits bei Ladung mit 1,8 kW.
-
Hallo Paul, nochmals vielen Dank für das Skript.
Ich habe es gerade alles durchgespielt und es läuft SuperDer einzige Punkt der nicht funktioniert oder noch fehlt ist eine komplette Abschaltung (Freigabe und Lastabwurf false) nach 4Min bei Leistung <1000 und danach wieder Start ab -1500. Die Umschaltung von 3,7 zurück auf 1,8 funktioniert aber Prima.
Wenn du mir hier noch helfen könntest wäre ich Dir sehr dankbar! -
@sub7 sagte: fehlt ist eine komplette Abschaltung (Freigabe und Lastabwurf false) nach 4Min bei Leistung <1000
Geht die Leistung bei Umschaltung von 3,7 auf 1,8 kW nicht wieder unter 1000 W und dann später wieder auf über 1000 W? Das würde bedeuten, dass die PV-Leistung innerhalb von 4 Minuten um mehr als 1,9 kW sinkt.
EDIT: Du solltest beim "Laden beenden" noch die Und-Verknüpfung mit "nicht Ladepriorisierung" ergänzen.
-
@paul53 sagte: die PV-Leistung innerhalb von 4 Minuten um mehr als 1,9 kW sinkt.
Wenn das passieren kann, verwende einen zweiten Ausschalt-Timeout.
Stoppen unten nicht vergessen!
-
Ich hatte dein Skript unverändert benutzt. Ich habe als erstes -1800 Simuliert und es wurde nach einer Minute auf 1,8kw (Lastabwurf + Freigabe) Geschalten. Dann habe ich zum Test auf 100 gestellt um die Ladung bei 100 Watt Netzbezug zu simulieren. Alles ist so weiter gelaufen wie es soll, dann habe ich einen Anstieg auf -1700 Simuliert und es wurde nach einer Minute auf 3,7kw Ladeleistung( Freigabe ein, Lastabwurf aus ) Geschalten. Auch alles richtig. In dem Zustand 3,7kw laden, habe ich dann 1200 Netzbezug simuliert und es wurde richtigerweise nach 5 min (hier habe ich versehentlich vorhin 4min geschrieben) auf 1,8kw Ladung zurück Geschalten. Dann habe ich aber einen weiteren Abfall auf 1300 simuliert und es wurde nicht nach 5 min komplett abgeschaltet. Und diese Funktion meinte ich. Sorry für die umständliche erklärung, ich tippe gerade vom Handy.
-
@sub7 sagte: Dann habe ich aber einen weiteren Abfall auf 1300 simuliert und es wurde nicht nach 5 min komplett abgeschaltet.
Zwischendurch auch < 1000? Falls nicht, wirkt die Timeout-Sperre weiter.
Damit es sicher funktioniert, mache es besser mit zwei Timeouts:
-
Mein Blockly sieht jetzt so aus, ich habe die Änderungen aus deinen zwei vorherigen Posts gemacht.
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="Timeout_1.8kW">Timeout_1.8kW</variable> <variable type="timeout" id="Timeout_3.7kW">Timeout_3.7kW</variable> <variable id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</variable> <variable id="3hvpTzojo}y2$Ew~Gyhv">PV_laden-1.8kW</variable> <variable type="timeout" id="Timeout_ladung">Timeout_ladung</variable> <variable type="timeout" id="Timeout_Aus">Timeout_Aus</variable> <variable id="]@YsD2#L/zM,THq9GqS[">PV_laden_3_7kW</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="on" id="$4wQL[ftP_6@,fTC3at$" x="-112" y="-98"> <field name="OID">shelly.0.SHEM-3#3494547559AD#1.Emeter0.Power</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="comment" id="A%${1aeY]+DhiUchoxE4"> <field name="COMMENT">Laden mit nur 1,8kW Leistung</field> <next> <block type="controls_if" id="]ourj]{^20nkJwurfDR["> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="1+gNc=EeK5e,fUJnc^}8"> <field name="OP">GT</field> <value name="A"> <block type="on_source" id="k_T:%FZ61/wK(R2^mIU3"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="!]h!/j]Sjsh`~{_bVK-0"> <field name="NUM">-1500</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="FgWgp`HD1-;4.K`v$}Us"> <field name="NAME">Timeout_1.8kW</field> </block> </statement> <value name="IF1"> <block type="logic_operation" id="zu**V*R;jsb+vDs)/J.U" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="Qx^`}eX,?sgZ*uDGx_+k"> <value name="BOOL"> <block type="timeouts_gettimeout" id="@ndH!4yq0cG2I(uJ0y^N"> <field name="NAME">Timeout_1.8kW</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="c[9-0L7e@xjMN5BlD9(," inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="0yj+TV2u!*9F,.)fx!Zc"> <value name="BOOL"> <block type="variables_get" id="tj$S1IGl4$v1d|],20at"> <field name="VAR" id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="1vQj}l,tkf2so_?uC5{G"> <value name="BOOL"> <block type="variables_get" id="53zCnmG4C|L%(*)wf_Q}"> <field name="VAR" id="3hvpTzojo}y2$Ew~Gyhv">PV_laden-1.8kW</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id=":O-$Y1-hZ9)Lp3q_Dw,z"> <field name="NAME">Timeout_1.8kW</field> <field name="DELAY">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="comment" id="5=w_x$,??{yY}RJOtsj6"> <field name="COMMENT">Lastabwurf (1,8kW laden) Freigabe</field> <next> <block type="control" id="U9`dXV4#tZhe@IbMEz~="> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.000218A995E697.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="QxAOUPlRj-Fc-cY{;TP1"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="comment" id="XVRA]9A/@`Ya:~%i0cwJ"> <field name="COMMENT">Ladefreigabe Wallbox</field> <next> <block type="control" id="ANCablvP2!Z*FcTR$A$E"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHEM-3#3494547559AD#1.Relay0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="I/RPAC+Rw)p%bOGUAOpl"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="FF2Y;ps~$85/Q|T=rs*w"> <field name="VAR" id="3hvpTzojo}y2$Ew~Gyhv">PV_laden-1.8kW</field> <value name="VALUE"> <block type="logic_boolean" id="}h`Uo;j}l+=wG$.6iu;G"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="comment" id="rAG3V-k0Tx];%@JKviiJ"> <field name="COMMENT">Laden mit 3,7kW Leistung</field> <next> <block type="controls_if" id="}8)0BG-8cl8U#(jDmMb;"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="@[^iqFZlZzxc(YkB:nbn"> <field name="OP">GT</field> <value name="A"> <block type="on_source" id="TNFuW~94!_y;TMwq?OQ6"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="P?UKwKXa7-z.n93Nx``t"> <field name="NUM">-1500</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="w4U}HDwOB=:|?@(aG@MV"> <field name="NAME">Timeout_3.7kW</field> </block> </statement> <value name="IF1"> <block type="logic_operation" id="@0t4B]jt@]a7cDS2,bfJ" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="YNSR_.B%-q[ggjFq7/oE"> <value name="BOOL"> <block type="timeouts_gettimeout" id="=ubBtiSt6l/|wkG64}d;"> <field name="NAME">Timeout_3.7kW</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="ZZhu%#gawc,]3/d:Aba/" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="6;Hr@t|6~Hz!k5y|RhD0"> <value name="BOOL"> <block type="variables_get" id="O5N$32P(r=/d!5b=WZ#["> <field name="VAR" id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</field> </block> </value> </block> </value> <value name="B"> <block type="variables_get" id="b}?:7#q1c!ceD:]X#)WL"> <field name="VAR" id="3hvpTzojo}y2$Ew~Gyhv">PV_laden-1.8kW</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="qmT6f/(nmv@X@fuopHeT"> <field name="NAME">Timeout_3.7kW</field> <field name="DELAY">1</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="comment" id="UaB9Cr[jk,;ClTLU,nhl"> <field name="COMMENT">Lastabwurf (1,8kW laden) beenden</field> <next> <block type="control" id="[lIXy~ZA5FnFiF~VBQe/"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.000218A995E697.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="/oexX.IjL7{:cADc|55y"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="JLFrf(1hcmU2w/dM`T($"> <field name="COMMENT">Ladefreigabe Wallbox</field> <next> <block type="control" id="VIqP?kgIFPzggbPL3nA:" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHEM-3#3494547559AD#1.Relay0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="R[b7O7?[{cJr{h}n;C]/"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="y|+5wTO|]!oWogp4CP6L"> <field name="VAR" id="]@YsD2#L/zM,THq9GqS[">PV_laden_3_7kW</field> <value name="VALUE"> <block type="logic_boolean" id="QI`C4pdb=J4H-)kmsN1b"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="comment" id="4^U_u2%h%:{p_2_nSk;L"> <field name="COMMENT">Laden Beenden</field> <next> <block type="controls_if" id="m@5jE)W9TrLWYyWfH5~/"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="0N?~zQzK+8QPhMVQI91T"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id="pruOR[Iw=EW~:c6sEE{X"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="#Atkqp^N?6sPqLtus+dy"> <field name="NUM">1000</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="pmJVFRiw^N1CaF^TNW$|"> <field name="NAME">Timeout_ladung</field> </block> </statement> <value name="IF1"> <block type="logic_operation" id="8$FedYpI-fAO62!Ut8U3" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="t{5ud%qIC[C=p$9-]eKn"> <value name="BOOL"> <block type="variables_get" id="@zvXviUZaSUvIpF:t.Tz"> <field name="VAR" id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="m9f$G~}_1r_%Y1pKH1II"> <value name="BOOL"> <block type="timeouts_gettimeout" id="C~D=?ovIeI/ztL[(PL:f"> <field name="NAME">Timeout_ladung</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="dQ!K)FB?m/YM^P#sC*DG"> <field name="NAME">Timeout_ladung</field> <field name="DELAY">4</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="controls_if" id="+mcy)e0nbD-?-`XEE4Rq"> <mutation else="1"></mutation> <value name="IF0"> <block type="variables_get" id="^9cz-ty!3e{q}sRWV1]$"> <field name="VAR" id="]@YsD2#L/zM,THq9GqS[">PV_laden_3_7kW</field> </block> </value> <statement name="DO0"> <block type="comment" id="`UBRn~o47hO%[*urSD;x"> <field name="COMMENT">Lastabwurf (1,8kW laden) Freigabe</field> <next> <block type="control" id="6P[j9~,ThS5.6)4|Uv~I"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.000218A995E697.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="d7I}K~Ge$J{?]seuXW6R"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="x=pNl?3le_!m/HuFBgOk"> <field name="VAR" id="]@YsD2#L/zM,THq9GqS[">PV_laden_3_7kW</field> <value name="VALUE"> <block type="logic_boolean" id="[}zSMva!{7gwFV.*b$w{"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> <statement name="ELSE"> <block type="comment" id="Dj]!T4pK3AXd6LD-WTzw"> <field name="COMMENT">Ladefreigabe Wallbox</field> <next> <block type="control" id="$6hC:h9r7POj2%.!z~D%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHEM-3#3494547559AD#1.Relay0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="O[fz8v!rbK^6ffjYQ5mh"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="#pvQ0Y/bV/==;q6`WGKY"> <field name="VAR" id="3hvpTzojo}y2$Ew~Gyhv">PV_laden-1.8kW</field> <value name="VALUE"> <block type="logic_boolean" id="L_*.0Z_2ug,nv=t/}dUD"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </statement> <next> <block type="controls_if" id=")2Yph$.zmrcN3;oL(dS?"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="hCnMv3MUr96Zf*8^__pd"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id="){hP,U;}){)v+I)G{L_,"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id=";=}j?tns2zQ0J{)BEV$x"> <field name="NUM">1000</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="SIhUh#}x#QAel{R)z`FV"> <field name="NAME">Timeout_Aus</field> </block> </statement> <value name="IF1"> <block type="logic_operation" id="!dp-4Fn1n`Wvw#i;F[HK" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_operation" id="dWNoH[{0[ddVojj,CY)j" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="V}Z2*S(92aAnf@ax*i$x"> <value name="BOOL"> <block type="variables_get" id=":v}rV{@uf2TC5$NJJ6c="> <field name="VAR" id="]@YsD2#L/zM,THq9GqS[">PV_laden_3_7kW</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="xo.Aa,:5As][Y7~1S-LW"> <value name="BOOL"> <block type="variables_get" id="u;:k:-So5lD;_Wo7~5qx"> <field name="VAR" id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</field> </block> </value> </block> </value> </block> </value> <value name="B"> <block type="timeouts_gettimeout" id="8$he=;D|n$GRP5FRO*;D"> <field name="NAME">Timeout_Aus</field> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="dK#4U=jP].5VxJBmy/zu"> <field name="NAME">Timeout_Aus</field> <field name="DELAY">4</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="comment" id="NYE2`xfyv,TZpa5bFME|"> <field name="COMMENT">Ladefreigabe Wallbox</field> <next> <block type="control" id="HG1)SQu4lF5`=|M+[mXq"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHEM-3#3494547559AD#1.Relay0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="(s%+Gn1(5m5a[eVC0Fcf"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="W,*d^{HX8FpKQn7Af1ed"> <field name="VAR" id="3hvpTzojo}y2$Ew~Gyhv">PV_laden-1.8kW</field> <value name="VALUE"> <block type="logic_boolean" id="YN)%gp_bVkNW?z-B!b?U"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="},68DrkN]Qs0sxrqunPE"> <field name="COMMENT">Ladepriorisierung Taster</field> <next> <block type="on" id="sR_dvCQ)1/3!=1!C:b`j"> <field name="OID">Object ID</field> <field name="CONDITION">gt</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="comment" id="EWUYteUc2lgAjYIushWK"> <field name="COMMENT">Lastabwurf (1,8kW laden) beenden</field> <next> <block type="control" id="Wt~4R%K^mNn#HzO}G}bd"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.000218A995E697.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=",ev#lF494;UaT:h6z`g#"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="?]0Pb1?CYP3lhu+)dIJM"> <field name="COMMENT">Ladfreigabe Wallbox</field> <next> <block type="control" id="m5!sdC45DHMO~mwjz(Rw"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHEM-3#3494547559AD#1.Relay0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="#DW|QhnR4g8iMY://uE@"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="#Ou%SJ`ssQrmMQZ:lR4@"> <field name="VAR" id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</field> <value name="VALUE"> <block type="logic_boolean" id="NQubyOf86$`BtadX1+h1"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="timeouts_cleartimeout" id="{RRzWHB_[ab2F2|O|i%w"> <field name="NAME">Timeout_1.8kW</field> <next> <block type="timeouts_cleartimeout" id="n]PnPMvpWO-bd[]63z/U"> <field name="NAME">Timeout_3.7kW</field> <next> <block type="timeouts_cleartimeout" id="n;CgQ,7[Msta)GRGGWVU"> <field name="NAME">Timeout_ladung</field> <next> <block type="timeouts_cleartimeout" id="/IXE^PdN(K65xt$Y(lOE"> <field name="NAME">Timeout_Aus</field> <next> <block type="timeouts_settimeout" id="I=o*dw`qwZZvu,Xp,YN4"> <field name="NAME">timeout</field> <field name="DELAY">240</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="comment" id="[JPzfN,QJ{!8L6uHXo[|"> <field name="COMMENT">Ladfreigabe Wallbox</field> <next> <block type="control" id="c}xSZrphnZgxgV+^,IW,"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHEM-3#3494547559AD#1.Relay0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="UhwRBjXX3S9VQ6R-;GLz"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="p=G#u7u6r5TX)zGt]5jm"> <field name="VAR" id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</field> <value name="VALUE"> <block type="logic_boolean" id="IR_-UZrv0PcDxg-D9b}]"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </xml>
Die letzte Änderung habe ich nicht eingepflegt weil ich nicht genau weiß wie und ich will nichts falsch machen.
-
@sub7 sagte: ich habe die Änderungen aus deinen zwei vorherigen Posts gemacht.
Nicht ganz. Deshalb hier der Export:
-
@paul53 said in Überschussladung an nicht-smarter Wallbox Hilfe!?:
Nicht ganz. Deshalb hier der Export:
Ich danke Dir, ich werde es morgen Mittag testen und berichten.
Wünsche Dir noch einen schönen AbendEdit: Hat alles Funktioniert, danke @paul53
-
Hi,
ich habe jetzt noch ein paar Dinge an dem Skript mehr oder weniger sinnvoll eingefügt.
Soweit funktioniert alles und ich freue mich das Ganze bald in der Praxis zu testen.@paul53 Jetzt fehlt mir nur noch eine Funktion mit der ich über einen Taster den gestarteten Ladevorgang (Ladepriorisierung) abbrechen kann. Wenn Du mir hierbei noch helfen könntest wäre echt super.
Danke
<xml xmlns="https://developers.google.com/blockly/xml"> <variables> <variable type="timeout" id="Timeout_1.8kW">Timeout_1.8kW</variable> <variable type="timeout" id="Timeout_3.7kW">Timeout_3.7kW</variable> <variable id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</variable> <variable id="3hvpTzojo}y2$Ew~Gyhv">PV_laden-1.8kW</variable> <variable id="]@YsD2#L/zM,THq9GqS[">PV_laden_3_7kW</variable> <variable type="timeout" id="Timeout_Aus">Timeout_Aus</variable> <variable type="timeout" id="Timeout_ladung">Timeout_ladung</variable> <variable type="timeout" id="timeout">timeout</variable> </variables> <block type="on" id="$4wQL[ftP_6@,fTC3at$" x="-112" y="-98"> <field name="OID">shelly.0.SHEM-3#3494547559AD#1.Emeter2.Power</field> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="comment" id="A%${1aeY]+DhiUchoxE4"> <field name="COMMENT">Laden mit nur 1,8kW Leistung</field> <next> <block type="controls_if" id="]ourj]{^20nkJwurfDR["> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="1+gNc=EeK5e,fUJnc^}8"> <field name="OP">GT</field> <value name="A"> <block type="on_source" id="k_T:%FZ61/wK(R2^mIU3"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="!]h!/j]Sjsh`~{_bVK-0"> <field name="NUM">-1400</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="FgWgp`HD1-;4.K`v$}Us"> <field name="NAME">Timeout_1.8kW</field> </block> </statement> <value name="IF1"> <block type="logic_operation" id="zu**V*R;jsb+vDs)/J.U" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="Qx^`}eX,?sgZ*uDGx_+k"> <value name="BOOL"> <block type="timeouts_gettimeout" id="@ndH!4yq0cG2I(uJ0y^N"> <field name="NAME">Timeout_1.8kW</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="c[9-0L7e@xjMN5BlD9(," inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="0yj+TV2u!*9F,.)fx!Zc"> <value name="BOOL"> <block type="variables_get" id="tj$S1IGl4$v1d|],20at"> <field name="VAR" id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="1vQj}l,tkf2so_?uC5{G"> <value name="BOOL"> <block type="variables_get" id="53zCnmG4C|L%(*)wf_Q}"> <field name="VAR" id="3hvpTzojo}y2$Ew~Gyhv">PV_laden-1.8kW</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id=":O-$Y1-hZ9)Lp3q_Dw,z"> <field name="NAME">Timeout_1.8kW</field> <field name="DELAY">3</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="comment" id="5=w_x$,??{yY}RJOtsj6"> <field name="COMMENT">Lastabwurf (1,8kW laden) Freigabe</field> <next> <block type="control" id="U9`dXV4#tZhe@IbMEz~="> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.000218A995E697.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="QxAOUPlRj-Fc-cY{;TP1"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="comment" id="XVRA]9A/@`Ya:~%i0cwJ"> <field name="COMMENT">Ladefreigabe Wallbox</field> <next> <block type="control" id="ANCablvP2!Z*FcTR$A$E"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation> <field name="OID">hm-rpc.0.00021A49A85AF2.3.STATE</field> <field name="WITH_DELAY">TRUE</field> <field name="DELAY_MS">2</field> <field name="UNIT">sec</field> <field name="CLEAR_RUNNING">TRUE</field> <value name="VALUE"> <block type="logic_boolean" id="I/RPAC+Rw)p%bOGUAOpl"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="FF2Y;ps~$85/Q|T=rs*w"> <field name="VAR" id="3hvpTzojo}y2$Ew~Gyhv">PV_laden-1.8kW</field> <value name="VALUE"> <block type="logic_boolean" id="}h`Uo;j}l+=wG$.6iu;G"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="comment" id="rAG3V-k0Tx];%@JKviiJ"> <field name="COMMENT">Laden mit 3,7kW Leistung</field> <next> <block type="controls_if" id="}8)0BG-8cl8U#(jDmMb;"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="@[^iqFZlZzxc(YkB:nbn"> <field name="OP">GT</field> <value name="A"> <block type="on_source" id="TNFuW~94!_y;TMwq?OQ6"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="P?UKwKXa7-z.n93Nx``t"> <field name="NUM">-1300</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="w4U}HDwOB=:|?@(aG@MV"> <field name="NAME">Timeout_3.7kW</field> </block> </statement> <value name="IF1"> <block type="logic_operation" id="@0t4B]jt@]a7cDS2,bfJ" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="YNSR_.B%-q[ggjFq7/oE"> <value name="BOOL"> <block type="timeouts_gettimeout" id="=ubBtiSt6l/|wkG64}d;"> <field name="NAME">Timeout_3.7kW</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="ZZhu%#gawc,]3/d:Aba/" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="6;Hr@t|6~Hz!k5y|RhD0"> <value name="BOOL"> <block type="variables_get" id="O5N$32P(r=/d!5b=WZ#["> <field name="VAR" id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</field> </block> </value> </block> </value> <value name="B"> <block type="variables_get" id="b}?:7#q1c!ceD:]X#)WL"> <field name="VAR" id="3hvpTzojo}y2$Ew~Gyhv">PV_laden-1.8kW</field> </block> </value> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="qmT6f/(nmv@X@fuopHeT"> <field name="NAME">Timeout_3.7kW</field> <field name="DELAY">3</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="comment" id="UaB9Cr[jk,;ClTLU,nhl"> <field name="COMMENT">Lastabwurf (1,8kW laden) beenden</field> <next> <block type="control" id="[lIXy~ZA5FnFiF~VBQe/"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.000218A995E697.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="/oexX.IjL7{:cADc|55y"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="JLFrf(1hcmU2w/dM`T($"> <field name="COMMENT">Ladefreigabe Wallbox</field> <next> <block type="control" id="VIqP?kgIFPzggbPL3nA:" disabled="true"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">shelly.0.SHEM-3#3494547559AD#1.Relay0.Switch</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="R[b7O7?[{cJr{h}n;C]/"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="y|+5wTO|]!oWogp4CP6L"> <field name="VAR" id="]@YsD2#L/zM,THq9GqS[">PV_laden_3_7kW</field> <value name="VALUE"> <block type="logic_boolean" id="QI`C4pdb=J4H-)kmsN1b"> <field name="BOOL">TRUE</field> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="comment" id="4^U_u2%h%:{p_2_nSk;L"> <field name="COMMENT">Laden Beenden</field> <next> <block type="controls_if" id="m@5jE)W9TrLWYyWfH5~/"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="logic_compare" id="0N?~zQzK+8QPhMVQI91T"> <field name="OP">LT</field> <value name="A"> <block type="on_source" id="pruOR[Iw=EW~:c6sEE{X"> <field name="ATTR">state.val</field> </block> </value> <value name="B"> <block type="math_number" id="#Atkqp^N?6sPqLtus+dy"> <field name="NUM">1100</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_cleartimeout" id="pmJVFRiw^N1CaF^TNW$|"> <field name="NAME">Timeout_ladung</field> <next> <block type="timeouts_cleartimeout" id="klMU@ROv}+)Y_rZ`w~F@"> <field name="NAME">Timeout_Aus</field> </block> </next> </block> </statement> <value name="IF1"> <block type="logic_negate" id="/`X#*6~3YLYQ.x~4x:RW"> <value name="BOOL"> <block type="variables_get" id="7=[8sze_(p8OQ#(#Vk3%"> <field name="VAR" id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</field> </block> </value> </block> </value> <statement name="DO1"> <block type="controls_if" id="0#UePKmT!/G=Cw2acVT8"> <mutation elseif="1"></mutation> <value name="IF0"> <block type="variables_get" id="^9cz-ty!3e{q}sRWV1]$"> <field name="VAR" id="]@YsD2#L/zM,THq9GqS[">PV_laden_3_7kW</field> </block> </value> <statement name="DO0"> <block type="controls_if" id="j3jDf]s{6se)2ZnJ9IC!"> <value name="IF0"> <block type="logic_negate" id="m9f$G~}_1r_%Y1pKH1II"> <value name="BOOL"> <block type="timeouts_gettimeout" id="C~D=?ovIeI/ztL[(PL:f"> <field name="NAME">Timeout_ladung</field> </block> </value> </block> </value> <statement name="DO0"> <block type="timeouts_settimeout" id="dQ!K)FB?m/YM^P#sC*DG"> <field name="NAME">Timeout_ladung</field> <field name="DELAY">4</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="comment" id="`UBRn~o47hO%[*urSD;x"> <field name="COMMENT">Lastabwurf (1,8kW laden) Freigabe</field> <next> <block type="control" id="6P[j9~,ThS5.6)4|Uv~I"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.000218A995E697.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="d7I}K~Ge$J{?]seuXW6R"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="x=pNl?3le_!m/HuFBgOk"> <field name="VAR" id="]@YsD2#L/zM,THq9GqS[">PV_laden_3_7kW</field> <value name="VALUE"> <block type="logic_boolean" id="[}zSMva!{7gwFV.*b$w{"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </statement> <value name="IF1"> <block type="logic_negate" id="kkz5jcTfmn?dZ[NO*x*:"> <value name="BOOL"> <block type="timeouts_gettimeout" id="2WjOw;3@JwLvHY%c%B^k"> <field name="NAME">Timeout_Aus</field> </block> </value> </block> </value> <statement name="DO1"> <block type="timeouts_settimeout" id="mU~cyc5)|eM2[RfU[Us%"> <field name="NAME">Timeout_Aus</field> <field name="DELAY">6</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="comment" id="Dj]!T4pK3AXd6LD-WTzw"> <field name="COMMENT">Ladefreigabe Wallbox</field> <next> <block type="control" id="$6hC:h9r7POj2%.!z~D%"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.00021A49A85AF2.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="O[fz8v!rbK^6ffjYQ5mh"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="#pvQ0Y/bV/==;q6`WGKY"> <field name="VAR" id="3hvpTzojo}y2$Ew~Gyhv">PV_laden-1.8kW</field> <value name="VALUE"> <block type="logic_boolean" id="L_*.0Z_2ug,nv=t/}dUD"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> <next> <block type="comment" id="},68DrkN]Qs0sxrqunPE"> <field name="COMMENT">Ladepriorisierung Taster</field> <next> <block type="on_ext" id="L#YE!lPD[B=Dr)bg)Er3"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id=".C8^%a2*C4?O%e#@,jl]"> <field name="oid">mqtt.0.shellyplusi4-485519993044.status.input:0</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="S#F48={NAgosgE90Q6g}"> <field name="oid">javascript.0.Eigene_Datenpunkte.Test.Taster_laden_ein</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="=1P,#;x|%y#gJz0a3hPL"> <value name="IF0"> <block type="logic_operation" id="ZfN/_NbRz}{9@_G[|bu." inline="false"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="YSbAM)AyF2$xBY({I,:T"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="40OaS:?n)J)W5Q-a~FNg"> <field name="ATTR">val</field> <field name="OID">mqtt.0.shellyplusi4-485519993044.status.input:0</field> </block> </value> <value name="B"> <block type="text" id="phl.R!y6=%7dyaxvgo8:"> <field name="TEXT">{"id":0,"state":true}</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="Yw4,8g)][G=sSAhn,8f_"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="yAM5P%{A4){nr$RC7~XB"> <field name="ATTR">val</field> <field name="OID">javascript.0.Eigene_Datenpunkte.Test.Taster_laden_ein</field> </block> </value> <value name="B"> <block type="logic_boolean" id=")6LC?yI8E!:8M;@m2-B|"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="EWUYteUc2lgAjYIushWK"> <field name="COMMENT">Lastabwurf (1,8kW laden) beenden</field> <next> <block type="control" id="Wt~4R%K^mNn#HzO}G}bd"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.000218A995E697.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id=",ev#lF494;UaT:h6z`g#"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="comment" id="?]0Pb1?CYP3lhu+)dIJM"> <field name="COMMENT">Ladfreigabe Wallbox</field> <next> <block type="control" id="m5!sdC45DHMO~mwjz(Rw"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.00021A49A85AF2.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="#DW|QhnR4g8iMY://uE@"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="variables_set" id="#Ou%SJ`ssQrmMQZ:lR4@"> <field name="VAR" id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</field> <value name="VALUE"> <block type="logic_boolean" id="NQubyOf86$`BtadX1+h1"> <field name="BOOL">TRUE</field> </block> </value> <next> <block type="timeouts_cleartimeout" id="{RRzWHB_[ab2F2|O|i%w"> <field name="NAME">Timeout_1.8kW</field> <next> <block type="timeouts_cleartimeout" id="n]PnPMvpWO-bd[]63z/U"> <field name="NAME">Timeout_3.7kW</field> <next> <block type="timeouts_cleartimeout" id="n;CgQ,7[Msta)GRGGWVU"> <field name="NAME">Timeout_ladung</field> <next> <block type="timeouts_cleartimeout" id="2llI`Vw)5;MsmpwG^UX+"> <field name="NAME">Timeout_Aus</field> <next> <block type="timeouts_settimeout" id="I=o*dw`qwZZvu,Xp,YN4"> <field name="NAME">timeout</field> <field name="DELAY">320</field> <field name="UNIT">min</field> <statement name="STATEMENT"> <block type="comment" id="[JPzfN,QJ{!8L6uHXo[|"> <field name="COMMENT">Ladfreigabe Wallbox</field> <next> <block type="control" id="c}xSZrphnZgxgV+^,IW,"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">hm-rpc.0.00021A49A85AF2.3.STATE</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="logic_boolean" id="UhwRBjXX3S9VQ6R-;GLz"> <field name="BOOL">FALSE</field> </block> </value> <next> <block type="variables_set" id="p=G#u7u6r5TX)zGt]5jm"> <field name="VAR" id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</field> <value name="VALUE"> <block type="logic_boolean" id="IR_-UZrv0PcDxg-D9b}]"> <field name="BOOL">FALSE</field> </block> </value> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> <next> <block type="comment" id="=4sOoG*8Su?UfHIYD6e="> <field name="COMMENT">Ladezustandsanzeige</field> <next> <block type="on_ext" id="qE)3NloHa(xD@0r2prcC"> <mutation xmlns="http://www.w3.org/1999/xhtml" items="4"></mutation> <field name="CONDITION">ne</field> <field name="ACK_CONDITION"></field> <value name="OID0"> <shadow type="field_oid" id="k}+HV}TbmJesp`dM2.mg"> <field name="oid">hm-rpc.0.000218A995E697.3.STATE</field> </shadow> </value> <value name="OID1"> <shadow type="field_oid" id="#Z8b.RI7f1vTm,W*wrfZ"> <field name="oid">javascript.0.Eigene_Datenpunkte.Test.Taster_laden_ein</field> </shadow> </value> <value name="OID2"> <shadow type="field_oid" id="AO.(BxeWYppO6ScYJiWd"> <field name="oid">javascript.0.Eigene_Datenpunkte.Test.Taster_laden_beenden</field> </shadow> </value> <value name="OID3"> <shadow type="field_oid" id="D}d3Gfo7D.~`,_=j3E3W"> <field name="oid">hm-rpc.0.00021A49A85AF2.3.STATE</field> </shadow> </value> <statement name="STATEMENT"> <block type="controls_if" id="QYffXS!FX!z[VEB8-xE6"> <mutation elseif="3"></mutation> <value name="IF0"> <block type="logic_operation" id="Ym|/4=H5Sx,q-V:%L/D1" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="q@+3bG3j7A%vm8vMNG/8"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="%#0DW`0PUoh5B7xl=G_q"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.00021A49A85AF2.3.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="R_!X3P6dd2O83Eb4J?MI"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="oK]we2|2w3IM,S@^S:.T" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="gx^`enTQ0_/z_z8ELFu4"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="`J2/V32[e?Rt,r-iOU-L"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.000218A995E697.3.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="xvOZI^@ha0q}fLEcBZrt"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_negate" id="43XKO0pvD{Pxf|Gnn6N+"> <value name="BOOL"> <block type="variables_get" id="*IUq=op+S5~t6LxOAmD{"> <field name="VAR" id="]@YsD2#L/zM,THq9GqS[">PV_laden_3_7kW</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="control" id="41;AiE$Rat^_Uo_KC9@s"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Test.Ladezustand_Wallbox</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="b7yCL5_(gs|s}yE:teKS"> <field name="TEXT">Manueller Start</field> </block> </value> </block> </statement> <value name="IF1"> <block type="logic_compare" id="aOE?L3Aax?rFY;E?;h+)"> <field name="OP">EQ</field> <value name="A"> <block type="logic_operation" id="[GAu+u8`}|GEc[$P~Px]" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="get_value" id="q.zFhW?77`){`a,3O;2c"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.000218A995E697.3.STATE</field> </block> </value> <value name="B"> <block type="get_value" id="I*dEL8fJ0(QSrL^$L;K9"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.00021A49A85AF2.3.STATE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_boolean" id="vGwwiDT7x@i?$40CfdvN"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO1"> <block type="control" id="[u0}@=s`#k9qm-E#S#6t"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Test.Ladezustand_Wallbox</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="4@:iTLGOi5@}z0l]-|BX"> <field name="TEXT">Laden 1.8kW</field> </block> </value> </block> </statement> <value name="IF2"> <block type="logic_operation" id="zRY=}*R6VJZ$PA!Q|-N)" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_negate" id="*O=~+O0?x|mP@OFvlOa)"> <value name="BOOL"> <block type="variables_get" id=":srI7$6*Tq3)9FLRtULn"> <field name="VAR" id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</field> </block> </value> </block> </value> <value name="B"> <block type="logic_operation" id="UgC$V2T}fgTack?Ff$a(" inline="false"> <field name="OP">AND</field> <value name="A"> <block type="logic_compare" id="VoZZE|-VX7]GT[blR}*!"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="}Qxo:(itxtp=e8[lc9Q2"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.00021A49A85AF2.3.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="8PFO~GjzYp}N/Y8(PrDU"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="cBfqtN;]XzKpJQy|74=P"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="Q-Sd?4^d#edu+vqx2Won"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.000218A995E697.3.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="n*y//0^hLAL4;y;CB!o]"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> </block> </value> </block> </value> <statement name="DO2"> <block type="control" id="Afbw%P.BGNTl+~{vb?um"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Test.Ladezustand_Wallbox</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="XA@LIztXvllxsqboU-m+"> <field name="TEXT">Laden 3.7kW</field> </block> </value> </block> </statement> <value name="IF3"> <block type="logic_compare" id="=Z{B^YO/]BZrAUTe2!LB"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="okn(7BG.#4.!fm}iAz!7"> <field name="ATTR">val</field> <field name="OID">hm-rpc.0.00021A49A85AF2.3.STATE</field> </block> </value> <value name="B"> <block type="logic_boolean" id="L=;jv*5)T%SVrn-:yzWb"> <field name="BOOL">FALSE</field> </block> </value> </block> </value> <statement name="DO3"> <block type="control" id=".ySJ`BN!`XSP=Z?bR{}F"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">javascript.0.Eigene_Datenpunkte.Test.Ladezustand_Wallbox</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="q,$o3Wye1fTM#dT5+P3A"> <field name="TEXT">Keine Freigabe</field> </block> </value> </block> </statement> <next> <block type="comment" id="P!)CRi@KlveMm|6KS)XL"> <field name="COMMENT">Countdown Ladepriorisierung</field> <next> <block type="controls_if" id="f-0=|p{LwILBP!{pr$x$"> <mutation else="1"></mutation> <value name="IF0"> <block type="variables_get" id="9pS0tR~hiLkWRUq3[num"> <field name="VAR" id=";t!!{he,NqY7LjF_(N[%">Ladepriorisierung</field> </block> </value> <statement name="DO0"> <block type="control" id="pi0QSlq*+SeHcWE;SeN_"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mytime.0.Countdown.Test.cmd</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="=NW:~$L}7_Q-M.xqnaL5"> <field name="TEXT">start</field> </block> </value> </block> </statement> <statement name="ELSE"> <block type="control" id="u_riLpm/J#!GAk$d)?5q"> <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation> <field name="OID">mytime.0.Countdown.Test.cmd</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text" id="8qqA_m(MJgu.GJDnfIC`"> <field name="TEXT">end</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </xml>
-
@sub7 sagte: über einen Taster den gestarteten Ladevorgang (Ladepriorisierung) abbrechen kann.
Ist "javascript.0.Eigene_Datenpunkte.Test.Taster_laden_ein" ein Taster oder ein Schalter? Im Skript wird er auf "wahr" geprüft zum Einschalten der Ladepriorisierung. Wenn es ein Schalter ist, könnte bei "falsch" die Ladepriorisierung beendet werden.
Wie verhält es sich mit dem DP "mqtt.0.shellyplusi4-485519993044.status.input:0"?EDIT: Weshalb wird bei "Ladezustandsanzeige" auf Datenpunkte getriggert, die innerhalb der Callback-Funktion nicht ausgewertet werden?
Übrigens: Zum Schreiben eigener Datenpunkte verwendet man besser "aktualisiere" anstelle von "steuere".