basnijholt/home-assistant-config

Home Assistant config files, rewritten to use the latest features, 100+ documented automations, automatically generated ToC ๐Ÿ  ๐Ÿค–

JavaScript

1,967

2,783 commits

updated Oct 8, 2026

See the code

README

Bas Nijholt's Home Assistant config files

GitHub stars GitHub last commit HA Version HA Community Yaml Lint

Lovelace UI MacBook touchbar

Using my iOS Light and Dark Mode Themes.

See also my guide for my girlfriend โค๏ธ.

Table of content

Noteworthy (useful) automations

See all my automations and its dependencies down the page!

My cool AppDaemon apps

(Sorted from new to old)

Ideas?

  • Notify us when the window is open and it is raining.
  • Add budget keeper using the Bunq API

My devices

Switches ๐ŸŽšUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
TP-Link HS110135.8435.84
Xiaomi Aqara Magic Cube111.0811.08
Xiaomi Aqara Single Button414.3557.38
Philips Hue Dimmer switch216.6133.22
Totalย ย 137.52
ย ย ย ย 
Sensors ๐ŸŒกUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
Xiaomi Aqara Door Sensor48.1832.71
Xiaomi Aqara Temperature Sensor59.1545.74
Xiaomi Aqara Motion Sensor109.7997.85
Xiaomi Aqara Vibration Sensor111.5911.59
Xiaomi Mi Flora315.5446.63
Totalย ย 234.52
ย ย ย ย 
Vacuum ๐ŸงนUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
Xiaomi Mi Roborock S51294.31294.31
Totalย ย 294.31
ย ย ย ย 
Media player ๐Ÿ“บ๐Ÿ”ˆUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
KEF LS50 Wireless speakers1nannan
KEF LSX speakers1nannan
LG OLED 55 C91nannan
ย ย ย ย 
Lights ๐Ÿ’กUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
Philips Hue E27 White and Color1222.22266.7
Philips Hue E14 White and Color234.8869.77
Philips Hue GU10 Ambient White518.5492.7
Philips Hue Go157.0557.05
Philips Hue LED strip 2m243.286.39
Philips Hue LED strip 1m113.8413.84
Totalย ย 586.45
ย ย ย ย 
Hubs ๐ŸŒŽUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
ConBee II139.9539.95
Totalย ย 39.95
ย ย ย ย 
Server ๐Ÿ–ฅUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
Intel NUC Kit NUC8i3BEH1278.3278.3
8 GB Crucial CT8G4SFS824A DDR4225.5251.04
Samsung 970 EVO M.2 500GB194.9994.99
Raspberry Pi 4, 4GB RAM (connected to power/gas meter and connected over MQTT to main HA instance)170.970.9
Raspberry Pi 4 FLIRC Case125.8525.85
SanDisk Ultra microSDHC Memory Card 32GB16.996.99
Totalย ย 528.07
ย ย ย ย 
Device tracker ๐Ÿ”Units (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
iPhone X with the iOS app1nannan
iPhone SE2 with the iOS app1nannan
ย ย ย ย 
OtherUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
PlayStation Eye Webcam and Microphone array114.9514.95
DSMR - Slimme Meter kabel119.9519.95
Nodo-Shop โ€“ OpenTherm Gateway (OTGW) with NodeMCU148.8148.81
Totalย ย 83.71
ย ย ย ย 
Totalโ‚ฌ1904.53

Supervisor add-ons

I run a Supervised install with the following add-ons:

Automations - Table of Content

  1. Adaptive lighting ๐ŸŒ„๐ŸŒ‡ (3 automations)
  2. Alarm clock โฐ (1 automations)
  3. Apple Watch โŒš (13 automations)
  4. Arriving ๐Ÿ‘ž (1 automations)
  5. Bike ๐Ÿšฒ (2 automations)
  6. Climate ๐Ÿ”ฅ๐Ÿฅถ (6 automations)
  7. Control switches ๐ŸŽ› (9 automations)
  8. Frontend ๐Ÿ‘จโ€๐Ÿ’ป (3 automations)
  9. Leaving ๐Ÿ‘ž (3 automations)
  10. Light ๐Ÿ’ก (22 automations)
  11. Lovelace ๐Ÿ‘จโ€๐Ÿ’ป (1 automations)
  12. Mailbox ๐Ÿ“ซ๐Ÿ“ฃ (1 automations)
  13. Media player ๐Ÿ”ˆ๐Ÿ“บ (7 automations)
  14. Music ๐ŸŽต (2 automations)
  15. Notifications ๐Ÿ”” (3 automations)
  16. Plant ๐ŸŒฑ (3 automations)
  17. Security ๐Ÿ‘ฎ๐Ÿšจ (5 automations)
  18. Night mode ๐ŸŒ•๐ŸŒ‘ (6 automations)
  19. System ๐Ÿ–ฅ (6 automations)
  20. Vacation mode ๐Ÿ (4 automations)
  21. Vacuum ๐Ÿงน (5 automations)
  22. Work ๐Ÿ’ผ (3 automations)

โš ๏ธ Total number of automations: 109 โš ๏ธ

Adaptive lighting ๐ŸŒ„๐ŸŒ‡

Turn on and off switches

which uses:

Reset manual_control after 1 hour

Notify manual_control

^ toc

Alarm clock โฐ

Wake up with Spotify and light

which uses:

^ toc

Apple Watch โŒš

Play or pause the TV

Minimal lights bedroom

Fix TV sound

which uses:

Go to sleep

which uses:

Set sleep mode

which uses:

Set lights

which uses:

Temperature report

Portfolio value

Send vacuum cleaner

which uses:

Movie time

Reset adaptive lighting

which uses:

Set temperature

Where is other person?

^ toc

Arriving ๐Ÿ‘ž

Switch music from iPhone to speakers if no one is home

which uses:

^ toc

Bike ๐Ÿšฒ

Started charging

which uses:

Stop charging

which uses:

^ toc

Climate ๐Ÿ”ฅ๐Ÿฅถ

Turn on the heating in the morning

which uses:

Turn on the heating when going home

which uses:

Turn off the heating at 22:00

which uses:

Set outside temperature every hour

Set temperature setpoint to 50 ยฐC

Automatically turn off spaceheater when no-one is in the guest room

which uses:

^ toc

Control switches ๐ŸŽ›

Living room Philips Hue dimmer switch

which uses:

Bedroom Philips Hue dimmer switch

which uses:

Bedroom IKEA dimmer switch

which uses:

Guest room IKEA Switch

Guest room light

Guest room space heater

Baby room light

which uses:

Reset baby room light button kill switch

which uses:

Mid room changing table light

which uses:

^ toc

Frontend ๐Ÿ‘จโ€๐Ÿ’ป

Turn on dark mode

which uses:

Turn on light mode

which uses:

Change theme

which uses:

^ toc

Leaving ๐Ÿ‘ž

Automatically turn off everything

which uses:

Ask to turn off everything

which uses:

Turn off everything after notification

which uses:

^ toc

Light ๐Ÿ’ก

Turn on living room

which uses:

Turn off living room

which uses:

Toggle dinner area lights

which uses:

Turn off automatic dinner area lights when turning off lights after 18:00

which uses:

Reset automatic dinner area lights at 06:00

which uses:

Automatically turn on the bedroom

which uses:

Automatically turn off the bedroom

which uses:

Turn off bedroom lights auto switch

which uses:

Turn on automatic_bedroom_lights switch

which uses:

Turn off bedroom after 2 hours of inactivity

which uses:

Update input_select when bedroom lights turned off

Set the input_select.last_script_bedroom such that colored lights will be chosen

which uses:

Turn on utility room / garage outside

which uses:

Turn off utility room / garage outside

which uses:

Turn on the outside front side of house

Turn off the outside front side of house

Toggle guest room

which uses:

Turn off living room (extra check)

In case the other automation failed

which uses:

Turn off guest room (extra check)

In case the other automation failed

which uses:

Turn off bedroom (extra check)

In case the other automation failed

which uses:

Turn off utility room / garage (extra check)

In case the other automation failed

which uses:

Update Zigbee2MQTT lights input_select options

which uses:

Update Zigbee2MQTT lights state

Refresh the state of all Zigbee2MQTT lights

which uses:

^ toc

Lovelace ๐Ÿ‘จโ€๐Ÿ’ป

Convert lovelace.json to lovelace-ui.yaml

which uses:

^ toc

Mailbox ๐Ÿ“ซ๐Ÿ“ฃ

The mailbox was opened

In the UI show the input_boolean.mailbox_full. It needs to be manually switched off after getting the mail."

which uses:

^ toc

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

Automatically turn off TV and Xbox after two hours of inactivity

Turn on living room TV with WakeOnLan

^ toc

Music ๐ŸŽต

Start playlist

which uses:

Switch music from iPhone to speakers if coming home

which uses:

^ toc

Notifications ๐Ÿ””

Marcella leaving work

Front door has opened

which uses:

Daily new word notification

^ toc

Plant ๐ŸŒฑ

Problem with Calathea

which uses:

Problem with Monstera

which uses:

Problem with Peace lily

which uses:

^ toc

Security ๐Ÿ‘ฎ๐Ÿšจ

Motion detected but we are not home

which uses:

Front door has been open for more than 5 minutes

Utility room door has been open for more than 5 minutes

Activity in master bedroom

which uses:

Door to outside open

which uses:

^ toc

Night mode ๐ŸŒ•๐ŸŒ‘

Automatically turn off when alarm turns off or at 7AM

which uses:

Automatically turn off sleeping mode at 11AM

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:

Set sleeping mode in the living room

Set the living room lights to sleep mode only when no-one is there anymore.

which uses:

^ toc

System ๐Ÿ–ฅ

Warning about high CPU usage

Run chores

Run shell and Python scripts in utils folder.

which uses:

Battery level low

Warning about low disk space

Critical disk space

Backups are stale

^ toc

Vacation mode ๐Ÿ

Auto turn on

which uses:

Auto turn off

which uses:

Lower high temperature

which uses:

Restore high temperature

which uses:

^ toc

Vacuum ๐Ÿงน

Started cleaning

which uses:

Stopped cleaning

which uses:

Reminder notification

which uses:

Cleanup if nobody is home

which uses:

Reset cleaned today

which uses:

^ toc

Work ๐Ÿ’ผ

Go home notification

which uses:

Reset input_boolean at midnight

which uses:

Bas left work notification for Marcella

^ toc

appdaemon
automation
config
home-assistant
home-assistant-config
home-automation
internet-of-things
iot
lovelace
lovelace-ui
philips-hue
yaml

basnijholt/home-assistant-config

Home Assistant config files, rewritten to use the latest features, 100+ documented automations, automatically generated ToC ๐Ÿ  ๐Ÿค–

JavaScript

1,967

2,783 commits

updated Oct 8, 2026

See the code

README

Bas Nijholt's Home Assistant config files

GitHub stars GitHub last commit HA Version HA Community Yaml Lint

Lovelace UI MacBook touchbar

Using my iOS Light and Dark Mode Themes.

See also my guide for my girlfriend โค๏ธ.

Table of content

Noteworthy (useful) automations

See all my automations and its dependencies down the page!

My cool AppDaemon apps

(Sorted from new to old)

Ideas?

  • Notify us when the window is open and it is raining.
  • Add budget keeper using the Bunq API

My devices

Switches ๐ŸŽšUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
TP-Link HS110135.8435.84
Xiaomi Aqara Magic Cube111.0811.08
Xiaomi Aqara Single Button414.3557.38
Philips Hue Dimmer switch216.6133.22
Totalย ย 137.52
ย ย ย ย 
Sensors ๐ŸŒกUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
Xiaomi Aqara Door Sensor48.1832.71
Xiaomi Aqara Temperature Sensor59.1545.74
Xiaomi Aqara Motion Sensor109.7997.85
Xiaomi Aqara Vibration Sensor111.5911.59
Xiaomi Mi Flora315.5446.63
Totalย ย 234.52
ย ย ย ย 
Vacuum ๐ŸงนUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
Xiaomi Mi Roborock S51294.31294.31
Totalย ย 294.31
ย ย ย ย 
Media player ๐Ÿ“บ๐Ÿ”ˆUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
KEF LS50 Wireless speakers1nannan
KEF LSX speakers1nannan
LG OLED 55 C91nannan
ย ย ย ย 
Lights ๐Ÿ’กUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
Philips Hue E27 White and Color1222.22266.7
Philips Hue E14 White and Color234.8869.77
Philips Hue GU10 Ambient White518.5492.7
Philips Hue Go157.0557.05
Philips Hue LED strip 2m243.286.39
Philips Hue LED strip 1m113.8413.84
Totalย ย 586.45
ย ย ย ย 
Hubs ๐ŸŒŽUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
ConBee II139.9539.95
Totalย ย 39.95
ย ย ย ย 
Server ๐Ÿ–ฅUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
Intel NUC Kit NUC8i3BEH1278.3278.3
8 GB Crucial CT8G4SFS824A DDR4225.5251.04
Samsung 970 EVO M.2 500GB194.9994.99
Raspberry Pi 4, 4GB RAM (connected to power/gas meter and connected over MQTT to main HA instance)170.970.9
Raspberry Pi 4 FLIRC Case125.8525.85
SanDisk Ultra microSDHC Memory Card 32GB16.996.99
Totalย ย 528.07
ย ย ย ย 
Device tracker ๐Ÿ”Units (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
iPhone X with the iOS app1nannan
iPhone SE2 with the iOS app1nannan
ย ย ย ย 
OtherUnits (#)Price per unit (โ‚ฌ)Price (โ‚ฌ)
PlayStation Eye Webcam and Microphone array114.9514.95
DSMR - Slimme Meter kabel119.9519.95
Nodo-Shop โ€“ OpenTherm Gateway (OTGW) with NodeMCU148.8148.81
Totalย ย 83.71
ย ย ย ย 
Totalโ‚ฌ1904.53

Supervisor add-ons

I run a Supervised install with the following add-ons:

Automations - Table of Content

  1. Adaptive lighting ๐ŸŒ„๐ŸŒ‡ (3 automations)
  2. Alarm clock โฐ (1 automations)
  3. Apple Watch โŒš (13 automations)
  4. Arriving ๐Ÿ‘ž (1 automations)
  5. Bike ๐Ÿšฒ (2 automations)
  6. Climate ๐Ÿ”ฅ๐Ÿฅถ (6 automations)
  7. Control switches ๐ŸŽ› (9 automations)
  8. Frontend ๐Ÿ‘จโ€๐Ÿ’ป (3 automations)
  9. Leaving ๐Ÿ‘ž (3 automations)
  10. Light ๐Ÿ’ก (22 automations)
  11. Lovelace ๐Ÿ‘จโ€๐Ÿ’ป (1 automations)
  12. Mailbox ๐Ÿ“ซ๐Ÿ“ฃ (1 automations)
  13. Media player ๐Ÿ”ˆ๐Ÿ“บ (7 automations)
  14. Music ๐ŸŽต (2 automations)
  15. Notifications ๐Ÿ”” (3 automations)
  16. Plant ๐ŸŒฑ (3 automations)
  17. Security ๐Ÿ‘ฎ๐Ÿšจ (5 automations)
  18. Night mode ๐ŸŒ•๐ŸŒ‘ (6 automations)
  19. System ๐Ÿ–ฅ (6 automations)
  20. Vacation mode ๐Ÿ (4 automations)
  21. Vacuum ๐Ÿงน (5 automations)
  22. Work ๐Ÿ’ผ (3 automations)

โš ๏ธ Total number of automations: 109 โš ๏ธ

Adaptive lighting ๐ŸŒ„๐ŸŒ‡

Turn on and off switches

which uses:

Reset manual_control after 1 hour

Notify manual_control

^ toc

Alarm clock โฐ

Wake up with Spotify and light

which uses:

^ toc

Apple Watch โŒš

Play or pause the TV

Minimal lights bedroom

Fix TV sound

which uses:

Go to sleep

which uses:

Set sleep mode

which uses:

Set lights

which uses:

Temperature report

Portfolio value

Send vacuum cleaner

which uses:

Movie time

Reset adaptive lighting

which uses:

Set temperature

Where is other person?

^ toc

Arriving ๐Ÿ‘ž

Switch music from iPhone to speakers if no one is home

which uses:

^ toc

Bike ๐Ÿšฒ

Started charging

which uses:

Stop charging

which uses:

^ toc

Climate ๐Ÿ”ฅ๐Ÿฅถ

Turn on the heating in the morning

which uses:

Turn on the heating when going home

which uses:

Turn off the heating at 22:00

which uses:

Set outside temperature every hour

Set temperature setpoint to 50 ยฐC

Automatically turn off spaceheater when no-one is in the guest room

which uses:

^ toc

Control switches ๐ŸŽ›

Living room Philips Hue dimmer switch

which uses:

Bedroom Philips Hue dimmer switch

which uses:

Bedroom IKEA dimmer switch

which uses:

Guest room IKEA Switch

Guest room light

Guest room space heater

Baby room light

which uses:

Reset baby room light button kill switch

which uses:

Mid room changing table light

which uses:

^ toc

Frontend ๐Ÿ‘จโ€๐Ÿ’ป

Turn on dark mode

which uses:

Turn on light mode

which uses:

Change theme

which uses:

^ toc

Leaving ๐Ÿ‘ž

Automatically turn off everything

which uses:

Ask to turn off everything

which uses:

Turn off everything after notification

which uses:

^ toc

Light ๐Ÿ’ก

Turn on living room

which uses:

Turn off living room

which uses:

Toggle dinner area lights

which uses:

Turn off automatic dinner area lights when turning off lights after 18:00

which uses:

Reset automatic dinner area lights at 06:00

which uses:

Automatically turn on the bedroom

which uses:

Automatically turn off the bedroom

which uses:

Turn off bedroom lights auto switch

which uses:

Turn on automatic_bedroom_lights switch

which uses:

Turn off bedroom after 2 hours of inactivity

which uses:

Update input_select when bedroom lights turned off

Set the input_select.last_script_bedroom such that colored lights will be chosen

which uses:

Turn on utility room / garage outside

which uses:

Turn off utility room / garage outside

which uses:

Turn on the outside front side of house

Turn off the outside front side of house

Toggle guest room

which uses:

Turn off living room (extra check)

In case the other automation failed

which uses:

Turn off guest room (extra check)

In case the other automation failed

which uses:

Turn off bedroom (extra check)

In case the other automation failed

which uses:

Turn off utility room / garage (extra check)

In case the other automation failed

which uses:

Update Zigbee2MQTT lights input_select options

which uses:

Update Zigbee2MQTT lights state

Refresh the state of all Zigbee2MQTT lights

which uses:

^ toc

Lovelace ๐Ÿ‘จโ€๐Ÿ’ป

Convert lovelace.json to lovelace-ui.yaml

which uses:

^ toc

Mailbox ๐Ÿ“ซ๐Ÿ“ฃ

The mailbox was opened

In the UI show the input_boolean.mailbox_full. It needs to be manually switched off after getting the mail."

which uses:

^ toc

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

Automatically turn off TV and Xbox after two hours of inactivity

Turn on living room TV with WakeOnLan

^ toc

Music ๐ŸŽต

Start playlist

which uses:

Switch music from iPhone to speakers if coming home

which uses:

^ toc

Notifications ๐Ÿ””

Marcella leaving work

Front door has opened

which uses:

Daily new word notification

^ toc

Plant ๐ŸŒฑ

Problem with Calathea

which uses:

Problem with Monstera

which uses:

Problem with Peace lily

which uses:

^ toc

Security ๐Ÿ‘ฎ๐Ÿšจ

Motion detected but we are not home

which uses:

Front door has been open for more than 5 minutes

Utility room door has been open for more than 5 minutes

Activity in master bedroom

which uses:

Door to outside open

which uses:

^ toc

Night mode ๐ŸŒ•๐ŸŒ‘

Automatically turn off when alarm turns off or at 7AM

which uses:

Automatically turn off sleeping mode at 11AM

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:

Set sleeping mode in the living room

Set the living room lights to sleep mode only when no-one is there anymore.

which uses:

^ toc

System ๐Ÿ–ฅ

Warning about high CPU usage

Run chores

Run shell and Python scripts in utils folder.

which uses:

Battery level low

Warning about low disk space

Critical disk space

Backups are stale

^ toc

Vacation mode ๐Ÿ

Auto turn on

which uses:

Auto turn off

which uses:

Lower high temperature

which uses:

Restore high temperature

which uses:

^ toc

Vacuum ๐Ÿงน

Started cleaning

which uses:

Stopped cleaning

which uses:

Reminder notification

which uses:

Cleanup if nobody is home

which uses:

Reset cleaned today

which uses:

^ toc

Work ๐Ÿ’ผ

Go home notification

which uses:

Reset input_boolean at midnight

which uses:

Bas left work notification for Marcella

^ toc

appdaemon
automation
config
home-assistant
home-assistant-config
home-automation
internet-of-things
iot
lovelace
lovelace-ui
philips-hue
yaml

Significant stargazers

J. Nick Koston

2,191 followers ยท starred Jan 2020

Andrea Luzzardi

448 followers ยท starred Jun 2022

Denys Dovhan

2,999 followers ยท starred Mar 2024

Raman Gupta

42 followers ยท starred Jan 2020