-
-
Notifications
You must be signed in to change notification settings - Fork 505
/
tv_time_on_and_off.yaml
executable file
·55 lines (49 loc) · 1.41 KB
/
tv_time_on_and_off.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
######################################################################
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# TV Time at sunset or 8pm. Whichever is later.
######################################################################
- alias: TV Time
id: 6e59d312-661f-40da-bb08-416f2e86b566
trigger:
- platform: state
entity_id: input_boolean.TV_time
to: 'on'
from: 'off'
- platform: state
entity_id: sun.sun
to: 'below_horizon'
from: 'above_horizon'
- platform: state
entity_id: media_player.living_room_ultra
to: 'playing'
- platform: time
at: '20:00:00'
condition:
condition: and
conditions:
- condition: state
entity_id: group.family
state: home
- 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'
- condition: state
entity_id: media_player.living_room_ultra
state: 'playing'
action:
- service: input_boolean.turn_off
entity_id: input_boolean.tv_time
- service: light.turn_off
entity_id:
- light.dinette_lights
- light.kitchen_lights
- service: switch.turn_on
entity_id: group.kitchen_Accents
- service: scene.turn_on
entity_id: scene.tv_time