I think I’ve come far enough that it makes sense to share my config files, you might get some use of out them.
System
- Philips Hue
- IKEA Trådfri
- Telldus Tellstick Duo
- Multiple NodeMCUs
- Verisure (Alarm system, various sensors)
- Xiaomi Gateway
- Xiaomi Smart human body sensor
- Xiaomi Door/Window sensor
- Xiaomi Switches (old and new)
- Xiaomi Cube
- Xiaomi Temperature and Humidity sensors
- Xiaomi Air Purifier 2
- Xiaomi plant sensors
- Xiaomi plugs (Wifi and Zigbee)
- 2 * Xiaomi router 3 working as access points
- Draytek Router
- NetGear 24 port switches
- Digoo cameras
- Custom built rollers
- Custom built mailbox automation
- Apple TV 3 and 2 (4K incoming)
- Chromecast Audios
- Chromecast Ultra
- Amazon Echo Dot
- Dark Sky Weather
- InfluxDB
- Grafana
- Pi Hole
- Octo Print
- Several Raspberry Pi 3 to run everything
- Homebridge
- Mosquitto MQTT server
- ARILUX AL-LC01 LED controllers
- Blitzwolf Vacuum
- Husqvarna Automower 420 with connect
Goal of automation
I would like to automate the home to such a degree that everything just works and we understand our home completely without intervention. That includes understanding intentions and behaviour and adjusting to it. We are far from the end goal, but a pretty good way along at least. The bedroom is fully automated when it comes to lights, fan and rollers, we never have to manually adjust it anymore. The livingroom is rather close to perfectly automated.
My vision of an automated home is one that adapts to the inhabitants, not the other way around. The lights should be the right level for the actions taken and the time of day, the home should clean itself when nobody is around to hear the vacuum, rollers should be down when changing clothes or sleeping and up during the day. The lawn should be cut when children are not out to play. The car should be started, removed from the garage and warmed up when someone is ready to leave.
Somethings are still dreams or just too expensive to accomplish at the moment, such as a washer and dryer that loads, starts and unloads by themselves. Getting a little bit closer to the dream every month is my goal though. I usually build or automate at least a few things per month.
Automations
Alarm system
- Say good night when alarm is turned on
- Set bedroom lights to bright or low depending on time and close bedroom rollers
- Play music in the kitchen when alarm is turned off from home mode
Fan automation
- Turn on fan in bedroom and livingroom if the temperature is too high. Only if alarm is off or in home mode (bedroom).
- Turn off fans if temperature is lower again
Stairs
- Turn on lights in stairs (leds under each step) when movement in upper or lower hallway and sun is down
- Turn off lights in stairs when no movement for 3 minutes
- Turn on light when sun goes down
- Turn off light when sun rises
Dining room
- Turn on light in cabinets if movement
- Turn off light in cabinets if no movement for 10 minutes
- Turn on aquarium in the morning and turn off in the evening
Kitchen
- Turn on light (led strip) over cabinets if movement. Will be complemented with strips under cabinets as well. Turn off if no movement for 10 minutes
- Turn on kitchen over cabinet lights when sun goes down
Livingroom
- Turn on ceiling light and wall light if movement and sun is down
- Turn off ceiling light and wall light if no movement for 10 minutes
- Turn on lights/turn off lights and set brightness if Xiaomi double wall switch is pressed single or double
- Turn on or off ceiling fan if both buttons on Xiaomi double wall switch is pressed twice
- Turn on or off tv bench if both buttons on Xiaomi double wall switch is pressed once
- Set Livingroom to tv mode if something is playing on the Apple TV
- Turn on lights if door is opened and it’s dark
- Turn on lights a bit before sun goes down or illumination is too low
Mailbox
- Turn on light inside when hatch is opened and increase number of deposits by one, turn off light when closed
- Turn on light inside when door is opened and set number of deposits to zero, turn off light when closed
- Turn on light outside when it’s evening and turn off when it’s morning
- Notify in app and email when mail arrives, also via TTS
Plants
- Water plants if humidity is too low automatically
TODO: set up individual watering, possibly with automatic adding of nutrition to water when nutrition is too low
Bedroom
- Turn on light if movement, alarm is off and the light is not on already
- Morning TTS played over Chromecast when button is pressed or bedside light is turned on in the morning (automated via alarm on phone). This contains traffic, weather, time and so on.
- Turn off lights gradually in the evening and then turn off completely
Outside
- Turn on entrace lights on sunset, movement, door bell ring or door open
- Turn on driveway light on sunset and turn off on sun rise
Movement
- Notify (TTS and app) if I leave work with travel time
- Notify (TTS and app) if I stopped at one of the most common stores we shop at. My wife or kids can add things to shopping list via Echo Dot
- Notify (TTS and app) if my daughter arrives at or leaves school
- Turn on driveway light if I get close, then turn off a while after I get home
Other
- Counters for TV time per unit, in hours per day
- In bed sensor using Bayesian sensor
- Mouse sensors with notifications
Edits
- Ordered a Dell R710 server with 72 GB RAM, 2 four core CPU and initially 1 TB HD (will expand, have room for 8 2.5" drives, planning on running RAID 10). This machine will run VMs for SMB share, my Ghost blog, Grafana + Influx, a network boot server, probably Zoneminder for cameras, Docker containers, a DB VM, Pi Hole, a log server (Splunk?), a monitoring system (Nagios?), and probably a lot more fun things. A bit of a home lab server. Will probably add more of these as time passes.
- Building a Raspberry Pi 3 cluster. I have 3 Pis already and ordered two more. Will try out Docker Swarm. If it’s reliable enough, I will move HA to the swarm. Each Pi will boot from a USB stick, not SD cards, for longer life.