fjs21 / homebridge-blueair

BlueAir air purifier plugin for homebridge
https://www.npmjs.com/package/@fjs21/homebridge-blueair
Apache License 2.0
50 stars 6 forks source link

Excessive Type Errors in logs after v1.2.0 Release #265

Closed jonato1 closed 1 year ago

jonato1 commented 1 year ago

Example of error: [4/13/2023, 7:35:46 PM] [@fjs21/homebridge-blueair] TypeError: Cannot read properties of undefined (reading 'updateCharacteristic') at BlueAirDustProtectAccessory.updateLED (/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:553:22) at BlueAirDustProtectAccessory.updateAccessoryCharacteristics (/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:354:16) at processTicksAndRejections (node:internal/process/task_queues:96:5) at BlueAirDustProtectAccessory.handleAirPurifierActiveGet (/homebridge/node_modules/@fjs21/homebridge-blueair/src/platformAccessory_DustProtect.ts:258:5) [4/13/2023, 7:35:46 PM] [@fjs21/homebridge-blueair] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'updateCharacteristic'). See https://homebridge.io/w/JtMGR for more info.

jonato1 commented 1 year ago

Errors are persisting for the following characteristics:

[4/15/2023, 10:16:26 AM] [@fjs21/homebridge-blueair] This plugin threw an error from the characteristic 'Current Air Purifier State': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'updateCharacteristic'). See https://homebridge.io/w/JtMGR for more info. [4/15/2023, 10:16:27 AM] [@fjs21/homebridge-blueair] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'updateCharacteristic'). See https://homebridge.io/w/JtMGR for more info. [4/15/2023, 10:16:27 AM] [@fjs21/homebridge-blueair] This plugin threw an error from the characteristic 'Rotation Speed': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'updateCharacteristic'). See https://homebridge.io/w/JtMGR for more info. [4/15/2023, 10:16:27 AM] [@fjs21/homebridge-blueair] This plugin threw an error from the characteristic 'Target Air Purifier State': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'updateCharacteristic'). See https://homebridge.io/w/JtMGR for more info. [4/15/2023, 10:16:27 AM] [@fjs21/homebridge-blueair] This plugin threw an error from the characteristic 'Lock Physical Controls': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'updateCharacteristic'). See https://homebridge.io/w/JtMGR for more info. [4/15/2023, 10:16:27 AM] [@fjs21/homebridge-blueair] This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'updateCharacteristic'). See https://homebridge.io/w/JtMGR for more info.

jonato1 commented 1 year ago

Resolved with https://github.com/fjs21/homebridge-blueair/commit/1a05875d8deb894ae68dc5edab81116f2ccba5a5