diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 9f9cb7c..275c59e 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -48,20 +48,6 @@
1574193087583
-
- 1574610253466
-
-
-
- 1574610253466
-
-
- 1574707150761
-
-
-
- 1574707150761
-
1574707411686
@@ -391,7 +377,21 @@
1593356663020
-
+
+ 1593627018087
+
+
+
+ 1593627018088
+
+
+ 1593627195608
+
+
+
+ 1593627195608
+
+
diff --git a/octoprint_mystromswitch/__init__.py b/octoprint_mystromswitch/__init__.py
index 7f8e003..dbda3d8 100644
--- a/octoprint_mystromswitch/__init__.py
+++ b/octoprint_mystromswitch/__init__.py
@@ -75,13 +75,13 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
self._logger.debug("shutdownDelay: %s" % self.shutdownDelay)
self.rememberShutdown = self._settings.get_boolean(["rememberShutdown"])
- self._logger.debug("rememberShutdown: %s" % self.rememberShutdown)
+ self._logger.info("rememberShutdown: %s" % self.rememberShutdown)
self.lastPowerOff = self._settings.get_int(["lastPowerOff"])
- self._logger.debug("lastPowerOff: %s" % self.lastPowerOff)
+ self._logger.info("lastPowerOff: %s" % self.lastPowerOff)
self.lastShutdown = self._settings.get_int(["lastShutdown"])
- self._logger.debug("lastShutdown: %s" % self.lastShutdown)
+ self._logger.info("lastShutdown: %s" % self.lastShutdown)
if self.rememberShutdown:
self.powerOffAfterPrintFinished = self.lastPowerOff
@@ -193,6 +193,8 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
data["automaticShutdownEnabled"] = self.shutdownAfterPrintFinished
data["automaticPowerOffEnabled"] = self.powerOffAfterPrintFinished
self._plugin_manager.send_plugin_message(self._identifier, data)
+ self._logger.info("automaticShutdownEnabled: %s" % self.automaticShutdownEnabled)
+ self._logger.info("automaticPowerOffEnabled: %s" % self.automaticPowerOffEnabled)
return
except (requests.exceptions.ConnectionError, ValueError) as e:
self._logger.exception(e)
@@ -202,7 +204,7 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
self._logger.info("Ip is None")
data = {"relay": True, "energy": 0, "onOffButtonEnabled": False, "showShutdownOctopiOption": False,
"showPowerOffPrintFinishOption": False, "automaticShutdownEnabled": self.shutdownAfterPrintFinished,
- "v": self.powerOffAfterPrintFinished}
+ "automaticPowerOffEnabled": self.powerOffAfterPrintFinished}
self._plugin_manager.send_plugin_message(self._identifier, data)
def _setRelaisState(self, newState):