Replies: 3 comments 2 replies
-
Hello! The mains charging of the house battery can be regulated by evcc. To do this, you can set a charging threshold in evcc. Since electricity prices change daily with dynamic electricity tariffs, this threshold would also have to be adjusted daily. The script presented here does this automatically. In winter, the yield from a PV system is often not enough to fully recharge the house battery during the day. With this automatic function, you can recharge the house battery at night at the cheapest hours. Requirements:
Try manual activation in evcc: Once this has been manually activated, the price limit can be adjusted daily using my script published here via cron job. The script loads the tariff prices from the grid, sorts them by price and allows the $HOURS cheapest hours. Example from today with HOURS=3:
Since the new Tibber prices are published daily at around 1 p.m., I suggest calling the cron job at 1:30 p.m.:
No external control is required (Netzero app). The script: evcc-auto-batterygridchargelimit.sh.txt (for the script in plain text: see previous post) Tesla Powerwall users please set in the Tesla app: Which setting for $HOURS should I choose? You have to try it out. I suspect 2-3 hours a day will be enough. At the end of the script, add the following lines:
This will also update the value of smartCostLimit to the same setting. Below this threshold, charging will start automatically! Also very nice! |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing. Suggestion for optimization. You can toss out all the cut and greps and make things more robust, by simply using the jq internal json processing. As an example:
|
Beta Was this translation helpful? Give feedback.
-
The powerwall2 charges from grid at 1.8 kW in self_consumption mode and at max. 5 kW in time based control (TBC). the powerwall api is documeted here https://tesla-api.timdorr.com/energy-products/energy/commands if you want to impelement mode switching. :) If you want to use TBC, use Netzero to update the dynamic day-ahead tariffs for best savings. |
Beta Was this translation helpful? Give feedback.
-
For english translation: see next post
Hallo Leute,
das Netzladen der Hausbatterie kann durch evcc geregelt werden. Dafür kann man eine Ladeschwelle in evcc einstellen. Da sich die Strompreise bei dynamischen Stromtarifen täglich ändern, müsste man diese Schwelle ebenfalls täglich anpassen. Das erledigt das hier vorgestellte Skript automatisch.
Im Winter reicht der Ertrag einer PV-Anlage oft nicht aus, um den Hausakku tagsüber wieder voll aufzuladen. Mit dieser Automatik kann man den Hausakku in der Nacht zu den günstigsten Stunden nachladen.
Voraussetzungen:
Manuelle Aktivierung in evcc ausprobieren:
Darstellung > Experimentell > Experimentelle Funktionen anzeigen -- aktivieren
Hausbatterie > Netzladen > Preisgrenze -- einstellen
Sobald das einmal manuell aktiviert wurde, kann man die Preisgrenze täglich über mein hier veröffentlichtes Skript per Cronjob anpassen lassen. Das Skript läd die Tarifpreise vom Netz (grid), sortiert diese nach dem Preis und erlaubt die $HOURS günstigsten Stunden.
Beispiel von heute mit HOURS=3:
Da die neuen Tibber-Preise täglich um ca. 13 Uhr veröffentlicht werden, schlage ich den Cronjob-Aufruf um 13:30 Uhr vor:
Es wird daneben keine externe Steuererung benötigt (Netzero App).
Das Skript: evcc-auto-batterygridchargelimit.sh.txt
Tesla Powerwall-Nutzer stellen in der Tesla App bitte ein:
Betriebsmodus: Eigenversorger
Netzaufladung: Ja
Stromtarif ist egal.
Welche Einstellung für $HOURS soll ich wählen? Das muss man ausprobieren. Ich vermute 2-3 Stunden täglich können reichen.
Fügen Sie am Ende des Skripts die folgenden Zeilen hinzu:
Dadurch wird auch der Wert von smartCostLimit auf dieselbe Einstellung aktualisiert.
Unterhalb dieses Schwellenwerts wird automatisch mit dem Laden begonnen! Auch sehr schön!
Beta Was this translation helpful? Give feedback.
All reactions