If we have guests, let there be light!

This commit is contained in:
CCOSTAN
2016-10-18 01:09:31 +00:00
parent 6293c7a50b
commit 7c66f96cc6
6 changed files with 35 additions and 30 deletions

View File

@@ -15,13 +15,14 @@
state: not_home state: not_home
condition: condition:
- condition: state condition: and
entity_id: group.family conditions:
state: not_home - condition: state
- condition: entity_id: group.family
platform: state state: not_home
entity_id: input_boolean.guest_mode - condition: state
state: 'off' entity_id: input_boolean.guest_mode
state: 'off'
action: action:
- service: light.turn_off - service: light.turn_off

View File

@@ -1,4 +1,21 @@
# Here is a collection of automations for logging IFTTT supported devices in LogBook. ###################################
## LOG IFTTT Stuff - Rachio
###################################
- alias: 'Log Sprinkler Activity'
hide_entity: True
trigger:
- platform: event
event_type: rachio_water_stops
action:
service: logbook.log
data:
name: "Rachio Sprinkler:"
message: "The Lawn was watered just now."
###################################
## LOG IFTTT Stuff - SkyBell
###################################
- alias: 'Log SkyBell Pressed Activity' - alias: 'Log SkyBell Pressed Activity'
hide_entity: True hide_entity: True

View File

@@ -12,11 +12,13 @@
state: home state: home
condition: condition:
- condition: state condition: and
entity_id: sun.sun conditions:
state: 'below_horizon' - condition: state
- condition: time entity_id: sun.sun
before: '23:45' state: 'below_horizon'
- condition: time
before: '23:45'
action: action:
service: light.turn_on service: light.turn_on

View File

@@ -1,13 +0,0 @@
# Here is a collection of automations for logging IFTTT supported devices in LogBook.
- alias: 'Log Sprinkler Activity'
hide_entity: True
trigger:
- platform: event
event_type: rachio_water_stops
action:
service: logbook.log
data:
name: "Rachio Sprinkler:"
message: "The Lawn was watered just now."

View File

@@ -21,8 +21,7 @@
- condition: state - condition: state
entity_id: sun.sun entity_id: sun.sun
state: 'below_horizon' state: 'below_horizon'
- condition: - condition: state
platform: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'off' state: 'off'

View File

@@ -10,8 +10,7 @@
- condition: state - condition: state
entity_id: sun.sun entity_id: sun.sun
state: 'below_horizon' state: 'below_horizon'
- condition: - condition: state
platform: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'off' state: 'off'