From 3b68d0511d9307966a5fdbe5e438c678385ad86f Mon Sep 17 00:00:00 2001
From: Erick Hitter <services@ethitter.com>
Date: Sat, 20 Aug 2016 20:09:12 -0700
Subject: [PATCH] Sync with upstream

1983551
---
 automations/lights-off-when-alarm-away.yaml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 automations/lights-off-when-alarm-away.yaml

diff --git a/automations/lights-off-when-alarm-away.yaml b/automations/lights-off-when-alarm-away.yaml
new file mode 100644
index 0000000..25da64c
--- /dev/null
+++ b/automations/lights-off-when-alarm-away.yaml
@@ -0,0 +1,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
-- 
GitLab