MQTT 102: Add Home Assistant Discovery to your Devices
Published at : 18 Dec 2025
Instead of asking users to manually enter a bunch of YAML to integrate your MQTT device, you can easily add Home Assistant MQTT discovery to your project and integrate your entities straight into Home Assistant. No fancy APIs or coding necessary. Just add a couple of MQTT messages to your device setup. I'll show you the basics, along with some recommendations for your own projects to make your device as easy to add to Home Assistant as any other native integration.
Chapter Links: ============= 00:00 Intro and Requirements 02:33 Discovery Topics and Payloads 06:12 Providing a Discovery Option 07:36 Publishing a Single Entity 10:12 Importance of Unique IDs 13:00 Creating a Home Assistant Device 19:29 Wrap Up and More Info