Lighting 'scenes' hidden in automation

This commit is contained in:
CCOSTAN
2016-10-30 20:00:26 +00:00
parent f8dfcab6ae
commit d670e6fec0
3 changed files with 74 additions and 0 deletions

38
automation/ghost_race.yaml Executable file
View File

@@ -0,0 +1,38 @@
######################################################################
## TV Time at sunset or 8pm. Whichever is later.
######################################################################
- alias: TV Time
trigger:
- platform: sun
event: sunset
offset: '+01:00:00'
- platform: event
event_type: tv_time
- platform: state
entity_id: sensor.samsungtv
state: Online
- platform: time
after: '20:00:00'
condition:
condition: and
conditions:
- condition: state
entity_id: group.family
state: home
- condition: state
entity_id: sensor.samsungtv
state: Online
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
- condition: time
after: '20:00:00'
action:
service: scene.turn_on
entity_id: scene.living_room_tv_time

18
automation/mealtime.yaml Executable file
View File

@@ -0,0 +1,18 @@
######################################################################
## Time to eat - Set it up!
######################################################################
- alias: Mealtime
trigger:
- platform: event
event_type: mealtime
action:
- service: light.turn_on
entity_id:
- group.dinette
- group.kitchen
- service: light.turn_off
entity_id:
- light.office_lamp
- group.living_room

18
automation/work.yaml Executable file
View File

@@ -0,0 +1,18 @@
######################################################################
## Time to work - Set it up!
######################################################################
- alias: Time to Work
trigger:
- platform: event
event_type: work
action:
- service: light.turn_off
entity_id:
- group.dinette
- group.kitchen
- group.living_room
- service: light.turn_on
entity_id:
- light.office_lamp