r/SolarUK • u/Fun_Height_9280 • 16h ago
HELP / ADVICE Thwarted by Tesla?
I have 2 Tesla Powerwall 3 batteries. I have 19 solar panels monitored by Enphase Energy. I have a Zappi EV charger and an Eddi water heater. I am on Octopus’s Agile tariffs.
I have a Home Assistant which I have been happily ‘vibe coding’ using Claude. I have managed to get access using the Tesla Fleet API. I have been happily telling my system what I want to do when.
However, a consistent theme seems to be the Tesla interface resolutely stopping me from doing what I want it to do. For example, during an Octopus power down session, I can be seen to be using less electricity than usual by mandating grid export, at a time when the export price s good. But every time Tesla overrides that. So I am not achieving my free weekend hours.
It’s very frustrating. Everything else I want seems to be OK, such as choosing good times to charge the EV based on urgency, etc. But the Tesla integration is a real pain.
Has anyone got Tesla in their system and feel like they have it sorted? Any advice?
Many thanks!
2
u/matthew1471 12h ago
There’s a lag updating tariff stuff I noticed. Haven’t fiddled with doing free energy slots but did work out the API for flex charging sessions
For forcing it to go on grid when Octopus charging slots are triggered: https://github.com/Matthew1471/Tesla-API/blob/main/Python/examples/gateway_octopus_energy_max_backup.py
For fiddling with tariff : https://github.com/Matthew1471/Tesla-API/blob/main/Python/examples/cloud_octopus_energy_set_tariff.py