toreamun / amshan-homeassistant

Home Assistant integrasjon for strømmålere (AMS/HAN/P1). Integrasjonen støter både streaming (serieport/TCP-IP) og MQTT (Tibber Pulse, energyintelligence.se etc)
MIT License
146 stars 9 forks source link

Option to change units #40

Closed tmjo closed 1 year ago

tmjo commented 2 years ago

Hi! Just started using this integration together with local Tibber Pulse through MQTT, seems to be working great! Thanks for your awesome work here!

Would you consider adding an option to choose kW and kVAR instead of W and VAR as units?

Thanks again!

toreamun commented 1 year ago

My approach has been to use the native unit of measurement since this concept was introduces in HASS. My hope was that the introduction of native unit in HASS sensor was the first step in making the display unit more configurable in HASS. You can currently use a template sensor to do the conversion into a new entity.

tmjo commented 1 year ago

Sure, I know and thanks for your reply. I agree and I understand your point of view. I'm also hoping that there will be a native way of changing units, and it seems like it is finding it's way. Started with weather units, and more and more seem to follow. Let's hope it finds it way to power- and energy sensors as well! Ref here.

tmjo commented 1 year ago

Closing issue as we hope for native support of unit conversion.