mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-20 16:21:58 +00:00
EASY aCCESS TO 'SCENES'
This commit is contained in:
parent
d670e6fec0
commit
f7adab842a
@ -1,38 +0,0 @@
|
||||
######################################################################
|
||||
## 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
|
@ -2,3 +2,4 @@ home_modes:
|
||||
entities:
|
||||
- input_boolean.guest_mode
|
||||
- scene.living_room_tv_time
|
||||
- automation.mealtime
|
||||
|
Loading…
x
Reference in New Issue
Block a user