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! ## Time to eat - Set it up!
###################################################################### ######################################################################
- alias: Mealtime - alias: Meal Time
trigger: trigger:
- platform: event - platform: event
event_type: mealtime event_type: mealtime
action: action:
- service: light.turn_on - service: light.turn_on
entity_id: entity_id:
- group.dinette_lights - group.dinette_lights
- group.kitchen_lights - group.kitchen_lights
- service: light.turn_off - service: light.turn_off
entity_id: entity_id:
- group.living_room_lights - group.living_room_lights

View File

@@ -1,62 +1,62 @@
###################################################################### ######################################################################
## TV Time at sunset or 8pm. Whichever is later. ## TV Time at sunset or 8pm. Whichever is later.
###################################################################### ######################################################################
- alias: TV Time - alias: TV Time
trigger: trigger:
- platform: sun - platform: sun
event: sunset event: sunset
offset: '+01:00:00' offset: '+01:00:00'
- platform: event - platform: event
event_type: tv_time event_type: tv_time
- platform: state - platform: state
entity_id: sensor.samsungtv entity_id: sensor.samsungtv
state: 'Online' state: 'Online'
- platform: time - platform: time
after: '20:00:00' after: '20:00:00'
condition: condition:
condition: and condition: and
conditions: conditions:
- condition: state - condition: state
entity_id: group.family entity_id: group.family
state: home state: home
- condition: state - condition: state
entity_id: sensor.samsungtv entity_id: sensor.samsungtv
state: 'Online' state: 'Online'
- condition: state - condition: state
entity_id: sun.sun entity_id: sun.sun
state: 'below_horizon' state: 'below_horizon'
- condition: state - condition: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'off' state: 'off'
action: action:
service: scene.turn_on service: scene.turn_on
entity_id: scene.living_room_tv_time entity_id: scene.tv_time
###################################################################### ######################################################################
## Turn off the Living room lights when the TV is turned off. ## Turn off the Living room lights when the TV is turned off.
###################################################################### ######################################################################
- alias: TV Time off - alias: TV Time off
trigger: trigger:
- platform: state - platform: state
entity_id: sensor.samsungtv entity_id: sensor.samsungtv
state: 'Offline' state: 'Offline'
condition: condition:
condition: and condition: and
conditions: conditions:
- condition: state - condition: state
entity_id: sun.sun entity_id: sun.sun
state: 'below_horizon' state: 'below_horizon'
- condition: state - condition: state
entity_id: input_boolean.guest_mode entity_id: input_boolean.guest_mode
state: 'off' state: 'off'
action: action:
service: light.turn_off service: light.turn_off
entity_id: entity_id:
- group.living_room - group.living_room
- group.living_room_accents - group.living_room_accents