kantlivelong / OctoPrint-PSUControl

Smart control of your power supply via GPIO, GCODE Command, System Command, or variety of sub-plugins.
GNU Affero General Public License v3.0
202 stars 112 forks source link

Toggle PSU not working since upgrade to OctoPrint 1.8.0 #239

Closed cjmorri1018 closed 2 years ago

cjmorri1018 commented 2 years ago

What were you doing? Attempting to adjust PSU Control and PSU - MQTT settings as had been installed just prior to upgrade to OctoPrint 1.8.0, and still being sorted.

  1. PSU Control & PSU - MQTT - Had been working, green toggle, communication with MQTT, MQTT capture setting changes, status changes, etc. Working as expected 0.5 Updated to Octoprint 1.8.0 0.75 Issue reported with Octoprint 4a - Permissions to /dev,, developer patched moved to 1.1.0 https://github.com/feelfreelinux/octo4a/issues/205#issuecomment-1129983790
  2. ... I realized I had cleared out the codes in Power On Options --> Trigger commands without fully understanding and wanted them back.., couldn't find a "restore defaults" so decided to uninstall/reinstall PSU Control in hopes they would populate on reinstall. Noticed messages about "couldnt load settings files" with a couple of the restarts along the way below
  3. ... Uninstalled PSU Control & Reinstalled (did not "clean up data")- Power On Options --> Trigger Commands didn't reappear...so...
  4. .... Uninstalled PSU Control & Reinstalled (with "clean up data") - Trigger commands came back - YAY!!
  5. Adjusted a few settings in PSU Control - Test
  6. PSU Control no longer toggles with lightning bolt no matter how hard I click (which did previously)
  7. Adjusted a few settings in PSU Control and PSU Control - MQTT and tested
  8. PSU Control no longer toggles with lightning bolt no matter how hard I click (which did previously)
  9. Updating settings for PSU no longer reflects in MQTT (which did previously - had just been previously testing this just minutes before upgrade to OctoPrint 1.8.0)
  10. Decided perhaps since I had un/reinstalled PSU without doing same for PSU-MQTT perhaps was a dependency or install out of order problem
  11. Uninstalled both PSU Control and PSU MQTT, carefully, patiently with reboots in between
  12. Reinstalled PSU Control patiently, carefully with restart after
  13. Took a quick look at PSU Control settings, didn't change anything - tried the toggle switch - no response, no green light/greyed out.
  14. Reinstalled PSU Control - MQTT carefully and patiently with reboots in between
  15. Configured PSU Control to use Plugin PSU Control - MQTT & Setup the PSU MQTT settings
  16. PSU Control toggle appears to have no effect
  17. Adjusted a few settings in PSU Control and PSU Control - MQTT and tested
  18. PSU Control toggle appears to have no effect
  19. Updating settings for PSU no longer reflects in MQTT (which did previously - had just been previously testing this just minutes before upgrade to OctoPrint 1.8.0)
N/A #### What did you expect to happen? Power Toggle, Green Light, messages sent to MQTT, warning about "are you sure you want to power off" (set), MQTT to reflect changes in settings as made, MQTT to reflect PowerON/OFF Power Sense, etc. #### What happened instead? (appears to be) Nothing at all, no lights, no warning about "are you sure you want to power off" (though set), appears to be little to no communication with MQTT. #### Version of OctoPrint-PSUControl - OctoPrint v1.8.0, PSU Control v1.0.6, PSU Control - MQTT v1.0.2 #### Operating System running OctoPrint - Linux, OctoPrint 4a 1.1.0, Android 10, Python 3.9.5 #### Printer model & used firmware incl. version Creality Ender 5 Pro - Marlin 1.1.1 #### Link to octoprint.log with octoprnt.plugins.psucontrol set to DEBUG

octoprint-systeminfo-20220519143200.zip

kantlivelong commented 2 years ago

You'll want to open a ticket with the PSUControl-MQTT repo as from what I can see the subplugin is returning None instead of a boolean value.

2022-05-19 14:30:24,527 - octoprint.plugins.psucontrol - DEBUG - Switching PSU On Using PLUGIN: psucontrol_mqtt
2022-05-19 14:30:24,646 - octoprint.plugins.psucontrol - DEBUG - Polling PSU state...
2022-05-19 14:30:24,648 - octoprint.plugins.psucontrol - DEBUG - isPSUOn: None
cjmorri1018 commented 2 years ago

@kantlivelong -

Thank you very much for the super quick response. I will do this after I dig a bit more in case it is user error/settings,and will update my comments on the other issue.

cjmorri1018 commented 2 years ago

I will just say VERY likely user error/settings..