arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.05k stars 4.78k forks source link

Compatibility with T1 #582

Closed ageorgios closed 6 years ago

ageorgios commented 7 years ago

Is Tasmota compatible with Sonoff T1? If not, will it ever be? It is great for motored shades.

https://www.itead.cc/sonoff-t1.html

arendst commented 7 years ago

See README.md

ageorgios commented 7 years ago

cool you are great!

timmo001 commented 7 years ago

What's the progress on this? I'm going to buy a 2 gang switch ready and was wondering when I should expect to be able to flash the switch

cputoaster commented 7 years ago

I already ordered one too. And it looks like people already tinkered with something similar: https://github.com/arendst/Sonoff-Tasmota/issues/495 .

userxn10 commented 7 years ago

@arendst First, thank you for the incredible work on Sonoff support! Secondly, I got today 2 & 3 channels T1, therefore I am looking forward for the T1 support :)

arendst commented 7 years ago

Well I received my T1 3CH today. Investigating started...

arendst commented 7 years ago

Investigation paused. It seems the Sonoff T1-UK 3CH is just a Sonoff 4CH without relay 4. So people wanting to use the T1 with Tasmota can start using it as a Sonoff 4CH.

ferbulous commented 7 years ago

@arendst Should it be sonoff 4ch or sonoff 4ch pro? Since it has rf

arendst commented 7 years ago

It is sonoff t1 1ch , 2ch or 3ch in the latest release.

RobertSzabo commented 7 years ago

Hi, I see that t1 1, 2, 3 ch versions are supported (great work THANKS!). Are there any hardware preparation pics available for the T1 variants? I wonder how to enter into flash mode. What is the purpose of the S1 switch? Thanks

img_20170823_201052 img_20170823_201105

cputoaster commented 7 years ago

I flashed via the OTA method, see my tutorial page at tasmota.

On Wed, Aug 23, 2017, 20:17 Robert Szabo notifications@github.com wrote:

Hi, I see that t1 1, 2, 3 ch versions are supported (great work THANKS!). Are there any hardware preparation pics available for the T1 variants? I wonder how to enter into flash mode. What is the purpose of the S1 switch? Thanks

[image: img_20170823_201052] https://user-images.githubusercontent.com/3612772/29631414-dc3e9bf2-883f-11e7-8c04-facd77ea3481.jpg [image: img_20170823_201105] https://user-images.githubusercontent.com/3612772/29631413-dc3c8b64-883f-11e7-9ec0-cd9f9c340697.jpg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/582#issuecomment-324419202, or mute the thread https://github.com/notifications/unsubscribe-auth/AAj5G5Vek7xeNPcvv_90-2KpIQeJi6aoks5sbGyggaJpZM4OOYnG .

juan11perez commented 7 years ago

Can anyone point the GPIO0 contact on the above picture. Thank you

juan11perez commented 7 years ago

Ok Andres, followed your tutorial but can you explain in more detail how to run the "start sonota.py with your standard wifi SSID/PW and PC IP (eg ./sonota.py --wifi-ssid asdfasdf --wifi-password fidjfidfjidjf 192.168.123.123" without omitting details.

I saved the files in my mac desktop opened termina went to the directory I created try to run as above and got env python 3 no such file or directory.

cputoaster commented 7 years ago

looks like python3 is not installed correctly. you can install it using homebrew: http://docs.python-guide.org/en/latest/starting/install3/osx/ . btw, its clear that you have to replace ssid, pw and ip with your current ones I hope.

juan11perez commented 7 years ago

