jrbenito / SonoffDIY-tasmotizer

A docker image to flash Tasmota (or other firmware) to a Sonoff DIY device
1 stars 0 forks source link

FW 3.7.6 OTA unlock with SONOFF Mini R2 (EU) #4

Open jackun opened 11 months ago

jackun commented 11 months ago

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.

https://github.com/itead/Sonoff_Devices_DIY_Tools/issues/45#issuecomment-1364593360

3N37 commented 11 months ago

@jackun , I finally succeeded, I wrote a guide that I enclose. flashing sonoffminiR2.it.en.pdf