Entity State Value

So, I’m playing with node red and room assistant, I have a check that counts entities with the state “not_home”.

Of the 3 devices I’m tracking on room assistant node red is seeing 5 devices as “not_home” is anyone aware of a way I can find all entities with the state of “not_home”