The official integration of the Tesla Powerwall (https://www.home-assistant.io/integrations/powerwall/) is great and I use it to get live stats, however this has no control of powerwall functions - I would like to be able to set the powerwall to Backup mode when my electricity is cheap, then back to self consumption when it is not. Using the local API for this is apparently unreliable, but someone has documented the public App service API here on github and specifically the energy.py file has lots of comments showing use of the API with the powerwall. Iâve never written a HA integration and my python isnât very good else i would try and integrate this directly.
Ideally this could be integrated into the official tesla extension, as an optional âadd your tesla credentials for full powerwall controlsâ rather than just the IP of the gateway for monitoring. You can also pull stats from the public API, which would be great for people whoâs powerwall is not on the local network.
Love the idea. There is so much possibility that opens up if we are able to control the powerwall locally.
There are storage systems from other vendors too. Perhaps similar to a generic thermostat datamodel, they should define a generic battery, solar and EV.
A developer question - does anyone know why these countries arenât possible with the current API use? Is it a permission/credential issue? Or a case of it simply not being implemented?
Even this as the only control would be extremely useful for the reasons mentioned upthread. I have a different set of criteria for utilizing my PWs than what the Tesla app supports and would love the ability to self-consume based on state of charge AND TOU instead of simply TOU rates/times.
Good news, there is a rewrite Home Assistant integration that will provide full control of your powerwall. It is currently in final states of testing and likely to be released wider in the next week.
The Tesla Custom Integration is now available for testing and provides control and monitoring over Tesla vehicles as well as energy products including powerwall, including changing operating mode, backup reserve. This is a breaking change if you already have the integration installed.
You can install by including as a custom repository in
Sounds like I am adopting HA at just the right time.
Controlling my powerwall and car charging is definitely something I want to do. Thanks!
I am fine using a custom repository if that is the right thing to do⌠but I get the impression that this is about to be released into the âmain repositoryâ (whatever that is called) to replace the sensor-only integrations that are there. Is that right? Is there a timeline for that?
If it is soon (a few weeks), Iâd like to wait, but if there is going to be a bigger delay for that, I might just use the custom repository.
Thanks so much for doing this btw.
I am in the process of switching from smartthings to HA, and I gotta say⌠I really like it so far. Every time I sit down and say âI should port that custom ST device driver that I wrote over to HAâ it turns out that there is already support for whatever it is, and it is more complete and easier to use than the one I wrote. Very exciting.
Just found this new Tesla integration - sounds great.
Iâve been using the old monitoring only integration with my powerwall for a while. Whatâs the best way to move over to the new one?
What happens to automations that use the current sensor values?
Also donât really understand the refresh token stuff (maybe it is obvious when you install the new integration?), whatâs involved?
Keen not to mess things up, any advice appreciated.
Thanks
The Custom Tesla integration installed fine - marvellous.
The old integration works locally but this one is cloud polling - is that right? (the reserve power level now agrees with the tesla app - no 4% difference that is there in the local data - hooray)
All the polling info in the docs refers to cars - I only have a Powerwall. Is polling relevant to powerwall only operation? The sensor data seems to be changing every 10-15 seconds. This isnât critical to anything I just like to understand.
The Zoe charges via an EVSE that is OCPP capable (Schneider Electric EVLink), and the Kona via a dumb unit with no charge control. The Zoe canât even set an upper limit to the battery charging, so it was important for me to be able to set this in another way.
Whist the ZOE car has no charging control from inside the car, the EVSE it came with from the factory is quite good and it works well through ChargeHQ.com to regulate charge current, although stopping charge canât be automated by the battery SOC. That system works well with Tesla vehicles, although it canât talk with non-Tesla cars. In addition to ChargeHQ.com, I call the HV Battery SOC through EVNotify, which Home assistant can collect via RestAPI, and then the EVSE have individual WiFi Circuit Breakers that Home assistant controls to kill the power at the set SOC percentages.
Considering getting Powerwall 3 installed. Can I ask how does each of the controls work?
I want to do the following automations:
How do I force PW to stop doing anything and go idle via HA? (eg. let house consume from the grid, use-case: when my Tesla is being asked by energy provider Octopus to charge on their Intelligent Go tariff)
How do I force PW to charge via HA?
How do I set overnight charge limit to leave space to capture solar excess via HA?
Not HA, can the powerwall allow export of solar excess but match load when import is detected. (eg. to avoid paying import pricing but get paid for exporting solar excess) Is there a mode for this?
Set backup reserve % to match current state of charge % and the battery will no longer be discharged for home load.
How do I force PW to charge via HA?
Set backup reserve % > SOC % and will charge at 1.7 kW per battery
Set operating mode to âbackupâ will charge at 3.7 kW per battery
Set operating mode to Time Base Control/ Autonomous with a OFFPEAK utility tariff, will charge at 5 kW per battery.
How do I set overnight charge limit to leave space to capture solar excess via HA?
Not HA, can the powerwall allow export of solar excess but match load when import is detected. (eg. to avoid paying import pricing but get paid for exporting solar excess) Is there a mode for this?
Thank you so much for detailed answers. So Tesla powerwall can do all those things, just though a convoluted way rather than a direct âchargeâ or âupper charge limitâ setting. I was getting really confused by their demo app.
Finally how can I force PW to discharge? What rate (kW) does it do discharge?