This is a simple working Node-Red example for a Raspberry PI with an GPIO Port extender MCP23017. It is easy possible to control the MCP23017 with Node-RED.
Here a screenshots from the devices. The description on developer page is not really good. We needed 2 days for the right settings. It is really simple.