Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

info new version #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

info new version #3

wants to merge 2 commits into from

Conversation

posh1982
Copy link

@posh1982 posh1982 commented Jan 8, 2019

hello,
I just send you "take me a coffe" and I download the firmware!
I read that you relase new version! can I have the firmware?
many thanks

@Fussverkehr
Copy link

Hi
i really like your firmware. But the REST-Api doesn't works on my sonoff.
greatings from switzerland.

@andreyxc
Copy link

Sonoff RF NO?

@kompak23
Copy link

Hi,
I have a problem with connect Sonoff S26 with this firmware to my Wifi network.
I just tried to listen serial port, and you can see listing below:
`
scandone
add 1
aid 1
station: 54:fc:f0:e2:36:99 join, AID = 1

wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 50 incomming data
scandone
wifi_config: Client disconnected
wifi_config: http_task: Got 64 incomming data
!!! wifi_config: Unknown endpoint: GET /favicon.ico
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 55 incomming data
wifi_config: wifi_config_server_on_message_complete: Unknown endpoint
wifi_config: client_send_redirect: Redirecting to http://192.168.4.1/setting s
wifi_config: Client disconnected
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 52 incomming data
wifi_config: Client disconnected
scandone
wifi_config: http_task: Got 64 incomming data
!!! wifi_config: Unknown endpoint: POST /amdc/mobileDispatch?appkey=21371601&dev iceId=W7HMIV8n0rQDA
wifi_config: http_task: Got 64 incomming data
!!! wifi_config: Unknown endpoint: POST O%2B04rbaZsxV&platform=android&v=4.0
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 26 incomming data
wifi_config: wifi_config_server_on_message_complete: Unknown endpoint
wifi_config: client_send_redirect: Redirecting to http://192.168.4.1/setting s
wifi_config: Client disconnected
scandone
scandone
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 43 incomming data
wifi_config: wifi_config_server_on_settings_update: Update settings, body = ssid=NETIASPOT-C7FD10&password=password
wifi_config: wifi_config_station_connect: No configuration found
wifi_config: Client disconnected
scandone
wifi_config: http_task: Got 64 incomming data
!!! wifi_config: Unknown endpoint: POST /amdc/mobileDispatch?appkey=21371601&dev iceId=W7HMIV8n0rQDA
wifi_config: http_task: Got 64 incomming data
!!! wifi_config: Unknown endpoint: POST O%2B04rbaZsxV&platform=android&v=4.0
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 27 incomming data
wifi_config: wifi_config_server_on_message_complete: Unknown endpoint
wifi_config: client_send_redirect: Redirecting to http://192.168.4.1/setting s
wifi_config: Client disconnected
`
Where the problem is, and how to fix it?
Please, help me! :)

Regards,
kompak23

@andreyxc
Copy link

Hi,
I have a problem with connect Sonoff S26 with this firmware to my Wifi network.
I just tried to listen serial port, and you can see listing below:
`
scandone
add 1
aid 1
station: 54:fc:f0:e2:36:99 join, AID = 1

wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 50 incomming data
scandone
wifi_config: Client disconnected
wifi_config: http_task: Got 64 incomming data
!!! wifi_config: Unknown endpoint: GET /favicon.ico
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 55 incomming data
wifi_config: wifi_config_server_on_message_complete: Unknown endpoint
wifi_config: client_send_redirect: Redirecting to http://192.168.4.1/setting s
wifi_config: Client disconnected
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 52 incomming data
wifi_config: Client disconnected
scandone
wifi_config: http_task: Got 64 incomming data
!!! wifi_config: Unknown endpoint: POST /amdc/mobileDispatch?appkey=21371601&dev iceId=W7HMIV8n0rQDA
wifi_config: http_task: Got 64 incomming data
!!! wifi_config: Unknown endpoint: POST O%2B04rbaZsxV&platform=android&v=4.0
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 26 incomming data
wifi_config: wifi_config_server_on_message_complete: Unknown endpoint
wifi_config: client_send_redirect: Redirecting to http://192.168.4.1/setting s
wifi_config: Client disconnected
scandone
scandone
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 43 incomming data
wifi_config: wifi_config_server_on_settings_update: Update settings, body = ssid=NETIASPOT-C7FD10&password=password
wifi_config: wifi_config_station_connect: No configuration found
wifi_config: Client disconnected
scandone
wifi_config: http_task: Got 64 incomming data
!!! wifi_config: Unknown endpoint: POST /amdc/mobileDispatch?appkey=21371601&dev iceId=W7HMIV8n0rQDA
wifi_config: http_task: Got 64 incomming data
!!! wifi_config: Unknown endpoint: POST O%2B04rbaZsxV&platform=android&v=4.0
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 27 incomming data
wifi_config: wifi_config_server_on_message_complete: Unknown endpoint
wifi_config: client_send_redirect: Redirecting to http://192.168.4.1/setting s
wifi_config: Client disconnected
`
Where the problem is, and how to fix it?
Please, help me! :)

