Hello, community
I have working JSON query for switching and i need describing this like a channel in open hub. but I don't understand how. can you help me?
Thing mqtt:topic:external:shellypro3-ec626089ff68 "Shelly PRO3 shellypro3-ec626089ff68 BP1" (mqtt:broker:external) {
Channels:
Type string : online "Online" [ stateTopic="shellypro3-ec626089ff68/online" ]
Type switch : PowerSwitch [ stateTopic="shellypro3-ec626089ff68/rpc", commandTopic="shellypro3-ec626089ff68/rpc", on="?", off="?" ]
json:
{
"id": 1,
"src": "MQTT",
"method": "Switch.Set",
"params": {
"id": 0,
"on": true
}
}