living-room-sunrise-off.yaml 360 Bytes
Newer Older
Erick Hitter's avatar
Erick Hitter committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
alias: 'Turn off living room at sunrise'
trigger:
  platform: sun
  event: sunrise
  offset: "+00:60:00"
condition:
  condition: or
  conditions:
    - condition: state
      entity_id: light.endtable
      state: 'on'
    - condition: state
      entity_id: light.corner_table
      state: 'on'
action:
  service: light.turn_off
  entity_id: group.living_room