/home-assistant-config

My Home Assistant config files and AppDaemon apps :house: :robot:

Primary LanguageJavaScriptMIT LicenseMIT

Bas Nijholt's Home Assistant config files

Yaml Lint

Lovelace UI

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!

My cool AppDaemon apps

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

  1. Alarm clock โฐ (1 automations)
  2. Apple Watch โŒš๏ธ (1 automations)
  3. Arriving ๐Ÿ‘ž (1 automations)
  4. Climate ๐Ÿ”ฅ๐Ÿฅถ (5 automations)
  5. Control switches ๐ŸŽ› (6 automations)
  6. Cube โˆ› (2 automations)
  7. Doorbell ๐Ÿšช๐Ÿ”” (1 automations)
  8. Frontend ๐Ÿ‘จโ€๐Ÿ’ป (3 automations)
  9. KEF DSP ๐Ÿ”ˆ๐ŸŽ› (12 automations)
  10. Leaving ๐Ÿ‘ž (3 automations)
  11. Light ๐Ÿ’ก (16 automations)
  12. Lovelace ๐Ÿ‘จโ€๐Ÿ’ป (1 automations)
  13. LSX ๐Ÿ”ˆ (2 automations)
  14. Media player ๐Ÿ”ˆ๐Ÿ“บ (5 automations)
  15. Music ๐ŸŽต (2 automations)
  16. Plant โ˜˜๏ธ (3 automations)
  17. Security ๐Ÿ‘ฎโ€โ™‚๏ธ๐Ÿšจ (4 automations)
  18. Night mode ๐ŸŒ•๐ŸŒ‘ (4 automations)
  19. System ๐Ÿ–ฅ (7 automations)
  20. Utilities ๐Ÿงบ๐Ÿ‘š๐Ÿฝ (4 automations)
  21. Vacation mode ๐Ÿ (2 automations)
  22. Vacuum ๐Ÿงน (6 automations)
  23. Work ๐Ÿ’ผ (3 automations)

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

Alarm clock โฐ

Wake up with Spotify and light

which uses:

^ toc

Apple Watch โŒš๏ธ

Play or Pause the TV

^ toc

Arriving ๐Ÿ‘ž

Switch music from iPhone to speakers if no one is home

which uses:

^ toc

Climate ๐Ÿ”ฅ๐Ÿฅถ

Turn on the heating 30 min before waking up

which uses:

Turn on the heating when going home

which uses:

Turn off the heating at 22:00

which uses:

Turn on heating again after notification

which uses:

Set outside temperature every hour

^ toc

Control switches ๐ŸŽ›

Living room Philips Hue dimmer switch

which uses:

Bedroom Philips Hue dimmer switch

which uses:

Living room Aqara Wireless Mini Switch

which uses:

Bedroom Aqara Wireless Mini Switch

which uses:

Bathroom Aqara Wireless Mini Switch

which uses:

Downstairs Aqara Wireless Mini Switch

which uses:

^ toc

Cube โˆ›

Perform operation

which uses:

Rotate the cube

which uses:

^ toc

Doorbell ๐Ÿšช๐Ÿ””

Click the button

^ toc

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

Turn on dark mode

which uses:

Turn on light mode

which uses:

Change theme

which uses:

^ toc

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:

^ toc

Leaving ๐Ÿ‘ž

Automatically turn off everything

which uses:

Ask to turn off everything

which uses:

Turn off everything after notification

which uses:

^ toc

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:

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 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:

^ toc

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

Convert lovelace.json to lovelace-ui.yaml

which uses:

^ toc

LSX ๐Ÿ”ˆ

Sync volume

which uses:

Sync source

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

^ toc

Music ๐ŸŽต

Start playlist

which uses:

Switch music from iPhone to speakers if coming home

which uses:

^ toc

Plant โ˜˜๏ธ

Problem with Ficus microcarpa Ginseng

which uses:

Problem with Kentia Palm

which uses:

Problem with Yucca Elephantipes

which uses:

^ toc

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:

^ toc

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:

^ toc

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

^ toc

Utilities ๐Ÿงบ๐Ÿ‘š๐Ÿฝ

Washing machine has started

which uses:

Washing machine is done

which uses:

Dishwasher is done

which uses:

Dishwasher has started

which uses:

^ toc

Vacation mode ๐Ÿ

Auto turn on

which uses:

Auto turn off

which uses:

^ toc

Vacuum ๐Ÿงน

Started cleaning

Stopped cleaning

which uses:

Reminder notification

which uses:

Cleanup if nobody is home

which uses:

Reset cleaned today

which uses:

Reset to standard mode

^ toc

Work ๐Ÿ’ผ

Go home notification

which uses:

Reset input_boolean at midnight

which uses:

Bas left work notification for Marcella

^ toc