Giter Site home page Giter Site logo

Current Status of this solution? about sonota HOT 15 CLOSED

mirko avatar mirko commented on July 20, 2024
Current Status of this solution?

from sonota.

Comments (15)

blackrozes avatar blackrozes commented on July 20, 2024 1

Perhaps someone who successfully used the script, could provide a datailed manual for people like me, which are only 50%-nerds. And more familiar with frontend development than flashing images things like that. That would be great!

from sonota.

lobradov avatar lobradov commented on July 20, 2024 1

from sonota.

palitu avatar palitu commented on July 20, 2024

from sonota.

lobradov avatar lobradov commented on July 20, 2024

from sonota.

blackrozes avatar blackrozes commented on July 20, 2024

from sonota.

BenWoodford avatar BenWoodford commented on July 20, 2024

Would be great to have, this certainly isn't my forte so a nice guide on getting it up and running so I can use it with HASS without having to solder would be great.

from sonota.

mirko avatar mirko commented on July 20, 2024

What's the current situation? Is it possible to flash a Sonoff OTA now?

Well, I'd say it's working :) I also updated the README a couple of days ago hoping it clarifies a few things.
Nevertheless I indeed see it's not a step-by-step guide, so I'm quite looking forward to someone providing such. Thanks for all your comments and contribution!

mirko

from sonota.

cawede avatar cawede commented on July 20, 2024

Hello Mirko, all,

I am quite new into that Arduino and Sonoff world. I took the following approach to get a S20 flashed:

  1. compile two tasmata images with the OTA ROM1 and OTA ROM2 settings
  2. used the esptool to convert the elf output format, resulting bin files start EA
  3. copied the two bin files into the static below the place where sonota.py is located, renamed them to image_user1-0x01000.bin and image_user2-0x81000.bin respectively
  4. started the script, connected to ITEAD SSID, provisioning is done, going back to home network and then there is a communication sequence (see below) going on between with the host and the S20 (I made some numbers unreadable to anonymize the trace)
  5. there is an error 404 reported in the update sequence

-> any hint what could went wrong here?

Thx,

Carsten

>> {
    "action": "update",
    "deviceid": „*********“,
    "apikey": „******************“,
    "userAgent": "app",
    "sequence": "1499288220698",
    "ts": 0,
    "params": {
        "switch": "off"
    },
    "from": "hackepeter"
}
>> {
    "action": "upgrade",
    "deviceid": „**********“,
    "apikey": „****************“,
    "userAgent": "app",
    "sequence": "1499288220714",
    "ts": 0,
    "params": {
        "binList": [
            {
                "downloadUrl": "http://192.168.67.40:8080/ota/image_user1-0x01000.bin",
                "digest": „**********“,
                "name": "user1.bin"
            },
            {
                "downloadUrl": "http://192.168.67.40:8080/ota/image_user2-0x81000.bin",
                "digest": „*************“,
                "name": "user2.bin"
            }
        ],
        "model": "PSA-B01-GL",
        "version": "23.42.5"
    }
}
2017-07-05 22:57:01,189 (DEBUG) << WEBSOCKET INPUT
2017-07-05 22:57:01,190 (DEBUG) << {
    "error": 0,
    "userAgent": "device",
    "apikey": „****************“,
    "deviceid": „*******“,
    "sequence": "1499288220698"
}
2017-07-05 22:57:01,190 (DEBUG) ~~~ device acknowledged our action request (seq 1499288220698) with error code 0
2017-07-05 22:57:01,647 (INFO) 200 GET /ota/image_user2-0x81000.bin?deviceid=************&ts=1270216262&sign=**************** (192.168.67.70) 12.30ms
2017-07-05 22:57:01,648 (DEBUG) << WEBSOCKET INPUT
2017-07-05 22:57:01,648 (DEBUG) << {
    "error": 404,
    "userAgent": "device",
    "apikey": „****************“,
    "deviceid": „****************“,
    "sequence": "1499288220714"
}
2017-07-05 22:57:01,648 (DEBUG) ~~~ device acknowledged our action request (seq 1499288220714) with error code 404
2017-07-05 22:57:53,119 (DEBUG) << WEBSOCKET INPUT
2017-07-05 22:57:53,120 (DEBUG) << {
    "userAgent": "device",
    "apikey": „********“,
    "deviceid": „************“,
    "action": "update",
    "params": {
        "switch": "off",
        "fwVersion": "1.5.2",
        "rssi": -38,
        "startup": "off"
    }
}

from sonota.

mirko avatar mirko commented on July 20, 2024

Please do not use (modified) 3rd party Arduino projects (e.g. Tasmota) being flashed via the Sonoff OTA mechanism.
Although it works (should at least), there will be no way of using the ArduinoOTA mechanism from upon there.
Use images built from https://github.com/khcnz/Espressif2Arduino project as intermediate ones, to replace the bootloader.
Either way, the way you're doing it flashing should work.
Can you provide me the image(s) you built so I can take a look, maybe there's sth. obviously wrong with them.

from sonota.

BenWoodford avatar BenWoodford commented on July 20, 2024

Dunno about everyone else, but all I'm after is a solder-free way to add Home Assistant support to my Sonoffs. Is that doable with this method?

from sonota.

mirko avatar mirko commented on July 20, 2024

Home Assistant is totally unrelated to getting custom Arduino sketches onto the Sonoffs via its original OTA method. However, yes, with custom firmware (e.g. tasmota) you can control your Sonoffs via HA (e.g. via MQTT).

from sonota.

BenWoodford avatar BenWoodford commented on July 20, 2024

More specifically I need a firmware with MQTT support on them, but after your previous comment now I'm not sure if that's possible using this method?

from sonota.

mirko avatar mirko commented on July 20, 2024

There's plenty of information about which Arduino project supports which hardware and feature.
This project is to get 3rd party Arduino firmware onto Sonoff devices without opening them up and flashing via serial.

from sonota.

mirko avatar mirko commented on July 20, 2024

I'd like to reference #10 where two guys had the same / similar issues which they eventually solved.

from sonota.

sillyfrog avatar sillyfrog commented on July 20, 2024

The current build now includes pre-built binaries so it should be a lot simpler to run. With that in mind, I'm closing this, please open a new ticket if you have any issues.

from sonota.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.