Repository navigation
Replies: 5 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. the script is in my previous post. |
|
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:
|
|
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. |
|
I have build this in HomeAss
But I thought it would be nice to have it native in the app as well. With claude ( I am not a GO programmer) I think i have made a nice solution |
|
updated script in the first post with jq-magic now. |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
Neues Skript vom 03.12.2026:
In crontab eintragen:
All reactions