Place a markdown card inside the entities card as an hui row item. Markdown cards accept templates. You’ll need to look up the ‘under-the-hood’ name for the markdown card to add is as a row. It might be custom:hui-markdown-card or custom:hui-markdown.
type: entities
title: Template dev
entities:
- type: custom:hui-markdown-card
content: >-
The temperature is {{ states("sensor.temp") }}°C and the
humidity is {{ states("sensor.hum") }}%
type: entities
title: Template dev
entities:
- entity: light.zigbee_soverom
- type: custom:hui-markdown-card
content: >-
The temperature is {{ states("sensor.zigbee_10_temperature") }}°C and the
humidity is {{ states("sensor.zigbee_10_humidity") }}%
There were some changes in the frontend in Home Assistant 0.106 (see #4984 and especially #4984 (comment)) so the above does not work anymore without slight alteration:
- type: entities
title: Template dev
entities:
- entity: light.zigbee_soverom
- type: custom:hui-element
card_type: markdown
style: |
ha-card {
--ha-card-box-shadow: 'none';
}
ha-markdown.no-header {
padding-left: 1px;
padding-right: 1px;
}
content: >-
The temperature is {{ states("sensor.zigbee_10_temperature") }}°C and the
humidity is {{ states("sensor.zigbee_10_humidity") }}%
Forgive me but I’m a total beginner with HA templating.
Where exactly does this go? Into the configuration.yaml file? But then, I guess, it doesn’t start with -type: entities, right? A little help here?
Also, in my case I just want a markdown “entity” I can add inside an “entities” card as a sub-heading … So I don’t even need any sensor data inside my markdown text. It’s just a label. Maybe there’s an easier way then?