Excellent work!
I just like to mention one thing to keep in mind when testing / developing:
- When I've created the new Firmata-Node (called "Arduino node" = bad naming)
- Everything worked perfectly fine and stable with RPi PICO boards connected via USB port to the RPi4: "on a desk".
- But after connecting some real 240V engines to the relay board
(which is theoretically optic-relay protected) - Probably the sparks of the relays have created strange EMP effects, which causing many times a complete stop of the communication.
(The only solution is to unplug the board from USB and replug
)
So it is advisable to test it that way too.