Open IurieGaitur opened 2 years ago
Hello, The answer is here: https://sonoff.tech/sonoff-diy-developer-documentation-minir3-http-api/
So you have to use such curl line for instance: curl -v -d '{"deviceid":"XXXXXXXX","data":{"switches": [{ "switch": "on", "outlet": 0 },{"switch": "off", "outlet": 1 },{ "switch": "off", "outlet": 2 },{ "switch": "off", "outlet": 3 }]}}' POST http://192.168.0.XX:8081/zeroconf/switches
Bought recently a Sonoff minir3. Did the configuration, found out that in order to get info, the deviceid should not be sent as it would return status 422. So without it - on the info call /zeroconf/info with
device returns multiple switches which is strange, should be only one :?. Response:
When I want to to on, using zeroconf/switch .
It returns
Any ideas how I can switch on/off the switch? at least the first one