From 1ec0b46060cbadd6c1d0d26e3b2bda8eb2942bb5 Mon Sep 17 00:00:00 2001 From: David Zingg Date: Mon, 25 Nov 2019 21:03:25 +0100 Subject: [PATCH] =?UTF-8?q?#11=20Energieverbrauch=20n=C3=A4herungsweise=20?= =?UTF-8?q?berechnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- octoprint_mystromswitch/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_mystromswitch/__init__.py b/octoprint_mystromswitch/__init__.py index 7faa453..949ae07 100644 --- a/octoprint_mystromswitch/__init__.py +++ b/octoprint_mystromswitch/__init__.py @@ -87,7 +87,7 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin, # Energy in Wh self.energy = self.energy + (intervall * data["power"] / 3600) self.lastTimeStamp = timestamp - data["energy"] = self.powerConsumed + data["energy"] = self.energy data["onOffButtonEnabled"] = self.onOffButtonEnabled self._plugin_manager.send_plugin_message(self._identifier, data) except (requests.exceptions.ConnectionError, ValueError):