dhayab / homebridge-withings-air-quality

Homebridge plugin that exposes air quality data from the Withings WS-50 Smart Body Analyzer
MIT License
16 stars 6 forks source link

TypeError: Cannot read properties of undefined crashing Homebridge #26

Closed 7AC closed 2 years ago

7AC commented 2 years ago

I think this started happening after the last UI upgrade:

[12/13/2021, 8:31:46 PM] [homebridge-withings-air-quality] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info.
[12/13/2021, 8:31:46 PM] TypeError: Cannot read properties of undefined (reading 'value')
    at r.getTemperature (/usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:4:2581)
    at i.updateTemperature (/usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:5207)
    at /usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:3615
    at i.<anonymous> (/usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:4575)
    at /usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:1529
    at Object.next (/usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:1634)
    at /usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:547
    at new Promise (<anonymous>)
    at t (/usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:295)
    at CurrentTemperature.<anonymous> (/usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:4505)
[12/13/2021, 8:31:46 PM] TypeError: Cannot read properties of undefined (reading 'value')
    at r.getCarbonDioxide (/usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:4:2512)
    at i.updateAirQuality (/usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:4891)
    at /usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:3409
    at i.<anonymous> (/usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:4575)
    at /usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:1529
    at Object.next (/usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:1634)
    at /usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:547
    at new Promise (<anonymous>)
    at t (/usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:295)
    at AirQuality.<anonymous> (/usr/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:4505)
[12/13/2021, 8:31:47 PM] Got SIGTERM, shutting down Homebridge...

I'm running the following: