itead / Sonoff_Devices_DIY_Tools

BSD 3-Clause "New" or "Revised" License
548 stars 168 forks source link

MAKE ITEAD GREAT AGAIN! #52

Open rradar opened 4 years ago

rradar commented 4 years ago

As time showed that their are many problems with the original itead firmware/software released:

and sadly itead isn't able to address all of them in a proper way. The steps to free a device and put custom firmware on it (I guess that's the majority of people buying these devices for) is just a pain in the arse (:hankey:). I just did it once and it costs me half of my day.

It would be probably a good move to ship the itead hardware (for example sonoff mini) without itead firmware/software (virus free/bug free/hassle free!)

Instead only a little place holder firmware (for example wifi manager with possibility to upload your own firmware) which initially opens an Access Point to connect to. Everything else is up to the user:

Example: image

I can just speak for me but it's really a shame that itead releases such a nice hardware as the sonoff mini and the makes the software part worst as possible. I will not get any more sonoff devices before this is fixed in terms of usability.

Daniel-zhan-itead commented 4 years ago

Sonoff will optimize the DIY Mode firmware.

The optimized version beta test release will be in Feb.

rradar commented 4 years ago

Interesting @Daniel-zhan-itead

Itead is on the black list for me and my customers. Let's see if you really can ship the device with a firmware which addresses all the issues and privacy concerns. Till than Itead will stay blacklisted :black_flag:

pocketscience commented 4 years ago

Any news @Daniel-zhan-itead ? Would love to buy some mini's, but will not with the current problems with firmware and DIY mode.

rradar commented 4 years ago

:hankey:

Daniel-zhan-itead commented 4 years ago

Any news @Daniel-zhan-itead ? Would love to buy some mini's, but will not with the current problems with firmware and DIY mode.

New firmware 3.5.0 has been released.

Developers page: http://developers.sonoff.tech/ Video demo: https://www.youtube.com/watch?v=1TmgJnvtV0s Article: https://sonoff.tech/product-tutorials/diy-mode-to-control-the-sonoff-device

pocketscience commented 4 years ago

New firmware 3.5.0 has been released.

Thanks - will check stout ASAP!

rradar commented 4 years ago

@Daniel-zhan-itead

The way to switch into DIY mode of the new version (2.0) is totally different with the 1.0 one. No enclosure disassembly and jumper plug-in is needed, in DIY mode 2.0, long pressing the pairing button for seconds leads device switch into Compatiable Pairing Mode (AP) which set the device as Access Point. A hotspot of the Access Point can be found in the name of ITEAD-XXXXXXX (password: 12345678), connect it!

A web page for the configuration of WIFi network that the device will connected with is stored in DIY mode device which can be accessed by the URL of http://10.10.7.1/ as below shown, after configuring the SSID and Password, the device will reboot and connect with the WiFi network that just entered.

The process of device set up and control becomes more convenient and speedy. The real sense of DIY mode is to explore the way to control the SONOFF device and save the time [...]

Congratulations itead! :champagne: :clinking_glasses: :fireworks: Seriously almost everything is done the right way now! That's really great!

Just one tiny little thing would be nice to do (to make flashing my own .bin easier) is to place ota update directly in the web server (http://10.10.7.1/) of the device so it can be flashed immediately :rocket:

image

rradar commented 4 years ago

Stop, wait! Is it still necessary to contact Chinese server to enable DIY mode @Daniel-zhan-itead ?

daveprue commented 4 years ago

DIY Tool does not work with 3.5.0, since the API is different. How are we supposed to upload firmware without DIY Tool? Write our own tool?

tyeth commented 4 years ago

Hi @iteadsw + @Daniel-zhan-itead I wish to attempt to use DIY mode on some BASICs, POWs and TH10s. Is this possible? Do I just get latest firmware for all and attempt to manually pair?

I have already successfully manually joined the pairing network and sent a POST to device to give it the wifi SSID etc, they connect attempt to connect to my websocket (some old discontinued github project due to cert issues).

With this DIY tool, do I essentially get a http REST server that works? And also does it work for the POW , TH10, and BASIC (all R2 i think)?

Thanks for engaging with the community. These products seemed cheap and mostly great (IFTTT etc, but intermittent connectivity or pairing issues). I bought them 2yrs ago and never really used. Now I come back to them the community knowledge has increased (pairing involves getting to the double/equal-flash state by holding button during first start / tripleflash) as well as firmware quality. I'm using eWelink app to setup, then nodered plus ewelink API to control, and am very happy, but want offline mode ideally.

I did notice the new v2 pdf in this repository, which seems to suggest that simply by entering DIY mode, I can connect to the webserver, specify my new wifi settings, and it will connect there and advertise over mDNS. I then have to lookup the deviceid (or at least once #54 is fixed) from mDNS or potentially before switching wifi via 10.x.x.x/device to then send proper requests. Does that sound about right?