You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
{
"data": {
}
}
device returns multiple switches which is strange, should be only one :?.
Response:
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
The text was updated successfully, but these errors were encountered: