Skip to content

๐Ÿ  My Home Assistant configuration

License

Notifications You must be signed in to change notification settings

troinine/hass-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

My Home Assistant configuration

Introduction

My home assistant journey started roughly 2018 but was not very active for the first two years. I was happy with the default lovelace UI for a while until I started to notice projects that took completely different approach on designing their dashboards.

Significant inspiration started when I came across UI-Lovelace-Minimalist project and further studied @matt8707's great design!

After learning how to use the brilliant and very flexible button-card by @RomRider I came up with my current design for tablet and mobile. Yes, this design is heavily based on the button-card. Maybe I went a bit too deep with it...

Hope you enjoy and find things useful in this repo! โญ

Setup

Home Assistant runs on Docker on a Synology NAS. Users access Home Assistant through the Companion App on their mobile. In addition, the house has table mounted 10.5" Samsung Galaxy Tab A8.

Configuration is performed mostly using YAML.

The following custom cards are extensively used throughout the dashboards:

Community cards are managed and installed via HACS. In addition I have create the following cards for my own use as I couldn't find one that would suit my needs:

Designs

Mobile

The main principle on mobile is to avoid putting too much content in to a single page and avoid scrolling if possible. This is achieved by splitting the content into multiple views. As the typical navigation bar in Lovelace is on the top and is not that customizable, I ended up creating a bottom navigation bar component with a button card template.

There are currently four main views:

Home Lights Devices Notifications
home lights devices notifications

Bottom navigation shows some badges that are related to that specific view. For example, the number of lights that are on and active notification count. Clicking notifications will show relevant content such as weather report or take the user to the vacuum popup.

Most cards also open a popup to show details. Here are few examples.

Air quality Lights Vacuum Remote
Air quality Lights Vacuum Remote

Popups often implement a swipable multi-panel content using swipe-card rather than scrollable content.

Tablet

Tablet

Tablet design is mostly inspired by @matt8707's tablet dashboard but mostly all button-card templates are built from scratch for my needs. The tablet is sitting on a table stand in the entrance of the house. Easy accessibility makes it very convenient for kids to adjust their lights for example.

The tablet dashboards consists of a single view with many popups opening from titles and from cards. Here are few examples:

Air quality Devices Devices User
Heating Light Weather Users

Features

Sidebar, notifications and clock

  • Fancy sidebar clock with date, time, current weather condition and outdoor temperature
  • Conditional notifications such as doors open, precipitation, Home Assistant and Synology updates etc.

Few notifications that can be visible on the sidebar and mobile notification view:

  • Heat pump alarm
  • Doors open
  • High CO2
  • High and low indoor humidity
  • High radon levels
  • Garage dehumidifier on
  • Current and today's precipitation
  • Vacation mode on
  • Synology security state warning
  • Synology update available
  • Home Assistant update available
  • Vacuuming state
  • Time to vacuum
  • Vacuum dustbin is full
  • Washing machine is on
  • Tumble dryer is on

Custom button cards

I have created few button card templates for my own needs. To mention few:

  • Generic info card with extra entity
  • Generic sensor card
  • Graph sensor card (graph displayed with mini-graph-card)
  • Sidebar clock with date, time and weather
  • Light card with a slider
  • User card with device tracker and battery statuses
  • Notification card that is used in the sidebar
  • Vacuum card with buttons to control the robot vacuum
  • Media card with buttons to control the media player
  • Conditional card which allows flexible way of conditionally showing or hiding a card

All cards try to incorporate similar design. Icons can glow based on the state and the light card has a glowing box shadow when the respective light is on.

Clock

Clock is a button card template that show the current date, time, temperature, and weather

Clock

The tap action on the weather shows the following popup which uses weather-chart-card and an apexchart of outdoor temperature:

Weather

Automations

In addition to basic lights on / off based on movement. There are few automations that I use

  • Wake up tablet and increase light brightness when movement is detected in the hallway
  • Notify mobile app if the garage dehumidifier's bucket is full
  • Turn hallway lights on when garage door is opened (arrive home)
  • Start vacuuming when leaving home if it hasn't been done for few days
  • Notify mobile app if the ground source heat pump reports an alarm
  • Notify mobile app when Radon levels are increasing
  • Notify mobile app when vacuum is started and completed
  • Notify mobile app when laundry is done

Hardware and software

The following table contains some of the hardware and software I use with Home Assistant

Product Integration Description
Airthings Wave Plus MQTT Two Airthings Wave Plus sensors measuring temperature, humidity, CO2, VOC and Radon
Philips Hue Philips Hue Philips Hue Bridge with light strips, bulbs, motion sensors, dimmer switches
Synology DiskStation DS220+ Synology DSM NAS which runs Home Assistant and bunch of other services for my needs
Ruuvi MQTT A bunch of RuuviTags. I have a custom-built software that reads data from these tags
Raspberry Pi Zero MQTT Provides near real-time data from the ground source heat pump. Reads data from RuuviTags. Is equipped with Readbear's IOT pHAT for Wifi and BT connectivity.
Nibe 1226 NEW 8kW MQTT Ground source heat pump providing heating and cooling to the house
Sony Playstation 5 CLI Only PS5 status is currently retrieved via CLI
Samsung TV Samsung Smart TV Samsung Q90 Series Smart TV
Nokia Streaming Box 8000 Android TV Nokia Streaming Box to make one of my dummy TVs smart
Yale Doorman Verisure Smart locks securing the house doors
TP-Link Kasa Smart plugs TP-Link Kasa Smart Few HS100 and HS110 smart plugs controlling specific devices such as garage dehumidifier and water circulation
Roborock S6 Pure Xiaomi Mi Robot vacuum which can be controlled via HA, including cleaning of specific rooms. Live map is also available
Logitech Harmony Remote Logitech Harmony Hub Logitech Harmony remote for controlling living room media devices
Miele Washing Machine and Tumble Dryer custom Home Assistant support for Miele@home connected appliances
UniFi Dream Machine Unifi Network, command_line Unifi Dream Machine router and Wifi

In addition to hardware I use a collection of OSS to feed data to Home Assistant:

Software Description
ruuvi-mqtt-data-publisher A forked version of Scrin/RuuviCollector that reads data from RuuviTags and publishes it to an MQTT Broker
airthings-waveplus-mqtt-data-publisher Reads data from Airthings Wave Plus sensors and publishes it to an MQTT broker
Eclipse Mosquitto Receives data from various MQTT clients and is observed by Home Assistant
Nibe heat pump MQTT data publisher Custom-built app that reads Nibe heat pump logs through an USB OTG mass-storage emulation and publishes the data to an MQTT broker
Scrapy Custom web site scraper that obtains electricity consumption from Helen and sends the data to an MQTT broker

License

This repo is MIT Licensed