I currently have my devices labelled as Lights where appropriate. I want to list all that are currently on.
I know that I really need to use label on the entity (e.g. switch.xxxx) but I don’t want to have to remember to label the entity when adding new devices. Applying a label to a device when adding new devices, is very “in your face”
Can anyone share a template that allows me to expand the results of label_devices(“Lights”) to get a list of entities that have a “state” = “on”
And I’ll add they generally speaking if you start doing voice, device information is not passed to assist… It’s ALL entities… Which means if you start doing it this way you’re going to be doomed to custom stuff in all your future stuff… (in fact I’m modifying some of the stuff I’m doing to work around some of it)
So yeah Fes template is correct. And you probably want to get into a better habit. (you can go to the entity list and filter down to the view you want say everything inthe kitchen, then hit the multiselect checkbox and the apply a label en masses to everything selected)
At last count I had approximately 2000 ents labeled with various labels form a list of approx 300 labels and use it as a global index.