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

Simple time based and light group based ruled

$
0
0

@eleson wrote:

I am a newbie exploring rules, and I don’t get light groups to work.

This works:

Configuration.yaml:
group: !include groups.yaml
light: !include lights.yaml
automation: !include automations.yaml

automations.yaml
- id: id_LivingRoomEvening
  alias: LivingRoomEvening
  trigger:
   - at: '23:36'
     platform: time
  action:
    service: light.turn_off
    entity_id: light.zipato_bulb_2_level

But this doesn’t: (trying to use lights group)

Configuration.yaml:
group: !include groups.yaml
light: !include lights.yaml
automation: !include automations.yaml

automations.yaml
- id: id_LivingRoomEvening
  alias: LivingRoomEvening
  trigger:
   - at: '23:36'
     platform: time
  action:
    service: light.turn_off
    entity_id: light.Outdoor_allLamps

lights.yaml
    - platform: group
      name: Outdoor_allLamps
      entities:
       - light.zipato_bulb_2_level

Why doesn’t the second alternative work and how should it be written?

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95278

Trending Articles



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