I’m trying to display a card to show when a filter needs to be replaced. I have the Conditional part working as needed, but not sure what the Markdown card needs to show what I want.
Here’s what I currently have. I’d like the card to display the “friendly_name” (or names if multiple meet the condition) so we know which one(s) to check. “friendly_name” is an attribute of the “sensor.xxxx_air_purifier_filter_life” entity but adds " Filter Lifetime" which I would like removed so it just shows the Area.
type: conditional
conditions:
- condition: or
conditions:
- condition: numeric_state
entity: sensor.bedroom_air_purifier_filter_life
below: 1
- condition: numeric_state
entity: sensor.livingroom_air_purifier_filter_life
below: 1
- condition: numeric_state
entity: sensor.utility_room_filter_life
below: 1
- condition: numeric_state
entity: sensor.laundry_area_filter_life
below: 1
- condition: numeric_state
entity: sensor.office_air_purifier_filter_life
below: 1
card:
type: markdown
content: Change "friendly_name" Filter
Thanks