itead / Sonoff_Devices_DIY_Tools

BSD 3-Clause "New" or "Revised" License
552 stars 167 forks source link

Sonoff Mini doesn't go into DIY mode with 3.5.0 update #75

Open Fabien14000 opened 4 years ago

Fabien14000 commented 4 years ago

I have four sonoff mini diy. They were delivered with the 3.3.0 firmware release built in. I managed to set diy mode (with jumper) and update tasmota firmware for three of them.

But when I connected the last one to eWeLink, it proposed me to update to 3.5.0 release. I've done it without any trouble. But when I put the jumper on, the mini still work in standard mode (it connects to my wifi) and replies to eWeLink. There is no way to make it connect to "sonoffDiy" wifi.

Could it be a material defect or is there an issue with the 3.5.0 release ?

Thanks.

ekraus50 commented 3 years ago

Then I got this back. Dear Xxxx,

Pls Follow the methods to let the device enter DIY mode:

Make sure the device is successfully connected to the eWeLink App, and delete the device on your App. Make sure the current firmware of the devices are the lastest Version. If not , please update them. After deletion, the LED indicator should be flash two short and one long.

Long press the button for 5 seconds to enter "Compatible Pairing Mode" (AP) and The LED indicator will blink continuously.

From mobile phone or PC WiFi setting, an Access Point of the device named ITEAD-XXXXXXXXXX will be found, connect it with default password 12345678

Open the browser and access http://10.10.7.1/ .

Next, make sure you have a router that works under 2.4 G. Fill in WiFi SSID and password on the http://10.10.7.1/ that the device would have connected with.

From the router, you can get the device IP and MAC and its LED indicator will flash 2 flashes.

Now, you can access the URL: http://[ip]:[port]/zeroconf/info and if the response is received successfully, it means now the device is in DIY mode.

Notice:
If the device has successfully entered DIY mode before and you want to enter the DIY mode again, follow the steps I wrote above.
URL: http://[ip]:[port]/zeroconf/info: [ip] is the device IP,[port] is 8081.

Hoping all of these can help you, and I'm glad to hear from you again.

Regards, Taylor in SONOFF

ekraus50 commented 3 years ago

So of course it doesn't work for me.

Snoopy1368 commented 3 years ago

I have resolved my problems I had three routers all in the same room and I suspect they were confusing the Wi-Fi I was able to download the tasmota and address the device via HTTP but when I then disconnected the device and it will not log in. I am going to try to do an upgrade via a serial device.

Brian

From: ekraus50 notifications@github.com Sent: Wednesday, November 25, 2020 7:53 PM To: itead/Sonoff_Devices_DIY_Tools Sonoff_Devices_DIY_Tools@noreply.github.com Cc: Snoopy brianc@dunworkin13.com; Comment comment@noreply.github.com Subject: Re: [itead/Sonoff_Devices_DIY_Tools] Sonoff Mini doesn't go into DIY mode with 3.5.0 update (#75)

So of course it doesn't work for me.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/itead/Sonoff_Devices_DIY_Tools/issues/75#issuecomment-733660939 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ARZUZBB5SD7C3HBC7AGO7IDSRTVYTANCNFSM4L25RT5Q . https://github.com/notifications/beacon/ARZUZBEIQ4AR2N75H25XQDLSRTVYTA5CNFSM4L25RT52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFO5MOCY.gif

ekraus50 commented 3 years ago

Brian I flowed the process although he left out some of it. Connect to Ewelink and upgrade firmware. Delete device from Ewelink. Did the long press and connected to PC, Put in my Hostname and PW. Device connected looked at my DHCP table and saw the IP and MAC. And I can ping it. I killed my Virus software. Started ARC as administrator. POST http://192.168.1.129:8081/zeroconf/info Got 0 Request error The requested URL can't be reached The service might be temporarily down or it may have moved permanently to a new web address. connect ETIMEDOUT 192.168.1.129:8081

