seydx / homebridge-tado-platform

Homebridge plugin for controlling Tado devices
MIT License
126 stars 65 forks source link

tado Error: Cannot read properties of undefined (reading 'concentration') #143

Open Christian-CFP opened 11 months ago

Christian-CFP commented 11 months ago

tado Error: Cannot read properties of undefined (reading 'concentration') ? Thats since 3 days. Don't know what causees this.

adamstamper commented 11 months ago

Yep same! TypeError: Cannot read properties of undefined (reading 'concentration') at updateAirQuality (/var/lib/homebridge/node_modules/homebridge-tado-platform/src/helper/handler.js:1274:53) at processTicksAndRejections (node:internal/process/task_queues:95:5) at getStates (/var/lib/homebridge/node_modules/homebridge-tado-platform/src/helper/handler.js:625:9)

SaschaRH commented 11 months ago

Me too. NodeJS v18.16.1. Maybe Tado changed the API?

Christian-CFP commented 11 months ago

I'm using Node 16.20.1

hanwalt commented 11 months ago

Same error for me, Node v18.6.1

adavison007 commented 11 months ago

I'm having the same issue too...

[21/07/2023, 19:49:57] [TadoPlatform] TypeError: Cannot read properties of undefined (reading 'concentration') at updateAirQuality (/usr/local/lib/node_modules/homebridge-tado-platform/src/helper/handler.js:1274:53) at processTicksAndRejections (node:internal/process/task_queues:95:5) at getStates (/usr/local/lib/node_modules/homebridge-tado-platform/src/helper/handler.js:625:9)

adavison007 commented 11 months ago

@seydx Are you aware of this issue?

adavison007 commented 11 months ago

Has anyone found a way to resolve this issue?

Christian-CFP commented 11 months ago

Nope 👎 and @seydx does not care, I guess but I do not hope/wish so.

SaschaRH commented 11 months ago

hmmm... https://community.tado.com/de/discussion/19373/warum-sind-in-der-app-die-pollenvorhersage-und-die-luftverschmutzungswerte-nicht-mehr-vorhanden

Christian-CFP commented 11 months ago

I guess a feature that they have dumped maybe? But what's the point regarding this issue?

SaschaRH commented 11 months ago

Well the error is: reading "concentration" at "updateAirQuality". So my guess is, the API changed and "concentration" (CO2, pollen, whatever) is empty.

Christian-CFP commented 11 months ago

Ok, now I got it! THX. Thats possible. If this only relates to the airquality and not the entire system. I mean the error... Becaus I do not get the at ... This is all I get :"TypeError: Cannot read properties of undefined (reading 'concentration')" Im on HOOBS ;)

SaschaRH commented 11 months ago

I looks just like that. I checked /homebridge-tado-platform/tree/master/src/helper/handler.js and the error occurs at let pm10 = returnPol('PM10')[0].concentration.value; which refers to particulate matter (PM) and line 625 await updateAirQuality();. I really hope this project is active maintained, since the last update was 2021... :(

Christian-CFP commented 11 months ago

I am afraid that this project is not actively supervised. Just like his other projects like the FRITZ Platform.

adavison007 commented 11 months ago

@seydx Would a donation help you getting this challenge resolved? I love your plugin, it's the best for Tado, so some assistance in fixing this would be appreciated by many

SaschaRH commented 11 months ago

Just turned off "Air quality" and the error is gone:

"weather": { "temperatureSensor": false, "solarIntensity": false, "accTypeSolarIntensity": "LIGHTBULB", "airQuality": false },

I'd sure like to have the air quality back, but that's more a Tado issue.

Christian-CFP commented 11 months ago

Yes, that's what I have done yesterday.

hanwalt commented 11 months ago

I think the problem is that Tado removed the items for "pollen forecast" and "air pollution values" from their App and therefore from their API