Tesla Fleet API and Energy Tab

I have Homeassistant core 2024.8.1 and I recently got 2 Tesla Powerwall Threes, but when I try to add the import export and battery data in the energy tab, it says “no matching statistics found”. Does anybody know what’s going on here?

It looks like the sensors aren’t configured as needed by the Energy tab: Frequently Asked Questions about home energy management - Home Assistant

Yeah, the energy tab needs watt-hours or kilowatt-hours while the fleet api endpoint used in the home assistant component is the live status endpoint (/api/1/energy_sites/{energy_site_id}/live_status) which returns the active amount of kilowatts coming from solar, batteries, and grid, with the calendar history endpoint (/api/1/energy_sites/{energy_site_id}/calendar_history?kind=energy&) home assistant could get the watt hours for the day, home assistant contributors would just have to add this to the code for the component to support this endpoint. This information is from: https://developer.tesla.com/docs/fleet-api/endpoints/energy

I just created a pull request to the home assistant core GitHub page here to resolve this issue.