You could have that 24V power a relay. The relay could be wired to a GND pin and a GPIO. Use gpiozero to monitor that GPIO as a button. When the 24V happens, you get your input for the Pi to do what the Pi can do.
Statistics: Posted by duckredbeard — Mon Jan 20, 2025 1:06 am