-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlights.yaml
93 lines (80 loc) · 2.48 KB
/
lights.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
- platform: template
lights:
theater_volume:
friendly_name: "TV Volume"
value_template: >-
{% if is_state('media_player.denon_avc_x3700h', 'on') %}
{% if state_attr('media_player.denon_avc_x3700h', 'is_volume_muted') %}
off
{% else %}
on
{% endif %}
{% else %}
off
{% endif %}
turn_on:
service: media_player.volume_mute
data:
entity_id: media_player.denon_avc_x3700h
is_volume_muted: false
turn_off:
service: media_player.volume_mute
data:
entity_id: media_player.denon_avc_x3700h
is_volume_muted: true
set_level:
service: media_player.volume_set
data_template:
entity_id: media_player.denon_avc_x3700h
volume_level: "{{ (brightness / 255 * 100)|int / 100 }}"
level_template: >-
{% if is_state('media_player.denon_avc_x3700h', 'on') %}
{{ (state_attr('media_player.denon_avc_x3700h', 'volume_level')|float * 255)|int }}
{% else %}
0
{% endif %}
- platform: switch
name: Laundry Outside Light
entity_id: switch.laundry_outdoor_switch
- platform: switch
name: Laundry Light
entity_id: switch.laundry_switch
- platform: switch
name: Madhushi Wardrobe Light
entity_id: switch.mad_wardrobe_switch
- platform: switch
name: Sameera Wardrobe Light
entity_id: switch.sam_wardrobe_switch
- platform: switch
name: Front Outdoor Light
entity_id: switch.front_outdoor_switch
- platform: switch
name: Front Patio Light
entity_id: switch.front_patio_switch
- platform: switch
name: Christmas Tree Light
entity_id: switch.smartplug3
- platform: switch
name: Outdoor Christmas Strip 1
entity_id: switch.smartplug7
- platform: switch
name: Hallway Light
entity_id: switch.hallway_switch
- platform: switch
name: Back Outdoor Light
entity_id: switch.back_outdoor_switch
- platform: switch
name: Master WC Light
entity_id: switch.sonoff_1000ddec78_2
- platform: group
name: "Master Pendant"
entities:
- light.master_pendant_1_mqtt
- light.master_pendant_2_mqtt
- platform: group
name: "Living Mood Lights"
entities:
- light.dining_table_lamp_mqtt
- light.living_tv_strip_mqtt
- light.kitchen_strip_mqtt
- light.living_floor_lamp_mqtt