derekprior / homebridge-schluter-thermostat

A homebridge plugin to control Schluter thermostats
MIT License
7 stars 2 forks source link

Add Debug Logging to SchluterAPI Class for Improved Error Diagnosis #26

Open winterborn opened 1 week ago

winterborn commented 1 week ago

@winterborn though things to be working fine, the plugin is throwing a lot of exceptions. homebridge-schluter-thermostat.log.txt

Originally posted by @betabob in https://github.com/derekprior/homebridge-schluter-thermostat/issues/16#issuecomment-2425178283

Added debug logs to assist resolving intermittent issues where API responses are missing expected data fields, resulting in TypeError exceptions (e.g., "Cannot read properties of undefined").

Affected Methods:

thermostatState
getTemperatureUnit
signIn
winterborn commented 1 week ago

@derekprior @betabob, adding extra debug logs here to check responses to determine issue.

if @betabob could either pm me or provide additional logs with above PR, it should give me a better idea of why it keeps throwing errors...

betabob commented 1 week ago

@winterborn how to pm you? I don't believe Github supports direct messaging between users, does it?

winterborn commented 1 week ago

@winterborn how to pm you? I don't believe Github supports direct messaging between users, does it?

You are right, no worries, feel free to use my email address: phwhite89@gmail.com or paste the logs here.