-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlights.yaml
More file actions
51 lines (45 loc) · 1.28 KB
/
lights.yaml
File metadata and controls
51 lines (45 loc) · 1.28 KB
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
- platform: tplink
host: 192.168.0.160
name: Bedroom Color
- platform: tplink
host: 192.168.0.170
name: Bedroom White
- platform: tplink
host: 192.168.0.161
name: Living Room Color
- platform: tplink
host: 192.168.0.172
name: Living Room Reading Light
- platform: tplink
host: 192.168.0.171
name: Living Room White
- platform: yeelight
devices:
192.168.0.180:
name: TV Backlight
- platform: template
lights:
bar_accent_light:
friendly_name: Bar Accent Light
value_template: "{{ 'on' if is_state('switch.bar_accent_light', 'on') else 'off' }}"
turn_on:
- service: switch.turn_on
entity_id: switch.bar_accent_light
turn_off:
- service: switch.turn_off
entity_id: switch.bar_accent_light
ceiling_fan_light:
friendly_name: Ceiling Fan Light
turn_on:
- service: script.turn_on_ceiling_fan_light
turn_off:
- service: script.turn_off_ceiling_fan_light
kitchen_light:
friendly_name: Kitchen Light
value_template: "{{ 'on' if is_state('switch.kitchen_light', 'on') else 'off' }}"
turn_on:
- service: switch.turn_on
entity_id: switch.kitchen_light
turn_off:
- service: switch.turn_off
entity_id: switch.kitchen_light