lights-off-when-alarm-away.yaml 333 Bytes
Newer Older
Erick Hitter's avatar
Erick Hitter committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
alias: Turn off lights when alarm is set to away
trigger:
  - platform: state
    entity_id: alarm_control_panel.shm
    to: 'armed_away'
action:
  service: homeassistant.turn_off
  entity_id:
    - group.master_bedroom
    - group.master_bathroom
    - group.living_room
    - group.dining_area
    - group.office
    - group.other