Hi all,
Just dipping my feet into home assistant and Lovelace and setting up my first cards.
Trying to make a simple horizontal stack that has my Tado radiator temps listed, so have done the below card config:
entity: climate.tado_smart_radiator_thermostat_va0405147648
name: Lounge
secondary_info: current.temperature
type: entity-button
Can anyone explain why the secondary_info item is returning:
Expected a value of type
undefinedfor
secondary_infobut received
"current.temperature".
I know it’ll be stupidly obvious, just banging my head a bit!
PS know there’s a thermostat card that does a lot of this, just keen to understand the mechanics, hence playing around!
tom_l
April 18, 2020, 11:19am
2
type: button
Or is this a custom card?
Because there is no mention of secondary_info here:
Ah ok, makes sense - still trying to work out what these cards do, would this only be achievable with a custom card?
tom_l
April 18, 2020, 6:43pm
4
What specifically are you trying to do?
Show secondary info on a button card?
Pretty sure this one can do it:
Pretty sure you can define how it is displayed on the card.
Here’s the community forum post about it if you need help or inspiration:
Button card
Lovelace Button card for your entities. -> github
[all]
Features
works with any toggleable entity
3 actions on tap toggle, more_info and service
state display (optional)
custom color for on and off state (optional)
custom state definition with customizable color (optional)
custom size (optional)
custom icon (optional)
custom css style (optional)
automatic color for light (optional)
custom default color for lights (when color cannot be determined) (optional)
2 color types
icon :…
It’s a bit complicated but powerful. Requires reading of the documentation.
Ah perfect - very useful, similar content management platforms I’ve used before tend towards having components that are highly configurable to cover all eventualities, but quickly getting the understanding that HA veers towards custom components… Will need to research some of these more, this looks perfect for the use case I had! Thanks!