This is SO Much Better! Getting Started with ESPHome 2021
Check out PCBWay: www.pcbway.com/
ESPHome just got a major update that makes it even easier than before for anyone to get started with ESPHome and Home Assistant in a matter of minutes, in this beginners guide to getting started with ESPHome and Home Assistant, I will show you how easy it is to build your own custom DIY Smart Home projects by installing ESPHome onto your esp8266 or esp32 based devices, we cover how to install esphome, how to install esphome to your esp based devices, how to create a basic config and how to create a simple LED and WiFi temperature sensor using the Dallas temperature sensor.
If you'd like to support me and future projects:
Patreon:
/ everythingsmarthome
Parts Used:
ESP8266: amzn.to/2SgKFQK
Alternative: amzn.to/3vPLJZH
Temperature sensor: amzn.to/3gTgMym
Buy Me a Coffee:
www.buymeacoffee.com/EverySma...
Written Article:
everythingsmarthome.co.uk
EVERYWHERE YOU CAN FIND ME:
Everything Smart Home Community Discord:
discord.everythingsmarthome.c...
Twitter: / everysmarthome (@EverySmartHome)
Instagram: / everythingsmarthome
Facebook: / everythingsmarthomeoff...
#homeassistant #smarthome
________________________
Some of the links above are affiliate links, where I earn a small commission if you click on the link and purchase an item. You are not obligated to do so, but it does help fund these videos in hopes of bringing value to you!
0:00 - Intro
1:41 - What is ESPHome?
2:30 - PCBWay.
3:15 - Parts you will need
4:05 - Check compatible sensors
4:20 - Installing the ESPHome Add-on
4:56 - ESPHome basic config
6:44 - Installing your first ESPHome Node
8:07 - ESPHome UI and Basic Config explained
13:14 - Using ESPHome Secrets
15:15 - Check ESPHome Logs
16:06 - Adding a light component to ESPHome
22:26 - Adding ESPHome to Home Assistant
23:27 - Adding a Dallas Temperature Sensor
How cool is the new ESPHome update?
Game changing.
Agree!
Except if your devices are stuck in a lower version it cant find them anymore in the addon. They are fine in the integrations and node red but esp home cant find them anymore.... they show up as ofline and i have to rip them out to update them...
hi there, I have just sent you a business email and looking forward to your reply. Thank you so much
@@nikkizhao8746 Yeah, no "about", "history", "videos" or anything since 2019 - must be big shady business 😂😂
I know this is 2yrs old, but I just jumped down this rabbit hole of home assistant. Your examples were simple enough to understand but powerful enough to implement straight away! Thank you kind sir. Video was just the right length and speed to follow along with. Subbed/liked. Will be checking out the rest of your videos!
I just needed some entry level basics on ESPhome, and you flawlessly delivered. 👍😊
Fantastic video! So proud of myself, I have just added a buzzer via ESPHome to Home Assistant, so that if the water leak sensor under the sink gets wet it triggers the buzzer. Shouldn't wake the neighbours but should be loud and annoying enough for us to get off the sofa and investigate. I know I wouldn't have attempted this without this video. BTW, although the HA documentation says use Edge/Chrome, Safari allowed a cut-down version to be created and the rest of the installation completed by installing OTA/plugging the USB and installing into the HA hardware. Whatever I did, it worked! Absolutely delighted! Share my pride!
This is absolutely the best overview of ESPHome I've watched. Kudos! Thanks very much for this!
Thanks for doing this video. You go at a perfect pace to follow along. You've convinced me to start tinkering with ESPHome myself. With all your guidance on this and with your other Home Assistant videos I am sure it will be easy as pie.
Thanks Ian! Appreciate the kind words
+1 for sure. I have just started with Home Assistant less than a week ago, began with Google home about a month ago so I'm pretty new to this😀. I have an engineering background (57 yo now, doing other stuff) designing some electronics and have done programming from ASM to C++ years ago so I feel young again with this home automation stuff! Good Luck Ian! Our homes will be awesome!
Great video! Great timing because I'm planning to build my first ESP project (a car sensor for the garage) this weekend. Thanks for reading my mind!
Nice, have fun!!
Thank you for your effort to go through it all. Excellent job! Cheers
No, not too long at all! I've watched it three times already. Great job, thanks!
I'm checking and then ticking the options! Thanks for the video - very helpful.
THANK YOU SO MUCH!!!! Im a noobie in this field, but I really like to make this type of projects and your vids help me a lot
Great video, I'm not that used to Home Assistant yet (referring to the nomenclature knowledge you spoke about😀), started using it 5 days ago, but you explained this very well so I could easily follow you all the way through. I will use this to build some units for checking doors at the chicken coop, rabbit cages, horse gates, dog kennel, etc. I also just build a new hen house so I'll put in a humidity and temperature sensor there as well. I've been a tech geek all my life and now I can, at last, get my smart house going for real. Decades ago I was thinking of designing my own proprietary system, but this together with Home Assistant is a breeze in comparison!
Thanks, glad it was useful!
I am preparing to install Home Assistant at my home in the coming weeks, and I've been watchig a lot of your videos, which are very helpful to me. I am planning on having most of my hardware connected through Zigbee, ESPHome, some through other integrations, remote Wake On Lan for my servers, and a nice Minimalist UI dashboard. All of this will probably be running on my RPi4, but might switch to another host down the line when I will implement local voice assistant. PS : nice to see another Mighty Car Mods fan, wearing one of their hoodies as I am typing this 😉
I built my first ESPHome project yesterday. This stuff is truly amazing! I've ordered 5 more already.
That's awesome! What did you make?!
Just a 1 m set of addressable LEDs but it was the principle that counted. It involved a whole stack of things coming together and it just worked - even the soldering!
Of course, got to start with some realistic and achievable, that's excellent well done!
Nice video, and explanation. I would just say that despite programming is reduced, it might still be difficult for some people to familiarize with these boards, technical terms, even soldering or breadboards use is still required. A good topic might be as well to make a woking, aesthetic device: I have not seen too much videos of someone building something aesthetic that does not look just like a messy cabling.
Clear, understandable. Thanks a lot. Now I have my Smart Electric Plugs, Photo Voltaic and a couple of ESP 8266 and ESP32 in one place...
As always, absolutely excellent! I love seeing that I'm not the only who gets tongue-tied now and then when I record.
Haha yeah happens to us all, especially me!! 😂 I'm not a great speaker at all
@@EverythingSmartHome Sir, you are a great presenter. I always look forward to your videos. Keep up the excellent work! Maybe we can do a collaboration sometime.
Thanks my friend, very much appreciate it! Of course!
Many thanks, very clear explanation of esphome, and nice mighty car mod T-shirt!
Thanks, great and thorough explanation, nice starting point!
Just throwing it out there. Currently, I'm using ESPhome and have installed motion sensors in various locations within my home, backyard, and garage. I have three ESP8266s running smoothly under HA/ESPhome, which effectively report back whenever motion is detected. My objective is to create a central ESP8266, to which all the motion sensors can communicate. I plan to attach a circuit board with LEDs to this central ESP8266, allowing the LEDs to illuminate based on the specific location where motion was detected around the home. Possible? Don't want to use Arduino solutions as I am only running Home Assistant and ESPhome.
Wish I had found this earlier, great job breaking things down as usual. Any chance you can make a video explaining a bit about use of templates and lambda?
Interesting.... I have one of those Ikea "Death Star" lamp shades and I've been thinking about using a stepper motor and threaded rod to automate the opening and closing when the light turns on/off. This is the first thing I've seen to give me home that it might be possible.... I'm new to all this
Thank Lewis, this was a useful video to get started with these small boards
Thanks for making this. It made ESPHome FAR less scary to me than it seemed.
Thank you! Your video (the first I've ever seen from you channel), helped me a lot.
Thanks my friend!
Thank you for your video! Loved it and used it to get started for a BLE Gateway for my Mi Flora Sensors
Excellent!
Thank you so much, this tutorial is GOLD!
Nice, realy useful for me, I'm doing first steps on esphome, and home assistant too. Thanks
Thanks for the video. I prefer to write the C++ myself and configure things manually (I'm a programmer) but I did find this video useful to show me what I might be missing and if there is a simple project I might consider this.
That's great, glad it was useful!
I'm a programmer too but I really like these systems that abstract all the code as way provided it has some way to write a plugin or something to add your own code
Great video!!! Finally I understant much better how to use ESPHome and install components for that...
Amazing! 🙏
This was SO HELPFUL, thank you!
Glad to hear it!
Great video as usual. Just one question that I couldn't figure out by myself. How can I send data (such as temperature) to another web server every period of time? I would like to integrate it into a previous project of logging the data (w/o using the HA) when I have another esp acting as a web server and storing the data. Thanks.
thank you. The content of your videos is super educational
Thanks my friend!
This is so very useful, thanks!
this is everything i ever hoped for
Great video - I am trying to use a NodeMcu to serve as a hub for detecting a doorbell signal from 2 seperate intercoms (each one has 2 cables that have 3v pullup when bell is rung), and then also having 2 switches (dry contacts that will trigger gate to open). I think this should be possible? Any ideas on how to wire & configure? Thanks again
This is great, think I'll build my home assistant server very soon now.. thanks, subbed!!!
Thanks! Good luck!
New to Home Assistant, enjoy all your videos they have helped me a lot. Is there a way to calibrate the temperature sensor? I have one thats off by 10 degrees I think it's seeing the temperature emanating from the esp32 .
Awesome video bro. Hats off to you my friend.
Thanks buddy!
Great video. I have just set up 14 temperature sensors around the house externally and in each room using Tasmota. hardware is D1-minis, dht11s with extended cables, USB plugs, is ESPHOME a better solution or simply an alternative approach. I was looking at ESP-NOW because the WIFI is losing connection with the outside units, that have arials (that don't seem to work very well) - but before I could try that out I saw your video. I don't really understand what the advantage of ESPHOME is vis Tasmota. Also would ESP-NOW work better as it doesn't use the WIFI and router - if so how would I pull the 14 different temperature sensors into Home Assistant. Love the videos you do thanks very much for doing them.
thanks. followed your instructions and it works :-)
Excellent!
Very very cool video , thanks a lot appreciate your efforts and ESPHome & HA guys
Thanks my friend!
This is absolutly astonishing. thks
Thanks my friend!
A good video well explained, have you any proposal how to switch a 3 phase 220VAC power source using 3 independent Relays, ESP and controlled by Home Assistant. Thanks
Great guide (as always) - a tip for others... I have just wasted three hours trying to get my chip to show in ESP Home, so I could flash it - it just wouldn't show up (on my PC, my Mac and on my Pi where HA is installed). Turns out the USB cable I was using only had the power pins connected :(
Nice explanation !👍
Professionally presented channel packed with good content , even the old video was great. Did you hit the gym in lockdown? , well done!
Thanks appreciate it! Haha no I've been very hard into the gym for a little over 5 years now
Cheers and thank you for the update, once again your presentations are awesome. I am wondering, what is the smallest PCB-sized esp8266 or esp32 that you have found that can work with ESPHome.
Thanks Andrew! The wemos D1 mini is pretty small, but I guess technically a bare esp01 board would be the smallest!
Well done on an excellent video. Cheers!!!
Thanks!
Really good and easy to understand tutorial! This video convinced me subscribe to your channel. I have a question: i want to use a couple of ESP32-CAM (the ones with integrated video camera on them) and they don't have a USB to FTDI converter on their PCB. I have managed to install a webserver and i was able to stream video on my browser using Arduino IDE and an Arduino Mega as the programmer, but in this case ESPHome can't connect to my ESP32 board and flash the firmware on it. What would be your advice in this case? Is there a way to flash the firmware with the use of another Arduino or should i get a USB to FTDI converter? (I have already searched the internet on how to flash ESPHome to ESP32-CAM with another Arduino, but i couldn't fine anything useful.) Cheers!
You have definitely improved since the previous video but not as cringe as you think! Great update video, thanks for this!
Haha thanks buddy!
Very nice. But don't you need some kind of board to place all components on? I see you use some kind of IoT testing kit, but in production, something else should be used?
Thanks! This was super helpful
Cheers Axel!
My experience is I need to TRY to connect to my ESP devices at first over and over until it finally does install... I've tried at my host and local web... Some just work at first attempt, others.... Also, some of my 47 ESPHome devices just decide to become "Unavailable" inn HA, but logs via Wifi show them working fine and reporting sensor info.... I usually just Restart CORE or entire thing over and over and eventually they start talking to each other... Sometimes 15-20 restarts.... So, still bugs. But also still the most amazing stuff.......... Great channel here!!
Thank you so much great video.
Thx for the video! great stuff
Thanks for watching!
Thanks for the great video! What esp32 card do you suggest to buy?
I know this is old, but still great content as always. Can you recommend a UK retailer of ESPHOME devices? I'm struggling to find a straight forward way to get started with hardware. I'd prefer to use a smaller retailer rather than Amazon if possible.
Cant wait to start dabbling in esphome. Time to make some moisture sensors for my garden.
That sounds like fun! Let me know how it goes!
Which components will you be using? I'd like to make a few of these myself.
@@jaap7374 I am not sure. I watched a video from the bearded tinkerer and he has done it before.
Great Vid. Well Done.!!
Thanks Gary!
Today I learned something that might be more valuable than anything else I've ever learned. Thanks for starting me on this journey. Hope my Patreon contribution helps make more video's like this.
That's awesome, glad you found it useful! Thank you so much, really appreciate it 🙏
Great stuff. Thanks!
yo thanks bud for the video extremely entertaining but would you like to make a video from the start on how to use home assistance and esphome to preheat the 3d printer because i saw that ur background has a full scale 3d printer it would be great as i am new to smart home coding
is there a link that i can see the schematic of how you made the breadboard with the ESP and LED light?
Good on you for keeping current with the updates. I love the miniature size and costs of these components, but how do we turn them into a practical stand-alone unit, with battery and case? Or this something for hobbyists to build more complex boards with various components?
Thanks Matt! I suppose that's the good and also bad thing about it, you can take it as far as you want to, for some projects I just leave them as bare as possible because they are hidden away (for example under a bed) and will literally never be visible, and some I design and 3D print enclosures for. But remember that ESPHome can work on products such as Shelly or Sonoff - I think that is a really nice middle ground for a "production ready" item.
ESPHome is _a_ firmware for ESP8266 and ESP32 (produced by Espressif), what you do with the devices is onto you and is not related to ESPHome. The boards are tiny and it's fairly easy to attach a powerbank or some batteries to them.
Here's a suggestion: Learn to make a case. Either CAD and 3D printing or literally a cardboard box you cut up or old tupperware Get an 18650 battery. Those are easily available since they are useful for a lot of applications including vaping so you can probably just go into any vape shop and pick them up. Chargers are also cheap. Get a battery holder for that. They're cheap and available in like 10 packs. Sometimes with cables. There are also charging circuits for this on amazon. You need that. DO NOT DISCHARGE THOSE BATTERIES WITHOUT SUCH A CIRCUIT. If you run them too dry they can be damaged and that always means a fire hazard with LiPo batteries. There are also buck converters that can put that voltage from the charger to 5V if you need that (ESP board run on 3.3V but some sensors might not). Wire it all together. Maybe get a soldering iron. I have one so I don't pay attention to that. Some components probably need to be soldered. Flash Done.
@@robinkuster1127 I think I could do that. I decontructed a zigbee door sensor and played around with extending the reed switch. But know nothing about flashing hardware with new firmware.
Great video Bro.
Thanks Glenn!
Very nice video, TNX.
Great video, thanks - I'll definitely try that out. How is the power consumption when I create a sensor with this? I'm thinking of a battery-powered ESP8266 door sensor, which would mean a good bit of programming effort for manually writing the mqtt code, but I could also include deep sleep/timer/interrupt wakeup for period alive messages and send on event. Sounds like ESPHome would do away with most of the messaging bit, but I don't want to change batteries every 3 days, so deep sleep is kind of necessary.
Thanks! Esp8266 devices arent suitable for battery devices unfortunately since they are WiFi, which is a very power hungry protocol
Yesssss thank you!
Thanks for watching Joseph!
How are you able to use the serial over your web browser without accessing your HA via HTTPS? That was the first problem I ran into while trying to do this.
I'm facing difficulties in connecting esp32 to esphome.. Its not connecting via computer. It's telling dashboard needs to open via https... What to do?
Amazing thank you!!!
Thanks!
Stupid question, Do ESPhome require some kind of gateway like Zigbee or is a HA server all that's needed?
Thank u very much sir💖
This was really good and helpful. Have you tried using a rotary encoder with esphome ? I was trying to use it like to rotate to change what other Device in hassio is selected and the encoder has a click button so to toggle it. I was able to use the rotary but not the toggle
Thanks! I have not tried to use one I'm afraid!
The Wemos D1 need to be in the same network? There’s a way to connect, for example in another house?
Can you change the default colours for the log file in ESPHome? 'cos those ones are mingin! 😆
What if I want to use my own custom code for projects? How would you integrate that? Can you use C++?
So I’ve got a question for you that seems to be something that many folks who make these videos don’t seem to touch on and it would be awesome if you could either do a follow up video possibly to address it. If we wanted to take this “Dallas” temperature readout and use a range (between 20-30 degrees) to trigger a second ESP wirelessly with relays attached to turn on a fan, how would we go about doing that? Your help would be much appreciated as I have a number of scenarios that I would like to use a similar setup for! Thank you so much!
if you have home assistant, you could just make an automation
Quick question: how does the esp module running esphome send sensor values to homeassistant, using the api, mqtt, both or something else? Thanks
Thanks for your video. If i wanna flash my own .bin on esp32 device, the "Compile" button is missing in this ESPHome version. What can i find it?
Thinking about making the switch from Hubitat to Home Assistant. What is keeping me from doing so is that I have some custom made stuff using ST_Anything. I have many servo driven blinds running on Hubitat. Could I use ESP Home to run these servo driven blinds?
A bit late for the party I know but great video. All went well and it prepared the code but when I pressed install it returned the error: "Failed to initialize. Try resetting your device or holding the BOOT button while selecting your serial port until it starts preparing the installation" I pressed the reset button on the D1 mini and have searched everywhere but cannot find an answer. I am connecting with HTTPS using the Cloudflare tunnel system from your other great video but am now stuck. If you monitor your old videos hopefully you will be able to point me in the right direction. Thanks
Thank you for this video! It was really helpful. Could you tell me what the integration for VS code is called in your HA panel?!
can be found in the add on store - VS code server. if you havent got it already
why you could omit the pull up resistor between data and vcc? IS it mentioned in esphome this is not needed anymore or is automatically using intern pull up on data pin?
I did see your first version of this vid. Quite a cool update on that in this video. Going to test this up later. I got a question: I want to use deep sleep in my project, because I'm using batteries. Is deep sleep still not templatable? I mean I want to have a little helper in Home Assistant via e.g. input_number to set a timelimit for the deep sleep. I managed to get a sort of prevent deep_sleep_button as little helper (via input_boolean). So everytime my ESP is adressable it checks if the button is up and through a scrip it does this every 20 secs, until the button is off. Btw: Don't want to use mqtt for that. I like the ota update function as it is in espHome.
Thanks! I'm not actually sure on the deep sleep one, not actually something I've tested or played with, I do feel like there would be another way to do it though hmm
Thanks alot for that great tutorial. But which bulb do you wanna switch with only that D1 Mini? Only 5V or even 3.3V are useable...
It was just an example 😅
@@EverythingSmartHome 🤭 OK thanks for clarification
Thanx bro!!!
sorry if this is a dumb question but is there a way to change the temperature measurement from Celsius to Fahrenheit ?
hi, can i add wireless switches and other wireless devices?
What I’m taking from this is.. don’t skip arm day.
😂
Dude is mad diesel.
Lol
Hi, thanks for all of your great videos. Thanks to You I managed to switch from Domoticz to Home Assistant. There is a question however... How do you manage to flash your 8266 with ESPHome being logged via http and not https like ESPHome is requesting?
That's great and thanks! You need to use HTTPs in some way, no way around that. But it's a great idea to have HTTPS enabled anyways!
@@EverythingSmartHome Thank you for answering so quickly. Maybe this might be a subject for another video on how to use https on your local lan. I have trouble to find a solution/short tutorial. BTW: I flashed my esp32 using ESPHome-Flasher and than it showed in ESPHome Integration. Thanks again :)
May be it's the strength of the 'algorithm'; I'm watching this while wearing the same MCM t-shirt. Pure coincidence? Btw, I've combined my love of cars and the usefulness of esphome to control relays to manage ignition power for an Openauto Pro install. It's also great for presence detection.
Thanks for helping with the algorithm!! Haha can't beat MCM! That sounds awesome, good job!!
Hi, could you tell me how to make ESPHome send three numbers (channels) to the TV, please? I've been looking for days on this and haven't found anything. Thanks.
Perfect! Thanks for an amazing step-by-step walkthrough, nicely done. One suggestion, can you zoom in on your code so we can see it better? I could not see what the symbol was around 14:08 where you added wifi: password: secret wifi_password. Was it ! symbol? (before the s in secret) Also, can I add other code to add an lcd display to it?
yes it was ! in the updated version it adds all that on its own when you set up the wifi in the first place
I have logic project written in arduino ide . Can use esphome with it?
Thanks!!
If I want to program my esp32 what should i do to be able to talk with home assistant and send information and receive commands?
can you make an update on latest home asistant?
Great video thanks
Thank you sir!