Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Help needed with entity_filter card state_filter

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>