I’m not an expert in Node RED by any standard, but I did manage to get a working interface between my NOX systems alarm panel and Home Assistant. It took me quite a while so I’d like to share what I did.
NOX works with modules. Most are actual hardware, but there is a TIO module also (Text Input Output). It can send ASCII messages or call a HTTP endpoint. The HTTP endpoint was to limited for the HA API, so I opted for the ASCII message and convert it using node red.
In NOX, you need to create a TIO module with two virtual outputs, one for sending the input status and one for sending the area status. Set the server IP to the IP of Node Red
Each output has a formula that triggers on all status changes of eather area’s or input’s:
On the third tab you configure the message being sent. I delimited with a |, and seperate by that delimiter in node red.
And this is the flow I created:
https://pastebin.com/dl/X9QzTGcN
Once the first state change has occured, you should have the sensors in HA with any status (Open/Closed/Sabotage for inputs, Amed/Disarmed etc for the area’s)
This might be a niche solution, but perhaps the flow is an inspiration to someone.