I have been looking for a way to automatically create groups based on types for a bit now… Made a post circa 2021 to ask the same question:
forward 2024, we now have labels… Is it possible to make an automation with for example, when motion is detected turn off all the light entities in the room or turn off all the light entities that have the label inside for example.
Why do I find this useful. Every few months or so, I may add a motion sensor, or move it, and this may cause me to rename it. when I rename it, all the automations stop working… I then go in each files and rename them. Some automations/UI managed entities need to be changed in the UI and then the files managed entities then need to be changed separately…
Does someone have a good alernative to automatically created groups?
The way I use my setup, this would be for me the ultimate hack… select all entities of this label that go from on to off as a trigger… and then turn off the lights in that room!
Not sure if it’s quite what I’m looking for…spook will automatically add labels to entities from what it seems, i’m trying to create groups based on a label…
Ahh, no idea how to do that inside HA.
I use Node Red for that, sort of, because it is not a group in HA, but it can be acting like a group trough Node Red.