cmroche / OctoPrint-HomeAssistant

Home Assistant plugin for OctoPrint, enabling MQTT discovery of you device and sensors
110 stars 18 forks source link

Add PSUControl support #82

Closed edekeijzer closed 2 years ago

edekeijzer commented 2 years ago

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.

cmroche commented 2 years ago

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.

Thanks for the contribution!