My Home Assistant configuration, feel free to copy any config files you want.
Fork repo
If you want to replace all current files (you might need to remove all existing files):
- git init
- git remote add origin PATH/TO/REPO
- git fetch
- git checkout -t origin/master
Use with Home Assistant
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT Licence
- 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
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.
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- Counters for TV time per unit, in hours per day
- In bed sensor using Bayesian sensor
- Mouse sensors with notifications