-
Notifications
You must be signed in to change notification settings - Fork 5
/
mqtt_templates.txt
533 lines (507 loc) · 98.1 KB
/
mqtt_templates.txt
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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
# Usable template keywords:
# discovery_prefix, shelly_id, shelly_model, shelly_mac, shelly_ip, shelly_mode
#
[SHSW-1] # Shelly 1
topic=%discovery_prefix%/switch/%shelly_id%-relay-0/config
payload={"name": "%shelly_id% Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-0", "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-0/config
payload={"name": "%shelly_id% Input 0", "stat_t": "~input/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-input-0", "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0"}
topic=%discovery_prefix%/select/%shelly_id%/input_event-0/config
payload={"name": "%shelly_id% Input Event 0", "json_attributes_topic": "~input_event/0", "value_template":"{{value_json.event}}", "frc_upd": true, "cmd_t": "~dummy", "enabled_by_default": true, "uniq_id": "%shelly_id%-event-0", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","L"] }
topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/temperature/config
payload={"name": "%shelly_id% Temp 0", "stat_t": "~ext_temperature/0", "enabled_by_default": false, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-temp-0", "~": "shellies/%shelly_id%/", "unit_of_meas":"C","device_class":"temperature","device": {"identifiers": ["%shelly_mac%-temp0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-temp0"}}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-0-s/temperature/config
payload={"name": "%shelly_id% Temp 0 S", "stat_t": "~ext_temperature/0", "enabled_by_default": false, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-temp-0-s", "~": "shellies/%shelly_id%/", "unit_of_meas":"C","device_class":"temperature"}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-1/temperature/config
payload={"name": "%shelly_id% Temp 1", "stat_t": "~ext_temperature/1", "enabled_by_default": false, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-temp-1", "~": "shellies/%shelly_id%/", "unit_of_meas":"C","device_class":"temperature"}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-2/temperature/config
payload={"name": "%shelly_id% Temp 2", "stat_t": "~ext_temperature/2", "enabled_by_default": false, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-temp-2", "~": "shellies/%shelly_id%/", "unit_of_meas":"C","device_class":"temperature"}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/humidity/config
payload={"name": "%shelly_id% Hum 0", "stat_t": "~ext_humidity/0", "enabled_by_default": false, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-hum-0", "~": "shellies/%shelly_id%/","unit_of_meas":"%","device_class":"humidity","device": {"identifiers": ["%shelly_mac%-temp0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-temp0"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHSW-PM] # Shelly 1 PM
topic=%discovery_prefix%/switch/%shelly_id%-relay-0/config
payload={"name": "%shelly_id% Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-0", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
payload={"name": "%shelly_id% Power 0", "stat_t": "~relay/0/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-relay-power-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~relay/0/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-energy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-0/config
payload={"name": "%shelly_id% Input 0", "stat_t": "~input/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-input-0", "qos": 0, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0"}
topic=%discovery_prefix%/select/%shelly_id%/input_event-0/config
payload={"name": "%shelly_id% Input Event 0", "json_attributes_topic": "~input_event/0", "value_template":"{{value_json.event}}", "frc_upd": true, "cmd_t": "~dummy", "enabled_by_default": true, "uniq_id": "%shelly_id%-event-0", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","L"] }
topic=%discovery_prefix%/sensor/%shelly_id%-temperature/config
payload={"name": "%shelly_id% Temperature", "stat_t": "~temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-overtemperature/config
payload={"name": "%shelly_id% Overtemperature", "stat_t": "~overtemperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-overtemperature", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "problem"}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/temperature/config
payload={"name": "%shelly_id% Temp 0", "stat_t": "~ext_temperature/0", "enabled_by_default": false,"avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-temp-0", "~": "shellies/%shelly_id%/", "unit_of_meas":"C","device_class":"temperature","device": {"identifiers": ["%shelly_mac%-temp0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-temp0"}}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-0-s/temperature/config
payload={"name": "%shelly_id% Temp 0 S", "stat_t": "~ext_temperature/0", "enabled_by_default": false, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-temp-0-s", "~": "shellies/%shelly_id%/", "unit_of_meas":"C","device_class":"temperature"}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-1/temperature/config
payload={"name": "%shelly_id% Temp 1", "stat_t": "~ext_temperature/1", "enabled_by_default": false,"avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-temp-1", "~": "shellies/%shelly_id%/", "unit_of_meas":"C","device_class":"temperature"}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-2/temperature/config
payload={"name": "%shelly_id% Temp 2", "stat_t": "~ext_temperature/2", "enabled_by_default": false,"avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-temp-2", "~": "shellies/%shelly_id%/", "unit_of_meas":"C","device_class":"temperature"}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/humidity/config
payload={"name": "%shelly_id% Hum 0", "stat_t": "~ext_humidity/0", "enabled_by_default": false,"avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-hum", "~": "shellies/%shelly_id%/", "unit_of_meas":"%","device_class":"humidity","device": {"identifiers": ["%shelly_mac%-temp0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-temp0"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHSW-L][SHSW-L-relay] # Shelly 1L
topic=%discovery_prefix%/switch/%shelly_id%-relay-0/config
payload={"name": "%shelly_id% Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-0", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
payload={"name": "%shelly_id% Power 0", "stat_t": "~relay/0/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-relay-power-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~relay/0/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-energy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%-temperature/config
payload={"name": "%shelly_id% Temperature", "stat_t": "~temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-0/config
payload={"name": "%shelly_id% Input 0", "stat_t": "~input/0", "enabled_by_default": true, "uniq_id": "%shelly_id%-input-0", "qos": 0, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-overtemperature/config
payload={"name": "%shelly_id% Overtemperature", "stat_t": "~overtemperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-overtemperature", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "problem"}
topic=%discovery_prefix%/select/%shelly_id%/input_event-0/config
payload={"name": "%shelly_id% Input Event 0", "json_attributes_topic": "~input_event/0", "value_template":"{{value_json.event}}", "frc_upd": true, "cmd_t": "~dummy", "enabled_by_default": true, "uniq_id": "%shelly_id%-event-0", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","L"] }
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHSW-21-relay][SHSW-25-relay] #Shelly 2 / Shelly 2.5 relay mode
topic=%discovery_prefix%/switch/%shelly_id%-relay-0/config
payload={"name": "%shelly_id% Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-0", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
payload={"name": "%shelly_id% Power 0", "stat_t": "~relay/0/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-relay-power-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}","device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~relay/0/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-energy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm", "device": {"identifiers": ["%shelly_mac%-0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-0"}}
topic=%discovery_prefix%/select/%shelly_id%/input_event-0/config
payload={"name": "%shelly_id% Input Event 0", "json_attributes_topic": "~input_event/0", "value_template":"{{value_json.event}}", "cmd_t": "~dummy", "frc_upd": true, "enabled_by_default": true, "uniq_id": "%shelly_id%-event-0", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","L"] }
topic=%discovery_prefix%/switch/%shelly_id%-relay-1/config
payload={"name": "%shelly_id% Relay 1", "cmd_t": "~relay/1/command", "stat_t": "~relay/1", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-1", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/power/config
payload={"name": "%shelly_id% Power 1", "stat_t": "~relay/1/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-relay-power-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}","device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}}
topic=%discovery_prefix%/sensor/%shelly_id%-1/energy/config
payload={"name": "%shelly_id% Energy 1", "stat_t": "~relay/1/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-energy-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm", "device": {"identifiers": ["%shelly_mac%-1"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-1"}}
topic=%discovery_prefix%/select/%shelly_id%/input_event-1/config
payload={"name": "%shelly_id% Input Event 1", "json_attributes_topic": "~input_event/1", "value_template":"{{value_json.event}}", "cmd_t": "~dummy", "frc_upd": true, "enabled_by_default": true, "uniq_id": "%shelly_id%-event-1", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","L"] }
topic=%discovery_prefix%/sensor/%shelly_id%/energy/config
payload={"name": "%shelly_id% Energy", "stat_t": "~relay/energy", "uniq_id": "%shelly_id%-relay-energy", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%/power/config
payload={"name": "%shelly_id% Power", "stat_t": "~relay/power", "enabled_by_default": true, "uniq_id": "%shelly_id%-relay-power", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%/voltage/config
payload={"name": "%shelly_id% Voltage", "stat_t": "~voltage", "enabled_by_default": true, "uniq_id": "%shelly_id%-voltage", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{value|float|round(1)}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-0/config
payload={"name": "%shelly_id% Input 0", "stat_t": "~input/0", "enabled_by_default": true, "uniq_id": "%shelly_id%-input-0", "qos": 0, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-1/config
payload={"name": "%shelly_id% Input 1", "stat_t": "~input/1", "enabled_by_default": true, "uniq_id": "%shelly_id%-input-1", "qos": 0, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/sensor/%shelly_id%-temperature/config
payload={"name": "%shelly_id% Temperature", "stat_t": "~temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHSW-21-roller][SHSW-25-roller] #Shelly 2 / Shelly 2.5 roller mode
topic=%discovery_prefix%/cover/%shelly_id%-roller-0/config
payload={"name": "%shelly_id% Roller 0", "cmd_t": "~roller/0/command", "stat_t": "~roller/0", "pos_t": "~roller/0/pos", "set_pos_t": "~roller/0/command/pos", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "json_attr_t": "~info", "pl_open": "open", "pl_cls": "close", "pl_stop": "stop", "stat_opening": "open", "stat_closing": "close", "pos_open": 100, "pos_clsd": 0, "uniq_id": "%shelly_id%-roller-0", "qos": 1, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/select/%shelly_id%/cover-control/config
payload={"name": "%shelly_id% Cover Control", "~": "shellies/%shelly_id%/", "uniq_id": "%shelly_id%-0-covercontrol", "frc_upd": true, "enabled_by_default": false, "cmd_t": "~roller/0/command", "stat_t": "~roller/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","stat_cla": "selector", "ops":["stop","close","open"] }
topic=%discovery_prefix%/sensor/%shelly_id%/energy/config
payload={"name": "%shelly_id% Roller 0 Energy", "stat_t": "~roller/0/energy", "uniq_id": "%shelly_id%-roller-0-energy", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%/power/config
payload={"name": "%shelly_id% Roller 0 Power", "stat_t": "~roller/0/power", "enabled_by_default": true, "uniq_id": "%shelly_id%-roller-0-power", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%/voltage/config
payload={"name": "%shelly_id% Voltage", "stat_t": "~voltage", "enabled_by_default": true, "uniq_id": "%shelly_id%-voltage", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{value|float|round(1)}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-0/config
payload={"name": "%shelly_id% Input 0", "stat_t": "~input/0", "enabled_by_default": true, "uniq_id": "%shelly_id%-input-0", "qos": 0, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-1/config
payload={"name": "%shelly_id% Input 1", "stat_t": "~input/1", "enabled_by_default": true, "uniq_id": "%shelly_id%-input-1", "qos": 0, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/sensor/%shelly_id%-temperature/config
payload={"name": "%shelly_id% Temperature", "stat_t": "~temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHPLG-S] # Shelly Plug S
topic=%discovery_prefix%/switch/%shelly_id%-relay-0/config
payload={"name": "%shelly_id% Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-0", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
payload={"name": "%shelly_id% Power 0", "stat_t": "~relay/0/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-relay-power-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~relay/0/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-energy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%-temperature/config
payload={"name": "%shelly_id% Temperature", "stat_t": "~temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-overtemperature/config
payload={"name": "%shelly_id% Overtemperature", "stat_t": "~overtemperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-overtemperature", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "problem"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHPLG-1] # Shelly Plug
topic=%discovery_prefix%/switch/%shelly_id%-relay-0/config
payload={"name": "%shelly_id% Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-0", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
payload={"name": "%shelly_id% Power 0", "stat_t": "~relay/0/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-relay-power-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~relay/0/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-energy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHSW-44] # Shelly 4 Pro
topic=%discovery_prefix%/switch/%shelly_id%-relay-0/config
payload={"name": "%shelly_id% Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-power-0/config
payload={"name": "%shelly_id% Power 0", "stat_t": "~relay/0/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-relay-power-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-energy-0/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~relay/0/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-energy-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-0/config
payload={"name": "%shelly_id% Input 0", "stat_t": "~input/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-input-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0"}
topic=%discovery_prefix%/switch/%shelly_id%-relay-1/config
payload={"name": "%shelly_id% Relay 1", "cmd_t": "~relay/1/command", "stat_t": "~relay/1", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-1", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-power-1/config
payload={"name": "%shelly_id% Power 1", "stat_t": "~relay/1/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-relay-power-1", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-energy-1/config
payload={"name": "%shelly_id% Energy 1", "stat_t": "~relay/1/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-energy-1", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-1/config
payload={"name": "%shelly_id% Input 1", "stat_t": "~input/1", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-input-1", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0"}
topic=%discovery_prefix%/switch/%shelly_id%-relay-2/config
payload={"name": "%shelly_id% Relay 2", "cmd_t": "~relay/2/command", "stat_t": "~relay/2", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-2", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-power-2/config
payload={"name": "%shelly_id% Power 2", "stat_t": "~relay/2/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-relay-power-2", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-energy-2/config
payload={"name": "%shelly_id% Energy 2", "stat_t": "~relay/2/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-energy-2", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-2/config
payload={"name": "%shelly_id% Input 2", "stat_t": "~input/2", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-input-2", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0"}
topic=%discovery_prefix%/switch/%shelly_id%-relay-3/config
payload={"name": "%shelly_id% Relay 3", "cmd_t": "~relay/3/command", "stat_t": "~relay/3", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-3", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-power-3/config
payload={"name": "%shelly_id% Power 3", "stat_t": "~relay/3/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-relay-power-3", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-energy-3/config
payload={"name": "%shelly_id% Energy 3", "stat_t": "~relay/3/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-energy-3", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-3/config
payload={"name": "%shelly_id% Input 3", "stat_t": "~input/3", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-input-3", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHHT-1] # Shelly H&T
topic=%discovery_prefix%/sensor/%shelly_id%/temperature/config
payload={"name": "%shelly_id% Temperature", "stat_t": "~sensor/temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C", "exp_aft": 51839}
topic=%discovery_prefix%/sensor/%shelly_id%/humidity/config
payload={"name": "%shelly_id% Humidity", "stat_t": "~sensor/humidity", "enabled_by_default": true, "uniq_id": "%shelly_id%-humidity", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "dev_cla": "humidity", "stat_cla": "measurement", "unit_of_meas": "%", "exp_aft": 51839}
topic=%discovery_prefix%/sensor/%shelly_id%/battery/config
payload={"name": "%shelly_id% Battery", "stat_t": "~sensor/battery", "enabled_by_default": true, "uniq_id": "%shelly_id%-battery", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "battery", "stat_cla": "measurement", "unit_of_meas": "%", "val_tpl": "{{value|float|round}}", "exp_aft": 51839}
topic=%discovery_prefix%/sensor/%shelly_id%/RSSI/config
payload={"name": "%shelly_id% WiFi Signal", "stat_t": "~info", "enabled_by_default": true, "uniq_id": "%shelly_id%-rssi", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{{value_json.wifi_sta.rssi}}", "icon": "mdi:signal", "exp_aft": 51839, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHMOS-01][SHMOS-02] # Shelly Motion
topic=%discovery_prefix%/sensor/%shelly_id%/lux/config
payload={"name": "%shelly_id% Lux", "stat_t": "~info", "enabled_by_default": true, "uniq_id": "%shelly_id%-lux", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "illuminance", "stat_cla": "measurement", "unit_of_meas": "lx", "val_tpl": "{{value_json.lux.value}}", "exp_aft": 4320,"device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%/motion/config
payload={"name": "%shelly_id% Motion", "stat_t": "~info", "enabled_by_default": true, "uniq_id": "%shelly_id%-motion", "qos": 0, "~": "shellies/%shelly_id%/", "val_tpl": "{{value_json.sensor.motion}}", "exp_aft": 4320, "dev_cla": "motion","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%/vibration/config
payload={"name": "%shelly_id% Vibration", "stat_t": "~info", "enabled_by_default": true, "uniq_id": "%shelly_id%-vibration", "qos": 0, "~": "shellies/%shelly_id%/", "val_tpl": "{{value_json.sensor.vibration}}", "exp_aft": 4320, "dev_cla": "vibration","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%/charger/config
payload={"name": "%shelly_id% Charger", "stat_t": "~info", "enabled_by_default": true, "uniq_id": "%shelly_id%-charger", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "val_tpl": "{{value_json.charger}}", "exp_aft": 4320, "dev_cla": "battery_charging","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%/temperature/config
payload={"name": "%shelly_id% Temperature", "stat_t": "~status", "enabled_by_default": false, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-temp", "~": "shellies/%shelly_id%/", "unit_of_meas":"C","val_tpl": "{{value_json.tmp.value}}","device_class":"temperature","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-temp"}}
topic=%discovery_prefix%/sensor/%shelly_id%/battery/config
payload={"name": "%shelly_id% Battery", "stat_t": "~info", "enabled_by_default": true, "uniq_id": "%shelly_id%-battery", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "battery", "stat_cla": "measurement", "unit_of_meas": "%", "val_tpl": "{{value_json.bat.value}}", "exp_aft": 4320,"device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%/RSSI/config
payload={"name": "%shelly_id% WiFi Signal", "stat_t": "~info", "enabled_by_default": true, "uniq_id": "%shelly_id%-rssi", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{{value_json.wifi_sta.rssi}}", "icon": "mdi:signal", "exp_aft": 4320, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHBDUO-1][SHBDUO-1-white] # Shelly Duo # Partially works
topic=%discovery_prefix%/light/%shelly_id%-0/config
payload={"name": "%shelly_id% Light 0", "cmd_t": "~light/0/set", "stat_t": "~light/0/status","payload_on": "{\"turn\":\"on\"}","payload_off": "{\"turn\":\"off\"}", "val_tpl": "{{value_json.ison}}","stat_val_tpl": "{{value_json.ison}}","state_on":"true","state_off":"false","brightness_command_topic":"~light/0/set","brightness_state_topic":"~light/0/status","brightness": true,"color_mode": true, "white_value": true,"supported_color_modes": ["onoff","brightness","color_temp","white"], "white_scale": 100, "brightness_scale":100, "bri_val_tpl":"{{value_json.brightness}}", "clr_temp_val_tpl": "{{(1000000/(value_json.temp|int))|round(0,\"floor\")}}", "color_temp_command_template": "{\"temp\": {{value_json.temp}} }","white_command_topic":"~light/0/set","color_temp_command_topic":"~light/0/set", "max_mirs": 2700, "min_mirs": 6500, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-light-0", "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
payload={"name": "%shelly_id% Power 0", "stat_t": "~light/0/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-power-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~light/0/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-energy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHDW-1][SHDW-2] # Shelly Door Window 2 # https://shelly-api-docs.shelly.cloud/gen1/#shelly-door-window-1-2
topic=%discovery_prefix%/binary_sensor/%shelly_id%/door_contact/config
payload={"name": "%shelly_id% Door contact", "stat_t": "~sensor/state", "enabled_by_default": true, "uniq_id": "%shelly_id%-door-contact", "~": "shellies/%shelly_id%/", "dev_cla": "contact", "pl_off": "close", "pl_on": "open" ,"device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%/temperature/config
payload={"name": "%shelly_id% Temperature", "stat_t": "~sensor/temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C"}
topic=%discovery_prefix%/sensor/%shelly_id%/lux/config
payload={"name": "%shelly_id% Lux", "stat_t": "~sensor/lux", "enabled_by_default": true, "uniq_id": "%shelly_id%-lux", "~": "shellies/%shelly_id%/", "dev_cla": "illuminance", "stat_cla": "measurement", "unit_of_meas": "lx", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%/tilt/config
payload={"name": "%shelly_id% Tilt", "stat_t": "~sensor/tilt", "enabled_by_default": true, "uniq_id": "%shelly_id%-tilt", "~": "shellies/%shelly_id%/", "dev_cla": "utility", "stat_cla": "measurement", "unit_of_meas": "°", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/select/%shelly_id%/options/config
payload={"name": "%shelly_id% Illumination", "stat_t": "~sensor/illumination", "cmd_t": "~dummy", "enabled_by_default": true, "frc_upd": true, "uniq_id": "%shelly_id%-illumination", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "illumination", "stat_cla": "selector", "ops":["dark","twilight","bright"] , "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%/vibration/config
payload={"name": "%shelly_id% Vibration", "stat_t": "~sensor/vibration", "enabled_by_default": true, "uniq_id": "%shelly_id%-vibration", "qos": 0, "~": "shellies/%shelly_id%/", "pl_on": 1, "pl_off": 0, "exp_aft": 4320, "dev_cla": "vibration","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%/battery/config
payload={"name": "%shelly_id% Battery", "stat_t": "~sensor/battery", "enabled_by_default": true, "uniq_id": "%shelly_id%-battery", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "battery", "stat_cla": "measurement", "unit_of_meas": "%", "val_tpl": "{{value|float|round}}" }
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
#topic=%discovery_prefix%/sensor/%shelly_id%/RSSI/config
#payload={"name": "%shelly_id% WiFi Signal", "stat_t": "~info", "enabled_by_default": true, "uniq_id": "%shelly_id%-rssi", "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "signal_strength", "stat_cla": "measurement", "unit_of_meas": "dBm", "val_tpl": "{{value_json.wifi_sta.rssi}}", "icon": "mdi:signal", "exp_aft": 51839, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
[SHCB-1-white] # Shelly RGBW Bulb - White mode # Partially works
topic=%discovery_prefix%/light/%shelly_id%-0/config
payload={"name": "%shelly_id% White 0", "cmd_t": "~color/0/set", "stat_t": "~color/0/status","payload_on": "{\"turn\":\"on\",\"mode\":\"white\"}","payload_off": "{\"turn\":\"off\",\"mode\":\"white\"}", "val_tpl": "{{value_json.ison}}","stat_val_tpl": "{{value_json.ison}}","state_on":"true","state_off":"false","brightness_command_topic":"~color/0/set","brightness_state_topic":"~color/0/status","brightness": true,"color_mode": true, "white_value": true,"supported_color_modes": ["onoff","brightness","color_temp","white"], "white_scale": 100, "brightness_scale":100, "bri_val_tpl":"{{value_json.brightness}}", "clr_temp_val_tpl": "{{(1000000/(value_json.temp|int))|round(0,\"floor\")}}", "color_temp_command_template": "{\"temp\": {{value_json.temp}} }","white_command_topic":"~color/0/set","color_temp_command_topic":"~color/0/set", "max_mirs": 3000, "min_mirs": 6500, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-light-0", "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
payload={"name": "%shelly_id% Power 0", "stat_t": "~light/0/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-power-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~light/0/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-energy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHBLB-1-white] # Shelly RGBW Bulb - White mode # Partially works
topic=%discovery_prefix%/light/%shelly_id%-0/config
payload={"name": "%shelly_id% White 0", "cmd_t": "~color/0/set", "stat_t": "~color/0/status","payload_on": "{\"turn\":\"on\",\"mode\":\"white\"}","payload_off": "{\"turn\":\"off\",\"mode\":\"white\"}", "val_tpl": "{{value_json.ison}}","stat_val_tpl": "{{value_json.ison}}","state_on":"true","state_off":"false","brightness_command_topic":"~color/0/set","brightness_state_topic":"~color/0/status","brightness": true,"color_mode": true, "white_value": true,"supported_color_modes": ["onoff","brightness","color_temp","white"], "white_scale": 100, "brightness_scale":100, "bri_val_tpl":"{{value_json.brightness}}", "clr_temp_val_tpl": "{{(1000000/(value_json.temp|int))|round(0,\"floor\")}}", "color_temp_command_template": "{\"temp\": {{value_json.temp}} }","white_command_topic":"~color/0/set","color_temp_command_topic":"~color/0/set", "max_mirs": 2700, "min_mirs": 6500, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-light-0", "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHBTN-1][SHBTN-2] # Shelly Button
# Input event, S = shortpush, SS = double shortpush, SSS = triple shortpush, L = longpush ("-" place holder to skip the off state od the device)
topic=%discovery_prefix%/select/%shelly_id%/input_event/config
payload={"name": "%shelly_id% Button", "json_attributes_topic": "~input_event/0", "value_template":"{{value_json.event}}", "cmd_t": "~dummy", "frc_upd": true, "enabled_by_default": true, "uniq_id": "%shelly_id%-button", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","SS","SSS" ,"L"] , "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%/charger/config
payload={"name": "%shelly_id% Charger", "stat_t": "~sensor/charger", "enabled_by_default": true, "uniq_id": "%shelly_id%-charger", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "val_tpl": "{{value_json.charger}}", "exp_aft": 4320, "dev_cla": "battery_charging","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%/battery/config
payload={"name": "%shelly_id% Battery", "stat_t": "~sensor/battery", "enabled_by_default": true, "uniq_id": "%shelly_id%-battery", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "battery", "stat_cla": "measurement", "unit_of_meas": "%", "val_tpl": "{{value|float|round}}" }
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHIX3-1] # Shelly i3
topic=%discovery_prefix%/select/%shelly_id%/input_event-0/config
payload={"name": "%shelly_id% Input Event 0", "json_attributes_topic": "~input_event/0", "value_template":"{{value_json.event}}", "cmd_t": "~dummy", "frc_upd": true, "enabled_by_default": true, "uniq_id": "%shelly_id%-i3-event-0", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","SS","SSS" ,"L"] , "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/select/%shelly_id%/input_event-1/config
payload={"name": "%shelly_id% Input Event 1", "json_attributes_topic": "~input_event/1", "value_template":"{{value_json.event}}", "cmd_t": "~dummy", "frc_upd": true, "enabled_by_default": true, "uniq_id": "%shelly_id%-i3-event-1", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","SS","SSS" ,"L"] , "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/select/%shelly_id%/input_event-2/config
payload={"name": "%shelly_id% Input Event 2", "json_attributes_topic": "~input_event/2", "value_template":"{{value_json.event}}", "cmd_t": "~dummy", "frc_upd": true, "enabled_by_default": true, "uniq_id": "%shelly_id%-i3-event-2", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","SS","SSS" ,"L"] , "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%/input-0/config
payload={"name": "%shelly_id% Input 0", "stat_t": "~input/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-input-0", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%/input-1/config
payload={"name": "%shelly_id% Input 1", "stat_t": "~input/1", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-input-1", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%/input-2/config
payload={"name": "%shelly_id% Input 2", "stat_t": "~input/2", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-input-2", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHDM-1][SHDM-2][SHDM-1-white][SHDM-2-white] # Shelly Dimmer 1/2
topic=%discovery_prefix%/sensor/%shelly_id%/temperature/config
payload={"name": "%shelly_id% Temperature", "stat_t": "~temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-overtemperature/config
payload={"name": "%shelly_id% Overtemperature", "stat_t": "~overtemperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-overtemperature", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "problem"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-overload/config
payload={"name": "%shelly_id% Overload", "stat_t": "~overload", "enabled_by_default": true, "uniq_id": "%shelly_id%-overload", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "problem"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-loaderror/config
payload={"name": "%shelly_id% Load error", "stat_t": "~loaderror", "enabled_by_default": true, "uniq_id": "%shelly_id%-loaderror", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "dev_cla": "problem"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
payload={"name": "%shelly_id% Power 0", "stat_t": "~light/0/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-light-power-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%-0/overpower/config
payload={"name": "%shelly_id% Overpower 0", "stat_t": "~light/0/overpower_value", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-light-overpowervalue-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~light/0/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-light-energy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-0/config
payload={"name": "%shelly_id% Input 0", "stat_t": "~input/0", "enabled_by_default": true, "uniq_id": "%shelly_id%-input-0", "qos": 0, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-1/config
payload={"name": "%shelly_id% Input 1", "stat_t": "~input/1", "enabled_by_default": true, "uniq_id": "%shelly_id%-input-1", "qos": 0, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/select/%shelly_id%/input_event-0/config
payload={"name": "%shelly_id% Input Event 0", "json_attributes_topic": "~input_event/0", "value_template":"{{value_json.event}}", "frc_upd": true, "cmd_t": "~dummy", "enabled_by_default": true, "uniq_id": "%shelly_id%-event-0", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","L"] }
topic=%discovery_prefix%/select/%shelly_id%/input_event-1/config
payload={"name": "%shelly_id% Input Event 1", "json_attributes_topic": "~input_event/1", "value_template":"{{value_json.event}}", "frc_upd": true, "cmd_t": "~dummy", "enabled_by_default": true, "uniq_id": "%shelly_id%-event-1", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","L"] }
topic=%discovery_prefix%/light/%shelly_id%-0/config
payload={"name": "%shelly_id% Light 0", "cmd_t": "~light/0/set", "stat_t": "~light/0/status","payload_on": "{\"turn\":\"on\"}","payload_off": "{\"turn\":\"off\"}", "value_template": "{{value_json.ison}}","stat_val_tpl": "{{value_json.ison}}","state_on":"true","state_off":"false","brightness_command_topic":"~light/0/set","brightness_state_topic":"~light/0/status","brightness": true,"color_mode": true,"supported_color_modes": ["brightness"], "brightness_scale":100, "bri_val_tpl":"{{value_json.brightness}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-light-0", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-longpush-0/config
payload={"name": "%shelly_id% Longpush 0", "stat_t": "~longpush/0", "enabled_by_default": true, "uniq_id": "%shelly_id%-longpush-0", "qos": 0, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-longpush-1/config
payload={"name": "%shelly_id% Longpush 1", "stat_t": "~longpush/1", "enabled_by_default": true, "uniq_id": "%shelly_id%-longpush-1", "qos": 0, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHVIN-1] # Shelly Vintage
topic=%discovery_prefix%/light/%shelly_id%-0/config
payload={"name": "%shelly_id% Light 0", "cmd_t": "~light/0/set", "stat_t": "~light/0/status","payload_on": "{\"turn\":\"on\"}","payload_off": "{\"turn\":\"off\"}", "val_tpl": "{{value_json.ison}}","stat_val_tpl": "{{value_json.ison}}","state_on":"true","state_off":"false","brightness_command_topic":"~light/0/set","brightness_state_topic":"~light/0/status","brightness": true,"color_mode": true,"supported_color_modes": ["brightness"], "brightness_scale":100, "bri_val_tpl":"{{value_json.brightness}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-light-0", "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
payload={"name": "%shelly_id% Power 0", "stat_t": "~light/0/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-power-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~light/0/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-energy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHUNI-1] # Shelly UNI
topic=%discovery_prefix%/switch/%shelly_id%-relay-0/config
payload={"name": "%shelly_id% Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-0", "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-0/config
payload={"name": "%shelly_id% Input 0", "stat_t": "~input/0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-input-0", "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0"}
topic=%discovery_prefix%/select/%shelly_id%/input_event-0/config
payload={"name": "%shelly_id% Input Event 0", "json_attributes_topic": "~input_event/0", "value_template":"{{value_json.event}}", "frc_upd": true, "cmd_t": "~dummy", "enabled_by_default": true, "uniq_id": "%shelly_id%-event-0", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","SS","SSS" ,"L"] , "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/switch/%shelly_id%-relay-1/config
payload={"name": "%shelly_id% Relay 1", "cmd_t": "~relay/1/command", "stat_t": "~relay/1", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-1", "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-1/config
payload={"name": "%shelly_id% Input 1", "stat_t": "~input/1", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-input-1", "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0"}
topic=%discovery_prefix%/select/%shelly_id%/input_event-1/config
payload={"name": "%shelly_id% Input Event 1", "json_attributes_topic": "~input_event/1", "value_template":"{{value_json.event}}", "frc_upd": true, "cmd_t": "~dummy", "enabled_by_default": true, "uniq_id": "%shelly_id%-event-1", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","SS","SSS" ,"L"] , "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=homeassistant/sensor/%shelly_id%-adc/config
payload={"name": "%shelly_id% ADC", "stat_t": "~adc/0", "enabled_by_default": true, "uniq_id": "%shelly_id%-adc", "frc_upd": true, "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{value|float|round(2)}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/temperature/config
payload={"name": "%shelly_id% Temp 0", "stat_t": "~ext_temperature/0", "enabled_by_default": false,"avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-temp-0", "~": "shellies/%shelly_id%/", "unit_of_meas":"C","device_class":"temperature","device": {"identifiers": ["%shelly_mac%-temp0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-temp0"}}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-0-s/temperature/config
payload={"name": "%shelly_id% Temp 0 S", "stat_t": "~ext_temperature/0", "enabled_by_default": false, "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-temp-0-s", "~": "shellies/%shelly_id%/", "unit_of_meas":"C","device_class":"temperature"}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-1/temperature/config
payload={"name": "%shelly_id% Temp 1", "stat_t": "~ext_temperature/1", "enabled_by_default": false,"avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-temp-1", "~": "shellies/%shelly_id%/", "unit_of_meas":"C","device_class":"temperature"}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-2/temperature/config
payload={"name": "%shelly_id% Temp 2", "stat_t": "~ext_temperature/2", "enabled_by_default": false,"avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-temp-2", "~": "shellies/%shelly_id%/", "unit_of_meas":"C","device_class":"temperature"}
topic=%discovery_prefix%/sensor/%shelly_id%-ext-0/humidity/config
payload={"name": "%shelly_id% Hum 0", "stat_t": "~ext_humidity/0", "enabled_by_default": false,"avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-hum-0", "~": "shellies/%shelly_id%/","unit_of_meas":"%","device_class":"humidity","device": {"identifiers": ["%shelly_mac%-temp0"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%-temp0"}}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHEM] # Shelly EM
topic=%discovery_prefix%/switch/%shelly_id%-0/relay/config
payload={"name": "%shelly_id% Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-0", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~emeter/0/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-energy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/returnedenergy/config
payload={"name": "%shelly_id% Returned Energy 0", "stat_t": "~emeter/0/returned_energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-returnedenergy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
payload={"name": "%shelly_id% Power 0", "stat_t": "~emeter/0/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-power-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/reactivepower/config
payload={"name": "%shelly_id% Reactive Power 0", "stat_t": "~emeter/0/reactive_power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-reactivepower-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/voltage/config
payload={"name": "%shelly_id% Voltage 0", "stat_t": "~emeter/0/voltage", "enabled_by_default": true, "uniq_id": "%shelly_id%-voltage-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{value|float|round(1)}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/total/config
payload={"name": "%shelly_id% Total 0", "stat_t": "~emeter/0/total", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-total-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|round(2)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/totalreturned/config
payload={"name": "%shelly_id% Total Returned 0", "stat_t": "~emeter/0/total_returned", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-totalreturned-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|round(2)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/energy/config
payload={"name": "%shelly_id% Energy 1", "stat_t": "~emeter/1/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": false, "uniq_id": "%shelly_id%-energy-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/returnedenergy/config
payload={"name": "%shelly_id% Returned Energy 1", "stat_t": "~emeter/1/returned_energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": false, "uniq_id": "%shelly_id%-returnedenergy-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/power/config
payload={"name": "%shelly_id% Power 1", "stat_t": "~emeter/1/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-power-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/reactivepower/config
payload={"name": "%shelly_id% Reactive Power 1", "stat_t": "~emeter/1/reactive_power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-reactivepower-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/voltage/config
payload={"name": "%shelly_id% Voltage 1", "stat_t": "~emeter/1/voltage", "enabled_by_default": true, "uniq_id": "%shelly_id%-voltage-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{value|float|round(1)}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/total/config
payload={"name": "%shelly_id% Total 1", "stat_t": "~emeter/1/total", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-total-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|round(2)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/totalreturned/config
payload={"name": "%shelly_id% Total Returned 1", "stat_t": "~emeter/1/total_returned", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-totalreturned-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|round(2)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/pf/config
payload={"name": "%shelly_id% Power Factor 0", "stat_t": "~emeter/0/pf", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-pf-0", "~": "shellies/%shelly_id%/", "dev_cla": "power_factor"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/pf/config
payload={"name": "%shelly_id% Power Factor 1", "stat_t": "~emeter/1/pf", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-pf-1", "~": "shellies/%shelly_id%/", "dev_cla": "power_factor"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHEM-3] # Shelly 3EM
topic=%discovery_prefix%/switch/%shelly_id%-0/relay/config
payload={"name": "%shelly_id% Relay 0", "cmd_t": "~relay/0/command", "stat_t": "~relay/0", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-relay-0", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~emeter/0/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-energy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/returnedenergy/config
payload={"name": "%shelly_id% Returned Energy 0", "stat_t": "~emeter/0/returned_energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-returnedenergy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
payload={"name": "%shelly_id% Power 0", "stat_t": "~emeter/0/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-power-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/reactivepower/config
payload={"name": "%shelly_id% Reactive Power 0", "stat_t": "~emeter/0/reactive_power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-reactivepower-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/voltage/config
payload={"name": "%shelly_id% Voltage 0", "stat_t": "~emeter/0/voltage", "enabled_by_default": true, "uniq_id": "%shelly_id%-voltage-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{value|float|round(1)}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/total/config
payload={"name": "%shelly_id% Total 0", "stat_t": "~emeter/0/total", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-total-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|round(2)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/totalreturned/config
payload={"name": "%shelly_id% Total Returned 0", "stat_t": "~emeter/0/total_returned", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-totalreturned-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|round(2)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/energy/config
payload={"name": "%shelly_id% Energy 1", "stat_t": "~emeter/1/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-energy-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/returnedenergy/config
payload={"name": "%shelly_id% Returned Energy 1", "stat_t": "~emeter/1/returned_energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-returnedenergy-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/power/config
payload={"name": "%shelly_id% Power 1", "stat_t": "~emeter/1/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-power-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/reactivepower/config
payload={"name": "%shelly_id% Reactive Power 1", "stat_t": "~emeter/1/reactive_power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-reactivepower-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/voltage/config
payload={"name": "%shelly_id% Voltage 1", "stat_t": "~emeter/1/voltage", "enabled_by_default": true, "uniq_id": "%shelly_id%-voltage-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{value|float|round(1)}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/total/config
payload={"name": "%shelly_id% Total 1", "stat_t": "~emeter/1/total", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-total-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|round(2)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/totalreturned/config
payload={"name": "%shelly_id% Total Returned 1", "stat_t": "~emeter/1/total_returned", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-totalreturned-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|round(2)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-2/energy/config
payload={"name": "%shelly_id% Energy 2", "stat_t": "~emeter/2/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-energy-2", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/sensor/%shelly_id%-2/returnedenergy/config
payload={"name": "%shelly_id% Returned Energy 2", "stat_t": "~emeter/2/returned_energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-returnedenergy-2", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/sensor/%shelly_id%-2/power/config
payload={"name": "%shelly_id% Power 2", "stat_t": "~emeter/2/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-power-2", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-2/reactivepower/config
payload={"name": "%shelly_id% Reactive Power 2", "stat_t": "~emeter/2/reactive_power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-reactivepower-2", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-2/voltage/config
payload={"name": "%shelly_id% Voltage 2", "stat_t": "~emeter/2/voltage", "enabled_by_default": true, "uniq_id": "%shelly_id%-voltage-2", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "voltage", "stat_cla": "measurement", "unit_of_meas": "V", "val_tpl": "{{value|float|round(1)}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/sensor/%shelly_id%-2/total/config
payload={"name": "%shelly_id% Total 2", "stat_t": "~emeter/2/total", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-total-2", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|round(2)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-2/totalreturned/config
payload={"name": "%shelly_id% Total Returned 1", "stat_t": "~emeter/2/total_returned", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-totalreturned-2", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wh", "val_tpl": "{{value|round(2)}}"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHRGBW2-white] # Shelly RGBW2 white mode
topic=%discovery_prefix%/binary_sensor/%shelly_id%-input-0/config
payload={"name": "%shelly_id% Input 0", "stat_t": "~input/0", "enabled_by_default": true, "frc_upd": true, "uniq_id": "%shelly_id%-input-0", "qos": 0, "~": "shellies/%shelly_id%/", "pl_on": "1", "pl_off": "0", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/select/%shelly_id%/input_event-0/config
payload={"name": "%shelly_id% Input Event 0", "json_attributes_topic": "~input_event/0", "value_template":"{{value_json.event}}", "frc_upd": true, "cmd_t": "~dummy", "enabled_by_default": true, "uniq_id": "%shelly_id%-event-0", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["-","S","L"] }
topic=%discovery_prefix%/light/%shelly_id%-0/config
payload={"name": "%shelly_id% White 0", "cmd_t": "~white/0/set", "stat_t": "~white/0/status","payload_on": "{\"turn\":\"on\",\"mode\":\"white\"}","payload_off": "{\"turn\":\"off\",\"mode\":\"white\"}", "value_template": "{{value_json.ison}}","stat_val_tpl": "{{value_json.ison}}","state_on":"true","state_off":"false","brightness_command_topic":"~white/0/set","brightness_state_topic":"~white/0/status","brightness": true,"color_mode": true,"supported_color_modes": ["brightness"], "brightness_scale":100, "bri_val_tpl":"{{value_json.brightness}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-white-0", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/switch/%shelly_id%-0/config
payload={"name": "%shelly_id% White 0 onoff", "cmd_t": "~white/0/command", "stat_t": "~white/0", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-white-0-sw", "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/power/config
payload={"name": "%shelly_id% Power 0", "stat_t": "~white/0/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-white-power-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-0/energy/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~white/0/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-light-energy-0", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/light/%shelly_id%-1/config
payload={"name": "%shelly_id% White 1", "cmd_t": "~white/1/set", "stat_t": "~white/1/status","payload_on": "{\"turn\":\"on\",\"mode\":\"white\"}","payload_off": "{\"turn\":\"off\",\"mode\":\"white\"}", "value_template": "{{value_json.ison}}","stat_val_tpl": "{{value_json.ison}}","state_on":"true","state_off":"false","brightness_command_topic":"~white/1/set","brightness_state_topic":"~white/1/status","brightness": true,"color_mode": true,"supported_color_modes": ["brightness"], "brightness_scale":100, "bri_val_tpl":"{{value_json.brightness}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-white-1", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/switch/%shelly_id%-1/config
payload={"name": "%shelly_id% White 1 onoff", "cmd_t": "~white/1/command", "stat_t": "~white/1", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-white-1-sw", "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/power/config
payload={"name": "%shelly_id% Power 1", "stat_t": "~white/1/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-white-power-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-1/energy/config
payload={"name": "%shelly_id% Energy 1", "stat_t": "~white/1/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-light-energy-1", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/light/%shelly_id%-2/config
payload={"name": "%shelly_id% White 2", "cmd_t": "~white/2/set", "stat_t": "~white/2/status","payload_on": "{\"turn\":\"on\",\"mode\":\"white\"}","payload_off": "{\"turn\":\"off\",\"mode\":\"white\"}", "value_template": "{{value_json.ison}}","stat_val_tpl": "{{value_json.ison}}","state_on":"true","state_off":"false","brightness_command_topic":"~white/2/set","brightness_state_topic":"~white/2/status","brightness": true,"color_mode": true,"supported_color_modes": ["brightness"], "brightness_scale":100, "bri_val_tpl":"{{value_json.brightness}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-white-2", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/switch/%shelly_id%-2/config
payload={"name": "%shelly_id% White 2 onoff", "cmd_t": "~white/2/command", "stat_t": "~white/2", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-white-2-sw", "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-2/power/config
payload={"name": "%shelly_id% Power 2", "stat_t": "~white/2/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-white-power-2", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-2/energy/config
payload={"name": "%shelly_id% Energy 2", "stat_t": "~white/2/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-light-energy-2", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/light/%shelly_id%-3/config
payload={"name": "%shelly_id% White 3", "cmd_t": "~white/3/set", "stat_t": "~white/3/status","payload_on": "{\"turn\":\"on\",\"mode\":\"white\"}","payload_off": "{\"turn\":\"off\",\"mode\":\"white\"}", "value_template": "{{value_json.ison}}","stat_val_tpl": "{{value_json.ison}}","state_on":"true","state_off":"false","brightness_command_topic":"~white/3/set","brightness_state_topic":"~white/3/status","brightness": true,"color_mode": true,"supported_color_modes": ["brightness"], "brightness_scale":100, "bri_val_tpl":"{{value_json.brightness}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-white-3", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/switch/%shelly_id%-3/config
payload={"name": "%shelly_id% White 3 onoff", "cmd_t": "~white/3/command", "stat_t": "~white/3", "pl_off": "off", "pl_on": "on", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-white-3-sw", "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/sensor/%shelly_id%-3/power/config
payload={"name": "%shelly_id% Power 3", "stat_t": "~white/3/power", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "enabled_by_default": true, "uniq_id": "%shelly_id%-white-power-3", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "power", "stat_cla": "measurement", "unit_of_meas": "W", "val_tpl": "{{value|float|round(1)}}"}
topic=%discovery_prefix%/sensor/%shelly_id%-3/energy/config
payload={"name": "%shelly_id% Energy 0", "stat_t": "~white/3/energy", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-light-energy-3", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "energy", "la_te": true, "stat_cla": "total_increasing", "unit_of_meas": "Wm"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SH2LED-1] # Shelly2LED # Partially works
topic=%discovery_prefix%/light/%shelly_id%-0/config
payload={"name": "%shelly_id% LED 0", "cmd_t": "~color/0/set", "stat_t": "~color/0/status","payload_on": "{\"turn\":\"on\"}","payload_off": "{\"turn\":\"off\"}", "value_template": "{{value_json.ison}}","stat_val_tpl": "{{value_json.ison}}","state_on":"true","state_off":"false","brightness_command_topic":"~color/0/set","brightness_state_topic":"~color/0/status","brightness": true,"color_mode": true,"supported_color_modes": ["brightness"], "brightness_scale":100, "bri_val_tpl":"{{value_json.brightness}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-light-0", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/light/%shelly_id%-1/config
payload={"name": "%shelly_id% LED 1", "cmd_t": "~color/1/set", "stat_t": "~color/1/status","payload_on": "{\"turn\":\"on\"}","payload_off": "{\"turn\":\"off\"}", "value_template": "{{value_json.ison}}","stat_val_tpl": "{{value_json.ison}}","state_on":"true","state_off":"false","brightness_command_topic":"~color/1/set","brightness_state_topic":"~color/1/status","brightness": true,"color_mode": true,"supported_color_modes": ["brightness"], "brightness_scale":100, "bri_val_tpl":"{{value_json.brightness}}", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false", "uniq_id": "%shelly_id%-light-1", "qos": 0, "~": "shellies/%shelly_id%/"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHSM-1][SHSM-01] # Shelly Smoke
topic=%discovery_prefix%/sensor/%shelly_id%-temperature/config
payload={"name": "%shelly_id% Temperature", "stat_t": "~sensor/temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/sensor/%shelly_id%/battery/config
payload={"name": "%shelly_id% Battery", "stat_t": "~sensor/battery", "enabled_by_default": true, "uniq_id": "%shelly_id%-battery", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "battery", "stat_cla": "measurement", "unit_of_meas": "%", "val_tpl": "{{value|float|round}}", "exp_aft": 51839}
topic=%discovery_prefix%/binary_sensor/%shelly_id%/config
payload={"name": "%shelly_id% Smoke", "stat_t": "~sensor/smoke", "enabled_by_default": true, "uniq_id": "%shelly_id%-smoke", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "pl_on": "true", "pl_off": "false", "dev_cla": "smoke"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHWT-1][SHWT-01] # Shelly Flood
topic=%discovery_prefix%/sensor/%shelly_id%-temperature/config
payload={"name": "%shelly_id% Temperature", "stat_t": "~sensor/temperature", "enabled_by_default": true, "uniq_id": "%shelly_id%-temperature", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "temperature", "stat_cla": "measurement", "unit_of_meas": "C", "avty_t": "~online", "pl_avail": "true", "pl_not_avail": "false"}
topic=%discovery_prefix%/sensor/%shelly_id%/battery/config
payload={"name": "%shelly_id% Battery", "stat_t": "~sensor/battery", "enabled_by_default": true, "uniq_id": "%shelly_id%-battery", "qos": 0, "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "dev_cla": "battery", "stat_cla": "measurement", "unit_of_meas": "%", "val_tpl": "{{value|float|round}}", "exp_aft": 51839}
topic=%discovery_prefix%/binary_sensor/%shelly_id%/config
payload={"name": "%shelly_id% Flood", "stat_t": "~sensor/flood", "enabled_by_default": true, "uniq_id": "%shelly_id%-flood", "qos": 0, "~": "shellies/%shelly_id%/", "entity_category": "diagnostic", "pl_on": "true", "pl_off": "false", "dev_cla": "moisture"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHGS-1] # Shelly Gas
topic=%discovery_prefix%/sensor/%shelly_id%/gas_ppm/config
payload={"name": "%shelly_id% Gas concentration", "stat_t": "~sensor/concentration", "enabled_by_default": true, "uniq_id": "%shelly_id%-gas", "qos": 0, "~": "shellies/%shelly_id%/", "dev_cla": "carbon_dioxide", "stat_cla": "measurement", "unit_of_meas": "ppm", "val_tpl": "{{value|float|round(1)}}","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/select/%shelly_id%/operation/config
payload={"name": "%shelly_id% Operation", "stat_t": "~sensor/operation", "cmd_t": "~dummy", "frc_upd": true, "enabled_by_default": true, "uniq_id": "%shelly_id%-operation", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["unknown","warmup","normal","fault"] }
topic=%discovery_prefix%/select/%shelly_id%/gas_state/config
payload={"name": "%shelly_id% Gas", "stat_t": "~sensor/gas", "cmd_t": "~dummy", "frc_upd": true, "enabled_by_default": true, "uniq_id": "%shelly_id%-gasstate", "~": "shellies/%shelly_id%/", "dev_cla": "event", "stat_cla": "selector", "ops":["unknown","none","mild","heavy","test"] }
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
[SHTRV-01] # Shelly TRV
topic=%discovery_prefix%/binary_sensor/%shelly_id%-online/config
payload={"name": "%shelly_id% Online", "stat_t": "~online", "uniq_id": "%shelly_id%-online", "~": "shellies/%shelly_id%/", "pl_on": "true", "pl_off": "false"}
topic=%discovery_prefix%/climate/%shelly_id%/config
payload={"name": "%shelly_id% Climate","~":"shellies/%shelly_id%/","temperature_command_topic": "~thermostat/0/command/target_t","temperature_state_topic": "~info","temperature_state_template": "{{ value_json.thermostats[0].target_t.value}}","current_temperature_topic": "~info","current_temperature_template": "{{ value_json.thermostats[0].tmp.value }}","temperature_unit": "C","precision": 0.1,"temp_step": 0.5,"max_temp": 31,"min_temp": 4,"icon": "mdi:thermostat","unique_id": "%shelly_id%","device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}}
topic=%discovery_prefix%/sensor/%shelly_id%/battery/config
payload={"name": "%shelly_id% Battery", "~": "shellies/%shelly_id%/", "stat_t": "~info", "uniq_id": "%shelly_id%-battery", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "entity_category": "diagnostic", "dev_cla": "battery", "stat_cla": "measurement", "unit_of_meas": "%", "val_tpl": "{{ value_json.bat.value }}"}
topic=%discovery_prefix%/binary_sensor/%shelly_id%/charger/config
payload={"name": "%shelly_id% Charger", "stat_t": "~info", "uniq_id": "%shelly_id%-charger", "~":"shellies/%shelly_id%/", "val_tpl": "{{ value_json.charger }}", "stat_off": "false","stat_on": "true"}
topic=%discovery_prefix%/sensor/%shelly_id%/valve/config
payload={"name": "%shelly_id% Valve Position", "~": "shellies/%shelly_id%/", "stat_t": "~info", "uniq_id": "%shelly_id%-pos", "device": {"identifiers": ["%shelly_mac%"],"manufacturer": "Shelly","model": "%shelly_model%","name": "%shelly_id%"}, "stat_cla": "measurement", "unit_of_meas": "%", "val_tpl": "{{ value_json.thermostats[0].pos }}"}
topic=%discovery_prefix%/select/%shelly_id%/profile/config
payload={"name": "%shelly_id% Schedule Profile", "stat_t": "~info", "cmd_t": "~thermostat/0/command/schedule_profile", "uniq_id": "%shelly_id%-profile", "stat_cla": "selector", "ops":["-","1","2","3","4","5"], "~":"shellies/%shelly_id%/", "val_tpl": "{{ value_json.thermostats[0].schedule_profile }}"}
topic=%discovery_prefix%/switch/%shelly_id%/schedule/config
payload={"name": "%shelly_id% Schedule", "cmd_t": "~thermostat/0/command/schedule", "stat_t": "~info", "pl_off": "0", "pl_on": "1", "stat_on": "true", "stat_off": "false", "uniq_id": "%shelly_id%-schedule", "~":"shellies/%shelly_id%/", "val_tpl": "{{ value_json.thermostats[0].schedule }}"}