Thank you Andres, I installed from here (https://www.python.org/downloads/ https://www.python.org/downloads/) run the command and gets,

File "./sonota.py", line 24, in import tornado.ioloop ModuleNotFoundError: No module named 'tornado'

Regards/Saludos Juan

On 25 Aug 2017, at 11:11, Andres Meyer notifications@github.com wrote:

looks like python3 is not installed correctly. you can install it using homebrew: http://docs.python-guide.org/en/latest/starting/install3/osx/ http://docs.python-guide.org/en/latest/starting/install3/osx/ . btw, its clear that you have to replace ssid, pw and ip with your current ones I hope.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/582#issuecomment-324841793, or mute the thread https://github.com/notifications/unsubscribe-auth/AcqyrcMwqwuEtYMH9_Mxex1_tpX4Jfw5ks5sbnOsgaJpZM4OOYnG.

cputoaster commented 7 years ago

Indeed you will have to install missing modules with something like "pip3 install tornado"

On Fri, Aug 25, 2017, 09:30 juan11perez notifications@github.com wrote:

Thank you Andres, I installed from here (https://www.python.org/downloads/ https://www.python.org/downloads/) run the command and gets,

File "./sonota.py", line 24, in import tornado.ioloop ModuleNotFoundError: No module named 'tornado'

Regards/Saludos Juan

On 25 Aug 2017, at 11:11, Andres Meyer notifications@github.com wrote:

looks like python3 is not installed correctly. you can install it using homebrew: http://docs.python-guide.org/en/latest/starting/install3/osx/ < http://docs.python-guide.org/en/latest/starting/install3/osx/> . btw, its clear that you have to replace ssid, pw and ip with your current ones I hope.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/arendst/Sonoff-Tasmota/issues/582#issuecomment-324841793>, or mute the thread < https://github.com/notifications/unsubscribe-auth/AcqyrcMwqwuEtYMH9_Mxex1_tpX4Jfw5ks5sbnOsgaJpZM4OOYnG .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/582#issuecomment-324845239, or mute the thread https://github.com/notifications/unsubscribe-auth/AAj5GyN_-BBRjxCpspYJgvA_wqfJDdxzks5sbnf2gaJpZM4OOYnG .

juan11perez commented 7 years ago

Ok Andres, so installed all modules, run sonata.py connected to module and get this Value error at bottom

~~ Provisioning completed The IP address of (192.168.1.21) is not assigned to any interface on this machine. Please change WiFi network to $ESSID and make sure %s is being assigned to your WiFi interface. * This application can be kept running. ......~~ Starting web server Traceback (most recent call last): File "./sonota.py", line 498, in main() File "./sonota.py", line 486, in main "keyfile": "ssl/server.key", File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tornado/util.py", line 293, in new instance.initialize(args, **init_kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tornado/httpserver.py", line 167, in initialize read_chunk_size=chunk_size) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tornado/tcpserver.py", line 128, in init self.ssl_options['certfile']) ValueError: certfile "ssl/server.crt" does not exist Juans-MacBook-Air:SonOTA Juan$

Regards/Saludos Juan Perez

On 25 Aug 2017, at 11:52, Andres Meyer notifications@github.com wrote:

Indeed you will have to install missing modules with something like "pip3 install tornado"

On Fri, Aug 25, 2017, 09:30 juan11perez notifications@github.com wrote:

Thank you Andres, I installed from here (https://www.python.org/downloads/ https://www.python.org/downloads/) run the command and gets,

File "./sonota.py", line 24, in import tornado.ioloop ModuleNotFoundError: No module named 'tornado'

Regards/Saludos Juan

On 25 Aug 2017, at 11:11, Andres Meyer notifications@github.com wrote:

looks like python3 is not installed correctly. you can install it using homebrew: http://docs.python-guide.org/en/latest/starting/install3/osx/ < http://docs.python-guide.org/en/latest/starting/install3/osx/> . btw, its clear that you have to replace ssid, pw and ip with your current ones I hope.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/arendst/Sonoff-Tasmota/issues/582#issuecomment-324841793>, or mute the thread < https://github.com/notifications/unsubscribe-auth/AcqyrcMwqwuEtYMH9_Mxex1_tpX4Jfw5ks5sbnOsgaJpZM4OOYnG .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/582#issuecomment-324845239, or mute the thread https://github.com/notifications/unsubscribe-auth/AAj5GyN_-BBRjxCpspYJgvA_wqfJDdxzks5sbnf2gaJpZM4OOYnG .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/582#issuecomment-324849276, or mute the thread https://github.com/notifications/unsubscribe-auth/AcqyrTD6IL6On9GOdZyLaC9pRhmRQEf6ks5sbn0lgaJpZM4OOYnG.

RobertSzabo commented 7 years ago

I am halfway through the SonOTA install, but stack before the FinalStage with a 404 error. Any idea how to continue? Log inserted below. Thanks!

` << HTTP POST /dispatch/device

/dispatch/device { "IP": "192.168.100.43", "port": 8443, "reason": "ok", "error": 0 } 2017-08-25 11:20:19,588 (INFO) 200 POST /dispatch/device (192.168.100.116) 2.18ms 2017-08-25 11:20:19,780 (INFO) 101 GET /api/ws (192.168.100.116) 1.34ms 2017-08-25 11:20:19,780 (DEBUG) << WEBSOCKET OPEN 2017-08-25 11:20:19,791 (DEBUG) << WEBSOCKET INPUT 2017-08-25 11:20:19,791 (DEBUG) << { "userAgent": "device", "model": "PSF-B04-GL", "romVersion": "2.0.0", "ts": 744, "deviceid": "10001182c9", "apikey": "c1f4a468-b659-44a1-b867-917015a15395", "version": 2, "action": "register" }


2017-08-25 11:20:19,792 (INFO) We are dealing with a PSF-B04-GL model.
~~~~ register
{
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"error": 0,
"config": {
"hbInterval": 145,
"hb": 1
}
}
2017-08-25 11:20:19,806 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,807 (DEBUG) << {
"userAgent": "device",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"deviceid": "10001182c9",
"action": "date"
}
~~~ device sent action request,  acknowledging / answering...
~~~~ date
{
"date": "2017-08-25T11:20:19.807Z",
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"error": 0
}
2017-08-25 11:20:19,820 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,823 (DEBUG) << {
"userAgent": "device",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"deviceid": "10001182c9",
"params": {
"switches": [
{
"outlet": 0,
"switch": "off"
},
{
"outlet": 1,
"switch": "off"
},
{
"outlet": 2,
"switch": "off"
},
{
"outlet": 3,
"switch": "off"
}
],
"staMac": "60:01:94:84:13:B8",
"configure": [
{
"outlet": 0,
"startup": "off"
},
{
"outlet": 1,
"startup": "off"
},
{
"outlet": 2,
"startup": "off"
},
{
"outlet": 3,
"startup": "off"
}
],
"fwVersion": "2.0.0",
"rssi": -59
},
"action": "update"
}
~~~ device sent action request,  acknowledging / answering...
~~~~ update
{
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"error": 0
}
{
"sequence": "1503652819824",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "off"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
{
"sequence": "1503652819825",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "on"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
{
"sequence": "1503652819825",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "off"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
{
"sequence": "1503652819825",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "on"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
{
"sequence": "1503652819825",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "off"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
{
"sequence": "1503652819830",
"userAgent": "app",
"params": {
"binList": [
{
"name": "user1.bin",
"digest": "97fe70d737390bbde7b8d208c79d590e29fc76962623c7bd198ee210210ea616",
"downloadUrl": "http://192.168.100.43:8080/ota/image_user1-0x01000.bin"
},
{
"name": "user2.bin",
"digest": "e6d0cbb641542bd0a27e6c4628fc9331f1f5d3ac3afa42c9307569cf4d70fcdc",
"downloadUrl": "http://192.168.100.43:8080/ota/image_user2-0x81000.bin"
}
],
"version": "23.42.5",
"model": "PSF-B04-GL"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "upgrade"
}
2017-08-25 11:20:19,870 (INFO) 200 GET /ota/image_user2-0x81000.bin?deviceid=10001182c9&ts=1270216262&sign=68c11599e5338c21e1fd621faed8d52e9798196c9dc58837a30d014427ff3d99 (192.168.100.116) 12.12ms
2017-08-25 11:20:19,870 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,871 (DEBUG) << {
"sequence": "1503652819830",
"userAgent": "device",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"error": 404,
"deviceid": "10001182c9"
}
`
cputoaster commented 7 years ago

@juan11perez, did you unzip the zip file as mentioned into the same dir das the sonota script lives? it looks like it cannot find the ssl certs.

On Fri, Aug 25, 2017 at 11:37 AM Robert notifications@github.com wrote:

I am halfway through the SonOTA install, but stack before the FinalStage with a 404 error. Any idea how to continue? Log inserted below. Thanks!

` << HTTP POST /dispatch/device

/dispatch/device { "IP": "192.168.100.43", "port": 8443, "reason": "ok", "error": 0 } 2017-08-25 11:20:19,588 (INFO) 200 POST /dispatch/device (192.168.100.116) 2.18ms 2017-08-25 11:20:19,780 (INFO) 101 GET /api/ws (192.168.100.116) 1.34ms 2017-08-25 11:20:19,780 (DEBUG) << WEBSOCKET OPEN 2017-08-25 11:20:19,791 (DEBUG) << WEBSOCKET INPUT 2017-08-25 11:20:19,791 (DEBUG) << { "userAgent": "device", "model": "PSF-B04-GL", "romVersion": "2.0.0", "ts": 744, "deviceid": "10001182c9", "apikey": "c1f4a468-b659-44a1-b867-917015a15395", "version": 2, "action": "register" }

2017-08-25 11:20:19,792 (INFO) We are dealing with a PSF-B04-GL model.


>> {
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "error": 0,
    "config": {
        "hbInterval": 145,
        "hb": 1
    }
}
2017-08-25 11:20:19,806 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,807 (DEBUG) << {
    "userAgent": "device",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "deviceid": "10001182c9",
    "action": "date"
}
~~~ device sent action request,  acknowledging / answering...
~~~~ date
>> {
    "date": "2017-08-25T11:20:19.807Z",
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "error": 0
}
2017-08-25 11:20:19,820 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,823 (DEBUG) << {
    "userAgent": "device",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "deviceid": "10001182c9",
    "params": {
        "switches": [
            {
                "outlet": 0,
                "switch": "off"
            },
            {
                "outlet": 1,
                "switch": "off"
            },
            {
                "outlet": 2,
                "switch": "off"
            },
            {
                "outlet": 3,
                "switch": "off"
            }
        ],
        "staMac": "60:01:94:84:13:B8",
        "configure": [
            {
                "outlet": 0,
                "startup": "off"
            },
            {
                "outlet": 1,
                "startup": "off"
            },
            {
                "outlet": 2,
                "startup": "off"
            },
            {
                "outlet": 3,
                "startup": "off"
            }
        ],
        "fwVersion": "2.0.0",
        "rssi": -59
    },
    "action": "update"
}
~~~ device sent action request,  acknowledging / answering...
~~~~ update
>> {
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "error": 0
}
>> {
    "sequence": "1503652819824",
    "userAgent": "app",
    "from": "hackepeter",
    "params": {
        "switch": "off"
    },
    "ts": 0,
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "action": "update"
}
>> {
    "sequence": "1503652819825",
    "userAgent": "app",
    "from": "hackepeter",
    "params": {
        "switch": "on"
    },
    "ts": 0,
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "action": "update"
}
>> {
    "sequence": "1503652819825",
    "userAgent": "app",
    "from": "hackepeter",
    "params": {
        "switch": "off"
    },
    "ts": 0,
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "action": "update"
}
>> {
    "sequence": "1503652819825",
    "userAgent": "app",
    "from": "hackepeter",
    "params": {
        "switch": "on"
    },
    "ts": 0,
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "action": "update"
}
>> {
    "sequence": "1503652819825",
    "userAgent": "app",
    "from": "hackepeter",
    "params": {
        "switch": "off"
    },
    "ts": 0,
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "action": "update"
}
>> {
    "sequence": "1503652819830",
    "userAgent": "app",
    "params": {
        "binList": [
            {
                "name": "user1.bin",
                "digest": "97fe70d737390bbde7b8d208c79d590e29fc76962623c7bd198ee210210ea616",
                "downloadUrl": "http://192.168.100.43:8080/ota/image_user1-0x01000.bin"
            },
            {
                "name": "user2.bin",
                "digest": "e6d0cbb641542bd0a27e6c4628fc9331f1f5d3ac3afa42c9307569cf4d70fcdc",
                "downloadUrl": "http://192.168.100.43:8080/ota/image_user2-0x81000.bin"
            }
        ],
        "version": "23.42.5",
        "model": "PSF-B04-GL"
    },
    "ts": 0,
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "action": "upgrade"
}
2017-08-25 11:20:19,870 (INFO) 200 GET /ota/image_user2-0x81000.bin?deviceid=10001182c9&ts=1270216262&sign=68c11599e5338c21e1fd621faed8d52e9798196c9dc58837a30d014427ff3d99 (192.168.100.116) 12.12ms
2017-08-25 11:20:19,870 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,871 (DEBUG) << {
    "sequence": "1503652819830",
    "userAgent": "device",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "error": 404,
    "deviceid": "10001182c9"
}
`

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/arendst/Sonoff-Tasmota/issues/582#issuecomment-324870654>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAj5G_VsYTPlWXWUuwUFbaYJihcWOE0bks5sbpWwgaJpZM4OOYnG>
.
cputoaster commented 7 years ago

@Robert, you should first connect your device with the original ewLink and upgrade it to the most recent original firmware.

On Fri, Aug 25, 2017 at 11:52 AM Andres Meyer andres.meyer@computer.org wrote:

@juan11perez, did you unzip the zip file as mentioned into the same dir das the sonota script lives? it looks like it cannot find the ssl certs.

On Fri, Aug 25, 2017 at 11:37 AM Robert notifications@github.com wrote:

I am halfway through the SonOTA install, but stack before the FinalStage with a 404 error. Any idea how to continue? Log inserted below. Thanks!

` << HTTP POST /dispatch/device

/dispatch/device { "IP": "192.168.100.43", "port": 8443, "reason": "ok", "error": 0 } 2017-08-25 11:20:19,588 (INFO) 200 POST /dispatch/device (192.168.100.116) 2.18ms 2017-08-25 11:20:19,780 (INFO) 101 GET /api/ws (192.168.100.116) 1.34ms 2017-08-25 11:20:19,780 (DEBUG) << WEBSOCKET OPEN 2017-08-25 11:20:19,791 (DEBUG) << WEBSOCKET INPUT 2017-08-25 11:20:19,791 (DEBUG) << { "userAgent": "device", "model": "PSF-B04-GL", "romVersion": "2.0.0", "ts": 744, "deviceid": "10001182c9", "apikey": "c1f4a468-b659-44a1-b867-917015a15395", "version": 2, "action": "register" }

2017-08-25 11:20:19,792 (INFO) We are dealing with a PSF-B04-GL model.


>> {
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "error": 0,
    "config": {
        "hbInterval": 145,
        "hb": 1
    }
}
2017-08-25 11:20:19,806 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,807 (DEBUG) << {
    "userAgent": "device",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "deviceid": "10001182c9",
    "action": "date"
}
~~~ device sent action request,  acknowledging / answering...
~~~~ date
>> {
    "date": "2017-08-25T11:20:19.807Z",
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "error": 0
}
2017-08-25 11:20:19,820 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,823 (DEBUG) << {
    "userAgent": "device",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "deviceid": "10001182c9",
    "params": {
        "switches": [
            {
                "outlet": 0,
                "switch": "off"
            },
            {
                "outlet": 1,
                "switch": "off"
            },
            {
                "outlet": 2,
                "switch": "off"
            },
            {
                "outlet": 3,
                "switch": "off"
            }
        ],
        "staMac": "60:01:94:84:13:B8",
        "configure": [
            {
                "outlet": 0,
                "startup": "off"
            },
            {
                "outlet": 1,
                "startup": "off"
            },
            {
                "outlet": 2,
                "startup": "off"
            },
            {
                "outlet": 3,
                "startup": "off"
            }
        ],
        "fwVersion": "2.0.0",
        "rssi": -59
    },
    "action": "update"
}
~~~ device sent action request,  acknowledging / answering...
~~~~ update
>> {
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "error": 0
}
>> {
    "sequence": "1503652819824",
    "userAgent": "app",
    "from": "hackepeter",
    "params": {
        "switch": "off"
    },
    "ts": 0,
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "action": "update"
}
>> {
    "sequence": "1503652819825",
    "userAgent": "app",
    "from": "hackepeter",
    "params": {
        "switch": "on"
    },
    "ts": 0,
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "action": "update"
}
>> {
    "sequence": "1503652819825",
    "userAgent": "app",
    "from": "hackepeter",
    "params": {
        "switch": "off"
    },
    "ts": 0,
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "action": "update"
}
>> {
    "sequence": "1503652819825",
    "userAgent": "app",
    "from": "hackepeter",
    "params": {
        "switch": "on"
    },
    "ts": 0,
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "action": "update"
}
>> {
    "sequence": "1503652819825",
    "userAgent": "app",
    "from": "hackepeter",
    "params": {
        "switch": "off"
    },
    "ts": 0,
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "action": "update"
}
>> {
    "sequence": "1503652819830",
    "userAgent": "app",
    "params": {
        "binList": [
            {
                "name": "user1.bin",
                "digest": "97fe70d737390bbde7b8d208c79d590e29fc76962623c7bd198ee210210ea616",
                "downloadUrl": "http://192.168.100.43:8080/ota/image_user1-0x01000.bin"
            },
            {
                "name": "user2.bin",
                "digest": "e6d0cbb641542bd0a27e6c4628fc9331f1f5d3ac3afa42c9307569cf4d70fcdc",
                "downloadUrl": "http://192.168.100.43:8080/ota/image_user2-0x81000.bin"
            }
        ],
        "version": "23.42.5",
        "model": "PSF-B04-GL"
    },
    "ts": 0,
    "deviceid": "10001182c9",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "action": "upgrade"
}
2017-08-25 11:20:19,870 (INFO) 200 GET /ota/image_user2-0x81000.bin?deviceid=10001182c9&ts=1270216262&sign=68c11599e5338c21e1fd621faed8d52e9798196c9dc58837a30d014427ff3d99 (192.168.100.116) 12.12ms
2017-08-25 11:20:19,870 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,871 (DEBUG) << {
    "sequence": "1503652819830",
    "userAgent": "device",
    "apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
    "error": 404,
    "deviceid": "10001182c9"
}
`

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/arendst/Sonoff-Tasmota/issues/582#issuecomment-324870654>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAj5G_VsYTPlWXWUuwUFbaYJihcWOE0bks5sbpWwgaJpZM4OOYnG>
.
RobertSzabo commented 7 years ago

@cputoaster, i did that, first used the device with ewLink, then deleted (unregistered) and started the SonOTA upgrade process. It went well until the 404 error. If I restart the device it keeps trying with the same handshake and returns the 404. Any advise? Thanks!

juan11perez commented 7 years ago

Andrés the link in the tutorial is broken, so i went to your GitHub and downloaded https://github.com/cputoaster/Espressif2Arduino

I then unzipped and put in a folder I called SonOta in my desktop. I also saved the SonOta script in the same folder.

Regards Juan Perez Sent from my iPhone

On 25 Aug 2017, at 13:52, Andres Meyer notifications@github.com wrote:

@juan11perez, did you unzip the zip file as mentioned into the same dir das the sonota script lives? it looks like it cannot find the ssl certs.

On Fri, Aug 25, 2017 at 11:37 AM Robert notifications@github.com wrote:

I am halfway through the SonOTA install, but stack before the FinalStage with a 404 error. Any idea how to continue? Log inserted below. Thanks!

` << HTTP POST /dispatch/device

/dispatch/device { "IP": "192.168.100.43", "port": 8443, "reason": "ok", "error": 0 } 2017-08-25 11:20:19,588 (INFO) 200 POST /dispatch/device (192.168.100.116) 2.18ms 2017-08-25 11:20:19,780 (INFO) 101 GET /api/ws (192.168.100.116) 1.34ms 2017-08-25 11:20:19,780 (DEBUG) << WEBSOCKET OPEN 2017-08-25 11:20:19,791 (DEBUG) << WEBSOCKET INPUT 2017-08-25 11:20:19,791 (DEBUG) << { "userAgent": "device", "model": "PSF-B04-GL", "romVersion": "2.0.0", "ts": 744, "deviceid": "10001182c9", "apikey": "c1f4a468-b659-44a1-b867-917015a15395", "version": 2, "action": "register" }

2017-08-25 11:20:19,792 (INFO) We are dealing with a PSF-B04-GL model.


>> {
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"error": 0,
"config": {
"hbInterval": 145,
"hb": 1
}
}
2017-08-25 11:20:19,806 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,807 (DEBUG) << {
"userAgent": "device",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"deviceid": "10001182c9",
"action": "date"
}
~~~ device sent action request, acknowledging / answering...
~~~~ date
>> {
"date": "2017-08-25T11:20:19.807Z",
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"error": 0
}
2017-08-25 11:20:19,820 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,823 (DEBUG) << {
"userAgent": "device",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"deviceid": "10001182c9",
"params": {
"switches": [
{
"outlet": 0,
"switch": "off"
},
{
"outlet": 1,
"switch": "off"
},
{
"outlet": 2,
"switch": "off"
},
{
"outlet": 3,
"switch": "off"
}
],
"staMac": "60:01:94:84:13:B8",
"configure": [
{
"outlet": 0,
"startup": "off"
},
{
"outlet": 1,
"startup": "off"
},
{
"outlet": 2,
"startup": "off"
},
{
"outlet": 3,
"startup": "off"
}
],
"fwVersion": "2.0.0",
"rssi": -59
},
"action": "update"
}
~~~ device sent action request, acknowledging / answering...
~~~~ update
>> {
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"error": 0
}
>> {
"sequence": "1503652819824",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "off"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
>> {
"sequence": "1503652819825",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "on"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
>> {
"sequence": "1503652819825",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "off"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
>> {
"sequence": "1503652819825",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "on"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
>> {
"sequence": "1503652819825",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "off"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
>> {
"sequence": "1503652819830",
"userAgent": "app",
"params": {
"binList": [
{
"name": "user1.bin",
"digest": "97fe70d737390bbde7b8d208c79d590e29fc76962623c7bd198ee210210ea616",
"downloadUrl": "http://192.168.100.43:8080/ota/image_user1-0x01000.bin"
},
{
"name": "user2.bin",
"digest": "e6d0cbb641542bd0a27e6c4628fc9331f1f5d3ac3afa42c9307569cf4d70fcdc",
"downloadUrl": "http://192.168.100.43:8080/ota/image_user2-0x81000.bin"
}
],
"version": "23.42.5",
"model": "PSF-B04-GL"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "upgrade"
}
2017-08-25 11:20:19,870 (INFO) 200 GET /ota/image_user2-0x81000.bin?deviceid=10001182c9&ts=1270216262&sign=68c11599e5338c21e1fd621faed8d52e9798196c9dc58837a30d014427ff3d99 (192.168.100.116) 12.12ms
2017-08-25 11:20:19,870 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,871 (DEBUG) << {
"sequence": "1503652819830",
"userAgent": "device",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"error": 404,
"deviceid": "10001182c9"
}
`

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/arendst/Sonoff-Tasmota/issues/582#issuecomment-324870654>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAj5G_VsYTPlWXWUuwUFbaYJihcWOE0bks5sbpWwgaJpZM4OOYnG>
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
cputoaster commented 7 years ago

I corrected the link in the tutorial, should work now. This is not equivalent to getting the fork.

cputoaster commented 7 years ago

@RobertSzabo did you upgrade to a new version while using it with ewLink? it normally takes a few minutes for an upgrade message to appear. I just had exactly the same 404 problem when I used the original version, it went away after updating.

juan11perez commented 7 years ago

Andres, thank you very much for your help. I know you updated the link, I dowloaded it, repeated the install and it’s working now. MQTT and everything.

@Robert, you need to ensure the device is in firmware 1.61 or higher. I had the same error you were showing. I reconnected it to Welink, updated the firmware and sorted.

Thank you

Regards/Saludos Juan

On 25 Aug 2017, at 13:54, Andres Meyer notifications@github.com wrote:

@Robert, you should first connect your device with the original ewLink and upgrade it to the most recent original firmware.

On Fri, Aug 25, 2017 at 11:52 AM Andres Meyer andres.meyer@computer.org wrote:

@juan11perez, did you unzip the zip file as mentioned into the same dir das the sonota script lives? it looks like it cannot find the ssl certs.

On Fri, Aug 25, 2017 at 11:37 AM Robert notifications@github.com wrote:

I am halfway through the SonOTA install, but stack before the FinalStage with a 404 error. Any idea how to continue? Log inserted below. Thanks!

` << HTTP POST /dispatch/device

/dispatch/device { "IP": "192.168.100.43", "port": 8443, "reason": "ok", "error": 0 } 2017-08-25 11:20:19,588 (INFO) 200 POST /dispatch/device (192.168.100.116) 2.18ms 2017-08-25 11:20:19,780 (INFO) 101 GET /api/ws (192.168.100.116) 1.34ms 2017-08-25 11:20:19,780 (DEBUG) << WEBSOCKET OPEN 2017-08-25 11:20:19,791 (DEBUG) << WEBSOCKET INPUT 2017-08-25 11:20:19,791 (DEBUG) << { "userAgent": "device", "model": "PSF-B04-GL", "romVersion": "2.0.0", "ts": 744, "deviceid": "10001182c9", "apikey": "c1f4a468-b659-44a1-b867-917015a15395", "version": 2, "action": "register" }

2017-08-25 11:20:19,792 (INFO) We are dealing with a PSF-B04-GL model.


>> {
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"error": 0,
"config": {
"hbInterval": 145,
"hb": 1
}
}
2017-08-25 11:20:19,806 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,807 (DEBUG) << {
"userAgent": "device",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"deviceid": "10001182c9",
"action": "date"
}
~~~ device sent action request, acknowledging / answering...
~~~~ date
>> {
"date": "2017-08-25T11:20:19.807Z",
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"error": 0
}
2017-08-25 11:20:19,820 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,823 (DEBUG) << {
"userAgent": "device",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"deviceid": "10001182c9",
"params": {
"switches": [
{
"outlet": 0,
"switch": "off"
},
{
"outlet": 1,
"switch": "off"
},
{
"outlet": 2,
"switch": "off"
},
{
"outlet": 3,
"switch": "off"
}
],
"staMac": "60:01:94:84:13:B8",
"configure": [
{
"outlet": 0,
"startup": "off"
},
{
"outlet": 1,
"startup": "off"
},
{
"outlet": 2,
"startup": "off"
},
{
"outlet": 3,
"startup": "off"
}
],
"fwVersion": "2.0.0",
"rssi": -59
},
"action": "update"
}
~~~ device sent action request, acknowledging / answering...
~~~~ update
>> {
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"error": 0
}
>> {
"sequence": "1503652819824",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "off"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
>> {
"sequence": "1503652819825",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "on"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
>> {
"sequence": "1503652819825",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "off"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
>> {
"sequence": "1503652819825",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "on"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
>> {
"sequence": "1503652819825",
"userAgent": "app",
"from": "hackepeter",
"params": {
"switch": "off"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "update"
}
>> {
"sequence": "1503652819830",
"userAgent": "app",
"params": {
"binList": [
{
"name": "user1.bin",
"digest": "97fe70d737390bbde7b8d208c79d590e29fc76962623c7bd198ee210210ea616",
"downloadUrl": "http://192.168.100.43:8080/ota/image_user1-0x01000.bin"
},
{
"name": "user2.bin",
"digest": "e6d0cbb641542bd0a27e6c4628fc9331f1f5d3ac3afa42c9307569cf4d70fcdc",
"downloadUrl": "http://192.168.100.43:8080/ota/image_user2-0x81000.bin"
}
],
"version": "23.42.5",
"model": "PSF-B04-GL"
},
"ts": 0,
"deviceid": "10001182c9",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"action": "upgrade"
}
2017-08-25 11:20:19,870 (INFO) 200 GET /ota/image_user2-0x81000.bin?deviceid=10001182c9&ts=1270216262&sign=68c11599e5338c21e1fd621faed8d52e9798196c9dc58837a30d014427ff3d99 (192.168.100.116) 12.12ms
2017-08-25 11:20:19,870 (DEBUG) << WEBSOCKET INPUT
2017-08-25 11:20:19,871 (DEBUG) << {
"sequence": "1503652819830",
"userAgent": "device",
"apikey": "adcf96ce-9e40-46d5-a0c0-fbc53f6888b9",
"error": 404,
"deviceid": "10001182c9"
}
`

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/arendst/Sonoff-Tasmota/issues/582#issuecomment-324870654>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAj5G_VsYTPlWXWUuwUFbaYJihcWOE0bks5sbpWwgaJpZM4OOYnG>
.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-Tasmota/issues/582#issuecomment-324874222, or mute the thread https://github.com/notifications/unsubscribe-auth/AcqyrU4HZzoBhaXnmZ2i1Fk7EXwkiSSbks5sbpnHgaJpZM4OOYnG.

RobertSzabo commented 7 years ago

Indeed; just managed to upgrade via ewLink after, which the SonOTA completed successfully. Thanks for all the help and the great firmware! Cheers, Robert

arendst commented 7 years ago

@cputoaster Andres, could you be so kind to update my wiki with information how to download, configure and use your tool?

I've made a chapter about upload tools and some entries for esptool, arduino and platformio. I did add a SonOTA page too.

Pls update this page with information mentionend here for a noob to use your great tool.

ferbulous commented 7 years ago

@cputoaster do you have any plans to include other firmware like espurna with your OTA method?

cputoaster commented 7 years ago

@arendst I wrote it up on the wiki here: https://github.com/arendst/Sonoff-Tasmota/wiki/SonOTA---Espressif2Arduino---Tasmota-without-compiling and placed the link in the tutorial section. I am not sure if its a good idea to call it a "SonOTA" install, as I tried to make things simple just by compiling (unmodified, my changes got merged) Espressif2Arduino, using (unmodified) SonOTA with snakeoil certs and directly linking to the "official" Tasmota builds on the web. Its mostly packaging for noobs. If you want to, I can copy it to the SonOTA page, but it might not be the "pure" way.

cputoaster commented 7 years ago

@ferbulous err, did not really try yet. The point of my package was to just fetch some hardcoded URL, which I set to Tasmota. But I guess if the fw you need is somewhere available on the web, it should be simple to compile an E2A binary that fetches that.

matphillips commented 7 years ago

My T1 arrived today and I managed to install the Tasmots firmware OTA with reasonable easy thanks to the details provided here. The people involved in this project are fantastic! I have the homebridge-mqtt-switch-tasmota plugin running with Homebridge to control the other Sonoff devices and can't quite get it to work with this three-gang unit. I can switch ON each of the four relays but cannot switch them off. The web interface indicates them as ON but the Home app in iOS thinks they are off and sends an ON command each time.

Different plugin needed or wrong config used? Anyone tried this?

ferbulous commented 7 years ago

But I guess if the fw you need is somewhere available on the web, it should be simple to compile an E2A binary that fetches that

I'm not really sure how to do that

Another question, how should I key in my wifi ssid if there's space between the ssid name? For example if wifi ssid is 'house wifi', when add it to this command ./sonota.py --wifi-ssid house wifi --wifi-password mypassword 192.168.2.190

The script doesn't run properly and only shows up for a split second

Also, how do I use nmap on windows?

cputoaster commented 7 years ago

I can compile something for you if you can give me a link of the fw on the web. As for using sonota on windows, I dont really know. I would guess that that you can put the string between quotes (eg --wifi-ssid "house wifi" --wifi-password .....) but thats just a guess.

cputoaster commented 7 years ago

@ageorgios you might want to close this issue, as its starting to deviate from the original subject.

ferbulous commented 7 years ago

@cputoaster for espurna you find it here, https://bitbucket.org/xoseperez/espurna/downloads/ It's espurna.ino if that's what you require

For sonoff ota method, I'm still stuck at this:

"serverName": "192.168.8.100", "port": 4223 } << { "error": 0 } ~~ Provisioning completed ** The IP address of <serve_host> (192.168.8.100) is not assigned to any interface on this machine. ** Please change WiFi network to $ESSID and make sure %s is being assigned to your WiFi interface. ** This application can be kept running. ..........~~ Starting web server ~~ Waiting for device to connect

I'm trying this method on sonoff t1 clone (psf-b85), also this one has firmware version 2.0.1

ferbulous commented 7 years ago

@cputoaster some updates, I successfully flashed using sonota method on my sonoff t1 clone Only issue I'm having is that it's not saving anything that I modified on the settings If I add my home wifi/change module, once the device restarts it's still on the default settings

All good now, before this I use OTA for standard tasmota firmware. This time I uploaded image instead and everything's working fine

Could you compile firmware for espurna too or is there guide for it?

davidelang commented 7 years ago

it sounds like you flashed the be minimal version, that version does't let you save anything, it only exists to then let you flash the full version.

cputoaster commented 7 years ago

@ferbulous yes, you should probably update by using the urls on this page on the web interface: https://github.com/arendst/Sonoff-Tasmota/wiki/Upgrade, most probably http://sonoff.maddox.co.uk/tasmota/sonoff.bin

about espurna, it looks like there is a different binary for each device, as opposed to Tasmota which has just one minimal and version for all devices. This does not really work well, as there would need to be some logic for detection in E2A, which is not there. But did you try flashing espurna via the web ui of Tasmota? No idea if it would work, but hey, if you have headers on one of you devices...

jeylites commented 7 years ago

Why is the following keep appearing, Is the syntax wrong?

JK-Air:SonOTA JK$ ./sonota.py --wifi-ssid asus --wifi-password 055555 192.168.1.79 usage: sonota.py [-h] [--serving-host SERVING_HOST] [--no-prov] [--wifi-ssid WIFI_SSID] [--wifi-password WIFI_PASSWORD] [--no-check-ip] [--legacy] sonota.py: error: unrecognized arguments: 192.168.1.79 JK-Air:SonOTA JK$

lobradov commented 7 years ago

Arent you missing --serving-host in front of IP address? :)

