Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Group.all_lights in automation trigger

$
0
0

@rs443 wrote:

As the default group.all_lights are no longer automatically maintained, you are supposed to use entity_id: all in service: light.turn_on/off. Pretty straightforward. But how do you call all the lights when using them in an automation?

I have an automation that triggers when all lights are off, like this:

  - alias: Automation X
    trigger:
      - platform: state
        entity_id: group.all_lights
        to: 'off'
        for:
          minutes: 20

Is there an easy way to replace the group.all_lights here? Without manually create a group containing all lights.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>