This was created six months ago, but the PSUControl plugin was lacking events and helper functions. I have then added these to the plugin and created a PR, but it took a while for that was merged so I kind of forgot I still had to push this code.
This weekend I rebased my fork to your current code and re-added the PSUControl functionality.
In short: this will check if the PSUControl helpers are available and if so, it will publish a switch to HA for toggling the power supply.
Hi @edekeijzer sorry I missed this MR when you sent it, trying to sort out notifications in GitHub. I'll take a look through shortly and test to make sure it works.
This was created six months ago, but the PSUControl plugin was lacking events and helper functions. I have then added these to the plugin and created a PR, but it took a while for that was merged so I kind of forgot I still had to push this code. This weekend I rebased my fork to your current code and re-added the PSUControl functionality. In short: this will check if the PSUControl helpers are available and if so, it will publish a switch to HA for toggling the power supply.