With this and so many other issues, it’s pretty obvious this sim wasn’t built with the thought that people would be using external hardware. The intent was always that it would be used with a HOTAS or Xbox controller and mouse.
Switches in the cockpit rely on sim variables to show their state. So activating an external switch flips that var in the sim, which causes the switch in the virtual cockpit to flip as well. They work with external hardware by accident, not by design.
It’s a different mechanism altogether to animate rotary controls. That mechanism doesn’t exist in the sim.