cdpuk / givenergy-local

Home Assistant integration for local access to GivEnergy inverter and battery systems
MIT License
53 stars 14 forks source link

The "PV Power" sensor is unavailable on the Home Assistant Energy dashboard #57

Closed michaelmarconi closed 1 year ago

michaelmarconi commented 1 year ago

Hi, your GE Local integration is working beautifully, however the sensor pv_power doesn't appear to available as a sensor when I try to use it to configure my solar panels in the Home Assistant Energy dashboard (see image describing available sensors below).

Configure solar panels screenshot

The HA dropdown suggests pointing you to https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics, however I've taken a look at the code and spotted the state_class in the sensors defined at: https://github.com/cdpuk/givenergy-local/blob/42410fa02b826a99f92515cfecca44a7a15000a6/custom_components/givenergy_local/sensor.py#L150

Have you been able to use your integration to power the Energy dashboard?

cdpuk commented 1 year ago

The HA energy dashboard only supports energy values, not power values. Your screenshot shows the "PV Energy" sensors for this reason. Some of my config: image