отправка конфига в сокеты

This commit is contained in:
Dmitry Borisenko
2021-12-16 00:19:08 +01:00
parent 715d20c21f
commit f7a97c2d36
8 changed files with 55 additions and 49 deletions

View File

@@ -1,28 +1,29 @@
[
{
"type": "button-out",
"type": "binary",
"subtype": "button-out",
"id": "btn1",
"gpio": 1,
"inv": false,
"web": {
"widget": "toggle",
"page": "Кнопки",
"descr": "Освещение1",
"order": 1,
"topic": "/prefix/123456-123456/btn2"
}
"inv": false
},
{
"type": "button-out",
"id": "btn2",
"gpio": 1,
"inv": false,
"web": {
"widget": "toggle",
"page": "Кнопки",
"descr": "Освещение2",
"order": 1,
"topic": "/prefix/123456-123456/btn2"
}
"type": "sensor",
"subtype": "bme280",
"units": "temp",
"id": "tmp1",
"addr": "0x48",
"int": 10,
"c": 1,
"s": 0
},
{
"type": "sensor",
"subtype": "bme280",
"units": "temp",
"id": "tmp2",
"addr": "0x48",
"int": 10,
"c": 1,
"s": 0
}
]