I use the auto-entities card to only show entities with battery levels below 40% which work fine.
Now, I would like the 40% to be fetched from an input_number to make it a bit more dynamic. I thought it would be as simple as replacing 40 with "{{ states("input_number.lovelace_battery_level_min") | round(0)}}"
But I can't get it to work, so I'd appreciate some guidance.
Today:
type: custom:auto-entities
filter:
include:
- state: < 40
attributes:
device_class: battery
unit_of_measurement: "%"
sort:
ignore_case: true
method: state
numeric: true
card:
type: entities
show_empty: true