From 10533ebe93bfafdd4b7dcf0c652a971c7e03538e Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Fri, 3 Feb 2017 14:16:38 -0500 Subject: [PATCH] Adding garage door automations --- automations/close_garage_at_nine.yaml | 16 ++++++++++++++++ automations/close_garage_on_away.yaml | 20 ++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 automations/close_garage_at_nine.yaml create mode 100644 automations/close_garage_on_away.yaml diff --git a/automations/close_garage_at_nine.yaml b/automations/close_garage_at_nine.yaml new file mode 100644 index 0000000..863ef4b --- /dev/null +++ b/automations/close_garage_at_nine.yaml @@ -0,0 +1,16 @@ +alias: "Close Garage at Nine" +trigger: + platform: time + hours: 21 + minutes: 00 + seconds: 00 +condition: + condition: state + entity_id: cover.garage_door + state: "open" +action: + - service: cover.close_cover + entity_id: cover.garage_door + - service: notify.notify + data: + message: "HA: Closing Garage Door" diff --git a/automations/close_garage_on_away.yaml b/automations/close_garage_on_away.yaml new file mode 100644 index 0000000..41f5078 --- /dev/null +++ b/automations/close_garage_on_away.yaml @@ -0,0 +1,20 @@ +alias: "Close Garage if we leave" +trigger: + - platform: state + entity_id: group.family + state: "not home" + - platform: state + entity_id: cover.garage_door + state: "open" +condition: + - condition: state + entity_id: cover.garage_door + state: "open" + - condition: state + entity_id: group.family + state: "not home" +action: + - service: notify.notify + data: + title: "No one home, Garage Open" + - service: cover.close_cover