homebridge-plugins / homebridge-resideo

The Homebridge Resideo plugin allows you to access your Resideo devices from HomeKit.
ISC License
37 stars 8 forks source link

Bug: TypeError crashes Homebridge #786

Closed tbaur closed 1 year ago

tbaur commented 1 year ago

Describe The Bug

TypeError crashes Homebridge

To Reproduce

TypeError crashes Homebridge

Expected behavior

Does not crash Homebridge

Relevant log output

[7/4/2023, 11:53:55 AM] TypeError: Cannot read properties of undefined (reading 'temperature')
    at LeakSensor.parseStatus (/usr/local/lib/node_modules/homebridge-resideo/src/devices/leaksensors.ts:178:67)
    at new LeakSensor (/usr/local/lib/node_modules/homebridge-resideo/src/devices/leaksensors.ts:80:10)
    at ResideoPlatform.Leak (/usr/local/lib/node_modules/homebridge-resideo/src/platform.ts:579:9)
    at ResideoPlatform.deviceClass (/usr/local/lib/node_modules/homebridge-resideo/src/platform.ts:430:14)
    at ResideoPlatform.discoverDevices (/usr/local/lib/node_modules/homebridge-resideo/src/platform.ts:401:24)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
[7/4/2023, 11:53:55 AM] Got SIGTERM, shutting down Homebridge...

Config for homebridge-resideo

N/A

Screenshots

No response

Device & Model

N/A

Node.js Version

Current

NPM Version

Current

Homebridge Version

Current

Homebridge Resideo Plugin Version

Current

Homebridge Config UI X Plugin Version

Current

Operating System

OSX

donavanbecker commented 1 year ago

@tbaur Can you try disabling temperature using the config to bypass till I have time to fix this.

donavanbecker commented 1 year ago

v1.4.0 has been released which should resolve this.