Anyone able to confirm https://github.com/home-assistant/core/issues/141413
Seems the switch turn on/off action allows you to target a label but doesn't work when you do?
#Switch Turn On/Off Action Doesn't work with Labels?
1 messages · Page 1 of 1 (latest)
Have you restarted HA after adding that label to entities?
many times...
when you look at the label in template editor using label_entities do they appear?
yeah. Exactly the same works fine with lights turn on/off but not switches.
It does filter down to only valid labels (ie. switch turn on only allows you to select labels that only contain switches and light turn on allows you only select labels that only contain lights). Automation says it runs fine but switches never change.
The bit that is problematic I think is if I press <> to expand the label to the individual entities it only removes the label and doesn't add the entities show above
These swiches are coming from Frigate automation but I have tried with switches coming from MQTT and other integrations with the same result
Then just use a template in target with the code you used in template editor.
put it in the entity_id field
yeah I currently have the entities hard coded as targets but it kind of defeats the point of labels. Was looking to confirm if other people have this issue to update bug report
using label_entities template wouldn't be hardcoding it though...
it will get you what you're trying to do
true that is better but still would like it to be fixed for everyone 🙂 Have you tried to add a label to a switch and see if it works for you?
No, but I have no interest, I'd rather use templates. You wrote up the issue, so at this point all you should really be doing is trying to get your setup to work
My setup is working (but I will swap to a template instead of hard coded switches) but this should work and I think is a bug. Just trying to rule out my system being the cause so HA can be more usable for everyone
Yes, and you wrote up the issue. Your job is done at this point on that front unless you want to spear head the fix