-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot integrate Powerwall 3 with Tesla integration #115513
Comments
Hey there @bdraco, @jrester, @daniel-simpson, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) powerwall documentation |
Hey @miguelvelezmj25, as discussed in this issue, it seems like the powerwall 3 does not support the same web APIs as the powerwall 2. There is some work going on to figure out this new API and make it usable, but nothing final. Therefore, the powerwall 3 is probably currently unusable with home-assistant. |
I am having the same issue with Powerwall 3 and HA as described by @miguelvelezmj25 above. Any timeline on addressing compatibility with PW3 would be very helpful. Thank you. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Looks like some progress after adding a static route based on jasonacox/Powerwall-Dashboard#392 Wondering if this is the breakthrough for PW3 support being added to HA? |
Hello, are there any updates that can be shared on this known issue? |
I was following the Powerwall-Dashboard thread and with the new update about the static route being required, I was able to get some info from Powerwall-Dashboard using their local login method with just the full password. That project uses a different library pypowerwall https://github.com/jasonacox/pypowerwall/ I was looking at trying to get the library this project uses working with my PW3, tesla_powerwall but in my test environment I'm unable to run the script and get the same/similar error. Ideally we should still be able to use local credentials with the full password and that should work. @jrester I glanced over how each library handing the password and login and maybe I am missing something but that may be an interesting place to look. I would expect using the IP of 192.168.91.1 with the full password should work. Let me know if I should open another thread or directly the main tesla_powerwall library for this. Snippet of code:
Trace back where I'm hitting this:
I am investigating a few options for integrating my PW3 into HA outside of this library getting resolved and trying to help authors of both libraries use my PW3 with some tests.:
|
For your tests, were you using the tedapi interface? pypowerwall has a thread of PW3 integration here: jasonacox/pypowerwall#97. You will need to supply the gw_pw. Snippit that I pulled from the pw3 thread here: import pypowerwall PW_GW_PWD="GWPASSWD" pw.power() I have managed to get pypowerwall and powerwall dashboard running on a separate system without home assistant os. If you would like to work together I'm interested in getting pypowerwall enabled in HA. |
@fatherchaos - pypowerwall works for me, I got the dashboard working too and would love to contribute to pypowerwall with Home assistant. Some sample output:
|
I would very much like to see a resolution to this. Just had a PW3 installed this week. Let me know if there's anything I can do to contribute or help move it along. I've never contributed here but I'm a pretty experienced python programmer. |
Has there been any movement here? I'd love to add my PW3 to HA |
I used Teslemetry to make it work. I'm not a fan of the (inexpensive) subscription, but it works.
Sent with Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: jarednm ***@***.***>
Sent: Monday, August 26, 2024 12:58:03 PM
To: home-assistant/core ***@***.***>
Cc: LeoBuzz1171 ***@***.***>; Comment ***@***.***>
Subject: Re: [home-assistant/core] Cannot integrate Powerwall 3 with Tesla integration (Issue #115513)
Has there been any movement here? I'd love to add my PW3 to HA
—
Reply to this email directly, view it on GitHub<#115513 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BI3PWVCCYX2ZPVAKMKDPXB3ZTNNBXAVCNFSM6AAAAABGFGBGLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJQGY2TEOJWG4>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I noticed Tesla Fleet was added in the Home Assistant 2024.8 update (https://www.home-assistant.io/integrations/tesla_fleet) and it's free. It at least gives kW and gaps for battery, grid, load, and solar power. There's also a binary Grid Services Active and Grid Services Enabled. |
This is promising. It looks like the binary signals are not working and are either Unknown or Unavailable. There are currently also no actions available through the fleet api (e.g start/stop charging). |
Yeah I'm still working on adding the remaining features like commands. If the binary sensors aren't working raise an issue with a Diag. I don't have a Powerwall (yet) so it's hard to test. |
Probably my final update on this thread but I wanted to follow up on something I was working earlier. I started working on pulling apart the existing Tesla integration and building a custom component to get some raw data using pypowerwall library but even though I could run the commands from that package via CLI, when I went to add them to a custom component, I hit some errors due to it using urllib3 under the hood.
The good news is that PW3 data is pretty much validated and you can use the TEDAPI to grab all this data and pypowerwall repo has pretty good documentation on how to get it all. Full thread with today's updates and link to beta with the fix to get PW3 working - jasonacox/Powerwall-Dashboard#392 I'm probably done trying to build the local polling integration or update the existing repo for a bit. Going to revert to possibly using the fleet APIs for now or creating influxDB sensors on HA to poll my Powerwall Dashboard influxDB. I hope this does get fixed though because the big advantage for HA is local control, and even if it is limited to monitoring, that is pretty powerful. |
Honestly I was hoping for a more HA integrated option because it's easy for end users :) |
If you're looking for Powerwall integration that works within Home Assistant, I got Tesla Fleet to work with the Energy dashboard. After getting Tesla Fllet going, I've put together my method to get the Energy dashboard and Tesla Fleet talking to each other here<https://docs.google.com/document/d/15yREpCgAmLnLrfSl11WUsUsDJvxq8RdonRP0JsWMAxQ/pub>.
…________________________________
From: jwvanderbeck ***@***.***>
Sent: Friday, September 20, 2024 11:43:05 AM
To: home-assistant/core ***@***.***>
Cc: Eddy Redondo ***@***.***>; Manual ***@***.***>
Subject: Re: [home-assistant/core] Cannot integrate Powerwall 3 with Tesla integration (Issue #115513)
Honestly I was hoping for a more HA integrated option because it's easy for end users :)
I've looked at the Powerwall-Dashboard project and while it looks amazing, I've failed 3 times to figure out how to get it running on my Synology :(
—
Reply to this email directly, view it on GitHub<#115513 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABPXJ22KFXOY6FMLF5KOVQTZXQ7ATAVCNFSM6AAAAABGFGBGLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRUGAYTQMJXGE>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Thank you I will take a look at this. I tried integrating Teslemetry but while it gives me a ton of sensors, none of them seem to work with the energy dashboard, so maybe your document will help me sort that out. |
Hi, I have PW Fleet working now, and have looked in to the dashboard project (although for some reason it's not working with the local access, again, just fleet). That all works well for energy monitoring. |
I'm currently hooked up through the Teslemetry addon and while I haven't actually tested any changes, it does expose some settings that suggest the ability to control the PWs |
I cannot THANK YOU enough for documenting this process! I was able to get the energy component of Home Assistant working with the process you explained. I can see the solar production, the powerwall charge/discharge and the import and exports from/to the grid! This is fantastic! Thank you once again. |
Native energy dashboard sensors (using the history API) are coming to Teslemetry in 2024.10 and should come to Tessie and Tesla Fleet in 2024.11 |
Thanks for this, very well laid out and works a treat. |
@Bre77 did the native sensors make it to 2024.11? will this replace the need for creating template senors to split out positive and negative? |
It did to Teslemetry, it did not to Tesla Fleet (but will hopefully in 2024.12). |
@eddy-r - thanks very, very much for this! It's working like a charm for me with my Powerwall 3s and I can trigger on Cheers! |
@pavandave do you have a fork with your progress? I'd like to take a crack. |
@johnterickson - I do not. I have not done any work on this front since my last comment. Shortly after, I started using the Tesla Fleet integration which seems to have everything (?) mentioned in the Teslemetry comment above. Screenshot below: If you do take a crack, let me know. Not sure the code owners are taking this on but maybe over the holidays I'll get some time to tinker again. |
Hi All, Would the above progress allow for those automations (with tesla fleet integration)? Thanks for any help. (I should point out I would be new to HA so this would need to be reasonably entry level to set up). |
Not really HA but the NetZero app does all you're looking for really. You can set automations to set SOC at different times or switch between TBC and Self Powered but for me the cheapest way is to switch to Agile and let NetZero load the rates to the PW3 every day and then let TBC on the PW3 do its thing. |
As mentioned by Colster69, the NetZero app can do a lot of Powerwall automation. I use it mostly for its graphing capabilities and monitoring energy and power. However, it can't control your heat pump. I do use HA and its Tesla Fleet interface for doing what you're asking for. I prefer Node-RED for the control logic and have built flows that query the Powerwall state and then do various things based on its state. For example, when the grid goes down, I turn off the heat pump, stop my car from charging (if it is), shut off any outside lighting, etc. When the grid comes back up, the previous heat pump state is restored, if the car was charging, that's restored, etc. I primarily use my Powerwall for backup, but have it set for Self Consumption, so I also have flows that check the expected sunshine for the coming day and use that to set the backup reserve so I have some chance that the PW can be fully recharged by sunshine alone during the next day. |
Thanks. Ive dabbled with Net Zero - (not yet HA). Its pretty good & I have set some useful automations (relating to how I want to use the PW3 for load shifting). For now this is OK (on an octopus tariff called Cosy) which is not dynamic & a fixed export tariff. In a couple of months I'll go over to intelligent octopus go (IOG). (for me, Agile is not likely to pay at any time of the year Vs other options). With that tariff, there can be dynamic sesions of low cost electricity outside of the usual night time hours where by my car charger (Myenergi Zappi V2) will be instructed (by octopus) to charge my car. When that happens I do not want the tesla PW to discharge to the car (in fact I would want it to charge up). Can I get that done with Netzero? I see that I can integrat net zero with zappi, BUT that requires netzero to have OCPP access to the Zappi - to set up IOG it is necessary to disable OCPP ([https://support.myenergi.com/hc/en-gb/articles/18470101583377-zappi-Intelligent-Octopus-Go#:~:text=Octopus%20has%20updated%20how%20schedules,cause%20unexpected%20pauses%20in%20charging.&text=In%20short%2C%20don't%20do,may%20take%20action%20against%20you.]) Additionally, I can't quite tell if the integration between IOG & Netzeor would allow it to pick up the dynamic sessions & use them as triggers for an action (like set backupreserve to 100%) - does any one know that? Finally - would HA with TeslaFleet integration allow me to do all of the above? Many thansk for all help. |
I'd strongly suggest giving Agile a try with NetZero and PW3 though, it generally works out cheaper for us than Cosy but Octopus let you do instant switching anyway so if the rates look like they will spike upwards you can just go back to Cosy. |
So it looks like in 2025.1 release, HA removed the Tesla Fleet Oauth implementation [https://github.com//pull/132431] and it now uses API in a pay-per-use model. This breaks this entire PW3/Energy dashboard setup that @eddy-r had documented clearly and was working wonderfully. :-( What are the remaining options for getting energy data from PW3? is there no option remaining excepting paying Tesla for reading data from PW3? |
It's free for powerwalls at the moment, but a pain to setup. The main issue is you need to setup a server to host a key: |
As @chinswain said, the API calls for energy are currently free. They also documented an alternate method to directly connectto the PW3 in a previous comment. There is official documentation on a method to get this working again with the new log in requirements, but requires that you open port 443 to the internet. I've used cloudflare instead, and if there is interest i can provide my steps. I added two additional integrations and used the free Cloudflare features to point incoming requests for the key to the location where it's actually being hosted (though I did opt to get a domain name for about $11 through Cloudflare to simplify the process). It didn't require me to open that port to the internet but I've found attempts to gain access to my HA server. I would definitely recommend turning on ip banning at a minimum, using complex passwords, and consider using 2FA. |
can confirm the documented process is working. it is not one-click-go as it was before, but there are other solutions for that. really appreciate the flexibility to continue with tesla fleet |
Thank you eddy-r for the reply on this. Your previously documented step by step process [https://docs.google.com/document/d/15yREpCgAmLnLrfSl11WUsUsDJvxq8RdonRP0JsWMAxQ/pub] was really awesome for noobs like myself and was able to follow your instructions to get this working. I do have several web domains that I can use to host the key so thats not a problem. Any documented guide or step by step process would be very helpful. |
The current requirements from Tesla is that the connection comes from the same server that hosts the key, so it has to look like the same server from their end. I also had issues usingthe SSL certain had, and the official method uses NGIX which helps to get Tesla to accept the certificate; letting Cloudflare send a certificate bypassed this issue for me. I'll write something up this weekend for my process using Cloudflare. |
Is there no simple way to get information like powerwall 3 battery percentage? |
The problem
I cannot add the Tesla integration with Powerwall 3. When I enter the IP address of my Powerwall 3 and last 5 characters of the password I get this error:
What version of Home Assistant Core has the issue?
core-2024.4.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Tesla
Link to integration documentation on our website
https://www.home-assistant.io/integrations/powerwall
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
I have a Powerwall 3
The text was updated successfully, but these errors were encountered: