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
7 changed files with 59 additions and 54 deletions

View File

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

42
automation/ifttt_logger.yaml Executable file
View File

@ -0,0 +1,42 @@
###################################
## 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'
hide_entity: True
trigger:
- platform: event
event_type: skybell_pressed
action:
service: logbook.log
data:
name: "SkyBell HD Doorbell:"
message: "Someone Pressed the Doorbell."
- alias: 'Log SkyBell Motion detection'
hide_entity: True
trigger:
- platform: event
event_type: skybell_motion
action:
service: logbook.log
data:
name: "SkyBell HD Doorbell:"
message: "Someone is by the door."

View File

@ -12,11 +12,13 @@
state: home
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: time
before: '23:45'
condition: and
conditions:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: time
before: '23:45'
action:
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

@ -1,25 +0,0 @@
# Here is a collection of automations for logging IFTTT supported devices in LogBook.
- alias: 'Log SkyBell Pressed Activity'
hide_entity: True
trigger:
- platform: event
event_type: skybell_pressed
action:
service: logbook.log
data:
name: "SkyBell HD Doorbell:"
message: "Someone Pressed the Doorbell."
- alias: 'Log SkyBell Motion detection'
hide_entity: True
trigger:
- platform: event
event_type: skybell_motion
action:
service: logbook.log
data:
name: "SkyBell HD Doorbell:"
message: "Someone is by the door."

View File

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

View File

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