Hi, the optocoupler I bought isn't working for some reason, so I'm using this relay instead.

The problem I have, is that the logic needs to be inverted for this relay to work, otherwise it will initialized with the "on" state and the PC won't be able to start. Inverting the logic at the relay as "normally open" will work only if the rpi is on.
For the moment I am manually editing the set_output and write methods on
/usr/lib/python3.8/site-packages/kvmd/gpio.py for this to work.
We could use an ENV variable, like GPIO_INVERT_WRITE and GPIO_INVERT_READ.
Hi, the optocoupler I bought isn't working for some reason, so I'm using this relay instead.
The problem I have, is that the logic needs to be inverted for this relay to work, otherwise it will initialized with the "on" state and the PC won't be able to start. Inverting the logic at the relay as "normally open" will work only if the rpi is on.
For the moment I am manually editing the
set_outputandwritemethods on/usr/lib/python3.8/site-packages/kvmd/gpio.pyfor this to work.We could use an ENV variable, like
GPIO_INVERT_WRITEandGPIO_INVERT_READ.