⚠️UPDATE: The written guide was last updated on Dec. 18th, 2019, to reflect some changes in ESPHome. --> juanmtech.com/how-to-get-started-with-esphome-and-sonoff/ Added how to set up: ✅OTA password ✅Safe Mode ✅Captive Portal ✅Fallback Hotspot ✅!secret
Great video Juan! Thanks for the update. I am trying to setup a Sonoff Mini switch to turn on my outside entry lights. I have it working and it turns on and off. I would like to add a lights entity to show my outside light status when I manually turn the switch.
Juan, I love watching your videos because you speak so well and have such a clear and concise way of describing everything. You've covered some great topics over the past few months. Keep up the good work and I look forward to watching more of your videos :-)
As many others have said! Thanks for the great video. Clear and easy to follow and understand... especially with the link to your page! Greatly appreciated.
REMINDER: Check out the written guide on my website for any changes to the configuration. --> www.juanmtech.com/how-to-get-started-with-esphome-and-sonoff
I was stuck with my Raspberry Pi 3B+ running Hassio not detecting the esp8266 when connected via USB. I am very new to this. Through your video i found about ESP flasher and its availability on Mac so i can flash it directly from my mac and not use ESPHOME to flash. That solved my problem. Thanks a ton. Keep up the great work.
Juan I really enjoy watching your tutorials they are clear and to the point. I have also seen you edit using Visual Studio Code. I have VSC running on my Window computer and not the Raspberry Pi integration that can be installed in HASSIO . However, whenever I try to flash ESPHome using VSC on my PC it is always missing some component and I spend a lot of time trouble shooting. I would really like to see a video on how you use VBS with Home Assistant and ESP Home. Great job on your tutorials!
Dude your videos are simply awesome.. So informative, and so easy to follow. This ESP home demonstration seems 1000 times easier than doing the setup via the Arduino dashboard. Thank you edit: just cleaned up the text, I dictated with Siri the first time and that didn't go so well. :)
Thank you, Sir. I have been playing with ESPHome recently and really like it. Didn't know I could add it as a panel in HA. Loving that! Thanks for the info!
Nice video i almost never comment but i love how you uploaded this the day i was looking into ESPHome. in about 5min i have a LED strip working, i used to use McLighting but there updates have been really slow and its getting more and more complicated for the same use. But what i light so far about ESPHome is the HUGE about of customization its just INSANE thanks for the vid. P.S. your video keeps glitching a bit, might have both video clips overlapped
Glad to help. That's weird. Didn't see any glitching when I reviewed it after I rendered it. Will double check. Wonder if anyone else is seeing the same. Thanks for letting me know. UPDATE: So, I double checked the video uploaded and it seems that it was an issue on RUclips side. It no longer has that issue. Thanks for letting me know.
Thank you .. this was very informative. love your videos bro, keep them coming.. I have ESPhome running for a while, but I learned something today... I can control both the LED and the relay together, I don't need an automation to turn the LED when the switch goes on.
Many thanks for the great video! With your explanation it`s really easy to get an ESP sensor running. However, I would like to process the incoming data in Home Assistant with Node Red. I used an API node but I can’t see any debug messages. May be using an API node is not the right way, or I used a wrong configuration for the node. Info: My Raspberry is connected via WiFi to my PC.
Another great video. Just one minor issue, there's a rather annoying black frame flicker every 5 seconds or so in the video. Happens at all the resolutions I tested and for Firefox and Chrome. I did check another video to make sure it wasn't my PC - it wasn't.
Hmm. I'll double the copy I have on my computer. If I don't have that. Will have to check with RUclips to see why the video has that so they can check. UPDATE: So, I double checked the video uploaded and it seems that it was an issue on RUclips side. It no longer has that issue. Thanks for letting me know.
To be honest, I haven't used Tasmota. Didn't like the idea of using MQTT in the first place. However, for what I researched so far, ESPHome is good in a lot of things but, Tasmota has a few other things that ESPHome doesn't have, yet.
@@JuanMTech Ok. I did change all my sonoffs (and most of other devices) to ESPHome, initially I found it more complicated - in Tasmota you just select the sonoff type and you are all set, in ESPHome you have to manually configure all GPIOs and the logic yourselves. And I was also struggling a bit with WiFi issues. But once I fine-tuned it, it was just a matter of copy&paste and I quite like it. Plus I find it much more flexible - you can add different sensors and do some scripting, in Tasmota you have to do that in Home Assistant. Just wanted to hear what the others have experience with. It might be worth having somewhere a library of configs for different sonoffs, to make it easier to start....
I definitely see your point. I agree on having a library of configs to make it easier for a lot of people. My selling point was that I didn't need MQTT to use it.
@@JuanMTech MQTT makes life way easier, with Tasmota you can even control stuff without the need for anything else. Then again, I don't see your point eliminating MQTT while using a convoluted piece of software like home assistant.
Thanks for the video. I'm also not seeing the benefit of using ESP home. I like the idea of compiling and uploading the firmware via browser. But configuring the sensors and switches and LEDs and buttons is so complicated! On Tasmota its preconfigured and works very well. Its so hard to find out, which port is for what. I think ESPhome should be a lot easier the configure.
You don't. However, if you have remote access set up in HA, when you try to open the ESPHome Dashboard. The URL that would try would be the DuckDNS URL. Now, if you set up to open ESPHome directly in HA using the panel_, then you can set up to open the local IP for that device. This is an update that I'm going to put in the article (link in description) later on.
... tried to run the ESPHome flash tool on my MAC, it tells me I don't have permissions, assuming I can also use espeasy,py tool, that we use to flash sonoff fw to sonoff devices, all it's doing is flashing a bin file?
Mennnn I am new in to smart home stuff and your videos helped me so muchhhh. Thank you 100 times. Is this flashing thing also possible with sonoff Touch switches?
I haven't use Tasmota to be honest. However, for what I researched before using ESPHome, I like it better. There are some things that Tasmota has that ESPHome doesn't have, yet.
@@JuanMTech Thanks Juan for your reply. Your videos are excellent for me, as you make them quite simple to follow. I am in the process of moving from ST to HA(like this week). I plan on replacing some of my switches from z-wave to Kule wifi, and also use some of the Sonoff appliances...I have never quite understood MQTT.
Hi , I have a question. I flashed the esphome and it works perfect. Only i now have a new installation of hassio. Is there a way to reinsert the switch in the dashboard.
Juan, thank you for the videos. I have a question, if i already have a sonoff with tasmota flashed OTA, can i just generate the ESPHome file (complile) and do OTA update or i need to flashed first with ESPHome. thanks
You don’t need to download the binary and upload it with your computer just plug the uart into the pi select it and upload it with esphome :) so much easier
JuanMTech I couldn’t see it in esphome until I stopped my add on “network ups tools” after that i didn’t have to ever disable it ever again for it to show up and “network ups tools” is always running ...If you have anything using your USB try disable it so esphome can detect your uart 1st time. Should be good !
I Would love to use the ESP home method, it seems much simpler. However, as always with my projects I have having issues. The step where you download the binary which is supposed to download the garage.bIn file, is not working. I get an error messatge that states "Failed - No File" and the filename is download.txt which seems odd. I am using Chrome as my browswer which I am assuming works fine? The validate and compile of the garage.yaml file validated and compiled successfully. Any ideas?
Same issue here im in Chrome too, not sure thats the issue though. I got no file found on the .yaml edit too, but located it using Samba share & edited that way. It compiles but It seems like I have a pathing issue of sorts. Im using SSL. Really bugging me any suggestions?
I have one problem with esphome ,whenever my RIP gets booted again due to say power failure ,entities on lovelace ui becomes unaiavlebe even though node is connected to home assistant as can be seen in esphome user interface.What cab be the issue?
@@JuanMTech I have read about solution on this issue it's related with mdns also there is options in esphome option that say status_use_ping. I have done lots of search on this but dint find any reason or solution can you help me in this?
Buenosdias.pregunta de principiante. Si se cae el internet los dispositivos que estan con esphome en home asistant seguirian funcionando por red local?
Go to the Add-on store and click the 3 dots on the top right of the menu bar. (You have probably figured this out already, but nice for people who pass by and can't find it).
⚠️UPDATE: The written guide was last updated on Dec. 18th, 2019, to reflect some changes in ESPHome.
--> juanmtech.com/how-to-get-started-with-esphome-and-sonoff/
Added how to set up:
✅OTA password
✅Safe Mode
✅Captive Portal
✅Fallback Hotspot
✅!secret
Great video Juan! Thanks for the update. I am trying to setup a Sonoff Mini switch to turn on my outside entry lights. I have it working and it turns on and off. I would like to add a lights entity to show my outside light status when I manually turn the switch.
I have my config files on GitHub. Go into Entities > Lights > Office you can find examples there.
github.com/JuanMTech/Home_Assistant_files
Juan, I love watching your videos because you speak so well and have such a clear and concise way of describing everything. You've covered some great topics over the past few months. Keep up the good work and I look forward to watching more of your videos :-)
Always glad to help. Thank you for the kind words.
As many others have said! Thanks for the great video. Clear and easy to follow and understand... especially with the link to your page! Greatly appreciated.
REMINDER: Check out the written guide on my website for any changes to the configuration.
--> www.juanmtech.com/how-to-get-started-with-esphome-and-sonoff
The simplicity you've handled the status LED synching with the relay, embarrassed me a lot after half day of googling and desperation. :) thanks
I was stuck with my Raspberry Pi 3B+ running Hassio not detecting the esp8266 when connected via USB. I am very new to this. Through your video i found about ESP flasher and its availability on Mac so i can flash it directly from my mac and not use ESPHOME to flash. That solved my problem. Thanks a ton. Keep up the great work.
Juan I really enjoy watching your tutorials they are clear and to the point. I have also seen you edit using Visual Studio Code. I have VSC running on my Window computer and not the Raspberry Pi integration that can be installed in HASSIO . However, whenever I try to flash ESPHome using VSC on my PC it is always missing some component and I spend a lot of time trouble shooting. I would really like to see a video on how you use VBS with Home Assistant and ESP Home. Great job on your tutorials!
Dude your videos are simply awesome.. So informative, and so easy to follow. This ESP home demonstration seems 1000 times easier than doing the setup via the Arduino dashboard. Thank you
edit: just cleaned up the text, I dictated with Siri the first time and that didn't go so well. :)
Exactly what I was looking for. A clear and concise explanation. Thanks!
Amazing video Juan. Thanks for the simple process, will be trying this tomorrow for sure 👍
Thank you, Sir. I have been playing with ESPHome recently and really like it. Didn't know I could add it as a panel in HA. Loving that! Thanks for the info!
Nice video i almost never comment but i love how you uploaded this the day i was looking into ESPHome. in about 5min i have a LED strip working, i used to use McLighting but there updates have been really slow and its getting more and more complicated for the same use. But what i light so far about ESPHome is the HUGE about of customization its just INSANE thanks for the vid.
P.S. your video keeps glitching a bit, might have both video clips overlapped
Glad to help. That's weird. Didn't see any glitching when I reviewed it after I rendered it. Will double check. Wonder if anyone else is seeing the same. Thanks for letting me know.
UPDATE: So, I double checked the video uploaded and it seems that it was an issue on RUclips side. It no longer has that issue. Thanks for letting me know.
Thank you for all the effort in doing the educational videos
Glad to help.
Thank you .. this was very informative. love your videos bro, keep them coming.. I have ESPhome running for a while, but I learned something today... I can control both the LED and the relay together, I don't need an automation to turn the LED when the switch goes on.
Very well articulated... loving it!
Glad to help. More videos to come.
Great and clear video. Bravo....Cheers from France
Great video but one suggestion use zoom when you are showing smaller items in the vidoe.
As always. Great vídeo!
Many thanks for the great video! With your explanation it`s really easy to get an ESP sensor running. However, I would like to process the incoming data in Home Assistant with Node Red. I used an API node but I can’t see any debug messages. May be using an API node is not the right way, or I used a wrong configuration for the node. Info: My Raspberry is connected via WiFi to my PC.
Another great video. Just one minor issue, there's a rather annoying black frame flicker every 5 seconds or so in the video. Happens at all the resolutions I tested and for Firefox and Chrome. I did check another video to make sure it wasn't my PC - it wasn't.
Hmm. I'll double the copy I have on my computer. If I don't have that. Will have to check with RUclips to see why the video has that so they can check.
UPDATE: So, I double checked the video uploaded and it seems that it was an issue on RUclips side. It no longer has that issue. Thanks for letting me know.
Great video. How do you compare configuring Sonoffs using ESPHome vs. Tasmota. Which one is easier? Which one do you use and why?
To be honest, I haven't used Tasmota. Didn't like the idea of using MQTT in the first place. However, for what I researched so far, ESPHome is good in a lot of things but, Tasmota has a few other things that ESPHome doesn't have, yet.
@@JuanMTech Ok. I did change all my sonoffs (and most of other devices) to ESPHome, initially I found it more complicated - in Tasmota you just select the sonoff type and you are all set, in ESPHome you have to manually configure all GPIOs and the logic yourselves. And I was also struggling a bit with WiFi issues. But once I fine-tuned it, it was just a matter of copy&paste and I quite like it. Plus I find it much more flexible - you can add different sensors and do some scripting, in Tasmota you have to do that in Home Assistant. Just wanted to hear what the others have experience with. It might be worth having somewhere a library of configs for different sonoffs, to make it easier to start....
I definitely see your point. I agree on having a library of configs to make it easier for a lot of people. My selling point was that I didn't need MQTT to use it.
@@JuanMTech MQTT makes life way easier, with Tasmota you can even control stuff without the need for anything else. Then again, I don't see your point eliminating MQTT while using a convoluted piece of software like home assistant.
@@JuanMTech wait, Esphome doesn't use MQTT? Does it use HTTP? If yes, is it possible to use MQTT instead?
How do I access my router settings? Thanks good video I'm just new to this.
Love this channel.
Thanks for the video.
I'm also not seeing the benefit of using ESP home. I like the idea of compiling and uploading the firmware via browser. But configuring the sensors and switches and LEDs and buttons is so complicated! On Tasmota its preconfigured and works very well. Its so hard to find out, which port is for what.
I think ESPhome should be a lot easier the configure.
Sorry new to espHome any reason why you need to port forward? Trying to limit the numbers of ports open to ha only
You don't. However, if you have remote access set up in HA, when you try to open the ESPHome Dashboard. The URL that would try would be the DuckDNS URL. Now, if you set up to open ESPHome directly in HA using the panel_, then you can set up to open the local IP for that device.
This is an update that I'm going to put in the article (link in description) later on.
Great tutorial, thanks
great video thanks
really interesting, great job
can you show me how to connect Module sim 800L, with D1_mini with home assistant.
... tried to run the ESPHome flash tool on my MAC, it tells me I don't have permissions, assuming I can also use espeasy,py tool, that we use to flash sonoff fw to sonoff devices, all it's doing is flashing a bin file?
Great video. Thank you for this but can you please tell me how I go about installing that ESPHome flasher tool please? Thank you
There is a link for it on the written guide. Once you download it, it doesn't need to be install. Just click on it and it would run.
Great video tutorial! I learned a lot, thanks so much. By the way, how did you make those LABELS in HA? e.g. Bedroom TV, Bedroom AC and Fan, etc.?
I used the markdown card for Lovelace
Mennnn I am new in to smart home stuff and your videos helped me so muchhhh. Thank you 100 times. Is this flashing thing also possible with sonoff Touch switches?
Check on the ESPHome website. I believe it is.
Great tutorial, thanks!
Is it possible to flash the original sonoff firmware and use eWeLink app after ?
Never thought about that. Not sure to be honest. But I'm thinking that most likely not
Great video Juan, thanks. My question is similar to the one below, which language is better, ESPHome or Tasmota???
I haven't use Tasmota to be honest. However, for what I researched before using ESPHome, I like it better. There are some things that Tasmota has that ESPHome doesn't have, yet.
@@JuanMTech Thanks Juan for your reply. Your videos are excellent for me, as you make them quite simple to follow. I am in the process of moving from ST to HA(like this week). I plan on replacing some of my switches from z-wave to Kule wifi, and also use some of the Sonoff appliances...I have never quite understood MQTT.
@@JuanMTech Hello, can you please explain what things tasmota has but not esphome?
Hi ,
I have a question.
I flashed the esphome and it works perfect.
Only i now have a new installation of hassio.
Is there a way to reinsert the switch in the dashboard.
I'm not sure I understand the question.
Can you help me with IFTTT webhooks. I want to set an input_number. Thanks
No link to hardware in description
How can I do if I use HA installed on raspbian without possibility to use addons?
after installing ESPhome I started it, clicked on Open Web UI and got 502: Bad Gateway
Juan, thank you for the videos. I have a question, if i already have a sonoff with tasmota flashed OTA, can i just generate the ESPHome file (complile) and do OTA update or i need to flashed first with ESPHome.
thanks
There is an option available in the ESPHome website to migrate from Tasmota to ESPHome.
@@JuanMTech perfect, i will check. thanks again
failed right out of the gate - I don't have any idea what Home Assistant is.
You don’t need to download the binary and upload it with your computer just plug the uart into the pi select it and upload it with esphome :) so much easier
Thank me later
That's true. But, I believe you still have to restart HA or the add-on so it can see the device connected via USB. Is that correct?
JuanMTech I couldn’t see it in esphome until I stopped my add on “network ups tools” after that i didn’t have to ever disable it ever again for it to show up and “network ups tools” is always running ...If you have anything using your USB try disable it so esphome can detect your uart 1st time. Should be good !
Thanks for sharing. Always welcome to get feedback and support 😁
Is this using the PC as a server
Do you use the API in esphome?
I Would love to use the ESP home method, it seems much simpler. However, as always with my projects I have having issues. The step where you download the binary which is supposed to download the garage.bIn file, is not working. I get an error messatge that states "Failed - No File" and the filename is download.txt which seems odd. I am using Chrome as my browswer which I am assuming works fine? The validate and compile of the garage.yaml file validated and compiled successfully. Any ideas?
Same issue here im in Chrome too, not sure thats the issue though. I got no file found on the .yaml edit too, but located it using Samba share & edited that way. It compiles but It seems like I have a pathing issue of sorts. Im using SSL. Really bugging me any suggestions?
Sometimes its the simple stuff....Quick restart of Hassio & all good :-)
I have one problem with esphome ,whenever my RIP gets booted again due to say power failure ,entities on lovelace ui becomes unaiavlebe even though node is connected to home assistant as can be seen in esphome user interface.What cab be the issue?
That's weird. Never had that issue on my end. I'm not sure what it could be. If you do find the answer, let me know.
@@JuanMTech I have read about solution on this issue it's related with mdns also there is options in esphome option that say status_use_ping. I have done lots of search on this but dint find any reason or solution can you help me in this?
Buenosdias.pregunta de principiante. Si se cae el internet los dispositivos que estan con esphome en home asistant seguirian funcionando por red local?
Yes
@@JuanMTech gracias
What happened to the "add new repository" It is no longer in add-ons where did they move it to?
Go to the Add-on store and click the 3 dots on the top right of the menu bar. (You have probably figured this out already, but nice for people who pass by and can't find it).
@@weirjwerijrweurhuewhr588, Yes, I did, buy thank you for responding. This stuff is changing so fast you hic-up and you are behind. Thanks
Hi, could you please post the code I should use for Sonoff RF ? I tried the same as Sonoff Basic but the remote control didn't work. Thanks.
Where can I get the USB thing and cables
It's in the article. Link in description
bye bye mqtt :)
If only there were English subtitles or Chinese subtitles. Can't understand...