{ "info":{ "name":"4 Ways Relay Module", "vendor": "imuslab", "mcu":"esp12F", "firmware":"1.0.0", "author":"tobychui" }, "api":[ { "id":"relay1", "name": "Channel 1", "actions": { "on":"/on?relay=0", "off":"/off?relay=0", "toggle":"/toggle?relay=0" } }, { "id":"relay2", "name": "Channel 2", "actions": { "on":"/on?relay=1", "off":"/off?relay=1", "toggle":"/toggle?relay=1" } }, { "id":"relay3", "name": "Channel 3", "actions": { "on":"/on?relay=2", "off":"/off?relay=2", "toggle":"/toggle?relay=2" } }, { "id":"relay4", "name": "Channel 4", "actions": { "on":"/on?relay=3", "off":"/off?relay=3", "toggle":"/toggle?relay=3" } } ] }