-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmqtt.yaml
254 lines (228 loc) · 7.95 KB
/
mqtt.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
#broker: server
#discovery: true
switch:
- unique_id: back_sprinker
name: "Back Sprinkler"
state_topic: "stat/sprinkler/POWER"
command_topic: "cmnd/sprinkler/POWER"
availability_topic : "tele/sprinkler/LWT"
payload_available: "Online"
payload_not_available: "Offline"
payload_on: "ON"
payload_off: "OFF"
state_on: "ON"
state_off: "OFF"
cover:
- name: 'Garage Door'
command_topic: "garage/trigger"
payload_open: "OPEN"
payload_close: "CLOSE"
state_topic: "garage/stats/position"
sensor:
- name: "Pantry Temperature"
state_topic: "tele/pantry/SENSOR"
value_template: "{{ value_json['AM2301'].Temperature }}"
availability_topic: "tele/pantry/LWT"
payload_available: "Online"
payload_not_available: "Offline"
device_class: temperature
unit_of_measurement: "°C"
- name: "Pantry Humidity"
state_topic: "tele/pantry/SENSOR"
value_template: "{{ value_json['AM2301'].Humidity }}"
availability_topic: "tele/pantry/LWT"
payload_available: "Online"
payload_not_available: "Offline"
device_class: humidity
unit_of_measurement: "%"
# - name: "Loungeroom Temperature"
# unique_id: lounge_temp
# state_topic: "tele/loungeroom/SENSOR"
# value_template: "{{ value_json['BME280'].Temperature }}"
# availability_topic: "tele/loungeroom/LWT"
# payload_available: "Online"
# payload_not_available: "Offline"
# device_class: temperature
# unit_of_measurement: "°C"
# - name: "Loungeroom Humidity"
# unique_id: lounge_hum
# state_topic: "tele/loungeroom/SENSOR"
# value_template: "{{ value_json['BME280'].Humidity }}"
# availability_topic: "tele/loungeroom/LWT"
# payload_available: "Online"
# payload_not_available: "Offline"
# device_class: humidity
# unit_of_measurement: "%"
# - name: "Loungeroom Pressure"
# unique_id: lounge_press
# state_topic: "tele/loungeroom/SENSOR"
# value_template: "{{ value_json['BME280'].Pressure }}"
# availability_topic: "tele/loungeroom/LWT"
# payload_available: "Online"
# payload_not_available: "Offline"
# device_class: pressure
# unit_of_measurement: "hPa"
- name: "Gym Temperature"
state_topic: "tele/gym/SENSOR"
value_template: "{{ value_json['BME280'].Temperature }}"
availability_topic: "tele/gym/LWT"
payload_available: "Online"
payload_not_available: "Offline"
device_class: temperature
unit_of_measurement: "°C"
- name: "Gym Humidity"
state_topic: "tele/gym/SENSOR"
value_template: "{{ value_json['BME280'].Humidity }}"
availability_topic: "tele/gym/LWT"
payload_available: "Online"
payload_not_available: "Offline"
device_class: humidity
unit_of_measurement: "%"
- name: "Gym Pressure"
state_topic: "tele/gym/SENSOR"
value_template: "{{ value_json['BME280'].Pressure }}"
availability_topic: "tele/gym/LWT"
payload_available: "Online"
payload_not_available: "Offline"
unit_of_measurement: "hPa"
device_class: pressure
- name: "Bedroom Temperature"
state_topic: "tele/bedroom/SENSOR"
value_template: "{{ value_json['BME280'].Temperature }}"
availability_topic: "tele/bedroom/LWT"
payload_available: "Online"
payload_not_available: "Offline"
device_class: temperature
unit_of_measurement: "°C"
- name: "Bedroom Humidity"
state_topic: "tele/bedroom/SENSOR"
value_template: "{{ value_json['BME280'].Humidity }}"
availability_topic: "tele/bedroom/LWT"
payload_available: "Online"
payload_not_available: "Offline"
device_class: humidity
unit_of_measurement: "%"
- name: "Bedroom Pressure"
state_topic: "tele/bedroom/SENSOR"
value_template: "{{ value_json['BME280'].Pressure }}"
availability_topic: "tele/bedroom/LWT"
payload_available: "Online"
payload_not_available: "Offline"
unit_of_measurement: "hPa"
device_class: pressure
- name: "Outside Temperature"
state_topic: "tele/outside_temp/SENSOR"
value_template: "{{ value_json['BME280'].Temperature }}"
availability_topic: "tele/outside_temp/LWT"
payload_available: "Online"
payload_not_available: "Offline"
device_class: temperature
unit_of_measurement: "°C"
- name: "Outside Pressure"
state_topic: "tele/outside_temp/SENSOR"
value_template: "{{ value_json['BME280'].Pressure }}"
availability_topic: "tele/outside_temp/LWT"
payload_available: "Online"
payload_not_available: "Offline"
unit_of_measurement: "hPa"
device_class: pressure
- name: "Outside Humidity"
state_topic: "tele/outside_temp/SENSOR"
value_template: "{{ value_json['BME280'].Humidity }}"
availability_topic: "tele/outside_temp/LWT"
payload_available: "Online"
payload_not_available: "Offline"
device_class: humidity
unit_of_measurement: "%"
- name: "Office Temperature"
state_topic: "tele/office/SENSOR"
value_template: "{{ value_json['BME280'].Temperature }}"
availability_topic: "tele/office/LWT"
payload_available: "Online"
payload_not_available: "Offline"
device_class: temperature
unit_of_measurement: "°C"
- name: "Office Pressure"
state_topic: "tele/office/SENSOR"
value_template: "{{ value_json['BME280'].Pressure }}"
availability_topic: "tele/office/LWT"
payload_available: "Online"
payload_not_available: "Offline"
unit_of_measurement: "hPa"
device_class: pressure
- name: "Office Humidity"
state_topic: "tele/office/SENSOR"
value_template: "{{ value_json['BME280'].Humidity }}"
availability_topic: "tele/office/LWT"
payload_available: "Online"
payload_not_available: "Offline"
device_class: humidity
unit_of_measurement: "%"
- name: "Garage Temperature"
state_topic: "garage/stats/temperature"
device_class: temperature
unit_of_measurement: "°C"
- name: "Garage Humidity"
state_topic: "garage/stats/humidity"
device_class: humidity
unit_of_measurement: "%"
- name: "Garage Pressure"
state_topic: "garage/stats/pressure"
unit_of_measurement: "hPa"
light:
- name: Gym
command_topic: "gymlights/lights/cmnd/POWER"
availability_topic: "gymlights/lights/tele/LWT"
state_topic: "gymlights/lights/tele/STATE"
state_value_template: "{{ value_json.POWER }}"
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
- name: Outside Real
command_topic: "outside/lights/cmnd/POWER"
availability_topic: "outside/lights/tele/LWT"
state_topic: "outside/lights/tele/STATE"
state_value_template: "{{ value_json.POWER }}"
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
retain: false
- name: Dining Room
command_topic: "dining/lights/cmnd/POWER1"
availability_topic: "dining/lights/tele/LWT"
state_topic: "dining/lights/tele/STATE"
state_value_template: "{{ value_json.POWER1 }}"
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
- name: Niche
command_topic: "dining/lights/cmnd/POWER2"
availability_topic: "dining/lights/tele/LWT"
state_topic: "dining/lights/tele/STATE"
state_value_template: "{{ value_json.POWER2 }}"
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
- name: Wardrobe
command_topic: "wardrobe/lights/cmnd/POWER"
availability_topic: "wardrobe/lights/tele/LWT"
state_topic: "wardrobe/lights/tele/STATE"
state_value_template: "{{ value_json.POWER }}"
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
- name: Garage
command_topic: "garage_sonoff/lights/cmnd/POWER"
availability_topic: "garage_sonoff/lights/tele/LWT"
state_topic: "garage_sonoff/lights/tele/STATE"
state_value_template: "{{ value_json.POWER }}"
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"