mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 19:06:53 +00:00
Updated Labels for easier Alexa intergration. Getting rid of IFTTT basically.
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user