Bas Nijholt's Home Assistant config files
Using my iOS Light and Dark Mode Themes.
See also my guide for my girlfriend โค๏ธ.
Noteworthy (useful) automations
See all my automations and its dependencies down the page!
- Alarm clock that uses the AppDaemon volume ramp and sunrise app โฐ
- Automatic
lovelace.json
tolovelace-ui.yaml
converter for version control ๐ค - Controlling music and lights (hue and brightness) using the Xiaomi Aqara Magic Cube โ
- Controlling the lights using Phillips Hue Dimmers the Xiaomi Aqara Smart Switches ๐
- Automated lights ๐ก
- Presence detection in different rooms based on various binary template sensors
- Robot vacuum automations ๐งน
- Arriving and leaving automations
- Notifications when the dishwasher or washing machine is done
- Time at work ๐ tracking and notifications to go home
- Using HA-Menu to control my speakers on my iMac
- Using home-assistant-macbook-touch-bar to control HA on my MacBook Pro's Touch Bar ๐ป
- Automatically switch Lovelace's theme between backgrounds and light/dark mode
- Sync volume TV โ speakers ๐
- Security notifications when the front door ๐ช has been open for too long or motion is detected when no one is home
My cool AppDaemon apps
- Sunrise emulator app ๐
- Wake up with Spotify app that slowly ramps the volume ๐ข
- Low Battery level notifications ๐
Ideas?
- Notify us when the window is open and it is raining.
- Add budget keeper using the Bunq API
- Use Siri Shortcuts to control the TV from my Apple Watch
My devices
Switches ๐ | Units (#) | Price per unit (โฌ) | Price (โฌ) |
---|---|---|---|
TP-Link HS110 | 3 | 23.61 | 70.84 |
Xiaomi Aqara Magic Cube | 1 | 11.08 | 11.08 |
Xiaomi Aqara Single Button | 4 | 14.35 | 57.38 |
Philips Hue Dimmer switch | 2 | 16.61 | 33.22 |
Total | 172.52 | ||
Sensors ๐ก | Units (#) | Price per unit (โฌ) | Price (โฌ) |
Xiaomi Aqara Door Sensor | 4 | 8.18 | 32.71 |
Xiaomi Aqara Temperature Sensor | 5 | 9.15 | 45.74 |
Xiaomi Aqara Motion Sensor | 6 | 10.19 | 61.13 |
Xiaomi Aqara Vibration Sensor | 1 | 11.59 | 11.59 |
Xiaomi Mi Flora | 3 | 15.54 | 46.63 |
Total | 197.8 | ||
Vacuum ๐งน | Units (#) | Price per unit (โฌ) | Price (โฌ) |
Xiaomi Mi Roborock S5 | 1 | 294.31 | 294.31 |
Total | 294.31 | ||
Media player ๐บ๐ | Units (#) | Price per unit (โฌ) | Price (โฌ) |
KEF LS50 Wireless speakers | 1 | nan | nan |
KEF LSX speakers | 1 | nan | nan |
LG OLED 55 C9 | 1 | nan | nan |
Lights ๐ก | Units (#) | Price per unit (โฌ) | Price (โฌ) |
Philips Hue E27 White and Color | 12 | 22.22 | 266.7 |
Philips Hue E14 White and Color | 2 | 34.88 | 69.77 |
Philips Hue GU10 Ambient White | 5 | 18.54 | 92.7 |
Philips Hue Go | 1 | 57.05 | 57.05 |
Philips Hue LED strip 2m | 2 | 43.2 | 86.39 |
Philips Hue LED strip 1m | 1 | 13.84 | 13.84 |
Total | 586.45 | ||
Hubs ๐ | Units (#) | Price per unit (โฌ) | Price (โฌ) |
ConBee II | 1 | 39.95 | 39.95 |
Total | 39.95 | ||
Server ๐ฅ | Units (#) | Price per unit (โฌ) | Price (โฌ) |
Intel NUC Kit NUC8i3BEH | 1 | 278.3 | 278.3 |
8 GB Crucial CT8G4SFS824A DDR4 | 2 | 25.52 | 51.04 |
Samsung 970 EVO M.2 500GB | 1 | 94.99 | 94.99 |
Raspberry Pi 4, 4GB RAM (connected to power/gas meter and connected over MQTT to main HA instance) | 1 | 70.9 | 70.9 |
Raspberry Pi 4 FLIRC Case | 1 | 25.85 | 25.85 |
SanDisk Ultra microSDHC Memory Card 32GB | 1 | 6.99 | 6.99 |
Total | 528.07 | ||
Device tracker ๐ | Units (#) | Price per unit (โฌ) | Price (โฌ) |
iPhone X with the iOS app | 1 | nan | nan |
iPhone SE2 with the iOS app | 1 | nan | nan |
Other | Units (#) | Price per unit (โฌ) | Price (โฌ) |
PlayStation Eye Webcam and Microphone array | 1 | 14.95 | 14.95 |
DSMR - Slimme Meter kabel | 1 | 19.95 | 19.95 |
Nodo-Shop โ OpenTherm Gateway (OTGW) with NodeMCU | 1 | 48.81 | 48.81 |
Total | 83.71 | ||
Total | โฌ1902.81 |
Automations - Table of Content
- Alarm clock โฐ (1 automations)
- Apple Watch โ๏ธ (1 automations)
- Arriving ๐ (1 automations)
- Climate ๐ฅ๐ฅถ (5 automations)
- Control switches ๐ (6 automations)
- Cube โ (2 automations)
- Doorbell ๐ช๐ (1 automations)
- Frontend ๐จโ๐ป (3 automations)
- KEF DSP ๐๐ (12 automations)
- Leaving ๐ (3 automations)
- Light ๐ก (16 automations)
- Lovelace ๐จโ๐ป (1 automations)
- LSX ๐ (2 automations)
- Media player ๐๐บ (5 automations)
- Music ๐ต (2 automations)
- Plant โ๏ธ (3 automations)
- Security ๐ฎโโ๏ธ๐จ (4 automations)
- Night mode ๐๐ (4 automations)
- System ๐ฅ (7 automations)
- Utilities ๐งบ๐๐ฝ (4 automations)
- Vacation mode ๐ (2 automations)
- Vacuum ๐งน (6 automations)
- Work ๐ผ (3 automations)
Alarm clock โฐ
Wake up with Spotify and light
which uses:
- input_boolean.alarm_clock
- input_boolean.wake_up_light
- input_boolean.wake_up_with_spotify
- input_select.sleep_mode
- sensor.ten_minutes_before_alarm
Apple Watch โ๏ธ
Play or Pause the TV
Arriving ๐
Switch music from iPhone to speakers if no one is home
which uses:
Climate ๐ฅ๐ฅถ
Turn on the heating 30 min before waking up
which uses:
- input_boolean.alarm_clock
- input_boolean.automatic_temperature
- script.set_high_temperature
- sensor.half_hour_before_alarm
Turn on the heating when going home
which uses:
- input_boolean.automatic_temperature
- input_number.temperature_high
- script.set_high_temperature
- binary_sensor.no_one_home
Turn off the heating at 22:00
which uses:
- input_boolean.automatic_temperature
- input_number.temperature_low
- script.set_low_temperature
- binary_sensor.no_one_home
Turn on heating again after notification
which uses:
Set outside temperature every hour
Control switches ๐
Living room Philips Hue dimmer switch
which uses:
- input_select.last_script_living_room
- script.increase_brightness
- script.next_colors
- script.white_lights_living_room
Bedroom Philips Hue dimmer switch
which uses:
- input_select.last_script_bedroom
- script.increase_brightness
- script.next_colors
- script.white_lights_bedroom
Living room Aqara Wireless Mini Switch
which uses:
Bedroom Aqara Wireless Mini Switch
which uses:
- input_select.last_script_bedroom
- input_select.sleep_mode
- script.increase_brightness
- script.next_colors
- script.turn_off_everything
- sensor.ten_minutes_before_alarm
Bathroom Aqara Wireless Mini Switch
which uses:
Downstairs Aqara Wireless Mini Switch
which uses:
- script.arriving
- script.set_low_temperature
- script.start_spotify
- script.turn_off_everything_non_automatic
- sensor.favorite_playlist_of_nearest_person
Cube โ
Perform operation
which uses:
Rotate the cube
which uses:
Doorbell ๐ช๐
Click the button
Frontend ๐จโ๐ป
Turn on dark mode
which uses:
Turn on light mode
which uses:
Change theme
which uses:
KEF DSP ๐๐
Sync desk_db
which uses:
Sync wall_db
which uses:
Sync treble_db
which uses:
Sync high_hz
which uses:
Sync low_hz
which uses:
Sync sub_db
which uses:
Sync sub_polarity
which uses:
Sync bass_extension
which uses:
Sync desk_mode
which uses:
Sync wall_mode
which uses:
Sync phase_correction
which uses:
Sync high_pass
which uses:
Leaving ๐
Automatically turn off everything
which uses:
- input_boolean.guest_mode
- script.leaving
- binary_sensor.anything_on
- binary_sensor.no_one_home
- binary_sensor.someone_in_the_house_in_last_hour
Ask to turn off everything
which uses:
Turn off everything after notification
which uses:
Light ๐ก
Toggle kitchen ceiling
which uses:
Turn on kitchen counter if sleep mode is off
which uses:
Turn off kitchen counter
which uses:
Toggle bathroom
which uses:
Toggle toilet
which uses:
Turn on hall
which uses:
Turn off hall
which uses:
Automatically turn on the bedroom
which uses:
- input_boolean.automatic_bedroom_lights
- input_boolean.bedroom_lights_automatically_turned_on
- input_select.sleep_mode
- binary_sensor.activity_in_bedroom
Automatically turn off the bedroom
which uses:
- input_boolean.automatic_bedroom_lights
- input_boolean.bedroom_lights_automatically_turned_on
- binary_sensor.activity_in_bedroom
Turn off bedroom lights auto switch
which uses:
Turn on automatic_bedroom_lights switch
which uses:
Turn off toilet (extra check)
In case the other automation failed
which uses:
Turn off bathroom (extra check)
In case the other automation failed
which uses:
Turn off kitchen (extra check)
In case the other automation failed
which uses:
Turn off hall (extra check)
In case the other automation failed
which uses:
Turn off bedroom (extra check)
In case the other automation failed
which uses:
- input_boolean.automatic_bedroom_lights
- input_boolean.bedroom_lights_automatically_turned_on
- binary_sensor.activity_in_bedroom
Lovelace ๐จโ๐ป
Convert lovelace.json to lovelace-ui.yaml
which uses:
LSX ๐
Sync volume
which uses:
Sync source
which uses:
Media player ๐๐บ
Turn on Opt when TV is on and Spotify is not playing and not Usb
The speaker is connected via an optical cable to the TV. Whenever the speakers aren't playing Spotify (via WiFi) directly, switch the source of the speakers to "Opt".
Turn off speakers when turning off TV
If speakers off and TV on, turn on the speaker on TV state change
Update Spotify entity when TV is on every 5 seconds
Sync KEF LS50 and TV volume
Music ๐ต
Start playlist
which uses:
Switch music from iPhone to speakers if coming home
which uses:
Plant โ๏ธ
Problem with Ficus microcarpa Ginseng
which uses:
Problem with Kentia Palm
which uses:
Problem with Yucca Elephantipes
which uses:
Security ๐ฎโโ๏ธ๐จ
Motion detected but we are not home
which uses:
Sound alarm after notification
Door has been open for more than 5 minutes
which uses:
No one is home but high power usage
which uses:
Night mode ๐๐
Automatically turn off when alarm turns off or at 7AM
which uses:
Turn off automatic bedroom lights
which uses:
Set low temperature when sleep mode turns on
which uses:
Go from half to total sleeping mode
When it is half sleeping mode and there is no activity in the house for more than an hour go to total sleeping mode.
which uses:
System ๐ฅ
Warning about high CPU usage
Warning about high CPU temperature
Warning about high Xbox temperature
Update DNS
Update the DNS at Gandi to point my domain to my Home Assistant instance.
which uses:
Run chores
Run shell and Python scripts in utils folder.
which uses:
MQTT sensors are not updating
Check whether we are receiving messages over MQTT from my other HA instance.
Battery level low
Utilities ๐งบ๐๐ฝ
Washing machine has started
which uses:
Washing machine is done
which uses:
Dishwasher is done
which uses:
Dishwasher has started
which uses:
Vacation mode ๐
Auto turn on
which uses:
Auto turn off
which uses:
Vacuum ๐งน
Started cleaning
Stopped cleaning
which uses:
Reminder notification
which uses:
Cleanup if nobody is home
which uses:
- input_boolean.cleaned_today
- input_boolean.guest_mode
- input_boolean.vacation_mode
- binary_sensor.vacuum_day
- group.persons
Reset cleaned today
which uses:
Reset to standard mode
Work ๐ผ
Go home notification
which uses:
Reset input_boolean at midnight
which uses: