A different take on designing a Lovelace UI

Thanks for the tip - I tried this out but it still has the same issue, so doesn’t appear to be related to the gradient itself.

I found that if I sit and refresh the page (just using the browser refresh button) it will almost 100% of the time alternate between displaying correctly, and displaying skewed like the screenshot you linked.
It’s very strange, and so far I have only seen it affect the TV icon - none of the other animated icons do it.
I’m using Chrome too (for Windows).

That is weird but hard for me to troubleshoot :sweat_smile:

This should work:

https://my.home-assistant.io/redirect/profile/
Create “Long Lived Access Token”

shell_command:
  update_core: 'curl -X POST "http://supervisor/core/update" -H "Authorization: Bearer LONG-LIVED-ACCESS-TOKEN" 2> /dev/null'

source

Hello,

I have put the www folder, popup folder, button_card_template.yaml and ui-lovelace.yaml and change file configuration to lovelace mode yaml and I have that :


(in the include folder, I have just add theme.yaml. Is it sufficient ?)

Can you help me ?

If you need file configuration let me know.

Thank all in advanced

Unfortunately not… That’s the error:
21-08-10 14:55:48 ERROR (MainThread) [supervisor.api.middleware.security] Invalid token for access /core/update
I tried the Token itself and the name of the token. Both are not working.

This worked now:

shell_command:
    ha_core_update: 'curl -X POST "http://supervisor/core/update" -H "Authorization: Bearer $SUPERVISOR_TOKEN" 2> /dev/null'
    ha_supervisor_update: 'curl -X POST "http://supervisor/supervisor/update" -H "Authorization: Bearer $SUPERVISOR_TOKEN" 2> /dev/null'
1 Like

Can you share background wallpaper?
Thank you.

Did you change the theme of the currently logged in user?
You can change that on each device or session by navigation to the sidebar and your user logo at the buttom.
Choose “Tablet” for theme.

Also merge the configuration.yml for stuff like the includes and copy the entire include folder to your filesystem

Theme user is OK
configuration.yaml is linked with the include folder
but if I add all yaml file in my include folder I have that :
image

All the values in the secrest.yaml are replaced with [redacted], this is because secrets.yaml is meant to contain sensitive information.

I just stripped it down as much as possible.
If you don’t know where to start, just start by replacing [redacted] with a random number. I think that will at least pass the configuration test and it won’t affect the look of the dashboard (besides possble errors of course).

Thank you, I tested but there is no change …

I don’t no why

Is it because I have home assistant OS ?

image

If you have an idea it would be with pleasure I like this interface so much

Thank you again for your precious help

I also use Home Assisstant OS, without problem, so that’s not it
maybe something to do with the resolution you are using?

As you can see in the following picture, the unavailable light (Toilet top) has white color.
image

what should I change in the code. I guess light_color is the right place to change?

I think the resolution is correct

But I don’t install fully kiosk integration but I don’t use fully kiosk so I don’t need install that ?!

Maybe an integration or an extra frontend that does this

It sure I have make mistake but where I don’t no

On my lovelace when I make CTRL + F5, I have long scroll bar and I once have that :
image
And once that :
image

light_color: >
  [[[ return entity === undefined || entity.state === 'unavailable' ? 'var(--state-icon-color)' : 'var(--button-card-light-color-no-temperature)'; ]]]

whoops, yes. if entity is undefined or unavailable return theme variable “state-icon-color” else “button-card-light-color-no-temperature”…

1 Like

You don’t need to install anything really, just look at the structure of ui-lovelace.yaml. card-mod for styles, button-card for buttons and layout-card for grid. The rest is optional.

That’s what seemed to me but even with that I can’t seem to have the same interface as you…

@Mattias_Persson I am trying to remove the shadow of the pictture element itself.
This is what I have soo far:

type: picture-elements
style:
  '#root > bar-card':
    $: |
      ha-card {
        background: none;
        box-shadow: none;
      }

However it isn’t working at all.

try removing spaces #root>bar-card

card_mod:
  style:
    '#root>bar-card':

I’m still stuck here. I have removed for the moment all the errors that were in red but I still have this:

I do not know how it is that I do not have this adaptation of the cards …

1 Like