How to flash ESPurna firmware to Sonoff Basic

Sdílet
Vložit
  • čas přidán 19. 11. 2017
  • This video shows how to flash the ESPurna firmware to the Sonoff Basic device, how to configure it and control using MQTT and HTTP protocol. In this video I will not cover how to configure it in home automation systems like OpenHAB or Domoticz.
    Binaries on the new Github page: github.com/xoseperez/espurna/...
    Sonoff Cheatsheet: drive.google.com/file/d/0Bw1X...
    ESP Tool Executable:
    drive.google.com/file/d/1Lzoy...
    Node Red Flow:
    flows.nodered.org/flow/09a82d...
    (this flow is enhanced to what I have shown in the video)
    Sonoff wiring explained: drive.google.com/file/d/1fTCD...
  • Věda a technologie

Komentáře • 53

  • @CiprianBindiu
    @CiprianBindiu Před 6 lety +2

    It was very useful! Thank you for covering the HTTP part as well. Much appreciated!

    • @csongorvarga
      @csongorvarga  Před 6 lety +1

      Thanks. I think lot of people prefer HTTP. And to be honest I find HTTP request in some cases quicker than MQTT. I did not mention but when using HTTP you better use a fixed IP which can be configured on the admin page on the WIFI tab.

    • @CiprianBindiu
      @CiprianBindiu Před 6 lety +1

      You're very welcome! I kind of just started my "home automation" and because i'm more familiar with HTTP protocol, i'm using it that way. Maybe next year i'll get the hang of MQTT and go a step further with my projects. Thank you for the last configuration tip, will try this firmware this week-end, so i can prepare my home for winter! Yuuupppyy!!!

  • @website_garage
    @website_garage Před 6 lety

    Thank you for this great tutorial. Until now I have worked with the Tasmota firmware on the Sonoffs and I like to try out the ESPurna firmware also because I've read lots of good things about it. This flash method is a bit easier then using PlatformIO in the Atom editor.

    • @csongorvarga
      @csongorvarga  Před 6 lety

      I yet to try Tasmota. And once I am done with that I also want a comparison video to see pros and cons of ESP Easy, ESPurna and Tasmota.

  • @ZiyaTunaASLIM
    @ZiyaTunaASLIM Před 6 lety +1

    Thank you so much. Your tutorial helped me!

  • @nunosilva2128
    @nunosilva2128 Před 6 lety +1

    Thanks mate! Simple and easy to do!

  • @coolerkerl
    @coolerkerl Před 6 lety +1

    Vielen lieben Dank für die Anleitung . Thank you from Gemany

  • @patrickm9303
    @patrickm9303 Před 6 lety

    thank you that solved my same problem

  • @nishiter
    @nishiter Před 6 lety

    Superb..tnx...

  • @Penax737
    @Penax737 Před 6 lety

    In case of interruption of the power supply and restart, Sonoff drops to the basic setting. All set values and passwords are cleared.
    Where is the problem? Thank you.

  • @alexka2
    @alexka2 Před 3 lety

    Szia! Wemos d1 mini-re szeretnék Espurna fw-t, van is precomplied xoseperez github-ján ehhez a boardhoz, a kérdésem az, hogy a már beépített dht22 szenzort hogy engedélyezzem? illetve hogyan állítom be, hogy gpio2-re kötöttem? ugye nem kell ezért külön compile-olni, hanem lehet állítani ezeket valahogyan? köszi :)

  • @bobq7910
    @bobq7910 Před 5 lety

    Si pongo este firmware podré controlar el dispositivo con Google home? Cómo? Muchas gracias por su ayuda

  • @artemicruzarencibia650

    integrate blynk?

  • @sayedur
    @sayedur Před 6 lety

    Now ESPurna has moved to github, and I can't find the .bin files there. Any word on how can one proceed from there?

    • @csongorvarga
      @csongorvarga  Před 6 lety

      It is there: github.com/xoseperez/espurna/releases/. You click on the Wiki link, and on the right navigation menu, there is a link how to install pre-build releases.

  • @SolarMiracle
    @SolarMiracle Před 6 lety

    Thanks , so generally would you prefer ESPurna or ESP easy ?

    • @csongorvarga
      @csongorvarga  Před 6 lety

      I prefer ESP Easy for myself, because I like to tinker. But ESPurna most probably does all you need and does it much simpler. So if you are flashing a Sonoff, it is quicker to get up and running with ESPurna.

  • @myozone
    @myozone Před 6 lety +1

    Any news on the new Sonoff version and do you know if the firmware can be charged ?

    • @csongorvarga
      @csongorvarga  Před 6 lety

      Not yet. I ordered a Sonoff probably more than a month ago. With Christmas around the corner, delivery is quite sketchy. And I am not even sure if this will be a new Sonoff, or just old stock. So I just need more time.

    • @myozone
      @myozone Před 6 lety

      Thanks, It would be massive shame if they changed it so it could not be re-flashed. I'm just starting in Node-red and Sonoff's - I don't have any yet ...

    • @csongorvarga
      @csongorvarga  Před 6 lety

      That is definitely not the case. In one of the video somebody mentioned that it just needs a different parameters in ESPtool. Also if you read the Wiki of Tasmota firmware, it is also mentioned that the difference is only a parameter: read the top post: github.com/arendst/Sonoff-Tasmota/wiki/Theo's-Tasmota-Tips

    • @myozone
      @myozone Před 6 lety

      Ah ok, Good to know Thanks.
      One off topic question, in Espeasy do you know if Pulse counting has total pulses and the time between pulses this would to to read a LED on my electricity meter, giving both KW's currently being used and total KWh's used.

  • @japa6225
    @japa6225 Před 6 lety

    The project has been moved to github.com/xoseperez/espurna

  • @squalazzo
    @squalazzo Před 6 lety

    very interesting :)
    can you publish a basic flow using node-red dashboard controls, with active visualization of the actual status of relay, indipendently if it's activated from physical button or via mqtt/http? Thanks :)

    • @csongorvarga
      @csongorvarga  Před 6 lety

      Check the video description, I put a new link there to an enhanced node red flow.

    • @squalazzo
      @squalazzo Před 6 lety

      thanks!

  • @gioraver
    @gioraver Před 6 lety

    the esotool.exe not run also disable Windows defender and try setup compatibility whit Win XP, theres other requirements to run ESPTOOL.exe ?

    • @csongorvarga
      @csongorvarga  Před 6 lety

      I am sorry, I did not experience this issue before. You can follow the steps on wiki to install python on your computer and and execute the python version of esptool. That's all I can add.

    • @gioraver
      @gioraver Před 6 lety

      today i try it whit ESPEasy Flasher , and work very good is not required any command github.com/letscontrolit/ESPEasy/releases/download/v2.0.0-dev12/ESPEasy_v2.0.0-dev12.zip

  • @CptRodgers
    @CptRodgers Před 6 lety

    Szia ha jol ertem, ha megflashelem a kis sonoff-omat akkor managgelheto lesz, es az alexa meg a domonitcz is kezeli?

    • @csongorvarga
      @csongorvarga  Před 6 lety +1

      Igen. De Alexa-t tud a Sonoff alapbol is. De igen, fogja tudni azokat a dolgokat amikkel domonitcz helybol tud vele beszelni. De onnantol persze nem mukodik majd a Sonoff sajat programjaval.

    • @CptRodgers
      @CptRodgers Před 6 lety

      en most kezdtem el epiteni a rendszert. jelenleg va egy mukodo boradlink, ( tv, klimaa, villanykapcsolok, ) es par sonoff basic. szeretnem, hogy Alexa, es a siri is iranyitsa, es ne sok kulonbozo appbol keljen molesztalni a lakast. ezert gonoltam, h a kozos nevezo legyen egy synology-n futo domoticz, aminek a kezelofelulete emberbarat.
      Most meg csak ott tartok, hogy az alexa iranyitja a sonoff-okat, a broadlinkbol csak a tv-t, es a domonitcz fut de semilyen eszkoz nincs rajta. picit elekadtam. Ha tudsz valami jo tanacsot mondani szivesen veszem . Koszi Zoli

    • @csongorvarga
      @csongorvarga  Před 6 lety

      Jó ötletnek hangzik. A domoticz-ot én nem ismerem. Nem tudom az mennyire jól működik együtt a Sirivel vagy az Alexa-val. Nagyon sokan esküsznek a Home Assistantra is ami ha jól tudom Apple Homekit kompetibilis. Azt nem tudom hogy a Broadlinkes cuccokat át lehet-e flashelni, illetve azokat hogyan lehet egy közös rendszerbe irányítani.

    • @CptRodgers
      @CptRodgers Před 6 lety +1

      Koszi a gyors valaszodat. ha megakadok, szerintem meg radirok. a csatornaddal meg csak igy tovabb

  • @leanzlatino
    @leanzlatino Před 6 lety

    Have the new version of
    Sonoff Basic got CE ?

  • @batkamano11
    @batkamano11 Před 5 lety

    Szia Csongor, hogyan tudok ilyen kábelt eszkábálni? Tudtommal a mezei usb 5 voltot ad ki. köszi

    • @csongorvarga
      @csongorvarga  Před 5 lety

      Ez nem USB kábel, es egy FTDI. eBay-en keress arra hogy "3.3V FTDI" és találsz sokat.

  • @stefansvab6935
    @stefansvab6935 Před 6 lety

    Szia Csongor. Megszeretnem kerdezni hogy honnan lehetne letolteni a firmwareket? Ezen a linken bitbucket.org/xoseperez/espurna/downloads/ nem talalom. Koszi

    • @csongorvarga
      @csongorvarga  Před 6 lety

      Igen, ugy tunik a video keszitese ota a projekt atkoltozott a github-ra: github.com/xoseperez/espurna

    • @stefansvab6935
      @stefansvab6935 Před 6 lety

      itt sem talalom a .bin kiterjesztesu fajlokat.

  • @jackywoo4975
    @jackywoo4975 Před 6 lety

    Hi, thanks for the video, I flash completed but the green light on sonoff was not on. cannot find sonoffbasic wifi. How do you know what the ip address is 192.168.4.1? thanks.

    • @jackywoo4975
      @jackywoo4975 Před 6 lety

      do find a spunrna_07c029 and i assume that is the one, so i connect to it with windows 10 but it didn't work, and I connect to it with Pi and it did connect. not I have to find the ip address, I used 192.168.4.1 and 192.168.4.2 but they both didn't work. Thanks

    • @csongorvarga
      @csongorvarga  Před 6 lety

      It is documented in the wiki: when you connect to the access point created by the Sonoff, this is what the server IP is going to be. It is always that.

    • @jackywoo4975
      @jackywoo4975 Před 6 lety

      thanks

  • @leandrocosta4283
    @leandrocosta4283 Před 6 lety

    Where do I get the node-red example code?

    • @chuxxsss
      @chuxxsss Před 6 lety

      Good work, remember everytime you complete a page set save it. I had the same problem when I made a vlog. Really enjoying your work have a wonderful day.

    • @csongorvarga
      @csongorvarga  Před 6 lety +1

      Sorry guys, I wanted to add the flow here, but it completely crashes the page. Now I have added the link to the node-red flow to the video description.

  • @atvsteam
    @atvsteam Před 6 lety

    Link to the Node-Red flow is not working

    • @csongorvarga
      @csongorvarga  Před 6 lety

      Not sure why it did not work. I have updated it with a working link

    • @atvsteam
      @atvsteam Před 6 lety

      Now it is there. Great video and flow, thanks for sharing.
      Do you have idea how to implement scheduled timers on Sonoff with ESPurna, just like the original firmware do ?

    • @csongorvarga
      @csongorvarga  Před 6 lety

      With node red, I recommend installing bigtimer node. It does just that. You can set the on and off time, not only actual times but things like sunrise, sunset. There is an On payload and Off payload fields that you set to 1 and 0 and connect that to the ESPurna MQTT topic.