Regards,
kompak23

https://github.com/RavenSystem/esp-homekit-devices/wiki/RavenCore

Everything works very well! Sonoff S26!!!

@guerraga
Copy link

guerraga commented Jan 19, 2019

Sonoff RF NO?

I have Sonoff RF too (same model as basic but with RF). Have anybody tested this model? Keeps RF functionality still running?

“The nice thing about the way the SONOFF RF is designed is that the RF part is completely separate from the ESP part so after reprogramming the ESP, the RF still works as originally designed. This means that you can still program the RF receiver as you would normally”

https://piandmore.wordpress.com/2017/12/16/hacking-the-sonoff-rf/

@andreyxc
Copy link

Sonoff RF Yes.

Keeps RF functionality still running? not tested!

@borewicz9
Copy link

Hello,
firmware works fine, but have a problem with phisical button (switch) in sonoff basic.
I can turn it off manualy but can not turn it on :/

@telespectadorhd
Copy link

here also the switch works very different from the original firmware.

@Javiereco
Copy link

Hi!, I'm a newbie in programming
I would like to know what I should buy to install this firmware in several sonoff
Thank you very much!

@Javiereco
Copy link

Please! Can anybody help me?

@telespectadorhd
Copy link

  • On windows you can install VirtualBox with a ubuntu image or otherwise run the esptool.exe manually

from readme.nd

@Javiereco
Copy link

@telespectadorhd
Thank you! By I use OS in my Mac. Can you explain it to me? I speak Spanish, do you?

@stfcjr
Copy link

stfcjr commented Feb 6, 2019

Hi,

On windows with VirtualBox and Ubuntu image i have the following error, can anybody help me ?
stfcjr@stfcjr-VirtualBox:/Desktop/Sonoff$ ./flash.sh
esptool.py v2.6
Serial port /dev/cu.wchusbserial14310
Traceback (most recent call last):
File "/home/stfcjr/.local/bin/esptool.py", line 2959, in
_main()
File "/home/stfcjr/.local/bin/esptool.py", line 2952, in _main
main()
File "/home/stfcjr/.local/bin/esptool.py", line 2646, in main
esp = ESPLoader.detect_chip(each_port, initial_baud, args.before, args.trace)
File "/home/stfcjr/.local/bin/esptool.py", line 258, in detect_chip
detect_port = ESPLoader(port, baud, trace_enabled=trace_enabled)
File "/home/stfcjr/.local/bin/esptool.py", line 222, in init
self._port = serial.serial_for_url(port)
File "/home/stfcjr/.local/lib/python2.7/site-packages/serial/init.py", line 88, in serial_for_url
instance.open()
File "/home/stfcjr/.local/lib/python2.7/site-packages/serial/serialposix.py", line 268, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/cu.wchusbserial14310: [Errno 2] No such file or directory: '/dev/cu.wchusbserial14310'
stfcjr@stfcjr-VirtualBox:
/Desktop/Sonoff$

The Sonoff module is connected on USB port in boot mode.

10x

@St0nehead
Copy link

St0nehead commented Feb 6, 2019

IMHO, It’s not good idea to run esptool under virtual machine, since you need direct access to your hardware..
Try to run esptool under Windows

@stfcjr
Copy link

stfcjr commented Feb 7, 2019

I’ve already tried to run esptool under windows but when i run the command to upload the firmware it can’t find it. Where should be the .bin file in order to be find by esptool and uploaded to device ?

@omryoz
Copy link

omryoz commented Feb 15, 2019

Is it possible to configure the led color?

@iShortOne
Copy link

Hi, just a question
Is it work with the sonoff dual for roller shutter?
If it works how homekit recognize it?
Thanks!

@St0nehead
Copy link

Did you reconfigured WiFi setting via Captive Portal?

@mcrobiej
Copy link

Flashed S26 fine, connected to sonos WiFi, entered network password, but doesnt connect to WiFi.
I see the following when performing the serial debug:

station: 74:b5:87:e4:db:6a join, AID = 1
scandone

