Sonoff Complete Guide : Custom Firmware/Software OpenHAB MQTT (Using WINDOWS)
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
There are two releases of the Sonoff Dual - this video applies to the older release. The Dual R2 has a header for GPIO0
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.
Hi this is a great video. How would i setup a Sonoff/Tasmota RF Bridge with one Door sensor to openHab in Windows 10?
Keep going with your video`s I liked them a lot!
+pepijngamennl thanks
Great job! I like your video. 👍
MK-SonoffPowerStrip\MK-SonoffPowerStrip.ino:20:24: fatal error: MQTTClient.h: No such file or directory
Any ideas on what i'm missing?
Hi, had the same issue. look for the library MQTT, by Joel Gaehwiler
Great video as always!
Question: Why not use the popular Sonoff Tasmota software which has a lot more features?
+MCgamingPro Thanks, I like writing my own code, and what do I need more features for, it is a power strip?
MK-SmartHouse I guess you are right, I have my Sonoffs flashed with it, shouldn't cause any problems
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
Can you please explain the code.. i understand all except the usage of serial.write function
hello ! is it possible to add a physical button as well to turn on and off the relay ?
Can you perform this without soldering the jumpers?
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.
Will your firmware work with a regular sonoff with just one output?
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!
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...
Will this do Particle PHOTON Wi-Fi Kit with Comprehensive Development Tools and Free Cloud Access?
is it possilble to flash a sonoff T1 exatly the same like in this Tutorial?
Have you tried using the SONOFF RF bridge in Openhab?
Unfortunately I have not
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.
Aren't 2.5 and 5G on separate networks?
can you tell me how to use sonoff basic single
Matt, could you please help us with sonoff basic? In many cases dual is an overkill. Thanks!
is the 'flash wire' only pertinent to that model of Sonoff? Never seen it used on the POW or single channel version.
Yes, it is. The button on dual is not connected to GPIO0...
Shouldn't the connection be TX to RX and RX to TX?
+Naguib Habashy No because you are using the arduino as a usb to serial adapter
Got it! Thanks Matt! i just learned something new :)
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.
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.
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.
Is it possible to change the state of the relay/switch with the button on the sonoff ?
Not with my code because it is inside a box
Thanks
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
Check your connections
MK-SmartHouse I did. Like 15 times
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.
Is it possible to restore EWeLink firmware to Sonoff after flashing tasmota ?
Only if you made a backup of the original firmware before flashing. Sonoff (Itead) fingerprints (MAC/serial) the firmware to the individual devices.
Nice what's your next project going to be...
+Aaron Twomey wifi blinds
MK-SmartHouse that's right like your room
yes
MK-SmartHouse keep up the good work.
Hi, How can I connect Sonoff to scadabr.com.br?
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