PSU plugin, auto power on is not working

Hi, I am having trouble with the auto power on function where it won't switch the relay when powering up the Raspberry Pi. I can toggle it on and off via octoprint.

I am using a Pi4 4gb

Settings are:

psucontrol:
** GPIOMode: BCM**
** _config_version: 3**
** autoOn: true**
** enablePowerOffWarningDialog: false**
** onoffGPIOPin: '23'**
** powerOffWhenIdle: true**
** senseGPIOPin: '24'**
** switchingMethod: GPIO**
** rgb_status: null**

Thanks,
Mike.

Do you have a multimeter? Check the onoffGPIOPin you have defined on the Pi with the multimeter to see if it is going HIGH/LOW.

@kantlivelong it was reading 0v on boot up. I have now inverted the output in the plugin and it is now working, thank you.

Although my OCD is now playing up as the toggle button is green when off and blank when on lol.

Mike.

You can invert sense pin results.

my OCD is now playing up as the toggle button is green when off and blank when on lol.