🌻 Lovelace UI • Minimalist

My Home Assistant

:wave: Hi, my name is Thomas and I’m a UX designer and have been using Home Assistant for 4 years.
After showing a little bit of my interface on Bokub’s post, I had several requests for more details on my configuration. I drew a lot of inspiration from 7ahang’s work that I found on Behance.

Interface composition

I use my phone most of the time to access the interface. I chose to use only one column to facilitate maintenance between the different devices.

I have been using this interface for over 2 years, there have been some minor changes but overall it keeps the same principles.

My interface consists of 4 pages

At the top of each page we find the chips which allow me to quickly visualize the important information of the page.
Then titles to separate the different sections
and cards to represent and interact with devices, sensors, etc …
I used the custom component button-card for all these cards.



Light and dark theme



Documentation • Wiki

deprecated resources

Button card • Configuration Templates

4 pages
:house: 01_home.yaml
:partly_sunny: 02_temperature.yaml
:zap: 03_consommation.yaml
:grinning: 04_localisation.yaml


Have fun ! :vulcan_salute:


I shows. Very nice, :+1:


agree! very slick!! thanks for sharing!!

1 Like

I think that propels him into the dev team doesn’t it?


The result is so neat :ok_hand:

Thanks for sharing your work Thomas

1 Like

I’m looking for the ‘conscription’ button… https://discord.gg/PQUJbZ68

this is a treat for the eyes, really eye candy. thanks for sharing.

of course, I immediately tried to copy some of the theme settings, but got confused on several var names.

how come you use:

  box-shadow: '0px 2px 4px 0px rgba(0,0,0,0.16)'
  border-radius: '20px'
  border-color: '#EAEAEA'

I tried that, but it defaulted to the HA defaults. In my themes I need:

  ha-card-border-radius: 0px
  ha-card-box-shadow: '0px 2px 4px 0px rgba(0,0,0,0.16)'

and I can’t get the border-color to do anything really, not even when using ha-card-border-color … (though tbh, not sure if I use that anywhere, could be the issue too…)
same goes for border-color, which I need to use as ha-card-border-color

is ha-card.ts the place where it is defined?

we (I) really need an updated overview of the used var names in themes. I always check ha-style.ts
and styles.ts

1 Like

It’s been a while since I touched my theme, there may be obsolete variables.
For example I use the box-shadow variable in the Button card • Configuration Templates file

        - box-shadow: var(--box-shadow)

i guess you can use your variable

        - box-shadow: var(--ha-card-box-shadow)

it is possible that the border-color variable is not used indeed

yes, thanks, of course we can declare these variable and use them ourselves :wink: was merely trying to find the default HA variables.

again, a very nice theme you’ve made, I’ve still got to find all the spots in the button card templates where you use these.
the chips are a cool new ‘feature’, must explore the possibilities of that (maybe in replacing the badges I now have)

especially the ‘back’ chip Schermafbeelding 2021-07-16 om 12.51.36

though I would have hoped it to go back in the browsing history, and not to the Homepage. Guess that is still not possible, eg even with browser-mod.

(sorry I edited my post while you already answered it… I found it in your templates)

I called it return-button

    template: pilule
    show_icon: true
    icon: 'mdi:arrow-left'
    size: 80%
        - grid-template-areas: '"i"'
      action: navigate
      navigation_path: /lovelace/home

Could you please share the code of your Lovelace?

Hey Plouf34👋
Here is my lovelace file

button_card_templates: !include lovelace/button_card_templates/button_card_templates.yaml
title: 'Home'
views: !include_dir_merge_list lovelace/views/ 

This is how my lovelace folder is organized


Could you please share the code of your Lovelace?
[email protected] Thank you

Guys, the code is shared in the first post.


I love how it looks on you! I need help where I have to integrate the “template” I was looking in the documentation of “template” but I can’t find how it works or where I could place the file. I hope you can help me. Thanks!

playing some more with this, I just got to say I love the use of those nice icons in the buttons. Forgot I had 1 of those myself,

    - type: custom:button-card
      name: 🎂 ♡♡ 🍰  🎈 Celebrations 🎈 🍰  ♡♡ 🎂

but now I see you explicitly use them (in the pilule templates), will re-visite that frontend enhancement.
so cool. nice and easy colored icons, without the hassle of needing to create these in svg ourselves.
this really should get some more wide-spread attention :wink:

edited your chip template and button a bit:


    view: >
      [[[ return window.location.pathname.split('/')[2]; ]]]
    action: more-info
  show_icon: false
  show_name: false
  show_state: false
  show_label: true
  size: 80%
      - width: 24px
      - border-radius: 30px
      - box-shadow: var(--box-shadow)
      - height: 36px
      - width: auto
      - padding-left: 6px
      - padding-right: 6px
      - grid-template-areas: '"l"'
      - justify-self: center
      - padding: 0px 6px
      - font-weight: bold
      - font-size: 14px


type: custom:button-card
template: chip
entity: weather.buienradar
  action: navigate
  navigation_path: >
    [[[ return variables.view != 'weer_klimaat'
        ? '/lovelace/weer_klimaat' : 'null'; ]]]

label: |
    var inter = states['sensor.temp_current'].state;
    var exter = states['sensor.temperatuur_living'].state;
    var condition = states['sensor.dark_sky_icon'].state;
    var mapper = {'clear-day':'☀️','clear-night':'🌙','rain':'🌧️',
    var icon = mapper[condition] ? mapper[condition] :'☀️';
    return icon + ' ' + inter + '° / ' +  exter + '°' ;

allowing for adjusted navigation with an entity for the more-info, so we have useful actions for both :wink:


Hey jonathanathe :wave:
You can write the content of the template file in your ui-lovelace.yaml file or include the file like this

button_card_templates: !include button_card_templates.yaml
1 Like

Great work - love the simplicity.

Could you post an example of the YAML needed for a temperature line chart - my attempts using just the “graph” template render incorrectly.

Hey Tom :wave:
Here is an example

- type: 'custom:button-card'
  template: graph
    entity: "sensor.fibaro_multisensor_salon_temperature"
    color: "var(--google-blue-500)"
    name: "Température"

Fantastic - works great!