planetk / homebridge-netatmo

This is a homebridge plugin for several netatmo devices
Apache License 2.0
108 stars 25 forks source link

Error in Raspi 4 #85

Open FlyingLemming opened 4 years ago

FlyingLemming commented 4 years ago

Hi, I recently migrated to a Raspberry Pi 4B due to performance issues on my old device. Hence, I am running Raspbian 10 instead of 9 now. Unfortunately, I cannot get homebridge-netatmo to run on the new platform:

May 06 11:54:45 raspberrypi homebridge[14869]: [5/6/2020, 11:54:45] TypeError: Cannot read property 'CO2' of undefined May 06 11:54:45 raspberrypi homebridge[14869]: at WeatherStationAccessory.mapAccessoryDataToWeatherData (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/accessory/weatherstation-accessory.js:80:40) May 06 11:54:45 raspberrypi homebridge[14869]: at WeatherStationAccessory.notifyUpdate (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/accessory/weatherstation-accessory.js:64:30) May 06 11:54:45 raspberrypi homebridge[14869]: at WeatherStationAccessory. (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/accessory/weatherstation-accessory.js:56:16) May 06 11:54:45 raspberrypi homebridge[14869]: at WeatherstationDeviceType. (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/lib/netatmo-device.js:76:11) May 06 11:54:45 raspberrypi homebridge[14869]: at NodeCache.module.exports.NodeCache.get (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/node_modules/node-cache/lib/node_cache.js:58:11) May 06 11:54:45 raspberrypi homebridge[14869]: at NodeCache.get (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/node_modules/node-cache/lib/node_cache.js:3:59) May 06 11:54:45 raspberrypi homebridge[14869]: at WeatherstationDeviceType.refreshDeviceData (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/lib/netatmo-device.js:67:16) May 06 11:54:45 raspberrypi homebridge[14869]: at WeatherStationAccessory.refreshData (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/accessory/weatherstation-accessory.js:54:19) May 06 11:54:45 raspberrypi homebridge[14869]: at new WeatherStationAccessory (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/accessory/weatherstation-accessory.js:50:12) May 06 11:54:45 raspberrypi homebridge[14869]: at WeatherstationDeviceType.buildAccessory (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/device/weatherstation-device.js:45:14) May 06 11:54:45 raspberrypi homebridge[14869]: at WeatherstationDeviceType. (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/lib/netatmo-device.js:110:30) May 06 11:54:45 raspberrypi homebridge[14869]: at Array.forEach (:null:null) May 06 11:54:45 raspberrypi homebridge[14869]: at WeatherstationDeviceType.buildAccessories (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/lib/netatmo-device.js:96:34) May 06 11:54:45 raspberrypi homebridge[14869]: at WeatherstationDeviceType. (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/lib/netatmo-device.js:58:14) May 06 11:54:45 raspberrypi homebridge[14869]: at WeatherstationDeviceType. (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/lib/netatmo-device.js:72:13) May 06 11:54:45 raspberrypi homebridge[14869]: at WeatherstationDeviceType. (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/device/weatherstation-device.js:40:9) May 06 11:54:45 raspberrypi homebridge[14869]: at netatmo. (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/node_modules/netatmo/netatmo.js:227:14) May 06 11:54:45 raspberrypi homebridge[14869]: at Request.self.callback (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/node_modules/request/request.js:185:22) May 06 11:54:45 raspberrypi homebridge[14869]: at Request.emit (events.js:311:20) May 06 11:54:45 raspberrypi homebridge[14869]: at Request. (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/node_modules/request/request.js:1154:10) May 06 11:54:45 raspberrypi homebridge[14869]: at Request.emit (events.js:311:20) May 06 11:54:45 raspberrypi homebridge[14869]: at IncomingMessage. (/usr/local/lib/node_modules/homebridge-netatmo-schmittx/node_modules/request/request.js:1076:12) May 06 11:54:45 raspberrypi homebridge[14869]: at Object.onceWrapper (events.js:417:28) May 06 11:54:45 raspberrypi homebridge[14869]: at IncomingMessage.emit (events.js:323:22) May 06 11:54:45 raspberrypi homebridge[14869]: at endReadableNT (_stream_readable.js:1204:12) May 06 11:54:45 raspberrypi homebridge[14869]: at processTicksAndRejections (internal/process/task_queues.js:84:21)

Any ideas...?

Best regards, Jochen