Test entities for unknown or unavailable

Hello everyone. I THINK that in one of the last updates there was a new way to test if an entity is unavailable or unknown, but I can’t find it anywhere and at this point I’m not sure if it was just a dream or if I’m hallucinating.

It was something like is_state(“entity”) which returns FALSE if the entity is unknown or unavailable, but it’s not is_state. Or is it? I don’t really know. Maybe someone can shed some light on this, because I feel like I’m going crazy :wink:

{{ has_value('sensor.example') }}

has_value can also be used as a filter.

1 Like

Thanks. That was exactly what I was looking for!