Check the status of a traffic node

May I suggest you try this node instead:

node-red-contrib-simple-gate

I started off using it but the one I posted is better - I believe.