I tried this with 4 of them and got no where. Previously I did get one to respond but never got the payload in it. The only way I can flash these is Serially. This should be simple and I never really got there OTA stuff to work. Previously when they came out with the DIY tool (tool_01DIY85(3.3.0)) I got 1 out of 8 to flash the other 7 serially. Once I got Tasmota in the chip it became another learning curve but extremely powerful(more options then I could think of). Tasmota for me works great and the support from users makes it quite friendly. Sonoff doesn't give a crap about DIY they want you to use ewelink

Snoopy1368 commented 3 years ago

Re eWeLink it makes you wonder what they are up to, the way the DIY mode has been implemented is at best very unprofessional at worst designed to discourage you from using it.

Since they don’t seem to have Monetarised eWelink at present the reason for it remains a mystery it would have made the devices much more useable if they simply had an option during an upgrade to go for the Tasmota version with the usual warnings about voiding warranty etc. so what is the objective, with all the problems we have had with the CCP in Australia of recent times one worries what would happen if their government just shut them down to punish the worlds users. That is my main objective in moving to a Hubitat bases system so that everything is away from foreign interference add to that our internet is pretty unreliable where we live as we receive it via a microwave link to a fixed wireless tower which has only a couple of hours of backup power and again because of where we live two or three power outages in a season would be a good year. It is so unreliable that we have a 5.5 kva diesel gen set installed permanently in our garage with change over wiring. Waiting for batteries to fall in price so we could automate the change over as we already have a 5kw solar system on the roof.

Tomorrow I am going to try to recover the “Bricked” mini by connecting to it serially and try to reflash it. Don’t hold much hope but they are so cheap it does not really matter if you bugger a couple along the way.

Brian

From: ekraus50 notifications@github.com Sent: Wednesday, November 25, 2020 9:29 PM To: itead/Sonoff_Devices_DIY_Tools Sonoff_Devices_DIY_Tools@noreply.github.com Cc: Snoopy brianc@dunworkin13.com; Comment comment@noreply.github.com Subject: Re: [itead/Sonoff_Devices_DIY_Tools] Sonoff Mini doesn't go into DIY mode with 3.5.0 update (#75)

Brian I flowed the process although he left out some of it. Connect to Ewelink and upgrade firmware. Delete device from Ewelink. Did the long press and connected to PC, Put in my Hostname and PW. Device connected looked at my DHCP table and saw the IP and MAC. And I can ping it. I killed my Virus software. Started ARC as administrator. POST http://192.168.1.129:8081/zeroconf/info Got 0 Request error The requested URL can't be reached The service might be temporarily down or it may have moved permanently to a new web address. connect ETIMEDOUT 192.168.1.129:8081

I tried this with 4 of them and got no where. Previously I did get one to respond but never got the payload in it. The only way I can flash these is Serially. This should be simple and I never really got there OTA stuff to work. Previously when they came out with the DIY tool (tool_01DIY85(3.3.0)) I got 1 out of 8 to flash the other 7 serially. Once I got Tasmota in the chip it became another learning curve but extremely powerful(more options then I could think of). Tasmota for me works great and the support from users makes it quite friendly. Sonoff doesn't give a crap about DIY they want you to use ewelink

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/itead/Sonoff_Devices_DIY_Tools/issues/75#issuecomment-733706587 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ARZUZBHZUGKBNCQKKRTVXSLSRUBCVANCNFSM4L25RT5Q . https://github.com/notifications/beacon/ARZUZBDLCJZSUPD2AK2GYILSRUBCVA5CNFSM4L25RT52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFO5XSWY.gif

Snoopy1368 commented 3 years ago

Have you tried flashing with Tasmotizer, I found this to work so far 100% but I am now not doing any further upgrades / updates as I have concluded I may be heading in the wrong direction.

Hubitat does not support Harmony or Broadlink and I have several of these devices working fine but obviously using the web. I am not concerned where the company hosts stuff outside of China but who knows what the CCP will do next.

Brian

From: ekraus50 notifications@github.com Sent: Wednesday, November 25, 2020 6:59 PM To: itead/Sonoff_Devices_DIY_Tools Sonoff_Devices_DIY_Tools@noreply.github.com Cc: Snoopy brianc@dunworkin13.com; Comment comment@noreply.github.com Subject: Re: [itead/Sonoff_Devices_DIY_Tools] Sonoff Mini doesn't go into DIY mode with 3.5.0 update (#75)

Then I got this back. Dear Xxxx,

Pls Follow the methods to let the device enter DIY mode:

Make sure the device is successfully connected to the eWeLink App, and delete the device on your App. Make sure the current firmware of the devices are the lastest Version. If not , please update them. After deletion, the LED indicator should be flash two short and one long.

Long press the button for 5 seconds to enter "Compatible Pairing Mode" (AP) and The LED indicator will blink continuously.

From mobile phone or PC WiFi setting, an Access Point of the device named ITEAD-XXXXXXXXXX will be found, connect it with default password 12345678

Open the browser and access http://10.10.7.1/ .

Next, make sure you have a router that works under 2.4 G. Fill in WiFi SSID and password on the http://10.10.7.1/ that the device would have connected with.

From the router, you can get the device IP and MAC and its LED indicator will flash 2 flashes.

Now, you can access the URL: http://[ip]:[port]/zeroconf/info and if the response is received successfully, it means now the device is in DIY mode.

Notice: If the device has successfully entered DIY mode before and you want to enter the DIY mode again, follow the steps I wrote above. URL: http://[ip]:[port]/zeroconf/info: [ip] is the device IP,[port] is 8081.

Hoping all of these can help you, and I'm glad to hear from you again.

Regards, Taylor in SONOFF

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/itead/Sonoff_Devices_DIY_Tools/issues/75#issuecomment-733634475 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ARZUZBG6GWPVDWLWFWF46XTSRTPPTANCNFSM4L25RT5Q . https://github.com/notifications/beacon/ARZUZBHTAVP3KTYVR7VR2QLSRTPPTA5CNFSM4L25RT52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFO5F7KY.gif

ekraus50 commented 3 years ago

Well I sent back the 4 Mini's that I got and figured I would start out fresh with some new ones. Got 4. Well they were new. The board showed a date of 1/15/20. They removed the jumper pins. Board may be a tad bigger because it fits tightly in the enclosure. I tried the processes that Sonoff support sent me and again it failed. So if went for the serial flash. My soldering skills are not worth a Sxxx. The first module I managed to lift the RX pad so I had to find the RX pin on the ESP8285. I flashed that one and the other 3 in about 1 hour. Here is how I did it. 1 - Solder wires on RX, TX and 3.3V. No need to solder the GND you can access that on S1-GND using a test clip. 2 - Connect your USB to serial module. RX to TX, TX to RX, GND and 3.3V (Make sure you power it wit 3.3V) 3 - Start your Flashing software. ( I used either ESP.Easy.Flasher, or FlashESP8266 or what ever you want) 4 - Power up the Mini holding in the reset Button and don't release it until your software has the com port open and you picked your firmware. I start my flash and then release the button. It takes 56.3 Seconds to flash it the new firmware. 5 - Go to your wifi adapter and connect to tasmota-xxxxxx-xxxx. 6 - On browser go to 192.168.4.1. 7 - Insert your Hostname in AP1 SSID and password in API Password (Save). 8 - Check out you DHCP table and locate the IP Address for tasmota-xxxxxx-xxxx 9 - Open that IP in your browser Then you can flash it with what ever tasmota firmware you want. This process is a close as I can get to what I did. My original serial flash is with tasmota-minimal-8.3.1.bin then from the browser upgrade to the full tasmota load. I hell of alot easier that trying there DIY mode. 20201130_041339 mini b

dawsmac commented 3 years ago

FYI...

Got 4 new Sonoff mini this week from Amazon with ver 3.5

Followed the below process (Thanks for sharing) and installed ESPHOME ;) so I can confirm all is still working, mine even came with no pin's for DIY mode making it well easy! not that install a Jumper was hard work lol :)

Dear Xxxx,

Pls Follow the methods to let the device enter DIY mode:

Make sure the device is successfully connected to the eWeLink App, and delete the device on your App. Make sure the current firmware of the devices are the lastest Version. If not , please update them. After deletion, the LED indicator should be flash two short and one long.

Long press the button for 5 seconds to enter "Compatible Pairing Mode" (AP) and The LED indicator will blink continuously.

From mobile phone or PC WiFi setting, an Access Point of the device named ITEAD-XXXXXXXXXX will be found, connect it with default password 12345678

Open the browser and access http://10.10.7.1/ .

Next, make sure you have a router that works under 2.4 G. Fill in WiFi SSID and password on the http://10.10.7.1/ that the device would have connected with.

From the router, you can get the device IP and MAC and its LED indicator will flash 2 flashes.

Now, you can access the URL: http://[ip]:[port]/zeroconf/info and if the response is received successfully, it means now the device is in DIY mode.

Cheers

Rich

camochu commented 3 years ago

My step-by-step proccess to flash tasmota. Tried on my 6 mini's (new version without jumper) with success:

mVik85 commented 3 years ago

Hey Guys! Thanks for the infos, the tutorials and videos are mostly outdated about Sonoff DIY, but in the end I also managed to make it work with the Sonoff tool. Just make sure that you don't solder the former OTA pins on the PCB, the tool was not consistently discovering the device and could not control it like that... I did that as I started following the first relevant video, which contains no more valid info...

yfaykya commented 3 years ago

I followed your blog post, but it is still not working. At the end I can see in nginx that the SonOff device try a post request, but obviously it doesn't work.

[18/Oct/2020:23:40:29 +0000] "POST /api/device/otaFlash HTTP/1.1" 404 153 "-" "-" "-" 2020/10/18 23:40:29 [error] 7#7: *28 open() "/opt/www/file-browser/api/device/otaFlash" failed (2: No such file or directory), client: 172.17.0.1, server: localhost, request: "POST /api/device/otaFlash HTTP/1.1"

Did you face this issue?

Hi, did you ever figure this out?

tolrahC commented 3 years ago

@yfaykya ,

Nope, but the DIY mode was fair enough for me and it is working with home assistant.

johanson commented 3 years ago

My step-by-step proccess to flash tasmota. Tried on my 6 mini's (new version without jumper) with success:

  • Download last tasmota-lite.bin (9.1.0) from http://ota.tasmota.com/tasmota/release/
  • Connect Mini to power. It starts blink short-short-long cycle (eWelink sinc mode)
  • Press Mini button for about 6 seconds. It starts blink short-short cycle (DIY sinc mode)
  • Search for Access Point Itead-xxxxxxxx and connect with pass:12345678
  • Open browser to 10.10.7.1 and configure my WiFi SSID and password. Mini restarts
  • Reconnect to my WiFi
  • Open tool_01DIY85(3.3.0).exe. It finds Mini and I can change relay with on/off buttons
  • Press "Firmware Flash", "Import firmware" (and select .bin file), "Flash list" (device is auto-selected) and "OK"
  • Progress bar runs to the end and Mini restarts again
  • Search for Access Point Tasmota_xxxxxxxx and connect with no pass
  • Open browser to 192.168.4.1 and configure my wifi SSID and password. Mini restarts
  • Reconnect to my Wifi and search device IP in router's DHCP table or with other app like fing on mobile

And since it's a windows tool, you need to disable the firewall (windows defender is by default on) for the tool_01DIY85(3.3.0).exe binary to work.

snipes040 commented 3 years ago

Is anybody having issues just trying to get to the http://10.10.7.1/ website to be able to fill in your wifi details? I've put my sonoff mini plug (firmware 3.5.0) into DIY mode and I connect to the wifi network (ITEADXXXX) just fine BUT when I browse to the website of 10.10.7.1 it just loads forever and then times out.... Does anybody else have this issue?

elisey commented 3 years ago

Is anybody having issues just trying to get to the http://10.10.7.1/ website to be able to fill in your wifi details? I've put my sonoff mini plug (firmware 3.5.0) into DIY mode and I connect to the wifi network (ITEADXXXX) just fine BUT when I browse to the website of 10.10.7.1 it just loads forever and then times out.... Does anybody else have this issue?

Do you connect via mobile phone or computer?

snipes040 commented 3 years ago

@elisey I've tried both, it wasn't work on my phone so I tried my surface pro, the next step is trying on my desktop machine but need to find my wireless adapter first. Does that make a difference?

camochu commented 3 years ago

Some phones connected to a wifi that has no internet connection redirects traffic through mobile network, so 10.x can't be found. Be sure to disable mobile data connection when you connect to tasmota's wifi access point If the problem persist, you can try to reflash tasmota

snipes040 commented 3 years ago

@camochu ok so I'm just an idiot I guess, I have the BASICR2 model and supports says DIY mode doesn't work so I guess I'm going to have to flash Tasmota on them then...

ZenSlo commented 3 years ago

Thanks for the explanation. I followed each step and now I can see it connected to my network. With Chrome ARC plugin, i can send a POST request to http://192.168.1.101:8081/zeroconf/info with a json data (it's important not to forget this laziukiewicz !) : { "deviceid": "", "data": { } } And I have the answer 👍

Have unlock OTA flash with ota_unlock command. But I do not success in updating firmware. Here is my REST call : http://192.168.1.101:8081/zeroconf/ota_flash With json data : { "devideid" : "", "data": { "downloadUrl" : "http://192.168.1.123/tasmota-lite.bin", "sha256sum": "2716fc2b9628b53df8ff040400dda015f82085f470a6b194276ff51abda3425c" } }

it replies 200 OK, the LED blinks several times then the sonoff reboot. Thus I open a new wifi network as usually... In the end, I think this new method appears a little tricky...

I spent a long time trying to get the “/zeroconf/ota_flash” part of this process to work until I discovered that the “sha256sum” given MUST be in lower case!

I had been using a PC program to give me an SHA-256 value that it gave in UPPER CASE and this consistently failed, when I used exactly the same SHA-256 vale in lower case it worked first time.

Thinking this might be a fluke I repeated the process on a second Sonoff DIY Mini 3.6 and attempted to flash "tasmota-lite.bin" five times with an upper case SHA-256 without success, then once with the same SHA-256 in lower case and it worked first time.

adopilot commented 3 years ago

Is anybody having issues just trying to get to the http://10.10.7.1/ website to be able to fill in your wifi details? I've put my sonoff mini plug (firmware 3.5.0) into DIY mode and I connect to the wifi network (ITEADXXXX) just fine BUT when I browse to the website of 10.10.7.1 it just loads forever and then times out.... Does anybody else have this issue?

Same at me, My sonooff mini was in DIY mode now I need to change wi-fi. I connect wifi i get ip adres i ping device but unable to webpage 10.10.7.1 I did try from desktop pc with chrome, firefox alway same

txali commented 3 years ago

Is anybody having issues just trying to get to the http://10.10.7.1/ website to be able to fill in your wifi details? I've put my sonoff mini plug (firmware 3.5.0) into DIY mode and I connect to the wifi network (ITEADXXXX) just fine BUT when I browse to the website of 10.10.7.1 it just loads forever and then times out.... Does anybody else have this issue?

I have the same issue, into DIY mode, well ping to 10.10.7.1 but when I send a request GET or POST to http://10.10.7.1/ or http://10.10.7.1/whatever..... via browser o postman, I have no response.

fabiogiannini commented 3 years ago

Yesterday I wasn't able to install the last tasmota-lite.bin (9.2), doing the post on /zeroconf/ota_flash resulted in an OK but the webserver didn't received any request. Then I tried an old version of tasmota-lite (8.1.0) and it worked! Probably there is a signature check or it's a file size problem... I don't know

Dacesilian commented 3 years ago

There is my working tutorial for flashing Sonoff Mini - https://gist.github.com/Dacesilian/b117f2194a72e3b7184b802e9cc82c82. Feel free to add comments if needed.

AndyGoldie commented 3 years ago

All this crap really must be longest way in history for people to say "these things are junk they don't work and can't be reprogrammed OTA".

ekraus50 commented 3 years ago

They really aren't junk just a PIA to flash. Look at my post about serial flash. I wasted so much time and effort trying to use the Sonoff OTA flash. Didn't work for me. Solder 3 wires on an you can flash the mini in a couple of minutes. there are way to many variables involved. Could be your phone, your router or your PC. Serial flash works! I have done all my Sonofff devices a Tuya device and 8 KMC Plugs all by serial. Now when I buy a ESP device I make sure the pins are easily accessible.

Snoopy1368 commented 3 years ago

Make sure your passwords don’t contain any non alpha characters.

Brian

From: Fabio Giannini notifications@github.com Sent: Saturday, January 30, 2021 6:49 PM To: itead/Sonoff_Devices_DIY_Tools Sonoff_Devices_DIY_Tools@noreply.github.com Cc: Snoopy brianc@dunworkin13.com; Comment comment@noreply.github.com Subject: Re: [itead/Sonoff_Devices_DIY_Tools] Sonoff Mini doesn't go into DIY mode with 3.5.0 update (#75)

Yesterday I wasn't able to install the last tasmota-lite.bin (9.2), doing the post on /zeroconf/ota_flash resulted in an OK but the webserver didn't received any request. Then I tried an old version of tasmota-lite (8.1.0) and it worked! Probably there is a signature check or it's a file size problem... I don't know

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/itead/Sonoff_Devices_DIY_Tools/issues/75#issuecomment-770192764 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ARZUZBFG2ODPS5PD6OUQUGLS4PP2PANCNFSM4L25RT5Q . https://github.com/notifications/beacon/ARZUZBADCZDVLCGCBG5IDRLS4PP2PA5CNFSM4L25RT52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFXUDK7A.gif

CervDotBe commented 3 years ago

Funny thing is, I received 2 SONOFF Mini's yesterday with firmware 3.5 installed. My comment from last summer did still apply and got them easily flashed. That makes 6 of them in the past couple of months. Flashed 4 with firmware 3.5, 2 with firmware 3.6.

Steps 1 to 4 are not even needed if it comes with firmware 3.5 or 3.6 from the factory.

I did it via this simple way:

1. Download and install the eweLink app

2. Quick pair your device

3. Update firmware to 3.5 in the eWelink app

4. Once done, delete the device from the app

