I’ve been trying to find out to put a simple static text string/label in a picture-elements card.
If possible, set the font, size etc. Maybe even markdown.
How can I do this?
Just seen in HACS
I knew there had to be a simple solution to this! That did it.
Thank you very much!
@VDRainer the custom-cards/text-element was recently depreciated. Do you know of any other options.?
Same problem. Stopped working a few days ago for me, when I upgraded to 2202.05.02.
Any other way to obtain the same. The purpose is to have a statetic text included into a picture element.
Does anyone know WHY it was archived?
Just installed it manually (instructions in the README) and it still works fine with my picture-elements cards.
I didn’t know about text-element so I just created label entities and called them up as a state-label.
In config.yaml eg…
template:
sensor:
- name: sunrise_label
state: Sunrise
In the elements card eg…
elements:
- type: state-label
entity: sensor.sunrise_label
style:
top: 50%
left: 18%
font-size: 22px
color: black
Thank you, this works well.
This needs an entity. The goal here is to display a static text.