question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Entity names are reset to default on reconfiguration

See original GitHub issue

Any (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:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Sandolutioncommented, Aug 26, 2022

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).

0reactions
bramstrokercommented, Aug 28, 2022

That’s good news, thanks for testing.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found