5. Put your device into DIY hotspot pairing mode, connect with a device and fill in your WLAN data (via http://10.10.7.1). It will connect to your WIFI network. No jumper needed.

If you want to install tasmota on it, continue with these instructions:

1. Download & open the DIY tool from this GIT. Open it on a computer within the same network (maybe disable your firewall to be sure), your device will appear in the list

2. Download the tasmota-lite firmware (http://thehackbox.org/tasmota/release/), install it trough the DIY tool (**I used the log version, regular version didn't work to flash it**)
marcinprzybysz86 commented 3 years ago

Nothing works for me when trying to upload firmware via ota on Sonoff Mini v1.2. Led just blinks twice as always, no reaction from the device.

Device info:

#  curl --location --request POST '192.168.1.33:8081/zeroconf/info' -H "Content-Type: application/json" --data '{ "deviceid": "","data": { }}'

{"seq":2,"error":0,"data":{"switch":"off","startup":"off","pulse":"off","pulseWidth":500,"ssid":"tmobile_pyby","otaUnlock":true,"fwVersion":"3.6.0","deviceid":"1000f30f5f","bssid":"40:b0:76:5a:7e:a4","signalStrength":-42}}

Then OTA:

curl -vvv --location --request POST '192.168.1.33:8081/zeroconf/ota_flash' -H "Content-Type: application/json" --data '{"deviceid": "","data": {"downloadUrl": "http://192.168.1.200:8085/kowcio_sonoff1.bin","sha256sum":"c14207516c91f2ed75170e45ea887c380f8ee77f25714e7a8445cebbb8229873"}}'

Note: Unnecessary use of -X or --request, POST is already inferred.
* Expire in 0 ms for 6 (transfer 0x55b6fafaadc0)
*   Trying 192.168.1.33...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x55b6fafaadc0)
* Connected to 192.168.1.33 (192.168.1.33) port 8081 (#0)
> POST /zeroconf/ota_flash HTTP/1.1
> Host: 192.168.1.33:8081
> User-Agent: curl/7.64.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 170
>
* upload completely sent off: 170 out of 170 bytes
* Empty reply from server
* Connection #0 to host 192.168.1.33 left intact
curl: (52) Empty reply from server

Any ideas?

ad14us commented 3 years ago

@CervDotBe i have following your step, but i am stuck when brush machine. It showed 0% and no progress at all. I already tried ON and OFF and it is successfull. Also from Info, i get "otaUnlock : true" already. Anyone have the same issue ?

2021-03-22_10-14-07

Spider84 commented 3 years ago

Hello averyone! I have eWelink PSF-B67-GL DIN rail single channel meter/switch with 3.5.0 firmware. But I can't use it in DIY mode :( I tried to use instruction but http://10.10.7.1 is not acssesable. Yes is has pinging, but no services on 80 port. Stock eWelink application show LAN icon on device, but 8081 port not acceptable. What I do wrong?

jhdutoit commented 2 years ago

Have you received any response? I sit with exactly the same device and veraiins and situation as you.

I need to change the settings of the device to point to a local server, or reflash the device with Tasmota using OTA.

Please let me know if you get more info.

Thanks

raffaeler commented 2 years ago

@jhdutoit just carefully follow the instructions. These are the steps I followed:

ensure the WiFi SSID and password are still valid for the next steps

I found this guide being very well done (use google translator): https://www.vincenzocaputo.com/sonoff/sonoff-nuova-modalitandagrave-diy-v2.1-facilitata-e-firmware-3.5.0-413

Once you gain the DIY, update the fw at least at 3.5. The OTA can be enabled using a HTTP command (see official APIs). Once OTA is enabled, you can follow the Tasmota guide. I strongly suggest updating the firwmare hosting it in a docker container, but it is not obviously the only way to do it.

HTH

davidebeatrici commented 2 years ago

Please note that:

  1. The device must have internet access, otherwise the OTA unlock request hangs.
  2. The original firmware's OTA has a 508 KB binary limit, see http://sonoff-ota.aelius.com.
raffaeler commented 2 years ago

Please note that:

  1. The device must have internet access, otherwise the OTA unlock request hangs.
  2. The original firmware's OTA has a 508 KB binary limit, see http://sonoff-ota.aelius.com.

This is true with eWelink but not with the OTA mode. I've never let the device connect to the internet.

After some month I gave up with the original firmware and migrated to Tasmota which is far easier to manage and has a lot of better options. I strongly suggest anyone to go with Tasmota.

davidebeatrici commented 2 years ago

This is true with eWelink but not with the OTA mode.

What do you mean?

After some month I gave up with the original firmware and migrated to Tasmota which is far easier to manage and has a lot of better options. I strongly suggest anyone to go with Tasmota.

I bought the device because compatible with Tasmota.

raffaeler commented 2 years ago

This is true with eWelink but not with the OTA mode.

What do you mean?

The factory firmware can work in two different ways:

The original docs contain detailed instructions for using both modes. Anyway, setting the OTA mode can be quite tricky as testified by the number of issues opened in this repository and also in many articles on the internet.

I bought the device because compatible with Tasmota.

Well done, it is the best firmware available for many devices, so far. You can also create your own device using one of the many ESP32 powered boards on the market. It also supports older CPUs but nowadays the ESP32 is so cheap that it is far better to use this.

davidebeatrici commented 2 years ago

The factory firmware can work in two different ways:

  • cloud-connected (see docs for eWeLink)
  • OTA: you can send REST commands via http to control the device

The original docs contain detailed instructions for using both modes. Anyway, setting the OTA mode can be quite tricky as testified by the number of issues opened in this repository and also in many articles on the internet.

I was actually in OTA mode, but the ota_unlock endpoint just hanged until I provided internet access to the device.

Well done, it is the best firmware available for many devices, so far. You can also create your own device using one of the many ESP32 powered boards on the market. It also supports older CPUs but nowadays the ESP32 is so cheap that it is far better to use this.

Indeed, I even found it in a bulb: https://github.com/arendst/Tasmota/issues/3055#issuecomment-1152981168

raffaeler commented 2 years ago

I was actually in OTA mode, but the ota_unlock endpoint just hanged until I provided internet access to the device.

Weird, I didn't have this problem. The network that I used for the OTA process did not have access to the Internet. I described the procedure here

Indeed, I even found it in a bulb: https://github.com/arendst/Tasmota/issues/3055#issuecomment-1152981168

great

Knuppel1983 commented 1 year ago

@jhdutoit just carefully follow the instructions. These are the steps I followed:

  • setup a temporary wifi with WPA2
  • wifi password MUST have only numbers and letters (no symbols). This is super important.
  • connect the device using the instructions of eWeLink application
  • upgrade the firmware to the v3.5 (at least)

ensure the WiFi SSID and password are still valid for the next steps

  • long press (5 sec) the device button => this triggers the quick pairing mode with eWeLink ==> blue led blinks: short, short, long
  • during quick pairing, long press (5 sec) the button again => this triggers the "compatibilty mode" and make the Wifi hotspot of the device available
  • connect to the device hotspot (password 12345678)
  • open the web browser to http://10.10.7.1 - this should show a wifi configuration dialog
  • at this point put the final SSID and password where the device will be available in the special "DIY Mode"
  • install and use the "Sonoff DIY"

I found this guide being very well done (use google translator): https://www.vincenzocaputo.com/sonoff/sonoff-nuova-modalitandagrave-diy-v2.1-facilitata-e-firmware-3.5.0-413

Once you gain the DIY, update the fw at least at 3.5. The OTA can be enabled using a HTTP command (see official APIs). Once OTA is enabled, you can follow the Tasmota guide. I strongly suggest updating the firwmare hosting it in a docker container, but it is not obviously the only way to do it.

HTH

This was the golden tip for my Sonoff D1 v3.5. Setup a 2.4Ghz SSID and use a simple password containing only letters. Before that i couldn't get it to reply to my json POST request. After it replied with the deviceid, i then ran sonoff-ota-flash-cli from Knoppix (Hyper-V), and had Tasmota running in no time.

Getting it in DIY mode though is a PITA without the remote.

rodionos commented 5 months ago

I'm running into connection issues on Sonoff iFan04-H. Firmware version: 3.5.0 (Latest). I am able to configure the DYI mode as follows.

curl http://10.10.7.1:80/device

Note: Sometimes it takes the fan controller a minute or so to start responding to any http requests after a power reset.

Response:

{"deviceid":"10013XXXXX","apikey":"XXXXXXXXXX","accept":"post","chipid":"0077XXXX"}
curl --request POST --header "Content-Type: application/json" \
--data '{"ssid":"nnnnnn","password":"nnnnnnnnnn","version":4,"port":8081,"serverName":"ifan04"}' \
http://10.10.7.1:80/ap

My Wifi ssid and password are alphanumeric. I'm sure what's the purpose of the version and serverName field.

Response:

{"error":0}
curl -v --request POST --header "Content-Type: application/json" \
 --data '{"deviceid": "", "data": {}}' \
  http://192.168.0.67:8081/zeroconf/info
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying 192.168.0.67:8081...
* Connected to 192.168.0.67 (192.168.0.67) port 8081
> POST /zeroconf/info HTTP/1.1
> Host: 192.168.0.67:8081
> User-Agent: curl/8.4.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 28
> 
------ AFTER several minutes ------
* Recv failure: Connection reset by peer
* Closing connection

I wonder if anyone had a similar problem with hanging requests to the built-it web server.