Use sensor status as Name (friendly Name) in lovelace or normal gui

Is there a way to use the status of a sensor (f.e temp sensor battery sensor.oregontemphygro_2df0_bat) as the name of a entity?

  • type: glance
    title: Temperatur
    entities:
    - entity: sensor.oregontemp_5820_temp
    name: Tempsoutdoor
    - entity: sensor.oregontemphygro_2df0_temp
    name: {{ states(‘sensor.oregontemphygro_2df0_bat’) }}

Something like that.
Thanks a lot

I’m not aware of a method to use the state in the name, templating isn’t supported in Lovelace for names.

You can display the state and exclude the name using the options in the glance card.

You may need to use a picture elements card to archive what I think your after. You can basically put and value anywhere and add text where you want it. Pretty flexible, but a lot of setup.