//_

On Sep 26, 2017, at 18:08, jeylites notifications@github.com wrote:

Why is the following keep appearing, Is the syntax wrong?

JK-Air:SonOTA JK$ ./sonota.py --wifi-ssid asus --wifi-password 055555 192.168.1.79 usage: sonota.py [-h] [--serving-host SERVING_HOST] [--no-prov] [--wifi-ssid WIFI_SSID] [--wifi-password WIFI_PASSWORD] [--no-check-ip] [--legacy] sonota.py: error: unrecognized arguments: 192.168.1.79 JK-Air:SonOTA JK$

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

jeylites commented 7 years ago

got it to load ./sonota.py but it's stock at discovering the Sonoff T1

EWeelink Version 2.04

JK:~ JK$ ./sonota.py -bash: ./sonota.py: No such file or directory JK:~ JK$ cd ~/src/SonOTA JK:SonOTA JK$ ./sonota.py Select IP address of the WiFi interface: 0: 192.168.1.79 Select IP address [0]: 0 WiFi SSID: asus WiFi Password: 55555555

Using the following configuration: Server IP Address: 192.168.1.79 WiFi SSID: asus WiFi Password: 55555555 Now connect via WiFi to your Sonoff device. Please change into the ITEAD WiFi network (ITEAD-100001XXXX). The default password is 12345678. To reset the Sonoff to defaults, press the button for 7 seconds and the light will start flashing rapidly. ** This application should be kept running and will wait until connected to the Sonoff... .........................................................................................................................................................................................................

