Skip to content
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

Open
miguelvelezmj25 opened this issue Apr 13, 2024 · 46 comments
Open

Cannot integrate Powerwall 3 with Tesla integration #115513

miguelvelezmj25 opened this issue Apr 13, 2024 · 46 comments

Comments

@miguelvelezmj25
Copy link

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:

Screen Shot 2024-04-12 at 11 42 21 PM

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

@home-assistant
Copy link

Hey there @bdraco, @jrester, @daniel-simpson, mind taking a look at this issue as it has been labeled with an integration (powerwall) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of powerwall can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign powerwall Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


powerwall documentation
powerwall source
(message by IssueLinks)

@jrester
Copy link
Contributor

jrester commented Apr 14, 2024

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.

@devangapatel
Copy link

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.

@Micahgbr

This comment was marked as duplicate.

@lvoaks

This comment was marked as duplicate.

@lvoaks

This comment was marked as duplicate.

@pavandave
Copy link

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?

@LeoBuzz1171
Copy link

Hello, are there any updates that can be shared on this known issue?

@pavandave
Copy link

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:

from tesla_powerwall import Powerwall
import asyncio

async def main():
    ip = "192.168.91.1"
    print(ip)
    password = "<FULL PW>"
    print(password)
    power_wall = Powerwall(ip)

    await power_wall.login(password)

Trace back where I'm hitting this:

Traceback (most recent call last):
  File "/mnt/c/Users/Agent/Documents/tesla_powerwall/pw2.py", line 54, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/mnt/c/Users/Agent/Documents/tesla_powerwall/pw2.py", line 12, in main
    await power_wall.login(password)
  File "/home/agent/.local/lib/python3.10/site-packages/tesla_powerwall/powerwall.py", line 67, in login
    return self.login_as(User.CUSTOMER, password, email, force_sm_off)
  File "/home/agent/.local/lib/python3.10/site-packages/tesla_powerwall/powerwall.py", line 60, in login_as
    response = self._api.login(user, email, password, force_sm_off)
  File "/home/agent/.local/lib/python3.10/site-packages/tesla_powerwall/api.py", line 154, in login
    return self.post(
  File "/home/agent/.local/lib/python3.10/site-packages/tesla_powerwall/api.py", line 144, in post
    return self._process_response(response)
  File "/home/agent/.local/lib/python3.10/site-packages/tesla_powerwall/api.py", line 88, in _process_response
    self._handle_error(response)
  File "/home/agent/.local/lib/python3.10/site-packages/tesla_powerwall/api.py", line 64, in _handle_error
    raise AccessDeniedError(
tesla_powerwall.error.AccessDeniedError: Access denied for resource /api/login/Basic: bad credentials: Login Error

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.:

  • Getting HA to pull data directly from Powerwall-Dashboard's influxDB
  • Manually installing pypowerwall library on HA and doing local polling (removing need for InfluxDB)
  • Trying to update existing integration (tesla_powerwall)) with the new library (pypowerwall) and sharing on HACS if/when I get there.

@fatherchaos
Copy link

fatherchaos commented Jun 29, 2024

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 = pypowerwall.Powerwall("192.168.91.1", gw_pwd=PW_GW_PWD)

pw.power()
pw.level()
pw.battery_blocks()

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.

@pavandave
Copy link

@fatherchaos - pypowerwall works for me, I got the dashboard working too and would love to contribute to pypowerwall with Home assistant.

Some sample output:

powerwall$ python3 pypower.py
Site Name and Timezone {'site_name': 'My Home', 'timezone': 'America/Chicago'}
Batter Percentage {'percentage': 23.29545454545455}
Power {'site': 3235, 'solar': 0, 'battery': 0, 'load': 3227.5000000000005}
Current mode self_consumption

@lweighall
Copy link

lweighall commented Jul 18, 2024

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.

@jarednm
Copy link

jarednm commented Aug 26, 2024

Has there been any movement here? I'd love to add my PW3 to HA

@LeoBuzz1171
Copy link

LeoBuzz1171 commented Aug 26, 2024 via email

@eddy-r
Copy link

eddy-r commented Aug 26, 2024

Has there been any movement here? I'd love to add my PW3 to HA

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.

@jarednm
Copy link

jarednm commented Aug 27, 2024

Has there been any movement here? I'd love to add my PW3 to HA

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).

@Bre77
Copy link
Contributor

Bre77 commented Aug 27, 2024

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.

@pavandave
Copy link

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.

2024-09-01 15:22:42.019 ERROR (MainThread) [pypowerwall.tedapi] Error Details: Caught blocking call to putrequest with args (<urllib3.connection.HTTPSConnection object at 0x7f5d22a4e420>, 'GET', '/') inside the event loop by custom integration 'custom_powerwall' at custom_components/custom_powerwall/__init__.py, line 28: pw = pypowerwall.Powerwall(PW_GW_IP, gw_pwd=PW_GW_PWD). (offender: /usr/local/lib/python3.12/site-packages/urllib3/connection.py, line 219: return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)), please create a bug report at <private github repo>.
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#putrequest

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.

@jwvanderbeck
Copy link

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 :(

@eddy-r
Copy link

eddy-r commented Sep 20, 2024 via email

@jwvanderbeck
Copy link

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 herehttps://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 unsubscribehttps://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.

@ajroads
Copy link

ajroads commented Sep 21, 2024

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.
But ideally I need the integration to be able to control the PW3 as I want to be able to do things like stop draw from the battery when charging the car etc... is there any likelihood of this being possible via fleet? Or is there any light at the end of the tunnel for the core integration (or any other that can get more detailed info and control) working in HA?
Thanks

@jwvanderbeck
Copy link

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. But ideally I need the integration to be able to control the PW3 as I want to be able to do things like stop draw from the battery when charging the car etc... is there any likelihood of this being possible via fleet? Or is there any light at the end of the tunnel for the core integration (or any other that can get more detailed info and control) working in HA? Thanks

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

image

@devangapatel
Copy link

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 herehttps://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 unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPXJ22KFXOY6FMLF5KOVQTZXQ7ATAVCNFSM6AAAAABGFGBGLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRUGAYTQMJXGE. You are receiving this because you are subscribed to this thread.Message ID: @.***>

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.

@Bre77
Copy link
Contributor

Bre77 commented Sep 27, 2024

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

@ajroads
Copy link

ajroads commented Sep 29, 2024

Teslemetry has a couple of interesting controls exposed that could give you control over PW behaviour and allow things like stopping an ev charger pulling from the battery (e.g when using intelligent octopus). Hopefully these get pulled in to core functionality soon.
IMG_3072

@Colster69
Copy link

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 herehttps://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 unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPXJ22KFXOY6FMLF5KOVQTZXQ7ATAVCNFSM6AAAAABGFGBGLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRUGAYTQMJXGE. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Thanks for this, very well laid out and works a treat.

@eshagh
Copy link

eshagh commented Nov 7, 2024

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

@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?

@Bre77
Copy link
Contributor

Bre77 commented Nov 7, 2024

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

@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).

@muddman
Copy link

muddman commented Nov 8, 2024

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 herehttps://docs.google.com/document/d/15yREpCgAmLnLrfSl11WUsUsDJvxq8RdonRP0JsWMAxQ/pub.

@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 sensor.[home]_powerwall_grid_status for any off-grid actions I want to take.

Cheers!

@johnterickson
Copy link

@pavandave do you have a fork with your progress? I'd like to take a crack.

@pavandave
Copy link

@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:
image

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.

@mevermurlen
Copy link

Just to confirm, the latest released Tesla Fleet integration is working for me with my PowerWall 3.

Screenshot 2024-11-25 at 9 03 48 AM

@GasManGeek
Copy link

Hi All,
Many thanks for all the above work. I am new to HA (or rather planning to be..) I have a recently installed PW3 with GW2. I am interested to set up with HA to allow interaction between PW & other things: e.g. heat pump - to stop heat pump if batter SoC <15% during peak rate hour or integrate with enegergy supplier (octopus) to force PW to charge (by setting reserve to 100%) if low rate time period offered by intelligent tariff or turn off heat pump if power cut.

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).

@Colster69
Copy link

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.

@mevermurlen
Copy link

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.

@GasManGeek
Copy link

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.])

image

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.

@Colster69
Copy link

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.])

image

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.

@chinswain
Copy link

As others have mentioned, for PW3 installations the gatgeway is no longer used for control so we must connect to the PW3 WiFi hotspot (TeslaPW_******).

image
(FYI - Password is under the PW3 cover, not the one within the gateway).

To create a permanent connection I've connected my router (GL-AX1800) to the TeslaPW_ hotspot and setup a static route:

image

You can then test the connection via ping, or the pypowerwall app:

python3 -m pip install pypowerwall
python3 -m pypowerwall scan
python3 -m pypowerwall tedapi
pyPowerwall - Powerwall Gateway TEDAPI Reader [v0.12.3]
 - Connecting to https://192.168.91.1... SUCCESS

Enter Powerwall Gateway Password: xxxxxx

Connecting to Powerwall Gateway 192.168.91.1

 - Configuration:
   - Site Name: Powerwall
   - Battery Commission Date: xxxxxx
   - VIN: xxxxxx
   - Number of Powerwalls: 1

 - Power Data:
   - Battery Charge: 9.72% (1400.0000000000002Wh of 14400Wh)
   - Battery: 0W
   - Site: 2969W
   - Load: 2963W
   - Solar: 0W
   - Solar_Rgm: 0W
   - Generator: 0W
   - Conductor: 0W

 - Configuration and Status saved to config.json and **status.json**```

@devangapatel
Copy link

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 herehttps://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 unsubscribehttps://github.com/notifications/unsubscribe-auth/ABPXJ22KFXOY6FMLF5KOVQTZXQ7ATAVCNFSM6AAAAABGFGBGLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRUGAYTQMJXGE. You are receiving this because you are subscribed to this thread.Message ID: @.***>

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?

@chinswain
Copy link

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:

https://www.home-assistant.io/integrations/tesla_fleet/

@eddy-r
Copy link

eddy-r commented Jan 10, 2025

@devangapatel,

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.

@eshagh
Copy link

eshagh commented Jan 10, 2025

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

@devangapatel
Copy link

@devangapatel,

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.

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.

@eddy-r
Copy link

eddy-r commented Jan 10, 2025

@devangapatel,

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.

@jeegnesh-patel
Copy link

Is there no simple way to get information like powerwall 3 battery percentage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests