Updated Labels for easier Alexa intergration. Getting rid of IFTTT basically.

This commit is contained in:
CCOSTAN 2017-02-15 18:06:51 +00:00
parent 995c5e3477
commit 67949a092b
2 changed files with 79 additions and 79 deletions

View File

@ -1,17 +1,17 @@
######################################################################
## Time to eat - Set it up!
######################################################################
- alias: Mealtime
trigger:
- platform: event
event_type: mealtime
action:
- service: light.turn_on
entity_id:
- group.dinette_lights
- group.kitchen_lights
- service: light.turn_off
entity_id:
- group.living_room_lights
######################################################################
## Time to eat - Set it up!
######################################################################
- alias: Meal Time
trigger:
- platform: event
event_type: mealtime
action:
- service: light.turn_on
entity_id:
- group.dinette_lights
- group.kitchen_lights
- service: light.turn_off
entity_id:
- group.living_room_lights

View File

@ -1,62 +1,62 @@
######################################################################
## 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'
action:
service: scene.turn_on
entity_id: scene.living_room_tv_time
######################################################################
## Turn off the Living room lights when the TV is turned off.
######################################################################
- alias: TV Time off
trigger:
- platform: state
entity_id: sensor.samsungtv
state: 'Offline'
condition:
condition: and
conditions:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
action:
service: light.turn_off
entity_id:
- group.living_room
- group.living_room_accents
######################################################################
## 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'
action:
service: scene.turn_on
entity_id: scene.tv_time
######################################################################
## Turn off the Living room lights when the TV is turned off.
######################################################################
- alias: TV Time off
trigger:
- platform: state
entity_id: sensor.samsungtv
state: 'Offline'
condition:
condition: and
conditions:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
action:
service: light.turn_off
entity_id:
- group.living_room
- group.living_room_accents