Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

problem with homebridge 1.3.4 #24

Closed
sorriso93 opened this issue Jun 4, 2021 · 7 comments
Closed

problem with homebridge 1.3.4 #24

sorriso93 opened this issue Jun 4, 2021 · 7 comments

Comments

@sorriso93
Copy link

Hello till last version all was ok, with the update to 1.3.4 now I get this problem.
Any idea?
many thanks

[6/5/2021, 00:32:36] [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.
(node:21526) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'value' of undefined
at r.getTemperature (/usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:4:2582)
at i.updateTemperature (/usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:5207)
at /usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:3615
at i. (/usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:4575)
at /usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:1529
at Object.next (/usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:1634)
at /usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:547
at new Promise ()
at t (/usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:295)
at CurrentTemperature. (/usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:4505)
(node:21526) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:21526) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'value' of undefined
at r.getCarbonDioxide (/usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:4:2513)
at i.updateAirQuality (/usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:4891)
at /usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:3409
at i. (/usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:4575)
at /usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:1529
at Object.next (/usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:1634)
at /usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:547
at new Promise ()
at t (/usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:295)
at AirQuality. (/usr/local/lib/node_modules/homebridge-withings-air-quality/dist/index.js:6:4505)
(node:21526) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)

@martindinicolino
Copy link

we all kinda seem to be experiencing the same issue 🤷‍♂️ i hope it gets fixed soon; i would love to help but i'm a total noob - would love to invest my time into this if anybody happens to know how to point me in the right direction though

@choicedraught
Copy link

My guess is that they Withings changed something regarding the Data available via their API. When I looked whether or not I could try and help with fixing this plugin, I found that there is a Home Assistant plugin that integrates with the Withings API via OAuth. However this plugin is not able to access the Temperate sensor data. So I don't know if there is much hope of a resolution to this.

@martindinicolino
Copy link

thanks, do you happen to have a link to that?

@choicedraught
Copy link

@dhayab
Copy link
Owner

dhayab commented Jun 23, 2021

Hi, as stated in the link returned by the warning (https://git.io/JtMGR), this message should not prevent the plugin from working as Homebridge will correct the value to a valid one. This happens because the newest versions of Homebridge appears to do more data validation, and the plugin probably doesn't set a valid value for the characteristic before retrieving the data from Withings API.

As I'm not actively maintaining this plugin, I can't provide you with an estimated timeframe for a fix, but I'll gladly accept pull requests that resolves this issue.

@dhayab dhayab mentioned this issue Jun 23, 2021
@appleimperio
Copy link

Thank you very much. Tested and working!

@sorriso93
Copy link
Author

Many thanks tested and working!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants