mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-18 23:36:11 +00:00
Updated Labels for easier Alexa intergration. Getting rid of IFTTT basically.
This commit is contained in:
parent
995c5e3477
commit
67949a092b
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user