Join us for Code @ Think 2019 | San Francisco | February 12 – 15 Register now Limited availability
Get the code
By Matthew Treinish | Published September 25, 2018 - Updated September 25, 2018
Learn how to create a truly smart home by building a unified interface for interacting with all the connected devices in your home by using the open source Home Assistant project and Watson IoT Platform.
People often have a variety of connected or smart different devices in their homes. These different devices don’t always share common protocols or interfaces. This makes building workflows or automation between devices more difficult. It also means that you often have to interact with several different interfaces to use the devices.
This is where the Home Assistant project comes into play. Home assistant is open source home automation project. It’s designed to be platform agnostic hub for all the different devices you may have in your home (or anywhere really) and provide a unified interface for interacting with all of those devices, and common method for building automation between all the devices.
The Watson IoT Platform provides powerful application access to IoT devices and data to help you rapidly compose analytics applications, visualization dashboards, and mobile IoT apps. This code pattern will describe the process of linking the two together. Enabling you to leverage Home Assistant for connecting all your different devices together behind a shared interface, and then using the Watson IoT Platform to aggregate the data from those devices and enable running analytics on top.
There are two ways that you can connect Home Assistant and Watson IoT Platform:
Leveraging Home Assistant’s built-in MQTT support and writing rules to publish to Watson IoT platform on device updates
Writing a custom module to seamlessly publish devices updates from Home Assistant to Watson IoT platform.
When you have completed this code pattern, you will understand how to:
Ready to put this code pattern to use? Complete details on how to get started running and using this application are in the README file.
Get the Code »
Back to top