Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.0.14 - New Entity Name - Should be breaking change. #328

Open
Nornode opened this issue May 28, 2023 · 5 comments
Open

Version 0.0.14 - New Entity Name - Should be breaking change. #328

Nornode opened this issue May 28, 2023 · 5 comments

Comments

@Nornode
Copy link

Nornode commented May 28, 2023

Version of the custom_component

0.0.14

Homeassistant version

2032.05.2

Configuration

UI Configured

Describe the bug

A clear and concise description of what the bug is.

Updated to 0.0.14 and I have suddenly one "Unavailable" integration with the old entity ID and yet another new with a new Entity ID.

OLD: sensor.nordpool_kwh_fi_eur_3_10_01
NEW: sensor.nordpool_kwh_fi_eur_3_10_024

Why? - This breaks all my automations and integrations (to Powersaver.no)

Debug log

@ThePatricide
Copy link

ThePatricide commented May 29, 2023

This is exactly what happened to me after a restart. I thought something was wrong with the issue #326, but I finally found out the component loads everything fine, but the name has changed. Only thing I did was restart Home Assistant. Which I had done previously of course as well, without the name changing.

@granholm
Copy link

granholm commented May 29, 2023

This is nothing new, and is mentioned in the Readme.

Tip: By default, the integration will create a device with the name nordpool_<energy_scale>_<region>_<currency>_<some-numbers>. It is recommended to rename the device and all its entities to nordpool. If you need to recreate your sensor (for example, to change the additional cost), all automations and dashboards keep working.

I agree that it's a bit annoying sometimes, but it is that way by design.

@ThePatricide
Copy link

Can we also make it possible via YAML? As I prefer to have the configuration in YAML, to be able to set new taxes and tariffs ready at for example a new year.

@koskila
Copy link

koskila commented Jun 11, 2023

I was puzzled as to what's wrong with my template entities and hence some automations breaking, but turns out it's the entity changing names again. Would be lovely to have some sort of mapping or override in the YAML config, but I guess just renaming the entities using the UI will do the trick, too?

@Hellowlol
Copy link
Collaborator

Correct, change the id using the ui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants