Getting Started
This is a concept I have created for anyone (smart enough to make it) with an octoprint setup. The idea is that instead of a switch controlling the mainboard (I am using a CNC shield v4), you connect it to the octoprint Rpi. This is so that instead of taking time for the printer to press the switch, the printer goes to the position to switch colors, but instead of pushing a switch, the RPI is connected to the Arduino and tells it to move the filaments. This would require its octoprint plugin to function, which I have no idea how to make. This is essentially the marlin equivalent of controlling the chameleon directly via Klipper. It is possible to connect an external board to octoprint, as outlined here (though this is quite different as it is not an Arduino board): https://www.instructables.com/PSU-Control-With-Octoprint/
I unfortunately do not have the time, budget, skills, or materials to make this a reality, so this is just a concept that someone else may pick up and expand on.
Here are some articles that people may find helpful if they would like to try and make this a reality:
https://community.octoprint.org/t/raspberry-controlling-arduino/17478
https://community.octoprint.org/t/how-to-connect-arduino-to-octoprint-running-on-windows/47054
https://community.octoprint.org/t/connect-additional-arduino-to-raspberry-pi3/42005
Like