mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-18 11:16:37 +00:00
Lighting 'scenes' hidden in automation
This commit is contained in:
38
automation/ghost_race.yaml
Executable file
38
automation/ghost_race.yaml
Executable 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
18
automation/mealtime.yaml
Executable 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
18
automation/work.yaml
Executable 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
|
Reference in New Issue
Block a user