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

Unable to remove old/removed light from AL #278

Closed
Stooovie opened this issue Apr 22, 2022 · 10 comments
Closed

Unable to remove old/removed light from AL #278

Stooovie opened this issue Apr 22, 2022 · 10 comments

Comments

@Stooovie
Copy link

If you remove a light entity from HA that was previously a part of Adaptive Lighting group, you can't remove it from the group, nor can you do any changes to the group (a "device" in HA implementation). Any change to the the group leads to User input malformed: light.[MISSING_ENTITY] is not a valid option for dictionary value @ data['lights']. You then have to delete the AL group/device and set it up again without the missing light entity.

@SamJongenelen
Copy link

Same, subscribing

@peterbaker
Copy link

Yep, been a thing for a while I've noticed.

@Gitarcitano
Copy link

Same here, I have repaired my Zigbee lights and renamed entities and now I can't remove the old ones

@kmplngj
Copy link

kmplngj commented Jul 5, 2022

+1

@mdehaas
Copy link

mdehaas commented Jul 7, 2022

To workaround the issue I joined a spare light to the group with the old entity_id and removed it from the configuration. That saved me a lot of tweaking to the new configuration.

Most friendly solution (IMHO) would be to populate the dropdown with all entries already in the configuration regardless of them being present. Optionally they could be highlighted in red or something to attract attention.

@quaint-engineer
Copy link

If you navigate to the integrations page, there is an "Adaptive Lighting" integration where it will list all groups. You can select the old ones and delete it from there.

@peterbaker
Copy link

If you navigate to the integrations page, there is an "Adaptive Lighting" integration where it will list all groups. You can select the old ones and delete it from there.

The configuration page for the doesn't list the old groups if the entity is gone from HA, that's the crux of this issue. You can't save the configuration if an entity is no longer valid, but you can't remove the entity from the configuration because it doesn't show up to be unchecked.

@peter--s
Copy link

peter--s commented Oct 7, 2022

I left the following comment in #287 (since it seems to have received more attention):
This is the same as #278 (which gives a much better description), #236, #220 and seems to have started with 2021.11's dropdown list (see #213), which is addressed in home-assistant/frontend#10608 - unfortunately without any obvious reaction for almost one year.
At least home-assistant/frontend#10608 (comment) pointed me to editing /config/.storage/core.config_entries.

@danaues
Copy link
Contributor

danaues commented Oct 28, 2022

I've posted a PR to fix this issue.
#350

@basnijholt
Copy link
Owner

Closed by #350 thanks to @danaues 🎉

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

No branches or pull requests

10 participants