Sonoff Complete Guide : Custom Firmware/Software OpenHAB MQTT (Using WINDOWS)

Sdílet
Vložit
  • čas přidán 26. 08. 2024
  • In this video I will show you how to install custom firmware/software on a Sonoff Dual Using a Windows computer. We will be flashing the Sonoff with custom firmware that uses MQTT to connect to a server that is running OpenHAB 2 on a raspberry pi. To flash the firmware we will be using the Arduino IDE.
    Order the Kits, PCBs or 3D Printed Parts to make the devices here: www.mksmarthou...
    Link To Sonoff Complete Guide (Written Guide):
    www.mksmarthou...
    Link To Using a Mac Computer:
    • Sonoff Complete Guide ...
    Buy a Sonoff Here:
    amzn.to/2hrGHl3
    Link to all the Parts and Tools:
    www.mksmarthou...
    Link To Home Automation Server Guide: www.mksmarthous...
    Link To Making An ESP8266 Door Sensor (Playlist):
    • Door / Window Sensor M...
    Home Automation Server Videos:
    Demo - • Complete Guide Setting...
    Hardware - • Complete Guide Setting...
    Software (Using Mac) - • Complete Guide Setting...
    Software (Using Windows) - • Complete Guide Setting...
    Final Installation - • Complete Guide Setting...
    Check out the official website: www.mksmarthous...
    Twitter: / mksmarthouse
    Facebook: / mk-smarthouse-24445584...
    Instagram: / mksmarthouse
    This channel will show you the path to creating your very own Ultimate Smart House using Arduino, raspberry pi, esp8266, OpenHAB 2 and more to do home automation. Each video will be a different project and tutorial that you can follow to make your house more technologically advanced. Also, there is more information as well as detailed guides on mksmarthouse.com

