Tesla Powerwall and Home Energy Management

What integration are you using for your Powerwall data? I have repeatedly tried the included Tesla Powerwall integration but keep getting logged out after several minutes.

Thanks,

Did you figure this out? My dashboards are crazy wrong like yours were. But I want to include my export.

Hi
has anyone got this working??

Look at my data on the right here:

comparing this to the live data from the tesla app:

it doesn’t make any sense!

here are the settings I have in home assistant:

@teslachris I came here looking for the same answers. There was a post by @Stormalong earlier in the thread that answered my question:

I then went through and compared my numbers in the Tesla app for the day so far and they were much closer to the energy dashboard.

If you want the realtime view, I use GitHub - ulic75/power-flow-card: A power distribution card inspired by the official Energy Distribution card for Home Assistant (I like this better than the tesla-style-solar-power-card linked above).

Sorry for the delay.
The man who installed the Tesla did a mistake with power meters.

It took me weeks to convince him numbwrs were crazy.
But in the end he admitted a wrong installation.

1 Like

How is everyone creating utility meter sensors to measure daily home energy usage? I’m defining home usage as the actual energy consumed by my home every 24 hours.

For the last year, I’ve had a utility meter helper configured to use the sensor.powerwall_load_import sensor as the source for daily calculations of my home energy usage and I want to say it has been rock solid. It’s matched the readings in the Tesla app and also what I see in the Energy Dashboard under the home icon on the right.

I noticed today that this daily home energy sensor I setup is reporting 64.2 kWh of usage. This seems exceptionally high considering I generated 70.9 kWh from solar, had nearly a full battery at the start of the day, and neither of my cars charged.

After looking at the Tesla app, I see my home used as 40.1 kWh. My solar production contributed 24.1 kWh, which leads me to believe that this sensor is somehow adding the two values to report the 64.2 kWh of home usage today. However, sensor.powerwall_load_import shows a midnight reading of 25,998 and a current reading of 26,038, so a diff of 40 kWh, which is expected. And now that I look into yesterday (also high solar production), I did not consume 97.2 kWh. The Tesla app shows 68.9 kWh home usage…

I’m scratching my head on this as I have changed nothing on this utility meter sensor since I set it up last year and want to say that most readings have been correct, but today looks odd. So, I’m wondering if an HA update or something has changed without me knowing that I need to adjust now.

I really wish I could just extract the home value from the Energy Dashboard as that’s the value I want.

How are others measuring this value with a Powerwall & Solar?

I am having a similar issue.

Some time in early March my basic daily cycle utility meters started to over-report on load (but seemingly not on solar generation or site export/import).

The load utility meter is on sensor.powerwall_load_import.

I have not investigated this at all yet.

I opened this bug and incorrectly suspected it might be day light savings related, but I have since found another workaround - creating a Reimann Sum Integral Sensor off of sensor.powerwall_load_now instead of using sensor.powerwall_load_import directly. Another person has found that toggling “net consumption” works for them on the utility meter…I just created a sensor to test this to see if it helps. It just doesn’t make sense to me given that the historical data on the sensor does not match the expected daily values.

1 Like

I have changed my utility meters to be net consumption and everything looks good again.

Thanks!

Does anyone know why this net consumption toggle would make the difference? The history on the sensor doesn’t show appear to go down, so it doesn’t make sense to me that this would be required.

I suspect the issue is with the powerwall plugin (or a recent powewall firmware update) as I can see the powerwall_load_import sensor repeatedly increasing and decreasing.

It would also explain why “net consumption” works…

On further digging, this looks like a powerwall firmware issue - the values reported from the API occasionally go backward - this is from the api/meters/aggregates API:

image

1 Like

Are the “import” and “export” cumulative sensors in the latest Powerwall Integration still not accurate? Also, I noticed that sensor.powerwall_load_export=unavailable. I wasted a lot of time presuming I could use the cumulative sensors directly from the powerwall integration; only to find it wasn’t adding up correctly.

I didn’t know what else to do, so I just created integration sensors to collect real-time data from the powerwall integration; followed by utility_meter “daily” sensors:

sensor:
  - platform: integration
    source: sensor.powerwall_solar_power
    name: "Daily Solar Energy Produced"
    unit_prefix: k
    round: 2
  - platform: integration
    source: sensor.powerwall_battery_power
    name: "Daily Battery Energy Discharged"
    unit_prefix: k
    round: 2
  - platform: integration
    source: sensor.powerwall_site_power
    name: "Daily Grid Energy Consumed"
    unit_prefix: k
    round: 2

utility_meter:
  daily_solar_energy_produced:
    source: sensor.daily_solar_energy_produced
    cycle: daily
  daily_battery_energy_discharged:
    source: sensor.daily_battery_energy_discharged
    cycle: daily
  daily_grid_energy_consumed:
    source: sensor.daily_grid_energy_consumed
    cycle: daily

Does anyone know if Home Assistant works with Powerwall 3? I have a new solar roof and have PW3s on order.

Yes, it will work.

What integration are you using for your powerwall? I tried the default one in home assistant, but I got a “powerwall api error 404” message

1 Like

@Rob-Schox
@bzzzo

Did any of you find out for sure if there is an integration for powerwall 3 that allows control of things like mode, back up percetage etc? If so what integration please and how does one set it up?.

I have read elsewhere that the integrations for pwerwall 2 do not work with 3, and in other palces that the people have stuggled or not been able to to integrate PW3 as passwords are not accepted. And again in other places that an integration with PW3 allows for gathering information, but not executing controls.

I have a PW3 & I am considering getting HA to integrate it with other things like my heat pump and car charger, but this does all hinge on a successful PW3 integration

All help very much appreciated.

Thanks

In the Standard Tesla integration only (binary_)sensor entities will show up - other than the one switch.tesla_pw2_off_grid_operation (Powerwall Off-Grid Operation) that you can use to initiate an action.

The Custom Tesla Integration has the following entities - not all of them will actually do something for you:

I only use the ‘Backup Reserve’ to drive the charging process of my PW2s.

And yes, it’s PW2, not PW3 - can’t help you with that one, sorry.

Thanks or taking the time to reply. Much appreciated.

The controls in your screen shot are what I am looking for.

I have realised that my installation is a PW2 with a Gateway 2. Do you know if the existing integration will work with a GW2/PW3? Or how I may find out ahead of comitting to going down the HA route?

Many thanks

Also (forgot to ask) please can you direct me to the custom integration you are referring to?