Voltar ao ranking

basnijholt/home-assistant-config

JavaScript

Home Assistant config files, rewritten to use the latest features, 100+ documented automations, automatically generated ToC :house: :robot:

home-assistanthome-assistant-configyamlappdaemonautomationhome-automationconfigphilips-hueiotinternet-of-thingslovelacelovelace-ui
Crescimento de estrelas
Estrelas
2k
Forks
182
Crescimento semanal
Issues
19
5001k1.5k
nov. de 2019jan. de 2022abr. de 2024jul. de 2026
Artefatosnpmnpm install home-assistant-config
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 HS110 1 35.84 35.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     137.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 10 9.79 97.85
Xiaomi Aqara Vibration Sensor 1 11.59 11.59
Xiaomi Mi Flora 3 15.54 46.63
Total     234.52
       
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 €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 🔥🥶 (7 automations)
  7. Control switches 🎛 (12 automations)
  8. Cube ∛ (2 automations)
  9. Doorbell 🚪🔔 (1 automations)
  10. Frontend 👨‍💻 (3 automations)
  11. Leaving 👞 (4 automations)
  12. Light 💡 (34 automations)
  13. Lovelace 👨‍💻 (1 automations)
  14. Mailbox 📫📣 (1 automations)
  15. Media player 🔈📺 (7 automations)
  16. Music 🎵 (2 automations)
  17. Notifications 🔔 (3 automations)
  18. Plant 🌱 (3 automations)
  19. Security 👮🚨 (7 automations)
  20. Night mode 🌕🌑 (6 automations)
  21. System 🖥 (7 automations)
  22. Test 🧪 (5 automations)
  23. Utilities 🧺👚🍽 (3 automations)
  24. Vacation mode 🏝 (4 automations)
  25. Vacuum 🧹 (6 automations)
  26. Work 💼 (3 automations)

⚠️ Total number of automations: 141 ⚠️

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

Warning when heating on and living room door open

which uses:

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:

Living room Aqara Wireless Mini Switch

which uses:

Bedroom Aqara Wireless Mini Switch

which uses:

Bathroom Aqara Wireless Mini Switch

Door Aqara Wireless Mini Switch

which uses:

Guest room IKEA Switch

Guest Room Light

Guest Room Space heater

Baby Room Light

Mid Room Changing Table Light

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

Leaving 👞

Automatically turn off everything

which uses:

Ask to turn off everything

which uses:

Turn off everything after notification

which uses:

Downstairs Aqara Wireless Mini Switch

which uses:

^ toc

Light 💡

Turn on living room

which uses:

Turn off living room

which uses:

Turn on Chrismas tree

which uses:

Turn off Chrismas tree

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:

Turn on kitchen counter if sleep mode is off

which uses:

Turn off kitchen counter

which uses:

Reboot kitchen ceiling Shelly

which uses:

Turn on bathroom

which uses:

Turn off bathroom

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 bedroom after 2 hours of inactivity

which uses:

Reboot bedroom ceiling Shelly

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:

Toggle baby 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 baby 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

No one is home but high power usage

which uses:

Bathroom door has opened

which uses:

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

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.

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.

which uses:

Battery level low

^ toc

Test 🧪

Listen to Adaptive Lighting events

Time

which uses:

Flash lights

which uses:

Call update_entity after light.turn_on/turn_off

Light Baby Room Loop

^ toc

Utilities 🧺👚🍽

Washing machine or dishwasher started or finished

which uses:

Washing machine notification

which uses:

Dishwasher notification

which uses:

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

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

Repositórios relacionados
ruvnet/RuView

π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.

Rustcrates.ioMIT Licensedenseposewifi
cognitum.one/RuView
82.8k11.1k
blakeblackshear/frigate

NVR with realtime local object detection for IP cameras

TypeScriptnpmMIT Licensertsprealtime
frigate.video
34.5k3.4k
community-scripts/ProxmoxVE

Proxmox VE Helper-Scripts (Community Edition)

ShellMIT Licensehome-assistanthome-automation
community-scripts.org
29k2.8k
mikeroyal/Self-Hosting-Guide

Self-Hosting Guide. Learn all about locally hosting (on premises & private web servers) and managing software applications by yourself or your organization. Including Cloud, LLMs, WireGuard, Automation, Home Assistant, and Networking.

Dockerfileself-hostedselfhosted
22k1.1k
XiaoMi/ha_xiaomi_home

Xiaomi Home Integration for Home Assistant

PythonPyPIOtherhome-assistant-integrationmiot-devices
21.9k1.2k
tteck/Proxmox

Proxmox VE Helper-Scripts

ShellMIT Licenseproxmoxhome-assistant
helper-scripts.com
15.2k2.5k
AlexxIT/go2rtc

Ultimate camera streaming application

GoGo ModulesMIT Licenseffmpeghassio
go2rtc.org
13.5k1.2k
esphome/esphome

ESPHome is a system to control your ESP32, ESP8266, BK72xx, RP2040 by simple yet powerful configuration files and control them remotely through Home Automation systems.

C++Otherhome-automationiot
esphome.io
11.4k5.5k
home-assistant/home-assistant.io

:blue_book: Home Assistant User documentation

HTMLOtherdocumentationjekyll
home-assistant.io
9.6k8.4k
francescopace/espectre

🛜 ESPectre 👻 - Motion detection system based on Wi-Fi spectre analysis (CSI), with Home Assistant integration.

PythonPyPIGNU General Public License v3.0csihome-assistant
espectre.dev
8.8k667
frenck/awesome-home-assistant

A curated list of amazingly awesome Home Assistant resources.

PythonPyPICreative Commons Attribution 4.0 Internationalawesomeawesome-list
awesome-ha.com
8.3k419
hacs/integration

HACS gives you a powerful UI to handle downloads of all your custom needs.

PythonPyPIMIT Licensepackage-managerhacs
hacs.xyz
7.6k1.6k