Configuration¶
I use Home Assistant as my primary smart home software. It allows me to tied down every separate ecosystem, every device, and every service together.
This is a very powerful tool, allowing to built complex and smart automation based on multiple triggers and conditions, performing different actions.
So far, I'm happy with Home Assistant and strongly recommend trying it if you are a smart home enthusiast.
Prior Art¶
I began my smart home journey with an Aqara Hub and a few bulbs.
In the beginning, I was hoping to consolidate my smart home over HomeKit, because I'd already had a few Apple devices. Shortly after, I run into multiple limitations. After a year of using Aqara setup, I decided to switch to the more universal and powerful solution โ Home Assistant.
Now I easily pass my devices to the HomeKit as well as to the Google Home app.
How I make my automations¶
Tip
I highly suggest reading a blog post called Perfect Home Automation written by Home Assistant creator Paulus Schoutsen.
This article contains valid points about developing home automation. This will help you develop the right mindset while building your smart home.
There are a few rules I use while building my smart home:
- You should not adapt to technologies. Things should just work. You shouldn't break your own daily routines in order to adapt to your home. Home automation should blend with your current workflow, not replace it.
- You are not the only user of your home automation. Even when you live alone, you may have guests. Think about how they're going to use your home.
- Limit the impact of failures. Smart homes are complex: eventually, things will go wrong. Make sure things will have a limited impact when they fail. Ideally, devices should fall back to a pre-smart home experience.
- Automations must be seamless. Nobody controls lights from the phone except for showing off. This means that everything you automate has to work flawlessly. Even when automation works perfectly 90% of the time, the rest 10% will ruin the whole positive experience.
That's what I keep in mind. This helps a lot.
Automations¶
Here you can discover all of the automations powering my home. The list is automatically and regularly updated.
- ๐ Alert (9 automation)
- ๐ก๏ธ Climate (8 automation)
- ๐ Curtains (3 automation)
- ๐ก Light (11 automation)
- ๐ต Media (2 automation)
- ๐ฆ Mode (9 automation)
- ๐ Presence (2 automation)
- ๐ฅ๏ธ System (10 automation)
- ๐งน Vacuum (8 automation)
- โ๏ธ WIP (1 automation)
Total number of automations: 63๏ธ
๐ Alert¶
- Air Siren in Kyiv โ Air Alert announcement when we are in Kyiv. Sends critical notifications and announces on speakers.
- Bad Air Quality โ Notify when the air quality is bad
- Danger in Kyiv โ Danger of missile/drone strike in Kyiv RIGHT NOW. Critical alert to hide immediately.
- Denys left the Office โ Notify when Denys is leaving the office
- Electricity Outage โ Notify everyone when there is no electricity at home.
- Electricity will turn on soon โ Notify 1 hours in advance before the electricity turns on
- Imminent Attack by Strategic Bombers โ Send a notification when Tu-95 strategic bombers take off from Russian airfields. This means attack by cruise missiles is imminent. Prepare a hideout.
- No Electricity Soon โ Notify 30 minutes in advance before the electricity turns off
- Notify about EcoFlow discharge level โ Send notification when EcoFlow is draining battery.
๐ก๏ธ Climate¶
- Calibrate Bedroom TRV temperature โ Calibrate TRV temperature with external sensor.
- Calibrate Cabinet Left TRV temperature โ Calibrate TRV temperature with external sensor.
- Calibrate Cabinet Right TRV temperature โ Calibrate TRV temperature with external sensor.
- Calibrate Living Room TRV temperature โ Calibrate TRV temperature with external sensor.
- Suggest turning on AC when it's hot โ When temperature raises over certain level, send an actionable notification for turning on ACs
- Toggle Bathroom and Laundry fans when we sleep โ Turn off Bathroom and Laundry fans when we sleep and turn them on in the morning.
- Turn on fan when someone is on the toilet โ When someone sits in the toilet, then turn on the fan. Turn off fan when person leaves.
- Turn on heaters during heating season โ Turn on/off heaters when weather is getting cold/warm
๐ Curtains¶
- Open Curtains in the morning โ Slowly open Bedroom Curtains. Open all curtains when we get up.
- Stop opening Bedroom Curtains when we don't want to โ Sometimes we want to prevent Bedroom Curtains from opening. Just close them when they are opening.
- Tighten Curtains hooks โ Sometimes hooks on curtains are getting loose. This automation unlock and locks hooks on curtain robots
๐ก Light¶
- Motion-activated lights in Bedroom โ Turn on Lights in Bedroom based on presence and current activated light mode.
- Motion-activated lights in Cabinet โ Turn on Lights in Cabinet based on presence and current activated light mode.
- Presence Simulation in Away Mode โ Toggle Presence Simulation during Night in Away Mode
- Suggest activating Night Lights โ At the deep evening, send a notification suggesting to activate Night Lights mode.
- Turn off Bathroom lights โ When no one is in Bathroom, but the lights are still on, then turn them off.
- Turn off Bedroom lights โ Turn off lights in Bedroom when motion sensor doesn't detect any motion for long period of time.
- Turn off Cabinet lights โ Turn off lights in Cabinet when motion sensor doesn't detect any motion for long period of time.
- Turn off Corridor Light When Door is Closed โ Turn off Corridor Light when Front Door closes. If the light is still on, then send a notification with an action to turn off the light.
- Turn on Bathroom Ceiling Light โ When it's bright in the living room, turn on Bathroom Ceiling Light to match brightness in Living Room.
- Turn on Bathroom Lightstrip โ Turn on Bathroom Lightstrip when someone walk in.
- Turn on Corridor Light when Door is open โ Turn on Corridor Light when Front Door opens and then turn it off after a few minutes
๐ต Media¶
- Turn off Samsung TV when PlayStation turns off โ Turn off Samsung TV when PS5 goes to sleep mode
- Turn on Apple TV when Samsung TV turns on โ Turn on Apple TV when Samsung TV turns on and PS5 is off
๐ฆ Mode¶
- Adjust Lights and Curtains in the evening โ When it's getting dark, or sun sets, or indoor illuminance is too low, then activate Evening Lights and close curtains
- Away Flow โ Toggle Away mode depending on the Away input boolean
- Away on Leaving City โ Toggle Away mode depending on proximity to the Kyiv city
- Do Not Disturb on Focus โ Switch Do Not Disturb while camera, mic or focus are on
- Evening Lights Activation โ The activation flow for a Evening Lights mode. Enables turns on corresponding lights and motion-activated lights.
- Low Power Mode โ Minimise electricity consumption during the outage, when on reserve power supply.
- Night Lights Activation โ The activation flow for a Evening Lights mode. Enables turns on corresponding lights and motion-activated lights.
- Sleeping Lights Activation โ The activation flow for a Sleeping Lights mode. Enables turns on corresponding lights.
- Turn off light modes when all lights turn off โ Turn off all light modes when all lights are off in the night, meaning we are set to sleep.
๐ Presence¶
- Everyone is Leaving
-
Someone is Arriving โ Adjust home when someone arrives home:
-
Close curtains when it's dark
- Greet people with unique phrase played on speakers
๐ฅ๏ธ System¶
- Charging Wall Tablet โ Handles charging for Wall Tablet, keeping battery level between 20-80%
- Fetch reports from Ukrenergo โ Parse data from Ukrenergo chanel with AI. Send notification about electricity outages updates. Update variables for other automations.
- Home Assistant Start โ Notify Denys when Home Assistant starts
- Notify about high CPU usage โ Send alert when HA has a high CPU usage
- Notify about high RAM usage โ Notify when RAM usage is high for some time.
- Notify when Media disk is full โ Notify when Media drive is 95% full for some time.
- Notify when System disk is full โ Send a notification when system disk is 90% full.
- Run chores in config folder โ Run scripts for generating README, commiting regular updated, etc
- Turn off fridge when EcoFlow is below 50% โ Turn off fridge when EcoFlow is discharged below 50%, but there still no electricity. Save electricity additional ~100Wh.
- Wake up Wall Tablet โ When someone walks the corridor, wake up the wall mounted tablet
๐งน Vacuum¶
- Ask Regular Cleaning โ Regular vacuum cleaning every two days
- Ask for Maintenance โ Send vacuum near trash bin and ask for maintenance
- Clean Counting โ Count cleanings with counter. Needed for maintaining the robot and making request to clean home.
- Notify about errors โ Notify when error with vacuum occured
- Notify when finished cleaning โ Notify when vacuum finished cleaning and we are not home.
- Replacements Alert โ Notify when vacuum parts need to be replaced
- Stop cleaning when we return home โ Send vacuum home when somebody comes home
- iOS Actions โ Handle iOS actions for vacuum cleaner
โ๏ธ WIP¶
Addons¶
These addons provide additional functionality for my Home Assistant instance.
- Advanced SSH & Web Terminal
v18.0.0
โ A supercharged SSH & Web Terminal access to your Home Assistant instance - File editor
v5.8.0
โ Simple browser-based file editor for Home Assistant - ESPHome
v2024.7.0
โ ESPHome add-on for intelligently managing all your ESP8266/ESP32 devices - PS5 MQTT
v1.3.3
โ Control Sony PlayStation 5 devices via MQTT - AirCast
v4.2.1
โ AirPlay capabilities for your Chromecast devices. - Home Assistant Google Drive Backup
v0.112.1
โ Automatically manage backups between Home Assistant and Google Drive - Samba share
v12.3.1
โ Expose Home Assistant folders with SMB/CIFS - Mosquitto broker
v6.4.1
โ An Open Source MQTT broker - Zigbee2MQTT
v1.39.0-1
โ Use your ZigBee devices without the vendor's bridge or gateway - Cloudflared
v5.1.15
โ Use a Cloudflare Tunnel to remotely connect to Home Assistant without opening any ports