wassy92x / lovelace-digital-clock

A custom digital clock card for Home Assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Background picture

Korte68 opened this issue · comments

Thank you for your work:) May I suggest something?

  1. It would be great if we can set a background picture for the card. It would be even better If it can change automatically based on time (night mode/day mode )
  2. Display a custom text (for example name day).
    Thank you

You can do this with Card-Mod.

card_mod: style: | :host { color: {% set calc = states('variable.bedroom_balcony_temphum_battery') %} {% if calc <= "10" %} red {% else %} lime {% endif %}

I made a battery sensor which changes the color by the value of the state... You can do this with the value from the time sensor, by adding different backgrounds to the card. Even more nicer, you can make the font bleding as exclusion, then you can see the text no matter what colors you have in the background...

I will not implent this, because it is already possible by using card mod (see upper answer)