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

Could not fetch data from API / Cannot read property 'value' of undefined #9

Open CumpsD opened 4 years ago

CumpsD commented 4 years ago

Just installed this and configured with username/pass of my withings dashboard, verified it is correct by logging in myself. The mac address is copy-pasted from the UI so it's fine to.

But I am getting this error on startup:

Could not fetch data from API / Cannot read property 'value' of undefined

I am guessing it is one of these:

https://github.com/dhayab/homebridge-withings-air-quality/blob/24a6040a431f69b3e42f6f36b0543b443010b74d/src/lib/api.ts#L161

https://github.com/dhayab/homebridge-withings-air-quality/blob/24a6040a431f69b3e42f6f36b0543b443010b74d/src/lib/api.ts#L165

Any chance you can advise on what to do? Or any possibility to enable some kind of debug mode which prints the calls?

alert82 commented 3 years ago

same problem here

NoahPeeters commented 3 years ago

I have the same issue. It does work with my Smart Body Analyzer but it does not work with my Body cardio.

dhayab commented 3 years ago

Hi, this plugin only works with the Smart Body Analyzer, as I believe it's the only smart scale in the Withings lineup that provides carbon dioxide levels.