OpenHAB is an open sourced solution for home automation. It integrates multiple home automation and technologies into one single unit that allow overarching automation rules and offers uniform user interfaces. OpenHAB has an active community all over the world. The OpenHAB community provides users a lot of bindings. These are add-ons to configure different home automation devices. These binding are written and compiled in Java. Hence, we need to have the Java JDK and JRE for OpenHAB to run.
For this project, we use the HIO POE starter kit as a host server. The OS (operating system) and all the software will be compiled in Yocto Project. The image has installation of x11 Window System and some other components like SSH, USB WiFi module Driver, Qt5, Java JDK JRE-7, OpenHAB, and Firefox Browser.
The WeMo Switch has Wifi built-in. First, we set up the WeMo to connect to the home network. After that, we set up some configuration for OpenHAB to recognize the WeMo Switch and set up the sitemap to control the device. We execute OpenHAB in the HIO board. This will create a Java Environment and set up a local host server. The WeMo binding will automatically look for the WeMo device’s name and attempt to connect it to the network. Once the WeMo Switch is found and connected to OpenHAB, we can go to any web browsers and type in the address that direct to the OpenHAB host server. For example, localhost:8080/openhab.app. This will open the configured sitemap. In there, we can see all the devices installed and will be able to have full control of them.
Visit HIO Wiki, OpenHAB: WeMo Switch for more information about how to set up OpenHAB in Yocto Environment to control WeMo Switch.