nordicopen / easee_hass

Custom component for Easee EV charger integration with Home Assistant
209 stars 34 forks source link

Energy sensor change to accommodate use in HA Energy Management dashboard #129

Closed knudsvik closed 3 years ago

knudsvik commented 3 years ago

It would be awesome to be able to read the power usage charging EV's given the new energy management features released in Home Assistant 2021.8.

rasssta commented 3 years ago

More info: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

olalid commented 3 years ago

In contrast to what the subject says, it is actually the energy sensor(s) that requires a change, the power sensor is not used for this purpose. Until this is fixed, it is possible to feed a utility meter from the easee integration and use the utility meter in the energy card in HA.

knudsvik commented 3 years ago

As far as I can see, neither current power usage (W) or energy (kWh) is available today in the Easee integration. Both of these can be used for energy management with different effort. Ideally both should be available!

olalid commented 3 years ago

Yes both power and energy sensors are available. They are not enabled by default, but they can be turned on in the configuration dialog of the integration. What is missing is the correct attributes that it needs to have to be considered an energy sensor capable of acting as input to as described in the link posted by rasssta above, not the sensor itself.

knudsvik commented 3 years ago

Ahh, look at that. I was not aware, thanks. Should I just close this issue or do we want to rephrase it to cover the correct setup of attributes?

rasssta commented 3 years ago

Just change the title :-)

olalid commented 3 years ago

Closing since this is now implemented.