Updated automations

This commit is contained in:
Jeffrey Stone 2017-01-05 11:14:03 -05:00
parent 6b991f7001
commit fde0b87dcc
14 changed files with 171 additions and 12 deletions

View File

@ -1,6 +1,21 @@
# General
- !include automations/good_morning.yaml
- !include automations/good_night.yaml
# Sun Based
- !include automations/sunset_outside_on.yaml
- !include automations/sunset_inside_on.yaml
- !include automations/sunset_outside_off.yaml
- !include automations/sunset_inside_off.yaml
# Weather Based
- !include automations/cloudy_inside_on.yaml
- !include automations/cloudy_inside_on_home.yaml
# Jeff
- !include automations/jeff_manheim_enter.yaml
- !include automations/jeff_manheim_leave.yaml
- !include automations/jeff_home_enter.yaml
- !include automations/jeff_home_leave.yaml
#- !include automations/jeff_stationary.yaml
#- !include automations/jeff_driving.yaml
#- !include automations/jeff_walking.yaml
#- !include automations/jeff_driving.yaml
# Zone

View File

@ -1,7 +1,7 @@
alias: "Cloudy, inside on"
alias: "Cloudy, inside on if home"
trigger:
platform: time
after: '14:40:00'
after: '14:00:00'
condition:
- condition: numeric_state
entity_id: sensor.dark_sky_cloud_coverage
@ -10,4 +10,7 @@ condition:
entity_id: group.family
state: "home"
action:
service: script.inside_all_on
- service: notify.notify
data:
title: "It's Cloudy"
message: "It's Cloudy, you might need more light"

View File

@ -0,0 +1,12 @@
alias: "Good Morning"
trigger:
platform: sun
event: sunrise
offset: "-00:30:00"
action:
- service: scene.turn_on
entity_id: scene.livingroom_normal
- service: notify.notify
data:
title: 'Anchorage House'
message: "Good Morning, Anchorage House is up and online."

View File

@ -0,0 +1,13 @@
alias: "Good Night"
trigger:
platform: time
hours: 22
minutes: 00
seconds: 00
action:
- service: scene.turn_on
entity_id: scene.livingroom_night
- service: notify.notify
data:
title: 'Anchorage House'
message: "Shutting down for the night, Good Night"

View File

@ -0,0 +1,14 @@
alias: 'Jeff Is Driving'
trigger:
platform: numeric_state
entity_id: sensor.jeff_velocity
above: 8
condition:
condition: state
entity_id: device_tracker.owntracks_jeffreysphone
state: "not_home"
action:
- service: input_select.select_option
data:
entity_id: input_select.jeff_status
option: driving

View File

@ -0,0 +1,15 @@
alias: "Jeff Arrives Home"
trigger:
platform: zone
event: enter
zone: zone.home
entity_id: device_tracker.jeffreysiphone
action:
- service: notify.notify
data:
title: 'Anchorage House'
message: "Jeff is home!"
- service: input_select.select_option
data:
entity_id: input_select.jeff_status
option: stationary

View File

@ -0,0 +1,15 @@
alias: "Jeff Leaves Home"
trigger:
platform: zone
event: leave
zone: zone.home
entity_id: device_tracker.jeffreysiphone
action:
- service: notify.notify
data:
title: 'Anchorage House'
message: "Jeff left home"
- service: input_select.select_option
data:
entity_id: input_select.jeff_status
option: moving

View File

@ -0,0 +1,15 @@
alias: "Jeff Arrives At Manheim"
trigger:
platform: zone
event: enter
zone: zone.manheim
entity_id: device_tracker.jeffreysiphone
action:
- service: notify.notify
data:
title: 'Anchorage House'
message: "Jeff arrived at Manheim"
- service: input_select.select_option
data:
entity_id: input_select.jeff_status
option: stationary

View File

@ -0,0 +1,15 @@
alias: "Jeff Leaves Manheim"
trigger:
platform: zone
event: leave
zone: zone.manheim
entity_id: device_tracker.jeffreysiphone
action:
- service: notify.notify
data:
title: 'Anchorage House'
message: "Jeff left Manheim"
- service: input_select.select_option
data:
entity_id: input_select.jeff_status
option: moving

View File

@ -0,0 +1,10 @@
alias: 'Jeff Is Stationary'
trigger:
platform: numeric_state
entity_id: sensor.jeff_velocity
below: 2
action:
- service: input_select.select_option
data:
entity_id: input_select.jeff_status
option: stationary

View File

@ -0,0 +1,15 @@
alias: 'Jeff Is Walking'
trigger:
platform: numeric_state
entity_id: sensor.jeff_velocity
above: 2
below: 8
condition:
condition: state
entity_id: device_tracker.owntracks_jeffreysphone
state: "not_home"
action:
- service: input_select.select_option
data:
entity_id: input_select.jeff_status
option: walking

View File

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

View File

@ -0,0 +1,6 @@
alias: "Sunset Outside off"
trigger:
platform: sun
event: sunrise
action:
service: script.outside_all_off

View File

@ -1,9 +1,13 @@
#trigger:
# platform: time
alias: test
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
minutes: 20
seconds: 00
action:
##service: scene.turn_on
#entity_id: scene.livingroom_night
- service: notify.notify
data:
title: 'This is a test'
message: "his is a test"