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

Unstable entity_id values #60

Open
aschw opened this issue Jun 6, 2024 · 2 comments
Open

Unstable entity_id values #60

aschw opened this issue Jun 6, 2024 · 2 comments

Comments

@aschw
Copy link

aschw commented Jun 6, 2024

I've had some issues lately whereby all of the entity ids change.

For example, yesterday I changed the subnet of my local network. This changed the IP of my Artnet device. I changed the host IP in configuration.yaml, restarted home assistant, and all of my entitiy IDs changed. For example, if I used to have an entity id called "light.foo", then I now have an entity ID called "light.foo_2". light.foo now shows "This entity is no longer being provided by the artnet_led integration. If the entity is no longer in use, delete it in settings."

I don't know if the underlying cause was the IP change or if it was the IP change.

This also happened a couple of months ago. I think it was a result of updating the version of the add-on and restarting home assistant. That time, I solved the problem by manually deleting all of the old entities and modifying all of the scenes that referred to them. This time around, I'm hoping to figure out the underlying cause.

I'm running v0.1.21

Thanks!

@Breina
Copy link
Owner

Breina commented Jun 12, 2024

Yeah sorry, past Breina made the mistake of coupling the unique_id's to the IP. :(

image

Fixing this will break all existing installations, so I'm holding off fixing this until the next big revision.

@Breina
Copy link
Owner

Breina commented Jun 12, 2024

If have a local DNS, you can use the hostname though, so the underlying IP address is transparent.

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

2 participants