Linux Format

Build a smart-home data application

Credit: www.home-assistant.io

OUR EXPERT

Matt Holder is an IT professional of 15 years, Linux user for over 20 years, user of plenty of home automation gear and selfprofessed geek.

We’re putting the finishing touches to our smart-home data application. Our aim is to pull data from the Home Assistant API and then render it on screen in a GUI. We’ve split the program into two and in the first article we wrote the library that interacts with the API. Last month, we started writing the GUI application and we covered the entity selection window. This month, we will write the rest of the app, which consists of the configuration and main windows. As part of this article, we will be calling the API communication library, which will perform the actual data requests from the API.

Before we start coding again, let’s have a look at It is one of the most popular open source projects on GitHub and provides a way of linking together home automation equipment from different manufacturers, which potentially all use different protocols. aim is to keep as much data as possible within the internal network, but it can interact with many cloud services as well. Data gathered by is collected in whatprovides an API that can be used to extract a list of entities within the system as well as the state of any entity. This app will enable you to select a number of entities to display and if possible a trend line will be displayed. The API is also capable of more functionality, but this is largely outside of the scope of this article.

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format2 min read
Back Issues Missed One?
ISSUE 313 April 2024 Product code: LXFDB0313 In the magazine Discover how to use the ultimate hacker’s toolkit, staying out of trouble while doing so. And join us as we take the Puppy Linux developer’s new distro for a run and explore its container
Linux Format2 min read
Distro Watch
Ubuntu 24.04 LTS Noble Numbat is currently scheduled for release on 25th April. At the time of writing, we’re working with a daily build and expect a full review next issue. Nevertheless, we discovered that Canonical has announced this LTS release wi
Linux Format5 min read
Tips For Managing Docker Containers
Everyone knows how containers revolutionised application building and deployment. Using a E disposable stack of containers that make up an app that aren’t using the docker-compose command to manage the stack are missing a trick. It allows the shippin

Related Books & Audiobooks