As the subject is there a way to create automatically a lights group to have an entity like light.all_lights ?
For the turn_on
, turn_off
, and toggle
services this is already built-in…
service: light.turn_on
target:
entity_id: all
But, be careful as there are often entities within the light domain that you might not expect or desire to have controlled this way. This works with the switch.turn_on/off/toggle
services as well.
Yes, i already know this, but what i need is an entity called light.all_lights. I can create it manually adding all the lights in that entity, but if there is something that does it automatically like a template or something…
Unclear why you need an light.all_lights
entity but I suggest you look into the Template Light integration.
Thanks, solved…