From c53fbc8a6df822605b68463708266c7e9eb333d3 Mon Sep 17 00:00:00 2001 From: Francois JUMELLE Date: Sun, 26 Oct 2025 20:45:12 +0100 Subject: [PATCH] Add debug info --- plugin.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugin.py b/plugin.py index 20b419a..c5f8fd2 100755 --- a/plugin.py +++ b/plugin.py @@ -4,7 +4,7 @@ # #pylint: disable=line-too-long,broad-exception-caught,possibly-used-before-assignment """ - +

Heatzy Pilote


Implementation of Heatzy Pilote as a Domoticz Plugin.
@@ -294,14 +294,16 @@ class BasePlugin: self.retry = self.retry - 1 if self.retry < self.max_retry//2: - Domoticz.Error("Cannot open connection to Heatzy API to get the mode: " + str(exc)) + Domoticz.Error(f"Cannot open connection to Heatzy API to get the mode for {alias}: {exc}") #Domoticz.Error("URL: " + str(url)) #Domoticz.Error("Headers: " + str(headers)) if 'response' in locals() and response != "": Domoticz.Error("Response: " + str(response)) + else: + Domoticz.Debug(f"Cannot open connection to Heatzy API to get the mode for {alias}: {exc}") return - Domoticz.Debug("Get Mode Response:" + str(response)) + Domoticz.Debug(f"Get Mode Response for {alias}: {response}") #Last Update if 'updated_at' in response: