Just to document...
Seems 3.7.6 needs deviceid to be valid or api calls just sit there. You get it from the usual curl http://device_ip:8081/zeroconf/info --data-raw '{"data":{}}' (NOTE: don't set deviceid in this post data.)
To bypass OTA unlock servers, redirect apid.coolkit.cn to your local server (like, add static DNS entry to your router) and make http://your_server/v2/d/otaflash return { "error": 422 }.
After flashing, if you care, success/error code gets POST'ed to /api/device/otaFlash as {"error":0} etc.
Just to document... Seems 3.7.6 needs deviceid to be valid or api calls just sit there. You get it from the usual
curl http://device_ip:8081/zeroconf/info --data-raw '{"data":{}}'
(NOTE: don't setdeviceid
in this post data.)To bypass OTA unlock servers, redirect
apid.coolkit.cn
to your local server (like, add static DNS entry to your router) and makehttp://your_server/v2/d/otaflash
return{ "error": 422 }
. After flashing, if you care, success/error code gets POST'ed to/api/device/otaFlash
as{"error":0}
etc.https://github.com/itead/Sonoff_Devices_DIY_Tools/issues/45#issuecomment-1364593360