At Morten Kvistgaard:
https://github.com/mirko/SonOTA
https://blog.ipsumdomus.com/sonoff-switch-complete-hack-without-firmware-upgrade-1b2d6632c01
It's not that's trivial but it is possible. On the pairing mode you can set server url:
{
"version": 4,
"ssid": [YOUR NETWORK SSID],
"password": [YOUR NETWORK PASSWORD],
"serverName": [IP OF YOUR SERVER],
"port": [PORT OF YOUR SERVER]
}
You could then make an update base on your server firmware. Also I wonder if it would not be possible with the API: http://iotgo.iteadstudio.com/api
But for this you need to find a way to authenticate. Right now the only solution I found was to install a packet analyse tool on my mobile to find the Json Web Token.
Get a look at https://wiki.almeroth.com/doku.php?id=projects:sonoff#known_hosts_ports
After Itead have upgrade to V. 1.6 it seem like it no longer is possible to do OTA - ITEAD, what have your change? Please help the community, we appreciate your product, and want to invest in more.. But your web service is not stable, and this will cost us customer if it not will be solved probate. https://github.com/mirko/SonOTA
https://www.youtube.com/watch?v=ONFhXM5R-t4
The point is that ITEAD is not responsible for the API service. We would have to deal with ewelink to solve such issue, since they provide the API and App to Sonoff...
I really think ITEAD should implement kind of a bridge device and give us the option to enable a local control our devices with it or leave it hybrid local control & cloud depending on your location.
@yodrack , you are right, the app from Ewelink is pretty nice. One problem is that Ewelink or sonoff (I don't really know from where it come) is not the most reliable software. It happen to me to often that I cannot switch off/on a light because it simply failed. Then I have to restart the app or wait or restart the sonoff or... For this reason some people might want to put custom firmware.
Another problem come with your second question. There is not really a way to use home made hardware into Ewelink (actually it maybe possible to simulate a sonoff device but that's might be tricky).
The last very annoying thing is that there is no proper API to interact with your sonoff, so it's hardly possible to use your device with node-red for example or what's ever tool u wanna use. (there is actually an API documentation but I never managed to get the JWT unless to sniff Ewelink with wireshark).
Waiting..
hello any news about this topic?
i would like to develop a new application to use it with my sonoff devices
thanks to help
do they provide SDK of the app?
Hi Kahil,
Unfortunatly, Itead does'nt disclose the code or the details of the commands how to control the SONOFF.
The only solution (as I know today) is to reflash the device with another firmware and develop your own App.
I would like to know 2 things:
- how to use SONOFF with another application,
- how to flash a new device and use it with Ewelink
Itead, Please disclose it as Xmass gift, it would be great !
fyv
i want to write application to replace eweLink, but i dont want flash device.
is it possible?
i allready have mqtt server, app and any device.
i want to add sonoff to my system/app without flashing
22 people like this idea