Skip to content

Latest commit

 

History

History
87 lines (60 loc) · 5.9 KB

README.md

File metadata and controls

87 lines (60 loc) · 5.9 KB

rvdm's Home Assistant Configuration Files

Maintenance GitHub Activity

Physical Setup

I'm running my Home Assistant install using Home Assistant Core on a small Intel NUC machine in my utility closet. The NUC is connected and integrated in my home network and a mix of home automation hardware and software.

Hardware

The above devices connect to a number of 'smart' devices in our home:

In the house devices are wired where possible, but lots of devices connect via wifi. The network is based all off Ubiquiti equipment:

I try to keep noisy equipment out of the house, so storage and backups is done off-site.

Software

For Home Assistant, I run Debian Buster, using a btrfs root. Docker was added using the standard docker-ce repositories. I run two container setups outside of home-assistant:

  • Portainer for container management
  • ELK stack for monitoring and logging This was installed using standard ELK docker-compose files that can be found here

After getting the base infrastructure in place, home-assistant was installed using the standard Docker install instructions.

In home-assistant I do a few things to automate - but there should be much more 'smartness' to it. Partially this is due to lack of sensors (and the inability of most sensors to ignore cats); the other bit that needs to be fixed is proper presence detection.

Things I do do:

  • Switch off unneeded power at night. This saves more energy than I thought!

  • 'Night mode' triggers when I enable my alarm. This works by using the 'sleep cycle' app which can connect to Hue devices. In home-assistant I have a 'fake hue' hub which pretends to be a light. The light connected to that is a virtual light, which triggers some automation in appdaemon. The appdaemon script takes care of the following:

  • When I switch off the alarm in the morning, switch on the espresso machine, so it's warmed up when I exit the shower.

  • If it's a weekday and not a holiday, and I woke up after a certain time, I'm working from home, so the espresso machine gets switched on at 12 so I have a heated machine after lunch.

On non-weekdays or holidays, the machine gets switched on at around 11 only. The appdaemon scripts and configs are in the apps/ section of this repo.

  • Some node-red automation around the lights upstairs. I control these using Ikea wireless switches. I have two lights next to the bed, and one bigger light. These are switched on and off depending on state:
  • When the bed lights are off, and that side's button gets pushed, both bed lights and the big light switch on.
  • When the bed lights and the big lights are on, and one of the 'off' buttons gets pushed, that side's light switches off, along with the big light.
  • When only one light is on, and that side's 'off' button gets pushed, only that light switches off.

This convuluted automation takes care of our before-sleeping routines :)

  • Some simple automation using light groups for switching off and on all of the 'media stuff' at the same time.

Todo:

  • Proper presence detection
  • Proper sensor automation (occupancy / movement)
  • More graphs and measurements around humidity and air quality
  • Some switches for lights that are not switchable yet. Replacing of physical wall switches by Shelly or the like.