Added some basic sun and weather based automations

This commit is contained in:
Jeffrey Stone
2017-01-02 14:36:17 -05:00
parent 8527318b20
commit 23b60592c0
8 changed files with 77 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
alias: "Cloudy, inside on"
trigger:
platform: time
after: '14:40:00'
condition:
- condition: numeric_state
entity_id: sensor.dark_sky_cloud_coverage
above: 90
- condition: state
entity_id: group.family
state: "home"
action:
service: script.inside_all_on

View File

@@ -0,0 +1,7 @@
alias: "Sunset Inside on"
trigger:
platform: sun
event: sunset
offset: "-01:00:00"
action:
service: script.inside_all_on

View File

@@ -0,0 +1,7 @@
alias: "Sunset Outside on"
trigger:
platform: sun
event: sunset
offset: "-00:30:00"
action:
service: script.outside_all_on

9
automations/test.yaml Normal file
View File

@@ -0,0 +1,9 @@
#trigger:
# platform: time
# Matches every hour at 5 minutes past whole
# minutes: 49
# seconds: 00
#action:
# service: switch.turn_on
# data:
# entity_id: switch.fireplace_lights