forked from PMaxx-Gaming/hass_config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
switches.yaml
100 lines (99 loc) · 2.99 KB
/
switches.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
94
95
96
97
98
99
100
- platform: template
switches:
pool_pump:
value_template: "{{ is_state('switch.pool_pump', 'on') }}"
friendly_name: Pool Pump
turn_on:
service: switch.turn_on
entity_id: switch.pool_pump
turn_off:
service: switch.turn_off
entity_id: switch.pool_pump
- platform: template
switches:
deck_lights:
value_template: "{{ is_state('switch.deck_lights', 'on') }}"
friendly_name: Pool Deck Lights
turn_on:
service: switch.turn_on
entity_id: switch.deck_lights
turn_off:
service: switch.turn_off
entity_id: switch.deck_lights
- platform: template
switches:
outdoor_speakers:
value_template: "{{ is_state('switch.outdoor_speakers', 'on') }}"
friendly_name: Outdoor Speakers
turn_on:
service: switch.turn_on
entity_id: switch.outdoor_speakers
turn_off:
service: switch.turn_off
entity_id: switch.outdoor_speakers
- platform: template
switches:
update_speedtest:
value_template: "{{ is_state('switch.update_speedtest', 'on') }}"
friendly_name: Update Speedtest
turn_on:
- service: switch.turn_on
entity_id: switch.update_speedtest
turn_off:
service: switch.turn_off
entity_id: switch.update_speedtest
- platform: template
switches:
livingroom_lights:
value_template: "{{ is_state('group.livingroom', 'on') }}"
friendly_name: Livingroom Lights
turn_on:
service: homeassistant.turn_on
entity_id: group.livingroom
turn_off:
service: homeassistant.turn_off
entity_id: group.livingroom
- platform: template
switches:
bedroom_lights:
value_template: "{{ is_state('group.bedroom', 'on') }}"
friendly_name: Bedroom Lights
turn_on:
service: homeassistant.turn_on
entity_id: group.bedroom
turn_off:
service: homeassistant.turn_off
entity_id: group.bedroom
- platform: template
switches:
spare_bedroom_lights:
value_template: "{{ is_state('group.spare_bedroom', 'on') }}"
friendly_name: Spare Bedroom Lights
turn_on:
service: homeassistant.turn_on
entity_id: group.spare_bedroom
turn_off:
service: homeassistant.turn_off
entity_id: group.spare_bedroom
- platform: template
switches:
basement_lights:
value_template: "{{ is_state('group.basement', 'on') }}"
friendly_name: Basement Lights
turn_on:
service: homeassistant.turn_on
entity_id: group.basement
turn_off:
service: homeassistant.turn_off
entity_id: group.basement
- platform: template
switches:
night_light_switch:
value_template: "{{ is_state('switch.night_light_switch', 'on') }}"
friendly_name: Night Lights
turn_on:
service: switch.turn_on
entity_id: switch.night_light_switch
turn_off:
service: switch.turn_off
entity_id: switch.night_light_switch