Aqara window contact

Hello,
I have an Arara window contact that sends the following values:

BildschirmĀ­foto 2023-01-20 um 20.27.04

I want to display the plant "contact" in debug so that only TRUE or FALSE is displayed or ON or OFF.

Can anyone help me with this?

Do you know that you can pick the correct msg property path straight out of debug? Check the little icons on the RHS when you hover over an entry.

In this case, you need to set the debug node to output msg.payload.contact.

I posted a solution on the old thread that you originally asked this on:

You could use a Switch node that sends the true out on one output and the false out on the other. Then use Change nodes in those two paths to set msg.payload to string on or off. If you don't know how to do that then I assume you are a beginner to node-red so I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

1 Like