MENU

Fun & Interesting

ESP32 and Home Assistant MQTT Setup in 10 Minutes! [Lesson #3]

DIY-Sensors 1,395 1 month ago
Video Not Working? Fix It Now

Want to build a real smart home system using your ESP32? In this tutorial, you’ll learn how to connect your ESP32 to Home Assistant and send real-time sensor data using MQTT. This is an essential step in making your ESP32 interact with your smart home automations! By the end of this video, your ESP32 will be publishing temperature, humidity, or light sensor data wirelessly to Home Assistant, opening up endless automation possibilities! 🌍✨ 📌 What You’ll Learn in This Video: ✅ What is MQTT and how does it work? ✅ How to set up an MQTT broker in Home Assistant ✅ How to send sensor data from ESP32 to MQTT ✅ How to view live sensor updates in Home Assistant ________________________________________ 📌 🔗 Used in this video: 🔗 ESP32 Board https://www.amazon.com/ESP-WROOM-32-Development-Microcontroller-Integrated-Compatible/dp/B08D5ZD528/ref=nosim?tag=diysensors-20 🔗 Breadboard starter kit https://www.amazon.com/Breadboard-Jumper-Solderless-Breadboards-Tweezer/dp/B0BNH7LYH3/ or 🔗 Breadboard https://www.amazon.com/Breadboards-Solderless-Breadboard-Distribution-Connecting/dp/B07DL13RZH/ref=nosim?tag=diysensors-20 and 🔗 Dupont wires https://www.amazon.com/EDGELEC-Breadboard-Optional-Assorted-Multicolored/dp/B07GD2BWPY/ref=nosim?tag=diysensors-20 🔗 Full Code Used in This Video https://github.com/DIY-Sensors/ESP32-for-Smart-Homes--The-Ultimate-Beginner-s-Guide/tree/main/Arduino-Code ✍️Code added to the configuration.yaml file: mqtt: !include mqtt.yaml ✍️Code added to the mqtt.yaml file: - sensor: - name: MQTT Demo unique_id: "mqtt_demo" state_topic: "Office/Sensor/Demo" 💡 What’s Next? Watch These! ▶️ ESP32 + I2C 🤔→ [Coming soon] ▶️ ESP32 with multiple sensors ▶️ ESP32 Battery Power + Deep Sleep Mode – Long-lasting IoT projects! → [[Coming soon] 🙌 Support the Channel & Stay Updated! 👍 Like this video? Smash the like button & subscribe for more ESP32 tutorials! 🔔 Turn on notifications so you don’t miss future projects! 💬 Leave a comment below: What’s the first project you want to build with your ESP32? 🪙 Support me for more videos https://buymeacoffee.com/DIYSensors https://www.patreon.com/c/DIYSensors 🕘 Chapters: 00:00 - Intro: What You'll Learn in This Video 02:57 – Step by step, How to install MQTT to Home Assistant 04:57 – Starting MQTT in Home Assistant 05:39 – Adding WiFi to the ESP32 07:47 – Adding WiFi and MQTT to the ESP32 10:13 – Demonstration of MQTT, ESP32 sending MQTT and Home Assistant receiving MQTT 12:10 – Improve your Arduino dode for WiFi and MQTT 16:27 – Remove you credentials from your Arduino code 18:40 - End 🎵 Music used: Music track: Rainy Day by Avanti Music track: Once Again by Moavii Music track: Summer Bliss by Ocean Bloom Music track: Atmospheric Guitar by Pufino Music track: Zero by Sunova Music track: Dream Potion by tubebackr Music track: Start by Damtaro All tracks are from: Source: https://freetouse.com/music Royalty Free Music for Video (Safe) #ESP32 #MQTT #Arduino #Microcontrollers #ESP32Projects #IoT #SmartHome #DIYElectronics

Comment