Entity names are reset to default on reconfiguration
See original GitHub issueAny (manual) renaming of sensors is lost when reconfiguring a virtual sensor.
Configuration YAML:
powercalc:
energy_sensor_naming: "{} | Energy"
power_sensor_naming: "{} | Power"
create_utility_meters: true
utility_meter_types:
- daily
- weekly
- monthly
- yearly
Starting by adding a new Powercalc integration:
Source entity: Lighting | Living Room | Television
Calculation strategy: Linear
Min power: 1
Max power: 10
Auto-generated entity name: Lighting | Living Room | Television | Power daily
After this, I rename this new entity to follow my own naming convention:
Name: Lighting | Living Room | Television | Power | Daily
Then, I find out that the max power isn’t 10, but 20. So, I go to integrations, click on the Powercalc integration and hit Configure. I change the value and hit Submit. After that, the name is back to the first, Auto-generated name (as mentioned above)
Is this caused by the way HA deals with configuration and integrations? Or is this coming from the integration itself?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Entity names are reset to default on reconfiguration - PullAnswer
Names are still removed/reset when doing a reconfiguration. This goes for all naming, also energy and power (not only limited to utility).
Read more >App Reconfiguration
To reset to default values, follow these steps: In the app configuration page, under the Service Configuration, choose one of the options from...
Read more >How to reset DB field values to default while using Hibernate ...
You can set default value of fields in Entity. If value is not changed then assigned default values will be saved in DB....
Read more >Troubleshoot common connection issues to Azure SQL ...
Database reconfiguration events occur because of a planned event ... SQL logins use in-memory cache to get the database name to ID mapping....
Read more >Dynamic Kafka Configurations | Confluent Documentation
Changing Broker Configurations Dynamically¶ · bin/kafka-configs --bootstrap-server localhost:9092 --entity-type brokers --entity-name 0 --alter --add-config log.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Unfortunately, not fixed yet. Names are still removed/reset when doing a reconfiguration.
This goes for all naming, also energy and power (not only limited to utility).
That’s good news, thanks for testing.