Skip to content

AndreasAhrens/Home-Assistant-Config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Assistant Config

My Home Assistant configuration, feel free to copy any config files you want.

Installation

Fork repo
If you want to replace all current files (you might need to remove all existing files):

  1. git init
  2. git remote add origin PATH/TO/REPO
  3. git fetch
  4. git checkout -t origin/master

Usage

Use with Home Assistant

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT Licence

System

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

Releases

No releases published

Packages

No packages published