Awesome
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.
✨ Thank you @legovaer and @pbohannon for your generous support! ✨
Table of Contents
Metro + Fluent Themes
Two styles are included in this theme:
<table> <tr width="50%"> <td valign="top"> <img alt="Metro style example" src="https://user-images.githubusercontent.com/4341881/177698759-1770e1a0-eff4-4f3a-aee3-4643733c450c.png"/> <b>Metro</b> style has a more vibrant color contrast, sharp corners, and a true black background great for AMOLED screens. Based on the design of Windows 10. </td> <td valign="top"> <img alt="Fluent style example" src="https://user-images.githubusercontent.com/4341881/177698757-b9bffe0e-e9cc-4fb3-8dca-1d07936ec2f7.png"/> <b>Fluent</b> style has subtle shades of colors, rounded corners, and background colors adjusted to be easy on eyes. Based on the design of Windows 11. </td> </tr> </table>Awesome Features
<table> <tr width="50%"> <td valign="top"> Display your home automation status with distinct and bold typography using Segoe UI or Segoe UI Variable fonts. <img alt="Typography" src="https://user-images.githubusercontent.com/4341881/177691335-311cec05-ee60-4937-a70c-d1b313609da5.png"/></td> <td valign="top"> Use Light and Dark Modes natively. Dark Mode has a true black background great for AMOLED screens. <img alt="Light and Dark Modes" src="https://user-images.githubusercontent.com/4341881/177691336-ba4a0aa4-daff-44af-8ed5-9661367e460b.png"/></td> </tr> <tr width="50%"> <td valign="top"> Switch between 6 color themes. Also adding new themes is relatively easy thanks to YAML Anchors. <img alt="Color Themes" src="https://user-images.githubusercontent.com/4341881/177691338-82039962-61a9-4b4a-a366-5ae90d932c2f.png"/></td> <td valign="top"> Revamp your More Info cards and various system UI screens to look extra clean and slick. <img alt="Systemwide Theming" src="https://user-images.githubusercontent.com/4341881/177691339-a91d58bf-dc01-4f1e-b35f-7478b4dafe61.png"/></td> </tr> </table>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.