derekprior / homebridge-schluter-thermostat

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

Unhandled Error - TempUnitIsCelsius not defined #13

Open ryanfroese opened 1 year ago

ryanfroese commented 1 year ago

The TempUnitIsCelsius (seems to be a bool variable) is not defined, and throws an unhandled error. Here are the logs from my Homebridge in debug mode:

[3/13/2023, 8:30:21 AM] [Master Bed Thermostat] GET CurrentHeatingCoolingState [3/13/2023, 8:30:21 AM] [Master Bed Thermostat] GET TargetHeatingCoolingState [3/13/2023, 8:30:21 AM] [Master Bed Thermostat] GET CurrentTemperature [3/13/2023, 8:30:21 AM] [Master Bed Thermostat] GET TargetTemperature [3/13/2023, 8:30:21 AM] [Master Bed Thermostat] GET TemperatureDisplayUnits [3/13/2023, 8:30:21 AM] [Master Bed Thermostat] Appending session ID lxb2nsvAjE6TgbSCkGE83w to request [3/13/2023, 8:30:21 AM] [Master Bed Thermostat] 401 Unauthorized, clearing session ID [3/13/2023, 8:30:21 AM] [homebridge-schluter-thermostat] This plugin threw an error from the characteristic 'Temperature Display Units': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'TempUnitIsCelsius'). See https://homebridge.io/w/JtMGR for more info. [3/13/2023, 8:30:21 AM] [homebridge-schluter-thermostat] TypeError: Cannot read properties of undefined (reading 'TempUnitIsCelsius') at SchluterAPI.getTemperatureUnit (/volume1/homebridge/node_modules/homebridge-schluter-thermostat/src/schluter-api.ts:81:21) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) [3/13/2023, 8:30:21 AM] [Master Bed Thermostat] Appending session ID zjz_Thneq0yVFNhKQSPxlA to request [3/13/2023, 8:30:21 AM] [Master Bed Thermostat] Appending session ID 9AKlV-GhAkGNlxpLYgPB-w to request

Let me know if you need any further help, or if this is just a "me" problem!

adisor19 commented 7 months ago

Seeing the same error in my logs :

[homebridge-schluter-thermostat] This plugin threw an error from the characteristic 'Temperature Display Units': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'TempUnitIsCelsius'). See https://homebridge.io/w/JtMGR for more info.

So you're not the only one.. that being said I'm not sure if the plugin is still being maintained :/