Closed Maxinger15 closed 3 years ago
There should be a red warning in the PSUControl-Shelly settings, to warn you about the fact that your sensing method is not set to plugin/shelly. Your debug log shows sensingMethod: INTERNAL While this could possibly work (assuming the power has switched when the printer appears online) I could not think of a situation where internal sensing would be preferred over explicitly reading the state from the Shelly. I might however look into using the transition state only when using the plugin sensing method and only when Shelly Cloud is used.
Hello,
my Shelly Plug doesn't recive any commands from the plugin and I am not sure why. Here are the necessary snippets from the Log:
Log when i try to switch the state of the Plug:
2021-06-17 21:17:25,310 - octoprint.plugins.psucontrol - INFO - Switching PSU On 2021-06-17 21:17:25,310 - octoprint.plugins.psucontrol - DEBUG - Switching PSU On Using PLUGIN: psucontrol_shelly 2021-06-17 21:17:25,311 - octoprint.plugins.psucontrol_shelly - DEBUG - Switching PSU On 2021-06-17 21:17:25,311 - octoprint.plugins.psucontrol_shelly - INFO - Still in transition between sending and receiving change, not sending command.
PSUControll-Shelly settings:
2021-06-17 21:15:37,744 - octoprint.plugins.psucontrol_shelly - DEBUG - use_cloud: False 2021-06-17 21:15:37,745 - octoprint.plugins.psucontrol_shelly - DEBUG - server_address: 2021-06-17 21:15:37,746 - octoprint.plugins.psucontrol_shelly - DEBUG - auth_key: 2021-06-17 21:15:37,747 - octoprint.plugins.psucontrol_shelly - DEBUG - device_id: 2021-06-17 21:15:37,748 - octoprint.plugins.psucontrol_shelly - DEBUG - local_address: 192.168.178.99 2021-06-17 21:15:37,749 - octoprint.plugins.psucontrol_shelly - DEBUG - enable_auth: False 2021-06-17 21:15:37,755 - octoprint.plugins.psucontrol_shelly - DEBUG - username: 2021-06-17 21:15:37,756 - octoprint.plugins.psucontrol_shelly - DEBUG - password: 2021-06-17 21:15:37,757 - octoprint.plugins.psucontrol_shelly - DEBUG - output: 0
PSU-Control settings:
2021-06-17 21:16:11,833 - octoprint.plugins.psucontrol - DEBUG - switchingMethod: PLUGIN 2021-06-17 21:16:11,834 - octoprint.plugins.psucontrol - DEBUG - onoffGPIOPin: 0 2021-06-17 21:16:11,835 - octoprint.plugins.psucontrol - DEBUG - invertonoffGPIOPin: False 2021-06-17 21:16:11,836 - octoprint.plugins.psucontrol - DEBUG - onGCodeCommand: M80 2021-06-17 21:16:11,837 - octoprint.plugins.psucontrol - DEBUG - offGCodeCommand: M81 2021-06-17 21:16:11,840 - octoprint.plugins.psucontrol - DEBUG - onSysCommand: 2021-06-17 21:16:11,841 - octoprint.plugins.psucontrol - DEBUG - offSysCommand: 2021-06-17 21:16:11,842 - octoprint.plugins.psucontrol - DEBUG - switchingPlugin: psucontrol_shelly 2021-06-17 21:16:11,843 - octoprint.plugins.psucontrol - DEBUG - enablePseudoOnOff: False 2021-06-17 21:16:11,845 - octoprint.plugins.psucontrol - DEBUG - pseudoOnGCodeCommand: M80 2021-06-17 21:16:11,849 - octoprint.plugins.psucontrol - DEBUG - pseudoOffGCodeCommand: M81 2021-06-17 21:16:11,851 - octoprint.plugins.psucontrol - DEBUG - postOnDelay: 30.0 2021-06-17 21:16:11,853 - octoprint.plugins.psucontrol - DEBUG - connectOnPowerOn: False 2021-06-17 21:16:11,855 - octoprint.plugins.psucontrol - DEBUG - disconnectOnPowerOff: False 2021-06-17 21:16:11,857 - octoprint.plugins.psucontrol - DEBUG - sensingMethod: INTERNAL 2021-06-17 21:16:11,859 - octoprint.plugins.psucontrol - DEBUG - senseGPIOPin: 0 2021-06-17 21:16:11,862 - octoprint.plugins.psucontrol - DEBUG - sensePollingInterval: 5 2021-06-17 21:16:11,864 - octoprint.plugins.psucontrol - DEBUG - invertsenseGPIOPin: False 2021-06-17 21:16:11,866 - octoprint.plugins.psucontrol - DEBUG - senseGPIOPinPUD: 2021-06-17 21:16:11,868 - octoprint.plugins.psucontrol - DEBUG - senseSystemCommand: 2021-06-17 21:16:11,870 - octoprint.plugins.psucontrol - DEBUG - sensingPlugin: 2021-06-17 21:16:11,872 - octoprint.plugins.psucontrol - DEBUG - autoOn: True 2021-06-17 21:16:11,874 - octoprint.plugins.psucontrol - DEBUG - autoOnTriggerGCodeCommands: G0,G1,G2,G3,G10,G11,G28,G29,G32,M104,M106,M109,M140,M190 2021-06-17 21:16:11,877 - octoprint.plugins.psucontrol - DEBUG - enablePowerOffWarningDialog: True 2021-06-17 21:16:11,879 - octoprint.plugins.psucontrol - DEBUG - powerOffWhenIdle: False 2021-06-17 21:16:11,880 - octoprint.plugins.psucontrol - DEBUG - idleTimeout: 30 2021-06-17 21:16:11,881 - octoprint.plugins.psucontrol - DEBUG - idleIgnoreCommands: M105 2021-06-17 21:16:11,883 - octoprint.plugins.psucontrol - DEBUG - idleTimeoutWaitTemp: 50 2021-06-17 21:16:11,884 - octoprint.plugins.psucontrol - DEBUG - turnOnWhenApiUploadPrint: False 2021-06-17 21:16:11,885 - octoprint.plugins.psucontrol - DEBUG - turnOffWhenError: True