{ "accessory": "mqttthing", "type": "statelessProgrammableSwitch", "name": "Кнопка у ванной", "topics": { "getSwitch": { "topic": "shellies/shellybutton1-A4CF12F45301/input_event/0", "apply": "return JSON.parse(message).click;" }, "getBatteryLevel": "shellies/shellybutton1-A4CF12F45301/sensor/battery" }, "switchValues": [ "S", "SS", "L" ] }