@metbril wrote:
I’m trying to use an advanced state filter with my entity filter card:
What I want is a sensor to show only when it is above or below a certain treshold. For example, I want to show the outdoor temperature in a “mobility” card when it lowers below 4 Celcius. This is the warn for slippery roads.
configuration.yaml
sensor: - platform: yr monitored_conditions: - symbol - temperature
lovelace
... cards: - type: entity_filter entities: - sensor.yr_temperature state_filter: - value: "4" option: "<=" ...
alternate syntaxes tried:
state_filter: - value: '4' option: '<='
state_filter: - value: 4 option: <=
No matter what syntax I try for the state filter (with or without quotes), the sensor only shows when the string equivalent of the value exactly matches the temperature.
Is the
option:
actually working? Is the documentation outdated?Any help is appreciated.
Posts: 3
Participants: 2