Komentáře • 52

  • @jaromanda
    @jaromanda Před 6 lety

    There are two releases of the Sonoff Dual - this video applies to the older release. The Dual R2 has a header for GPIO0

  • @PimentabilisAnusOutrem

    Hi.
    When using the Sonoff Mini with Tasmota through the MQTT the device only flashes the blue LED once when it is activated, the icon in the application shows that it has been turned on but the lamp doesn't turn on.
    Through the browser I turn on and off the light using the command 192.168.2.156/cm?cmnd=Power On.
    How can I fix it?
    Thank you for your attention.

  • @mfreiher
    @mfreiher Před 4 lety

    Hi this is a great video. How would i setup a Sonoff/Tasmota RF Bridge with one Door sensor to openHab in Windows 10?

  • @pepijngamennl
    @pepijngamennl Před 7 lety

    Keep going with your video`s I liked them a lot!

  • @jeremylu8364
    @jeremylu8364 Před 7 lety

    Great job! I like your video. 👍

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

    MK-SonoffPowerStrip\MK-SonoffPowerStrip.ino:20:24: fatal error: MQTTClient.h: No such file or directory
    Any ideas on what i'm missing?

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

      Hi, had the same issue. look for the library MQTT, by Joel Gaehwiler

  • @mcgamingproyt
    @mcgamingproyt Před 7 lety +1

    Great video as always!
    Question: Why not use the popular Sonoff Tasmota software which has a lot more features?

    • @MKSmartHouse
      @MKSmartHouse  Před 7 lety +1

      +MCgamingPro Thanks, I like writing my own code, and what do I need more features for, it is a power strip?

    • @mcgamingproyt
      @mcgamingproyt Před 7 lety

      MK-SmartHouse I guess you are right, I have my Sonoffs flashed with it, shouldn't cause any problems

    • @thesimbon
      @thesimbon Před 7 lety

      I also have a couple or sonoff POW that can also be used in a power strip, it is not a bad function to be able to turn off some appliances if the overall house consumption is too high

  • @yogeshwaranoo7
    @yogeshwaranoo7 Před 6 lety

    Can you please explain the code.. i understand all except the usage of serial.write function

  • @madhukeshnp
    @madhukeshnp Před 6 lety

    hello ! is it possible to add a physical button as well to turn on and off the relay ?

  • @armycook2368
    @armycook2368 Před 6 lety

    Can you perform this without soldering the jumpers?

  • @giorgiopaternoster7833

    Hallo dear friend, thanks a lot for video. Is it possible, with this firmware, to have a data log of temps and humidity values recorded in past times? I mean, I go to sleep, and when I open App in the morning, I can view all temp/hum data recorded during last night every setted up period, for example every 30 minutes. Thanks a lot for answer.

  • @THELEGEND-gt4wo
    @THELEGEND-gt4wo Před 7 lety +2

    Will your firmware work with a regular sonoff with just one output?

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

      Is anyone up for the challenge to do a sonoff basic? I couldn't figure it out. Connecting to basic is even easier than dual (no need to solder, just press the button), but I think the code to turn on the relay will be different. Matt could you please help us? A short video to describe the firmware would probably get a lot of views and should be quick to set up. Thanks!

    • @jeronimuspompeus624
      @jeronimuspompeus624 Před 6 lety

      Indeed, could you clarify is we can use the same software? I want to use sonoff basic for everything and it would be nice to do it by your videos. If I need to use like tasmota I'll have to find out where your tutorials come in and where I need others...

  • @ronaldshepard4625
    @ronaldshepard4625 Před 7 lety

    Will this do Particle PHOTON Wi-Fi Kit with Comprehensive Development Tools and Free Cloud Access?

  • @dominikfurrer
    @dominikfurrer Před 6 lety

    is it possilble to flash a sonoff T1 exatly the same like in this Tutorial?

  • @kurnpoyser7045
    @kurnpoyser7045 Před 5 lety

    Have you tried using the SONOFF RF bridge in Openhab?

  • @tuchitocaldera
    @tuchitocaldera Před 6 lety

    Hello, thanks for the video. When I flashing Sonoff Dual I got an error:
    MK-SonoffPowerStrip.ino:20:24: fatal error:
    "MK-SonoffPowerStrip.ino:20:24: fatal error: MQTTClient.h: No such file or directory
    #include "
    Do you know what it is?, can you help me to solve the problem?. Thanks in advanced.

  • @itech618
    @itech618 Před 7 lety

    Aren't 2.5 and 5G on separate networks?

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

    can you tell me how to use sonoff basic single

    • @ThinkersLounge
      @ThinkersLounge Před 6 lety

      Matt, could you please help us with sonoff basic? In many cases dual is an overkill. Thanks!

  • @daveleebond
    @daveleebond Před 7 lety

    is the 'flash wire' only pertinent to that model of Sonoff? Never seen it used on the POW or single channel version.

    • @youtubak777
      @youtubak777 Před 6 lety

      Yes, it is. The button on dual is not connected to GPIO0...

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

    Shouldn't the connection be TX to RX and RX to TX?

    • @MKSmartHouse
      @MKSmartHouse  Před 6 lety

      +Naguib Habashy No because you are using the arduino as a usb to serial adapter

    • @habashynn
      @habashynn Před 6 lety

      Got it! Thanks Matt! i just learned something new :)

  • @manningcustom
    @manningcustom Před 6 lety

    can I send you my sonoff switches and have you modify the firmware? I would love to use them with my other devices that use smart life.

  • @emrepolat3778
    @emrepolat3778 Před 6 lety

    I think I did the same things with you expect I used esp01 module insted of sonoff and connected a relay to it. I can control it from mqtt.fx but I can not control it from apple homekit. I added the switchable item type. I can see the item in apple homekit and the status changes in basic ui when I change it from apple homekit but the relay doesn't react when using basic ui or apple homekit. Relay only react to mqtt.fx. What should I do? Thanks in advance.

    • @randyman15951
      @randyman15951 Před 5 lety +1

      I seem to be having the same issue with a very similar setup. I have yet to figure out the fix... please let me know if you find a fix.

  • @reinhardt1016
    @reinhardt1016 Před 6 lety

    Is it possible to change the state of the relay/switch with the button on the sonoff ?

  • @islukeok
    @islukeok Před 5 lety

    Hi i got an error in arduino.
    warning: espcomm_sync failed
    error: espcomm_open failed
    error: espcomm_upload_mem failed
    error: espcomm_upload_mem failed

  • @hussienalhek370
    @hussienalhek370 Před 6 lety

    hi , thanks for your great videos.
    please i need to check what actually i understand , we need a server whick is a raspberry pi or mac pc in order to install the openhab for mqtt communication and make a web page for interface .
    is it works over wifi and what it needs ?
    can i use the openhab server(online website) rather than install it in a computer?
    what is the advantage of openhab comparring with other mqtt clients?
    any help please iam new in this domain and iam looking for the best way to my starting.
    thanks for interest.

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

    Is it possible to restore EWeLink firmware to Sonoff after flashing tasmota ?

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

      Only if you made a backup of the original firmware before flashing. Sonoff (Itead) fingerprints (MAC/serial) the firmware to the individual devices.

  • @adtwomey
    @adtwomey Před 7 lety

    Nice what's your next project going to be...

  • @mlarreategui
    @mlarreategui Před 5 lety

    Hi, How can I connect Sonoff to scadabr.com.br?

  • @samiraa78
    @samiraa78 Před 6 lety

    Arduino: 1.8.5 (Windows 7), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DOUT, 115200, 1M (64K SPIFFS), ck, Disabled, None"
    C:\Users\samir\Downloads\arduino-1.8.5-windows\arduino-1.8.5\MK-SonoffPowerStrip\MK-SonoffPowerStrip.ino:20:24: fatal error: MQTTClient.h: No such file or directory
    #include
    ^
    compilation terminated.
    exit status 1
    Error compiling for board Generic ESP8266 Module.
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    Getting the following error messaged