♫musicjinni

Home Automation With NodeMCU, HomeAssistant & MQTT

video thumbnail
Connect all needed electronics to NodeMCU, add life to them with a help of programming, install HomeAssistant on PC and establish communication between NodeMCU and HomeAssistant with a help of MQTT protocol.

❗⚡ Please be careful if working with AC!

📝 Notes:
I was using old version of home assistant here. With new versions, if you have option to use addons create MQTT broker with addons. If you can't use addons (e.g. if you installed home assistant core) install MQTT broker manually on your computer where you installed that home assistant (e.g. check out mosquitto broker).a
Check out my new Home Assistant setup video: https://youtu.be/Opa7oJEJEX0

⌚️ Timestamps:
00:00 - Introduction
01:20 - Components
02:26 - Connecting PART 1 - Blue LED
03:10 - Atom and PlatformIO
03:40 - C++ code
03:52 - Testing PART 1 - Blue LED
04:19 - Connecting PART 2 - Temperature sensor
04:39 - Connecting PART 3 - Motion (PIR) sensor
04:56 - Connecting PART 4 - Photoresistor
05:15 - Connecting PART 5 - Magnetic switch
05:34 - Connecting PART 6 - Relay and light bulb
05:58 - C++ code
06:29 - Installing and setting up Home Assistant and Python
08:36 - UI configuration for Home Assistant
09:06 - Editing configuration.yaml for Home Assistant
11:15 - Testing
12:08 - Setting Home Assistant on Android
12:58 - Final words

🎬 Video Related Links:
HomeAssistant version: 0.98.3
HomeAssistant: https://www.home-assistant.io/
MQTT Protocol: http://mqtt.org/
NodeMCU: https://www.nodemcu.com/index_en.html
main.cpp Code: https://github.com/1BarConnection/nodemcu_smart_home/blob/master/main.cpp
HomeAssistant UI configuration: https://github.com/1BarConnection/nodemcu_smart_home/blob/master/raw_config_editor_UI.txt
HomeAssistant configuration.yaml: https://github.com/1BarConnection/nodemcu_smart_home/blob/master/configuration.yaml
Breadboards on eBay: https://ebay.us/Vf9ZWm
NodeMCU on eBay: https://ebay.us/bYwkph
Power Bank: https://amzn.to/416Fykp
Fritzing: https://fritzing.org/home/
Buttons and Resistors on eBay: https://ebay.us/qSjTVD
LEDs on eBay: https://ebay.us/H9TYOj
Wires on eBay: https://ebay.us/1W66ua
Temperature sensor on eBay: https://ebay.us/rYx2Pm
Motion sensor: https://ebay.us/rDm8Pr
Photoresistor on eBay: https://ebay.us/K7GNPr
Magnetic switch on eBay: https://ebay.us/EaltGM
Relay on eBay: https://ebay.us/8rcBeH

🌍 My Links:
Patreon: https://www.patreon.com/1BarConnection
Twitter: https://twitter.com/1BarConnection
GitHub: https://github.com/1BarConnection

🎬 Recommended Videos:
Home Automation: https://youtube.com/playlist?list=PL3L0Fm_tUm2e-Wr5cM0l1I5DDOmGz5De8
Telecommunications: https://youtube.com/playlist?list=PL3L0Fm_tUm2cMCz9Ntl0KllBGtpsoykOY

💻 My Equipment:
Earphones: https://tinyurl.com/air-pro-2 (USE -30% PROMO CODE: EARFUN30)
Keyboard: https://amzn.to/41OJvK4
Mouse: https://amzn.to/3orPgzA
Desk Chair: https://amzn.to/3Wk608H
Tripod: https://amzn.to/3Dy2Rcw
Networking Tools: https://amzn.to/3Wo3C0r
Shelly Duo LED Bulb: https://amzn.to/42UU2Vl
Raspberry Pi 3B+: https://amzn.to/3pZSLxT
3D Printer: https://amzn.to/3pX81LN
Wi-Fi Adapter: https://amzn.to/3OpyhZl

*Some of the links in this description are affiliate links from which I receive a small fee, so thank you for using them.

Home Automation With NodeMCU, HomeAssistant & MQTT

Disclaimer DMCA