New MCP23017 PCF8574 All-In-One node

I imported your flow (thanks for sending) and it works as intended. My MCP23017 is on i2c-3, so all I did was change the bus number and it works perfectly:

If I click on on_relay_00 inject node and then on on_relay_01 inject node, both relay_00 and relay_01 output nodes are on, as indicated by the status indicator:

So you are saying if you first turn relay_00 on, then relay_01, relay_00 turns off? If so, that's not what I'm seeing here. As mentioned, I am running RPi 4B:

  • OS: raspios Bullseye 64-bit
  • Node.js version: v18.17.1
  • npm version: v9.6.7
  • node-RED Version: 3.1.0

So other than the actual hardware and linux version, not too different. One other thing you could try:

  • Open a terminal, go to the directory where you have node-red installed (usually ~/.node-red) and enter node-red-restart to restart the server. Then refresh the browser window.
  • In the same node-red directory enter node-red-log : this is where the nodes output a detailed log. Starting with both output nodes off, when you click on the 2 inject nodes to turn the two output nodes on you should see something like this:

This shows that the two LSBs of ip16 (pins 0 and 1) go from 00 to 01 to 11. Do you see anything different? If so, what?

BTW, in the terminal enter ^c to exit the log.