wifi_config: http_task: Got 64 incomming data
!!! wifi_config: Unknown endpoint: GET /hotspot-detect.html
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 5 incomming data
wifi_config: wifi_config_server_on_message_complete: Unknown endpoint
wifi_config: client_send_redirect: Redirecting to http://192.168.4.1/settings
wifi_config: Client disconnected
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 52 incomming data
wifi_config: Client disconnected
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 3 incomming data
wifi_config: Client disconnected
scandone
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 64 incomming data
wifi_config: http_task: Got 38 incomming data
wifi_config: wifi_config_server_on_settings_update: Update settings, body = ssid=MND&password=Password
wifi_config: wifi_config_station_connect: No configuration found
wifi_config: Client disconnected
scandone

@honza67
Copy link

honza67 commented Feb 20, 2019

I Configure wifi like on video tutorial, and works fine, but when disconnect wifi or reset... sonoff state not connection.... reset sonoff and then works right again

my experience: before flash sonoff always do erase_flash, then everything behaves correctly.

@mdsavio
Copy link

mdsavio commented Feb 20, 2019

Yes, i erase all before... Thank You!

@mcrobiej
Copy link

yep erase_flash worked for me , thanks.

@stfcjr
Copy link

stfcjr commented Feb 24, 2019

Hi, Had anyone from here uploaded the komekit compatible firmware to a Sonoff T1 touch ?

@norbijr
Copy link

norbijr commented Feb 24, 2019

Hello guys! It is all good with process of installation but I cannot add my device in Home App. I was told by this app that "code is wrong". I have tried to put 11111111 but it does not work. Regards

@mdsavio
Copy link

mdsavio commented Feb 24, 2019

Hack Again...

@mcrobiej
Copy link

Norbijr this happened to me , I just did a couple of reboots of the device and tried again . Useful to monitor serial port to get debug.

@alc7328
Copy link

alc7328 commented Feb 26, 2019

Hi, just a question
Is it work with the sonoff dual for roller shutter?
If it works how homekit recognize it?
Thanks!

Did you get an answer on this? I have the same doubt. Thanks!

@piotrtobolski
Copy link

Hi, Had anyone from here uploaded the komekit compatible firmware to a Sonoff T1 touch ?

Hello I have used this firmware on a sonoff wall switch (single) and it works fine! I am using two of them for a few weeks now.
The double switch probably won't work though.

I can also confirm the requirement of "erase_flash". I didn't do that at first and sonoff was behaving weird but after erasing and flashing again everything is fine.

@stfcjr
Copy link

stfcjr commented Mar 19, 2019

@geraldlimkw If you setup the same 2.4 Ghz ssid and password on the new router i think there will not be necessary reprogram the switches.

@euivanw
Copy link

euivanw commented Mar 21, 2019

Have someone tried to flash this firmware using SonOTA? Is it possible?

@stfcjr
Copy link

stfcjr commented Mar 28, 2019

I've updated today my IOS to 12.2 and the Homekit sync stopped working. I've deleted the device and try to add again but it can't be discovered. Does anybody have the same issue ? Any workaround ?

@honza67
Copy link

honza67 commented Mar 28, 2019

I've updated today my IOS to 12.2 and the Homekit sync stopped working. I've deleted the device and try to add again but it can't be discovered. Does anybody have the same issue ? Any workaround ?

No, respectively, after upgrading to 12.2 for iPhone and iPad. I haven't done an update on Apple TV (HomeKit bridge) yet.

@geraldlimkw
Copy link

NO issue for me in ios 12.2

@gsvan
Copy link

gsvan commented Mar 28, 2019

I’ve update all my iOS to 12.2 including my HomePod which works as my home hub.

No issues - i’ve Used this firmware with on T1 and Basic. All still works...

Of topic but can anyone suggest how I can compile a bin file with advanced files ? What can I use to compile it?

@stfcjr
Copy link

stfcjr commented Mar 28, 2019

Maybe it’s a region based issue, the device was perfectly ok untill today when i updated the OS

@Macpatto
Copy link

Hello,
I want to thank the creator of this fantastic .bin.. I am currently using it on 2 sonoffs and works great.
My question and perhaps a kind of request is.. Will be possible to implement Alexa control on this .bin? It would be a whole new game if that is possible.
Thank you.

@beckmx
Copy link

beckmx commented Apr 4, 2019

Hello, I sent a tip via the coffee page, Iam seeing these issues:

no buf for probe, ie len 0
scandone
no buf for probe, ie len 0
scandone
station: 38:71:de:9b:4d:1c leave, AID = 1
rm match
no buf for probe, ie len 0
no buf for prob

Seems that I cannot connect into the sonoff, it always outputs an issue

