How do I filter a status?

hello,
i'm use Node Red for Home Assistant.

i need to filtrate a status becaus i can't use ZONE for geolocalize user.
I use Geocoede location by iphone but i have status with adress e not "home" or "not_home"
How do i filtrer this status?
image

thk
sorry for my english

Welcome to the forum @nicolab74

Do you mean you are getting status messages from a Status node and need to extract data from that message? If so then show us some sample messages and what you need to get out.

You would normally use a switch node to filter/route the incoming payload status from your incoming node.

i.e
property payload
rule1
== (equals) A/Z (string) home
rule2
== (equals) A/Z (string) not_home

yes
i have the status message:
Via Salisburgo 10 37136 Verona Veneto Italy at: Aug29, 13:29
i need to filtrate
when the state is : Via Salisburgo ( not all text only )

i have test with if State : IS if State: In but without success

then i have a change for set
set state : home

image

You can use a Switch node configured to test if msg.payload Includes that text

image

yesss...!!!!!!!!!!!!!!!!!!

sorry
simpler than expected

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.