MQTT 101: Integrate your DIY Devices into Home Assistant
ResinChem Tech
@resinchemtechAbout
Focusing on home automation, Home Assistant and smart home devices. Plus anything else that catches my interest! Supporting the channel =================== Many of the links that I provide to parts or items listed in a video description or in replies to comments may be Amazon Affiliate links. Use of these links do not affect your pricing, but as an Amazon affiliate the channel may earn a small commission from your purchase. You can see a list of some of my favorite and most commonly used items on my Amazon page: https://www.amazon.com/shop/resinchemtech However, if you wish to say thanks for an idea, help I may have provided or to help fund future videos, you can also buy me a one-off cup of coffee at: https://www.buymeacoffee.com/resinchemtech Thank you for supporting this channel and the work that I do!
Latest Posts
Video Description
In this video, I'm going to show you how to use MQTT to integrate your custom DIY devices into Home Assistant. After covering the basics of MQTT and how it works, I'll show some examples of using MQTT in Home Assistant, how it can be added to your custom device and how to integrate that device into Home Assisant via automations, sensors and switches. I'll show all this with a real world example of a DIY device I integrated into Home Assistant using MQTT. Chapter Breaks: ============== 00:00 Intro 01:48 What is MQTT? 02:34 Overview of how MQTT works 05:32 MQTT payloads 06:30 Publishing and subscribing in Home Assistant 07:54 MQTT Broker options 09:18 Additionl MQTT terms 10:05 Overview of MQTT-based matrix clock 12:03 Home Assistant MQTT-based dashboard and features 13:39 Why this device needs to subscribe and publish 14:20 Using the MQTT retain flag 21:10 Adding MQTT to your custom DIY device 22:36 Adding device MQTT entities to Home Assistant 26:54 Wrap up and alternatives Links to utilities and code shown: ================================= MQTT Explorer Utility: http://mqtt-explorer.com/ Arduino and Home Assistant Code Used: https://github.com/Resinchem/LED-Matrix-Clock_WS2812b Links to video of projects shown in intro: ========================================= Matrix Clock and More: https://youtu.be/uV_HQpqIp2I Virtual Window: https://youtu.be/NFwgFKbzRY4 Raspberry Pi Parking and Vehicle Presence: https://youtu.be/MzMva6lHiAU TM1638 7-Segment LED Display: https://youtu.be/OtVdY95vwDY Animatronic Halloween Props: https://youtu.be/elebVcLhq3s ESP8266 and WS2812b Parking Assistant: https://youtu.be/HqqlY4_3kQ8 DIY Amplifier: New video with MQTT coming soon! You can help support this channel, or just say thanks, by buying me a cup of coffee at: https://www.buymeacoffee.com/resinchemtech #mqtt #homeassistant #diyelectronics
Essentials for DIY Smart Home
AI-recommended products based on this video

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

64GB Micro SD Card 2 Pack Ultra Micro SDXC Memory U1 Card Class 10 Micro SD Cards 64GB High Speed TF Card R Flash, C10, U1, 64 GB (2 Pack)

KOOTION 5-Pack 128GB Micro SD Card Class 10 Micro-SDXC Memory Card UHS-I, High Speed Flash TF Card for Security Camera/Smartphone/Drone/Dash Cam/Tablet/PC, C10, U1, 128GB 5Pack

KOOTION 128GB Micro SD Card 2 Pack Micro SDXC UHS-I High Speed up to 90MB/s TF Card 128GB Card Memory U3,A1,V30, Full HD Video for Drone/Smartphone/Camera/Dash Cam/PC/Tablet

KOOTION 5-Pack 64 GB Micro SD Card Class 10 Micro-SDXC Memory Card UHS-I, High Speed Flash TF Card for Security Camera/Smartphone/Drone/Dash Cam/Tablet/PC, C10, U1, 64 GB 5pack

BrosTrend Linux USB WiFi Adapter 1200Mbps Supports Ubuntu, Mint, Debian, Kubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, USB3.0 Wireless Dual Band Wi-Fi 5GHz/867Mbps + 2.4GHz/300Mbps

MSI AX1800 WiFi USB Adapter, WiFi 6, MU-MIMO, 802.11ax Dual-Band Gigabit Wireless, Plug and Play, High Speed Long Range USB Gaming Adapter

BrosTrend 1200Mbps USB WiFi Adapter for Windows 11/10/8/7/XP of PC Desktop Laptop, Dual Band 5GHz 867Mbps, 2.4GHz 300Mbps, USB 3.0, Network Card WLAN

BrosTrend AX300 WiFi 6 USB WiFi Adapter for PC, Nano Size WiFi Dongle for Laptop Desktop, USB Wireless Adapter for Windows 11/10/7, 2.4GHz Only, 286Mbps, Wireless Network Adapter, OFDMA (NOT for MAC)

Wireless Earbuds Bluetooth 5.4 Headphones, Noise Canceling Ear Buds with 75hr Playtime, LED Power Display, IPX7 Waterproof Earphones Over Ear Earphones for Sports/Workouts

Wireless Earbuds Bluetooth 5.4 Headphones, Noise Canceling Ear Buds with 75hr Playtime, LED Power Display, IPX7 Waterproof Earphones Over Ear Earphones for Sports/Workouts

HAOYUYAN Wireless Earbuds Bluetooth 5.3 Headphones with 80H Playback, IPX7 Waterproof Over Ear Buds with LED Power Display for Sports Running Workouts - Rose Gold

HAOYUYAN Wireless Earbuds Bluetooth 5.3 Headphones with 80H Playback, IPX7 Waterproof Over Ear Buds with LED Power Display for Sports Running Workouts - Black

Treemoo Telescopic Ladder 8.5 Feet - Aluminum Telescoping Ladder with Non-Slip Feet - Portable Compact Folding Ladder for Home or Outdoor Work with EN131 Certified 330lbs Max Capacity

2025 Faster WiFi Extender, WiFi Repeater, Covers Up to 10000 Sq.ft and 60 Devices, Internet Booster - with Ethernet Port, Quick Setup, Home Wireless Signal Booster

2025 Fastest WiFi Extender, WiFi Repeater, WiFi Booster, Covers Up to 10000 Sq.ft and 60 Devices, Internet Booster - with Ethernet Port, Quick Setup, Home Wireless Signal Booster












