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

Change how entity id is created #27

Closed toreamun closed 2 years ago

toreamun commented 2 years ago

Entity ID is now based on entity name. This is a too strong binding that makes it difficult to change names. This also makes entity id a bit long in some cases.

Entity id should be based on meter manufacturer and measure id.

Existing sensor entity id should be migrated at startup using HA entity migration functionality.

toreamun commented 2 years ago

https://github.com/toreamun/amshan-homeassistant/releases/tag/2022.2.1