Easiest way to flash Sonoff, Shelly, Wemos or any ESP8266 + HomeKit support with no Hubs

Поделиться
HTML-код
  • Опубликовано: 30 июл 2024
  • I will be showing you the easiest way to flash any ESP8266 device using a TTL (aka Serial) adapter. I will be using the Sonoff Basic to demonstrate, but the process is similar for other ESP devices - Shelly, Tuya, MagicHome, Wemos, H801 and many more.
    You can follow this tutorial to install any firmware for ESP8266 on your device - Tasmota, ESPHome, ESPEasy, ESPurna and others.
    I will show you how to flash Tasmota and then how to add HomeKit functionality using HomeKit Accessory Architect.
    Blog post with links for software and hardware: getsmarty.tech/posts/easiest-...
    Video Chapters:
    0:00 Intro
    0:10 Device overview
    0:26 Connecting to device for flashing
    1:02 Preparing for flashing
    1:44 Tasmota
    2:11 Flashing Tasmota
    2:49 Entering Flash Mode
    3:46 HomeKit firmware
    4:18 Generating HAA single binary (you can skip this part)
    6:16 Flashing the HomeKit firmware (HAA)
    7:16 HAA Initial setup
    7:55 A peak behind the scenes
    8:28 Adding to Home app and setup
    9:19 Video Ending
  • НаукаНаука

Комментарии • 80

  • @kaikolepka9560
    @kaikolepka9560 3 года назад

    Great work! Thanks a lot. Flashed 2pcs. of Sonoff S20.

  • @nathanblanchard8897
    @nathanblanchard8897 Год назад +1

    Thank you for making this video series! You do a great job of breaking down the steps, BUT I wanted to provide an update for those who might be following this today. Since this was published, many of the Magic Home LED Controller that used to run on ESP 82xx chips have switched to RISC-V based chips. Unfortunately, this means the platforms developed for ESP are not compatible and will require completely new software to be written for them. I'm hoping this changes soon, or that I'm completely wrong and there is a compatible platform for the new chips but I haven't been able to find them.

  • @konradtkaczyk4292
    @konradtkaczyk4292 3 года назад

    Thanks for this video. Clear and awesome :)

  • @williamriserio3002
    @williamriserio3002 4 года назад +5

    Hi great tutoriaI!
    I will definitely do that, thank you very much!
    I saw this procedure is also applicable to sonoff mini and I was wondering if I could flash the HAA single file on top of the itead bin instead of flashing Tasmota first, so that I could flash it Over The Air using the DIY tool because I don't have the serial adapter and I'm not sure how to wire the Mini.
    Thank you once again for the support.

  • @nikolayandcards
    @nikolayandcards 4 года назад +5

    This is what I needed

  • @alexanders979
    @alexanders979 4 года назад

    thx great. it worked.

  • @stephanarsenault6564
    @stephanarsenault6564 4 года назад +1

    Thank You Work very well :-) sonoff basic (homekit)

  • @wesleyrosa9144
    @wesleyrosa9144 4 года назад

    Parabéns pelo tutorial, sou do Brazil e por aqui temos pouco material em português. Você poderia fazer um tutorial para cada tipo de acessório: Contact Sensor, Motion Sensor, Garage Door, etc....

  • @gorlovkaonlandia
    @gorlovkaonlandia 4 года назад

    Great video!
    I need to use servo on my project and I can't find support in HAA firmware. In your article you wrote: You can follow this tutorial to install any firmware for ESP8266 on your device - Tasmota, ESPHome, ESPEasy, ESPurna and others.
    Did I andestand correctly - I can use Tasmota Firmware whith HAA?
    I other words - on Tasmota I will add servo support and will trancate HAA + Tasmota. Am I right?
    Thank you!

  • @johnmartin5180
    @johnmartin5180 4 года назад

    Hi great tutorial. Before I flash my EPS8266 please advise if Tasmota supports inching mode with HomeKit.

  • @santafranz1060
    @santafranz1060 3 года назад

    Hello, is it possible, to use more gpio pins from the esp32? I think, one for a relais, and one for a ws2812b led strip. Both in HomeKit.

  • @joshuavandenberg7927
    @joshuavandenberg7927 4 года назад

    How do I connect it it my new WiFi? Do I have to repeat all the steps ore is there an easy way to just rest the WiFi settings?

  • @abdulrahmankhamaruzaman2772
    @abdulrahmankhamaruzaman2772 4 года назад

    hey. i install tx 3 gang. then wanna install a sonoff basic. when i scan the bar code it says already install (detecting my TX 3gang) i need multiple using this. how?

  • @duncan.g.burton
    @duncan.g.burton 3 года назад

    Hi. Sorry for a dumb question. Where can you buy the pin connector that you soldered to the board. I have already purchase the TTL cable with pins.
    Thank you

  • @nikogeek1
    @nikogeek1 3 года назад

    Hello! I did the procedure and it worked for me with a sonoff basic. Then I wanted to do it with another sonoff and it also worked but when I wanted to add it to homekit and scan the code it tells me that it has already been added, can you help me?

  • @ecosmeri853
    @ecosmeri853 2 года назад

    hello thank for this video. does it work on Sonoff basic R2? because I try but I get stuck after sending the json config. impossible to find it with Home application

  • @andredias7662
    @andredias7662 4 года назад

    Hello,
    JSON sonoff basic (homekit) for gate? pls

  • @jakero3884
    @jakero3884 3 года назад

    Hey everything worked well, but the sonoff dind`t show up in the home app ? Can you help me ?

  • @thefaizanakhtar
    @thefaizanakhtar 3 года назад

    How can we add multiple device with one sonoff? Which json file we should use? Can you please make a video 🙏🏻

  • @dariusp.5537
    @dariusp.5537 3 года назад

    Xi! Do you know how to connect Sonoff miniR2 to Apple Homekit? Many thanks! ;-)

  • @walteraber9302
    @walteraber9302 Год назад

    Hi, I've managed to go step by step until adding to homekit... accessory cannot be found... any help please!!

  • @philippcuno-friess8775
    @philippcuno-friess8775 4 года назад

    Great video! Thank you very much!
    I was using homebridge to get all my devices on my smart home network, but I just found HAA! Maybe you could do a video on how to create the JSON string by your own :-)

    • @getsmarty2460
      @getsmarty2460  4 года назад +2

      How a config JSON for HAA is created is well documented in HAA’s wiki. I try to provide you guys with ready to use JSONs for the devices I am making the video for, to save you the trouble of searching for them or trying to create them. You can of course mend your own string following the examples in the wiki. :)

    • @getsmarty2460
      @getsmarty2460  4 года назад +2

      For the next video for lights witches, I’ve made sure to include a bunch of JSONs with different options so you get to choose.

    • @philippcuno-friess8775
      @philippcuno-friess8775 4 года назад

      Sounds amazing! Will you have a Look into window covers as well ?

    • @getsmarty2460
      @getsmarty2460  4 года назад +1

      @@philippcuno-friess8775 I will do my best to get my hands on the hardware first 😄

  • @MikeMerton
    @MikeMerton Год назад

    Would you be willing to ship a couple of shelly 2.5 flashed for homekit?

  • @funnyasme
    @funnyasme 2 года назад

    i've tried this with sonoff basic r2 but didn't work. i did the flashings but when i try to connect the device with the router, i couldn't see HAA-.... as wifi spot. And i also couldn't find json strings for r2. Could someone help me?

  • @funnyasme
    @funnyasme 2 года назад

    does that work for Sonoff Basic r2 and r3?

  • @cannyking
    @cannyking 3 года назад

    Where do i get the cable?

  • @estebanjaramillochica7832
    @estebanjaramillochica7832 3 года назад

    Hi, great video, how can I use this on wall light switch and still use the wall switch?

    • @JohnSmith-yg7og
      @JohnSmith-yg7og 3 года назад

      just connect your switch to S1,S2 of mini( N wire needed to power up sonoff)

  • @buzz8711
    @buzz8711 3 года назад

    How does it work with windows?

  • @coledimich2467
    @coledimich2467 3 года назад

    I'm trying to use the truncate command in terminal to make a full boot file but it says that the command cannot be found. What could be the issue here? Do I need to install something prior to being able to use that command? Thanks for the help!

    • @coledimich2467
      @coledimich2467 3 года назад

      Nevermind I figured out how to get homebrew installed

  • @lucascagliotti7332
    @lucascagliotti7332 Год назад

    after flashing the son off, when trying to add to HomeKit, I get a banner that says "Accessory Already Added, to add this accessory to your home, you'll need to reset it first."
    anyone else got the same problem? how to fix?

  • @misterxide
    @misterxide 3 года назад +1

    Hi very good tutorial! however, the haaboot.bin file seems to be missing :( Error 404.
    Do you have a new link maybe?

    • @fmarink
      @fmarink 3 года назад +1

      I found this: github.com/RavenSystem/haa/releases

  • @evrenakgul4934
    @evrenakgul4934 4 года назад +1

    I just tried this merhod. Everything seems fine except can get the device as a wifi hotspot. What might be the problem?

    • @lukeroberts914
      @lukeroberts914 3 года назад

      try connecting it to power and it worked better on the iPhone than the mac

  • @rogerhorner1355
    @rogerhorner1355 4 года назад

    Hi I have flashed the first Sonoff with Homekit but when I did the same with the second one Home keeps telling me Accessory already added. I have tried refreshing several times but get the same every time. it tells me to reset it first. How do I do this?

  • @Hackerciano
    @Hackerciano 4 года назад

    Hi @GetSmarty I did all the steps for my Sonoff Basic to run HAA, but when I try to connect to the created wifi network my Mac says "can't connect to....", this also happens with my iPhone & iPad

    • @Hackerciano
      @Hackerciano 4 года назад

      Update : one of my two sonoff basic devices connected correctly to my network, I’m repeating the process in a second device and the message “unable to join the network” still shows.

    • @getsmarty2460
      @getsmarty2460  4 года назад +1

      You mean you are unable to connect to the Device’s wifi hotspot?

    • @Hackerciano
      @Hackerciano 4 года назад

      @@getsmarty2460 That's right, no matter which device (Mac, iPad, iPhone), the hotspot exists but I can't connect to it.

    • @getsmarty2460
      @getsmarty2460  4 года назад +1

      I have had similar issues before. After a few tries, hitting “Forget network” and retrying I have had successes. This seems to be a firmware issue. :( I am not the author of the firmware. I'd suggest you to try this and if that doesn't help, you could try to reflash and try again.

    • @Hackerciano
      @Hackerciano 4 года назад

      @@getsmarty2460 I'll try then, thank you so much.

  • @omerguleray4888
    @omerguleray4888 2 года назад

    Hi.
    your link is not work. Can you write new link

  • @michaelthompson657
    @michaelthompson657 4 года назад

    I believe some Shelly devices can be flashed OTA so you have no soldering. Is this true and if so could you provide a video how to? On a Mac would be great!

    • @preet5678
      @preet5678 4 года назад

      shelly devices have the pins accessible so, there is no need the pry open the plastic case, the rest is exactly the same as above

    • @michaelthompson657
      @michaelthompson657 4 года назад

      Preet Bedi so does this still have to be done with the serial cable?

    • @getsmarty2460
      @getsmarty2460  4 года назад

      You can do it without opening the case. Shelly1 and many other Shelly products have exposed serial pins. They are covered with a rubber cover. There is also the other option to flash it using the Tuya-Convert technique. I plan on doing a video on that soon.
      Cheers! :)

    • @michaelthompson657
      @michaelthompson657 4 года назад

      GetSmarty great thanks, can’t wait! Might be a quarantine project 😂

  • @BIGFOOT1TONKA
    @BIGFOOT1TONKA 3 года назад +1

    After finished and added to the HOMEKIT working with the USB but when you disconnect it and put AC it stops working, you disconnect it from the AC (120v) and I connect it through the TTL (DC-3.3v) and it starts to work well. What happened because it does not want to work with ac only with DC-3.3v. Thank you for any help.

    • @BIGFOOT1TONKA
      @BIGFOOT1TONKA 3 года назад +1

      After the last firmware haa-single.bin at the end disconnect the USB and put the AC-120v current. then you finish the JSON code procedure. thanks for the tutorial.
      FYI: Don't do the last JSON-code step with the USB if you are going to use 120vAC.

    • @BIGFOOT1TONKA
      @BIGFOOT1TONKA 3 года назад

      Work Great Thank you.

    • @lukeroberts914
      @lukeroberts914 3 года назад +1

      @@BIGFOOT1TONKA hey mate I also worked that out but when I add the JSON code and save it doesn't show on Homekit as a device any ideas?

    • @BIGFOOT1TONKA
      @BIGFOOT1TONKA 3 года назад

      ​@@lukeroberts914 need to wait 4 to 5 min to see it on HomeKit and use the code 021-82-017.

  • @AdolfoRubioFITO
    @AdolfoRubioFITO 4 года назад

    Hello, it work with Sonoff mini?

  • @AkashSkylyn
    @AkashSkylyn 3 года назад +2

    My Sonoff mini bricked after DIY installl of HAA. No LED after restarting. Please help

    • @eperadam
      @eperadam 3 года назад

      same problem, I dont know how to get from flash mode to normal mode (to LED is lighting) and get the WIFI

    • @AkashSkylyn
      @AkashSkylyn 3 года назад

      So I eventually had to flash it using the serial adapter method to HAA. It started working again.

    • @JohnSmith-yg7og
      @JohnSmith-yg7og 3 года назад

      @@AkashSkylyn the same problem ! How did you connect to the mini ?

    • @JohnSmith-yg7og
      @JohnSmith-yg7og 3 года назад

      @@AkashSkylyn what chip has your sonoff mini? What JSON did you use ? I did flash mine by wires but after JSON and WiFi configuration it didn’t respond

    • @AkashSkylyn
      @AkashSkylyn 3 года назад

      @@JohnSmith-yg7og i used this json
      {"c":{"l":13,"b":[{"g":0,"t":5}]},"a":[{"0":{"r":[{"g":12}]},"1":{"r":[{"g":12,"v":1}]},"b":[{"g":0}]}]}

  • @davidalvarado5393
    @davidalvarado5393 3 года назад

    Do you know how to invert the process??

    • @davidalvarado5393
      @davidalvarado5393 3 года назад

      I want to remove tasmota and install the original firmware but I dont know how...

    • @SynthArcana
      @SynthArcana 3 года назад

      @@davidalvarado5393 no way back ok, firmware is replaced completely.

  • @GuileHazzard
    @GuileHazzard 4 года назад

    Does this single file work with the sonoff diy tool?

  • @JohnSmith-yg7og
    @JohnSmith-yg7og 3 года назад

    Will it works with ESP8285 ? Thanks

  • @will300c
    @will300c 4 года назад +1

    you gota drop that music, hard to concentrate on what your doing.