Add debug info
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#
|
||||
#pylint: disable=line-too-long,broad-exception-caught,possibly-used-before-assignment
|
||||
"""
|
||||
<plugin key="HeatzyEx" name="Heatzy Pilote Ex" author="fjumelle" version="2.0.0" wikilink="" externallink="">
|
||||
<plugin key="HeatzyEx" name="Heatzy Pilote Ex" author="fjumelle" version="2.1.0" wikilink="" externallink="">
|
||||
<description>
|
||||
<h2>Heatzy Pilote</h2><br/>
|
||||
Implementation of Heatzy Pilote as a Domoticz Plugin.<br/>
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user