I’m sure this is doable, I’ve created a template card that toggles the state of a blind. What I’d like is the secondary information to be the battery level of the blind, which is exposed through sensor.landing_blind_battery
Is there a tutorial somewhere for this kind of data inserts into cards?
There is a big Topic in this forum for mushroom cards, and tons with templates, as a new user here you should read the first Topic
How to help us help you - or How to ask a good question.
And then use the search function in top right corner ( I.E mushroom template card ) , tons of examples in here
You could do something like this without the template:
type: custom:mushroom-cover-card
entity: cover.curtain_3ff5
show_buttons_control: true
show_position_control: true
show_tilt_position_control: true
primary_info: name
fill_container: true
name: Blinds
card_mod:
style: |
ha-card:after {
content: "{{ states('sensor.basement_sensor_battery') }}%";
position: absolute;
display: flex;
align-items: center;
top: 34px;
left: 110px;
width: 16px;
height: 16px;
font-size: 11px;
color: lime
}
or I’d suggest stacking cards
type: custom:stack-in-card
cards:
- type: custom:mushroom-template-card
entity: update.home_assistant_supervisor_update
icon: mdi:window-shutter
icon_color: blue
primary: Blinds
secondary: |
{{states('cover.curtain_3ff5') }}
{{states('sensor.basement_sensor_battery') }} %
card_mod:
style: |
ha-card {
padding-bottom: 10px !important;
}
- type: custom:mushroom-cover-card
entity: cover.curtain_3ff5
show_buttons_control: true
show_position_control: true
card_mod:
style: |
mushroom-state-item {
display: none;
}
card_mod:
style: |
ha-card {
box-shadow: none;
--ha-card-border-width: 0px;
}
Thanks, that lead me to
states('sensor.landing_blind_battery') }} % BATT