carohauta / oma-helen-ha-integration

Home Assistant integration for Oma Helen data
MIT License
35 stars 6 forks source link

Small details to integrate to HASS energy board #9

Closed atol71 closed 11 months ago

atol71 commented 1 year ago

Hi, One can find info needed to integrate sensors to energy dashboard: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics It is just some additional plugin values passed so that the statistics engine detects sensor type.

Hope it helps! When I have time I can type those in too into code....

atol71 commented 1 year ago

Hi, One needs to add:

      helen_smart_guarantee_energy_consumption:
        friendly_name: "This month energy consumption"
        unit_of_measurement: kWh
        device_class: energy
...

into helen_smart_guarantee_energy_consumption and include customization config include:

...
homeassistant:
  customize: !include customize.yaml
...

and in customize.yaml:

sensor.helen_smart_guarantee_energy_consumption:
  state_class: total
  last_reset: None

And it works with HASS energy board! Atol

carohauta commented 1 year ago

Hi and thanks for the tip!

I didn't know it would be that simple. I shall try it out and hopefully include it in the next release 👍

atol71 commented 1 year ago

Here have a look: https://privateer925-my.sharepoint.com/:i:/g/personal/samihulkko_quantum-black-hole_com/EasnxLkiwk5Am4k2bwpts08B69tk-ZRS3PvlISqYdUaHgA?e=JWajWO SH

carohauta commented 11 months ago

Energy dashboard is supported in the latest version