• Stars
    star
    1,445
  • Rank 32,572 (Top 0.7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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

Popular Reddit posts of features in this config

(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 โŒš (12 automations)
  4. Arriving ๐Ÿ‘ž (1 automations)
  5. Bike ๐Ÿšฒ (2 automations)
  6. Climate ๐Ÿ”ฅ๐Ÿฅถ (7 automations)
  7. Control switches ๐ŸŽ› (8 automations)
  8. Cube โˆ› (2 automations)
  9. Doorbell ๐Ÿšช๐Ÿ”” (1 automations)
  10. Frontend ๐Ÿ‘จโ€๐Ÿ’ป (3 automations)
  11. Leaving ๐Ÿ‘ž (4 automations)
  12. Light ๐Ÿ’ก (29 automations)
  13. Lovelace ๐Ÿ‘จโ€๐Ÿ’ป (1 automations)
  14. Mailbox ๐Ÿ“ซ๐Ÿ“ฃ (1 automations)
  15. Media player ๐Ÿ”ˆ๐Ÿ“บ (7 automations)
  16. Music ๐ŸŽต (2 automations)
  17. Notifications ๐Ÿ”” (2 automations)
  18. Plant ๐ŸŒฑ (3 automations)
  19. Security ๐Ÿ‘ฎ๐Ÿšจ (6 automations)
  20. Night mode ๐ŸŒ•๐ŸŒ‘ (5 automations)
  21. System ๐Ÿ–ฅ (7 automations)
  22. Test ๐Ÿงช (5 automations)
  23. Utilities ๐Ÿงบ๐Ÿ‘š๐Ÿฝ (3 automations)
  24. Vacation mode ๐Ÿ (2 automations)
  25. Vacuum ๐Ÿงน (6 automations)
  26. Work ๐Ÿ’ผ (3 automations)

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

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:

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

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

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

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:

Toggle guest room

which uses:

Toggle baby room

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 arrived at Rotterdam Centraal

Front door has opened

which uses:

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

Door to outside open

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:

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.

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

Test ๐Ÿงช

Listen to Adaptive Lighting events

Time

Flash lights

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:

^ 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

More Repositories

1

adaptive-lighting

Adaptive Lighting custom component for Home Assistant
Python
1,790
star
2

lovelace-ios-themes

โค๏ธ๐Ÿ“ฑ๐Ÿ ๐Ÿค– Themes inspired by iOS Dark โฌ›๏ธ and Light โ—ป๏ธ Mode for Lovelace Home Assistant with different backgrounds by @basnijholt
Jinja
426
star
3

lovelace-ios-dark-mode-theme

๐Ÿ ๐Ÿค– Theme by @basnijholt based on iOS Dark Mode for Lovelace Home Assistant
410
star
4

home-assistant-streamdeck-yaml

Control Home Assistant on Stream Deck with support on all operating systems and configuration via YAML
Python
106
star
5

home-assistant-macbook-touch-bar

Displaying Home Assistant sensors in the Macbook Pro's touch bar using BTT ๐Ÿค–๐Ÿ’ป
Python
92
star
6

markdown-code-runner

Automatically execute code blocks within a Markdown file and update the output in-place
Python
53
star
7

home-assistant-streamdeck-yaml-addon

Home Assistant Stream Deck YAML Add-on ๐ŸŽฎ
Shell
42
star
8

aiokef

Asyncio Python API for KEF speakers ๐Ÿ”ˆ
Python
28
star
9

adaptive-scheduler

Run many functions (adaptively) on many cores (>10k-100k) using mpi4py.futures, ipyparallel, loky, or dask-mpi. ๐ŸŽ‰
Python
26
star
10

thesis-cover

Parametrically designing my PhD thesis cover using adaptive sampling, neural networks, and quantum physics
Jupyter Notebook
25
star
11

instacron

๐Ÿ“ธ Instagram for the lazy - automatically upload a photo to Instagram
Python
20
star
12

addon-otmonitor

OpenTherm Monitor Home Assistant supervisor add-on
HTML
15
star
13

thesis

๐ŸŽ“ Ph.D. thesis: Towards realistic numerical simulations of Majorana devices
TeX
11
star
14

net-worth-tracker

Blockfolio/Delta without manual labor
Python
9
star
15

molecular-dynamics-Python

2016: Molecular dynamics simulation of an Argon gas
Jupyter Notebook
9
star
16

lovelace-ios-light-mode-theme

๐Ÿ ๐Ÿค– Theme based on iOS Light Mode for Lovelace Home Assistant
9
star
17

pfapack

Efficient numerical computation of the Pfaffian for dense and banded skew-symmetric matrices
Python
8
star
18

variational-quantum-monte-carlo

2014: Variational Monte Carlo for the harmonic oscillator, helium, hydrogen and H2 - IPython notebook and FORTRAN90
Jupyter Notebook
8
star
19

yaml2bib

๐Ÿ“– Convert a yaml file to bib file with the correct journal abbreviations.
Python
7
star
20

ipynb_git_filters

๐Ÿค– Clean your notebook outputs with every commit!
Python
7
star
21

spin-orbit-nanowires

๐Ÿ“œ Code for Spin-Orbit Protection of Induced Superconductivity in Majorana Nanowires (10.1103/PhysRevLett.122.187702)
Python
6
star
22

psychedelic-data-science

๐Ÿ„ crawling user experience data from erowid.org
Jupyter Notebook
6
star
23

media_player.kef

๐Ÿ ๐Ÿ”ˆ Home Assistant integration for KEF LS50 Wireless and LSX speakers
Python
5
star
24

hpc05

๐Ÿ–ฅ ipyparallel.Client package for a PBS or SLURM cluster with a headnode
Python
5
star
25

calendar-of-life

Inspired by Kurzgesagt and Tim Urban
Python
5
star
26

orbitalfield

๐Ÿ“ƒ Code for Phys. Rev. B 93, 235434, (2016): Orbital effect of magnetic field on the Majorana phase diagram
Python
5
star
27

kopen-of-huren

Huis kopen of huren? Wat levert meer op?
Jupyter Notebook
5
star
28

pipefunc

Lightweight function pipeline creation: ๐Ÿ“š Less Bookkeeping, ๐ŸŽฏ More Doing
Python
4
star
29

mumpy

Python bindings for the MUMPS package MUMPS: a parallel sparse direct solver
Python
4
star
30

slurm-usage

๐Ÿ–ฅ Command to list the current cluster usage per user
Python
4
star
31

nijho.lt

๐Ÿ–ฅ๐ŸŒ my personal website
HTML
4
star
32

codestructure

A command line program to print the function signatures
Python
4
star
33

nanowire-bandstructures

Bandstructures for 1D, 2D, and 3D proximity coupled semiconducting nanowires
Python
3
star
34

rsync-time-machine.py

Time Machine-style backups using rsync
Python
3
star
35

arxiv-feed-mailer

Daily e-mail with filtered new arXiv entries using Gmail API ๐Ÿ“ƒ
Python
3
star
36

molecular-dynamics-FORTRAN

2014: Molecular Dynamics Simulation of a Argon gas - FORTRAN90
TeX
2
star
37

majorana-nanowire-conductance

Simulate a 1D nanowire and plot the conductance and band structure
Jupyter Notebook
2
star
38

revtex-markdown-paper

Write a REVTeX paper in Markdown
TeX
2
star
39

basnijholt

Hi, welcome to my profile!
Python
2
star
40

Markov-chain-Monte-Carlo-polymer-growth

2014: Grow polymers with the rosenbluth algorithm - IPython notebook
Jupyter Notebook
2
star
41

supercurrent-majorana-nanowire

Jupyter Notebook
1
star
42

Schrodinger-time-evolution

2014: The time evolution of different waves, solved with the split-operator method and the Crank-Nicolson - IPython notebook
Jupyter Notebook
1
star
43

kwant-conda-recipes

Shell
1
star
44

qcodes-repr

View your qcodes database experiments at a glance
Python
1
star
45

conda-recipes

Conda recipes for kwant and related packages, a quantum transport simulations package
Shell
1
star