Entity filter card not equal operator not working

Hi,

I’m trying to modify my first card, but I’m a bit confused. Although I think I’ve set everything correct it still does not filter.

I don’t want to see the entity when the state is False. With below code I still see the entity. I checked the state actually is False by changing the operator to ‘==’ and switch between true and false. That part works.

I just can’t find a way to use the ‘!=’ not equal or ‘not in’ It seems like when the editor comes across a equal sign operator it skips the rest.

type: entity-filter
entities:
  - entity: sensor.synology_below_min_remaining_life_sda
state_filter:
  - operator: '!='
  - value: 'False'
1 Like

Have you tried:

state_filter:
  - 'True'

Note that the state is case sensitive. True != true.

Check the developer tools states menu for the actual state of the sensor.

Thank you for your quick reply. The state is ‘False’ not ‘false’ (I’ve tried both). Furthermore I don’t want to use True. because I’m not sure the only other state will be true. Maybe it’s True, true, unknown not available or whatever.