/home-assistant-config

🏠 Home Assistant Configuration & Documentation for my smart home using Node-RED for automations. Press ⭐ for notification of updates.

Primary LanguageJavaScriptMIT LicenseMIT

Home Assistant version Project Maintenance license

GitHub Activity GitHub Last Commit

GitHub Stars GitHub Watchers GitHub Forks

Buy Me A Coffee

Home Assistant - configuration and automations

This repository contains a collection of my personnal Home Assistant (HA) configuration and automations.

It may not include the full configuration needed to replicate my setup, but it does include relevant examples of my configuration and automations.

Please feel free to use and change as you like for your own HA setup.


HardwareIntegrated smart devicesAddonsLovelace dashboardsCustom componentsAutomationsLicense


Hardware

This is my current hardware setup:

  • Intel NUC i7 with 16 Gb RAM and 500 Gb SSD
    • Running Home Assistant in Proxmox VM with 2 cores, 32 Gb HDD and 4 Gb RAM allocated
  • Sonoff Zigbee 3.0 USB Dongle Plus (P version with CC2652P chipset)
  • Lenovo P11, M10 and M8 tablets for dashboard display using Fully Kiosk browser

Integrated smart devices

My current setup includes the following integrated devices:

Lights Sensors Media Other
Hue lights, remotes and buttons Hue Motion Sensors Apple TVs Roborock Q Revo robot vacuum
IKEA TRÅDFRI bulbs, plugs and remotes Aqara Door/Window sensors Marantz SR7010 AV receiver Bosch Indego 400 lawnmover
Nordtronic Zigbee Box Dimmers & Relays Aqara Multi sensors Sonos speakers Ubiquiti Unifi network equipment
Koogeek Smart plugs Netatmo Weather Station Reolink IP cameras
Innr Smart plugs VELUX Active Sensors Easee EV charging station
Shelly S Smart plugs Sonoff TH16 og DS18B20 sensors Smart-me energy meter

Addons

I use the following addons:

  • ESPHome
  • MariaDB
  • Zigbee2MQTT
  • Mosquitto broker
  • Node-RED
  • File editor
  • Visual Studio Code
  • Samba share
  • Samba Backup
  • phpMyAdmin
  • Mealie

Lovelace dashboards

I use different Lovelace dashboards:

Tablet dashboard

This dashboard is optimized for viewing on tablet with screen resolution 1280x800:

Main view

See more screenshots HERE

Smart clock radio dashboard

This dashboard is designed to replace and extend the functionality of an old clock radio. It is designed for viewing on a 8" tablet and includes four different views:

  1. Large digital clock display
  2. Set alarm timer
  3. Play music
  4. View weather information

The Swipe-card custom component is used to swipe between the clock and other views.

In addition an icon bar provides easy access to:

  • Open CCTV app
  • View and enable/disable alarm timer
  • View and control home alarm system
  • Turn off main lights
  • View/set home state

Clock radio

Mobile device dashboard

This dashboard is mainly used on mobile devices, and includes additional elements, such as a universal remote:

Universal remote

For the time being, only my tablet dashboards are included in this repository.

I prefer to maintain dashboards in YAML mode and I use !include statements to make it easier to maintain and re-use relevant parts of each dashboard.

This means that the dashboards are divided into seperate files that are located in the /include folder.

If you prefer to edit your Lovelace dashboard in UI mode, I've created a consolidated version of my tablet dashboard that can be used as a starting point. The file is called tablet_ui.yaml and includes most - but not all features - from my YAML version. However, the dashboard should be enough to get get you started.

I still highly recommend to use the YAML version if you are serious about creating a personalized dashboard. The main reasoning behind my recommendation is:

  • The YAML version allows you to use include statements to split your file into smaller and more manageable files, which makes it easier to move stuff around or exclude certain elements of the dashboards. It also allows you to reuse code across multiple views or dashboards and just maintain the code one place. This is particularly useful for the header bar that is used in each view of the dashboard

  • The YAML version also supports insertion of comments in the code. This is useful to document your code but can also be use to quickly disable parts of your code without having to delete it entirely.

Custom components

I use several custom frontend compontents that are installed via HACS:

My lovelace dashboards would simply not be possible without these custom cards. So a special shout out and million thanks goes out to all developers for their contributions to the Home Assistant community.

Automations

I mainly use node-RED for automations. HA scripts and automations are excluded from this repository.

Examples of my node-RED automations can be found HERE.

License

MIT License

Copyright (c) 2019 - present

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.