mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-15 10:44:41 +00:00
Adding garage door automations
This commit is contained in:
16
automations/close_garage_at_nine.yaml
Normal file
16
automations/close_garage_at_nine.yaml
Normal file
@@ -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"
|
20
automations/close_garage_on_away.yaml
Normal file
20
automations/close_garage_on_away.yaml
Normal file
@@ -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
|
Reference in New Issue
Block a user