I am trying to setup some header buttons on some of my entities cards. Easy enough to do, however I want to add display conditions for some of them. I’ve added a condition to one of the buttons but it doesn’t work. I’ve checked the possible states for the entity concerned and they are correct. The buttons all display correctly but the conditions aren’t applied, what I want is the Door open button to only appear if the door is open (the sensor is ‘on’)
I’m expecting someone to say that the condition parameter isn’t usable in this context, which would be disappointing.
edit: I have also tried to add a header button that references a temperature sensor, but the button does not display the state of the entity. I get the name and the icon, but no state. I thought these buttons would be as configurable as badges are, maybe not.
This is what I currently have:
header:
type: buttons
entities:
- entity: script.clean_kitchen_floor
icon: mdi:robot-vacuum
name: VAC
- entity: input_boolean.dishwasher_to_run
icon: mdi:dishwasher
name: DW
- entity: binary_sensor.*****_bsh_common_status_doorstate
icon: mdi:dishwasher-alert
name: Door
conditions:
- condition: state
entity: binary_sensor.*****_bsh_common_status_doorstate
state: "on"