FIlter out 2 payloads

Hi, probably overthinking but can I get some help with below.

I have a zwave smoke sensor. Connected to a message in node-red. Smoke: message.

Nut upon restarting zwave I get 2 payload messages that I do not want to pass to the message:
“unavailable” and “off”. how can I filter out these 2 payloads?

I tried:


but that doesn’t work.

Also a switch with “!=” can’t get that working…

This is the payload I want to filter out:

/20/2020, 9:57:53 AM[node: e27bb7b2.afb92](http://hass.nl:8123/api/hassio_ingress/SG4uGaYSU6-qY6NI19i9y_sZheT9-MPgHI41i8SYfWM/#)binary_sensor.notification_sensor_smoke_alarm_smoke_detected : msg : Object
object
topic: "binary_sensor.notification_sensor_smoke_alarm_smoke_detected"
payload: "unavailable"
data: object
entity_id: "binary_sensor.notification_sensor_smoke_alarm_smoke_detected"
old_state: null
new_state: object
_msgid: "1877fa85.86b745"
8/20/2020, 9:59:40 AM[node: e27bb7b2.afb92](http://hass.nl:8123/api/hassio_ingress/SG4uGaYSU6-qY6NI19i9y_sZheT9-MPgHI41i8SYfWM/#)
binary_sensor.notification_sensor_smoke_alarm_smoke_detected : msg : Object
object
topic: "binary_sensor.notification_sensor_smoke_alarm_smoke_detected"
payload: "off"
data: object
entity_id: "binary_sensor.notification_sensor_smoke_alarm_smoke_detected"
old_state: object
new_state: object
_msgid: "7b84a8a8.f935c8"

Hm, think I did it but I don’t like it this way:
image

you need the switch node. below will give you 3 outputs, continue your flow with 3rd output

image

1 Like