@Yousefff1
Copy link

Is there a similar code for sonoff 4ch to be enabled with homekit ?

@ronaldtveen
Copy link

Is this in any way maintained? I’m looking around for HomeKit options and this seems to be a perfect fit. But I was wondering if this will work for for example the Sonoff Pow R2?

@alc7328
Copy link

alc7328 commented Jun 1, 2019

Is this in any way maintained? I’m looking around for HomeKit options and this seems to be a perfect fit. But I was wondering if this will work for for example the Sonoff Pow R2?

No actions neither answers from the author. I payed as many people in thankful for this firmware, but... nothing more :(

@telespectadorhd
Copy link

I'm in a situation like yours. no response

@gsvan
Copy link

gsvan commented Jun 2, 2019

I have used this firmware for 3 sonoff types,

Sonoff Basic
Sonoff T1
Sonoff S26

Unfortunately I have not tried this for anything else yet and not sure if it will work on POW as i feel it would not allow you power monitoring.

P.S if anyone know how to compile bin file form aurora provided code, could you let me know please...

@xsemen
Copy link

xsemen commented Jul 8, 2019

The software works correctly withWL-SW01_16.
You have to apply for the Sonoff-Touth software version?

@adamgdynia
Copy link

Hi! Have anyone a problem when entering password and clicking save the site is not saving the password and restarting the device? I have tried this on Sonoff RF R2.

On Sonoff mini there is no network to select.

Any help much appreciated!

@gsvan
Copy link

gsvan commented Jul 25, 2019

Hi Adam,
The only time I have problem with wifi it’s when I just flash it without readying the it.
I used erase flash first and then boot again and flash it.
Like that I had no problems.
Hope it helps.

P.S if anyone know how to compile bin file form advanced provided code, could you let me know please...

@adamgdynia
Copy link

Thanks, mine seems just not accepting changes. I will try to erase first. Check this for compiling: http://supersimo88.altervista.org/hacking-sonoff-for-home-automotion/ - maybe it will help.

@gsvan
Copy link

gsvan commented Jul 25, 2019

Yes my issue was similar, it would not take my Wi-fi details but erasing before flashing sorted it out. Post back your update just to see how you got on.
Thank you for the link will def have a look.

@sandrobuenobr
Copy link

Hi dear, is it works for sonoff 4ch pro?

@telespectadorhd
Copy link

Could someone teach me how to use the Button.C code? I'd like to use an external switch.

@mjorgef
Copy link

mjorgef commented Aug 22, 2019

is it possible to flash this by Ota from the Tasmota console?

@andrei1305
Copy link

Hey! I have the new sonoff mini that also has 2 connections for the classic wall switch that is already mounted. This uses the GPIO4 connectors. Basicly, I saw that Tasmota is using the Sonoff basic bin file and allows the user to select GPIO4 to a Switch1(9) that makes it work. Is there such an option in this firmware?

@MP3Chris2712
Copy link

Does it all work with Gosund SP1?

@YerBabiE
Copy link

YerBabiE commented Jan 6, 2020

Are you able to code in the LED and RELAY pins to the web interface? For example if using the wemos D1 the default relay board is pin D1 or GPIO 5 & the LED pin in GPIO 2. If the GPIO pins could be set on the wifi connect page, that would be awesome? As I'm having some trouble re-compiling..... to the point of I gave up, way to many dependancies.

@honza67
Copy link

honza67 commented Jan 6, 2020

After more than a year of trouble-free use of the SONOFF fw released here, a strange thing happened about two weeks ago. SONOOF switches have stopped working but only included in Homekit automation. Thus, to operate the switches manually across the screen is normally functional, and only automation, for example, at the xy time of switching on or closing using a motion detector does not work. Or by including the SONOFF element in the 4 button HUE Philips. I made experiments and unfortunately it is so and I do not know what happened? .. maybe some FW upgrade at the center of Homekit (for me Apple TV) or change the protocol .. ?? (I apologize for my English).

@Scubad1v3r
Copy link

Hi,
Homekit doen't want to accept the SonOff.
Flash is Ok,
Conection on WiFi network is Ok,
adding to Home kit, and insert the password is ok???
But after I've a message "unable to add SonOff Switch-DB1146"

Do you have suggestions?

@bdestena
Copy link

Is this firmware compatible with TH10/16 and if yes, does it only allow on/off control or does it also allow reporting of temp and humidity in homekit app?

@gabrielganga
Copy link

Hello, thank you very much for your work. Can the GPIO of the Relay be changed?
I managed to install the firmware in another module, but the GPIO it uses is 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet