Start Docker Compose using systemd on Debian

How do you start up your multi-container application? Lots of the time these multi-container setups have dependencies between them and you need to start them in a specific order? How can you get this done automatically on bootup? Today I’m going over how to use Docker Compose and systemd to automatically launch all your containers in the correct order on bootup leveraging systemd on a Debian host.

So if you’ve got an MQTT broker (or another service) that must start up before your Home Assistant service and you’re already using Docker Compose this is an article for you! This method works great on a Raspberry Pi but should also work on anything using systemd as the initilization system.

[Read more…]Start Docker Compose using systemd on Debian

Home Assistant Notification Showdown

Notifications are an important part of a Home Automation platform. Users typically want to get alerted when things happen and there are various degrees of importance for notifications. Right now in Home Assistant 0.76.2 there are 60 different notification platforms! In this post I’m going to review several different notification platforms supported in Home Assistant. You probably don’t want an email when your garage door doesn’t close but an email might make sense for a weekly electricity usage report, I’ll go over some use cases for each type of notification.

We’re an Android household so this review is coming from that perspective, if you’re using iOS there is a Home Assistant iOS App that supports notifications that I’ve heard good things about. You may also find some of the other notification platforms discussed in this post to be useful to supplement.

[Read more…]Home Assistant Notification Showdown

DIY Smart Garage Door Opener

My wife and I use the garage every day to go in and out our house. Wouldn’t you like to automatically make sure your garage door is closed at night? Or know the status of it when you’re away from the house? Today I’m going to use some inexpensive electronics to turn your standard garage door into a “smart” garage door. This design still keeps all the original functionality of your garage door intact, you won’t have to use an app or website to open the garage door, it just brings the garage door into the digital world.

For this project, we’re going to hook up an ESP8266 to our garage door opener to control over Home Assistant using MQTT. Some hardware you’ll need for this project:

From a software perspective, you’re going to need Home Assistant running with an MQTT broker and an ESP8266 running MicroPython. Check out these blog posts for setting those up:

[Read more…]DIY Smart Garage Door Opener

Setting up MQTT Broker for DIY Home Assistant Sensors

I’m planning on creating some DIY sensors and switches across my house (more on that in future posts!) and was looking for a good way to communicate over WiFi with them from Home Assistant. If you’ve never heard of MQTT it is described as a “publish-subscribe-based messaging protocol that works on top of TCP/IP”. It … [Read more…]

Add a Z-Wave+ Dimmer Switch to Home Assistant

Automating your lights are a great place to get started with Home Automation. In today’s article, I replaced a traditional light switch with a Z-Wave Plus dimmer switch (GE 14294). Using Home Assistant, my lights automatically dim when someone starts playing content on the Chromecast in my Living Room after sunset. We find it useful to have a very dim light on during the movie so that we can still get up without stepping on stuff and still be able to see what we’re eating.

Some supplies I used:

[Read more…]Add a Z-Wave+ Dimmer Switch to Home Assistant

Visualizing Data using Grafana

Grafana is a really powerful tool used throughout the tech industry to visualize time series data. It’s open source software that allows you to create visual dashboards comprised of panels so that you can view and analyze your data. People frequently use it to monitor the health of their network and connected devices but in our setting, we can visualize any data we collect via Home Assistant.

Check out my last article on setting up InfluxDB to learn about a time series database and how to set one up.

[Read more…]Visualizing Data using Grafana

Storing Home Assistant Sensor Data in InfluxDB

How are you storing data collected in your Home Automation? Today’s article looks at a time series database called InfuxDB that Home Assistant can use to store all your sensor data in a database. Once the data is stored in the database you can analyze it for trends, create graphs and use the data in other applications. Ever feel restricted by the Home Assistant UI on how it shows data over a long time? InfluxDB is a tool to help you solve that!

[Read more…]Storing Home Assistant Sensor Data in InfluxDB