Войти
  • 46142Просмотров
  • 1 год назадОпубликованоResinChem Tech

MQTT 102: Add Home Assistant Discovery to your Devices

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. You can find additional information, along with code snippets and more in the written version of this project: 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 Additional Links and information: ================================ Written Guide: Github Gist of pertinent code used in this video: DIY Home Assistant Integrations: Official Home Assistant Doc (including discovery info): If you'd like to help support this channel, or just say thanks, you can consider buying me a cup of coffee: #mqtt #homeassistant