Metrology for Home Assistant
Metrology is a practical series of app customizations and redesigns aimed at bringing a bold, clear, and consistent user experience to various Windows and Android apps. Its design language is based on Metro and Fluent design systems pioneered by Microsoft Design since the 2010s.
Home Assistant is an open source home automation server that integrates nearly 2000 existing IoT services into one powerful, private, and unified user interface. It is perfect to run on a Raspberry Pi or a local server.
Here is a collection of themes, tweaks, and template buttons to make your Home Assistant look bold, modern, and clean.
Discuss this theme on Home Assistant Community or Reddit.
To check out what this theme is capable of, check out my Home Assistant config.
Table of Contents
Metro + Fluent Themes
Two styles are included in this theme:
Awesome Features
Screenshots
Device Example | Device Example | Binary Sensor Example | Binary Sensor Example |
Update Example | Update Example | Sensor Example | Sensor Example |
Settings Example | |||
How to Install the Theme
If you have HACS, you probably already know what you are doing. You can search for this theme and install it there. If you don't have HACS, here are the steps:
Prerequisites
- Some way to upload files to your HA server, e.g. Visual Studio Code or Samba add-ons
- card-mod
Installation
- If you are new to Home Assistant and its themes, you first need to add this in your configuration.yaml file:
frontend:
themes: !include_dir_merge_named themes
- Create a new folder named
themes
under/config
. - Copy
metro.yaml
to/config/themes
. - (Optional if you want Segoe UI on non-Windows devices) Copy
style.css
and the.ttf
font files in the/www
folder to/config/www
.
- If you are using the Lovelace Dashboard not in YAML mode, go to your Home Assistant Settings -> Dashboards -> Resources and then add
/local/style.css
as a Stylesheet. (Note: It might look strange that you had copied the files to/www
but here you typed/local
, but HA will handle the path redirection for you so no worries.) - If you are using it in YAML mode, add the following to your lovelace resources section:
lovelace: mode: yaml resources: - url: /local/style.css type: css
- Restart Home Assistant to apply the changes. Once restarted, go to your Profile page, which is the button where your avatar is at the bottom left.
- Under Themes, choose the color you like for the Metro themes.
- Pick Auto, Light, or Dark Mode for the theme.
Segoe UI font is optional if you are already using Windows. If you are not using Home Assistant, you can download the fonts here and upload them along with style.css to your /config/www folder.
Live Tile Templates
This is for advanced users only. If you don't know how to edit YAML, this will be rather difficult.
TBD. Includes button-card templates in the form of Live Tiles. Watch this repo for updates.
Title Card
Header Card
Live Tile
Live Tile Card
Live Tile Media Player Card
Mini Graph Card
Light Group Card
Light Slider Card
Hue Scene Card and Card Mini
How to use wider Live Tiles
CSS Variables for your custom cards
Credits
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Additionally, I would appreciate proper credits back to me if redistributed or modified. That would help my livelihood since design is my career.
The initial code was partially based on the JuanMTech's AMOLED Theme.