#Switch Turn On/Off Action Doesn't work with Labels?

1 messages · Page 1 of 1 (latest)

charred pecan
naive wedge
#

Have you restarted HA after adding that label to entities?

charred pecan
#

many times...

naive wedge
#

when you look at the label in template editor using label_entities do they appear?

charred pecan
#

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

naive wedge
#

Then just use a template in target with the code you used in template editor.

#

put it in the entity_id field

charred pecan
#

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

naive wedge
#

using label_entities template wouldn't be hardcoding it though...

#

it will get you what you're trying to do

charred pecan
#

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?

naive wedge
#

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

charred pecan
#

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

naive wedge
#

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