jeylites commented 7 years ago

My device is currently stuck at Final Stage, I see it show up on AP list but I can’t seem to do anything with it. Any ideas, also how to do a hardware flash with OTA. I did some research online and found a few steps but I can’t seem to get it flash mode

xarbit commented 6 years ago

@jeylites same with me , i read the 4ch pro is supported and upgraded the firmware before but now I am stuck at FinalStage. I see the AP, any luck on fixing this?

jeylites commented 6 years ago

@jscurtu I feel your frustration :) The only way around will be to take it apart for a manual upgrade.

xarbit commented 6 years ago

@jeylites aight ... thx.. :-)

LurchiStromberg commented 6 years ago

Hello! Today i got my 3 Gang Touch from Banggood...

But it looks like they change the Board Layout again.

Can somebody help me about the Connectors to flash Tasmota?

1st Question would be, what is the right Port? J1 or J3 ?

And what connector is what?

touch1 touch 2

davidelang commented 6 years ago

it sounds like you are the first person to try this module, so you will have to trace leads or get a datasheet to figure out what the correct port would be.

juan11perez commented 6 years ago

Suggest using SonOTA https://github.com/arendst/Sonoff-Tasmota/wiki/SonOTA---Espressif2Arduino---Tasmota-without-compiling

Works an no need to solder anything.

Regards Juan

On 8 Nov 2017, at 23:38, LurchiStromberg notifications@github.com wrote:

Hello! Today i got my 3 Gang Touch from Banggood...

But it looks like they change the Board Layout again.

Can somebody help me about the Connectors to flash Tasmota?

1st Question would be, what is the right Port? J1 or J3 ?

And what connector is what?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

LurchiStromberg commented 6 years ago

ty Juan! I found that already too and its really good working. Was some tricky, because to get T1 into pairing AND ALSO Wifi Mode you need to hold the left Button for about 15-20 sec., till the Wifi LED flashes fast contiuesly... Then you can also find the T1 Sonoff Wifi at your Computer...

After flashing its also the left Button you need to push as fast as you can 5 Times to get it into WPS Mode....

codedmind commented 6 years ago

After flash can you use the two buttons? I only can get one to work even after change module type to T1 2Ch. Is needed do any more change? Thanks Mine is this model https://pt.aliexpress.com/item/Work-with-Amazon-Alexa-Smart-Wi-Fi-Switch-Glass-Panel-1gang-2gang-3gang-EU-Touch-Light/32818148422.html