JeroenVdb / homebridge-daikin-cloud

This Homebrige plugin connects to the Daikin Cloud and loads all your devices to be controled via Homebridge and Homekit.
https://www.npmjs.com/package/homebridge-daikin-cloud
Apache License 2.0
40 stars 11 forks source link

This plugin threw an error. #74

Closed d2ugsd closed 4 months ago

d2ugsd commented 4 months ago

Describe The Bug: I created the app in the developer portal, got the client id and the secret key, authorized the app trough the local https server that the plugin created, got the message "Authorization Complete", rebooted Home bridge and got the following error.

Logs:

[26/07/2024, 00:30:25] [DaikinCloud] [Living Room] GET TargetHeaterCoolerState, operationMode: heating
[26/07/2024, 00:30:25] [DaikinCloud] [Living Room] GET SwingMode, verticalSwingMode: stop
[26/07/2024, 00:30:25] [DaikinCloud] [Living Room] GET SwingMode, horizontalSwingMode: stop
[26/07/2024, 00:30:25] [DaikinCloud] [Living Room] GET ActiveState, state: off
[26/07/2024, 00:30:25] [DaikinCloud] [Living Room] GET HeatingThresholdTemperature, temperature: 25
[26/07/2024, 00:30:25] [DaikinCloud] [Living Room] GET RotationSpeed, speed: 3
[26/07/2024, 00:30:25] [DaikinCloud] [Living Room] GET CoolingThresholdTemperature, temperature: 25
[26/07/2024, 00:30:25] [homebridge-daikin-cloud] This plugin threw an error from the characteristic 'Current Temperature': Unhandled error thrown inside read handler for characteristic: Cannot read properties of null (reading 'value'). See https://homebridge.io/w/JtMGR for more info.
[26/07/2024, 00:30:25] [homebridge-daikin-cloud] TypeError: Cannot read properties of null (reading 'value')
    at daikinAirConditioningAccessory.handleCurrentTemperatureGet (/usr/lib/node_modules/homebridge-daikin-cloud/src/daikinAirConditioningAccessory.ts:208:119)
    at CurrentTemperature.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2404:32)
    at step (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:195:27)
    at Object.next (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:176:57)
    at /usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:169:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:165:16)
    at CurrentTemperature.Characteristic.handleGetRequest (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:740:24)
    at Bridge.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1672:27)
    at step (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:195:27)
    at Object.next (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:176:57)
    at /usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:169:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/usr/lib/node_modules/homebridge/node_modules/tslib/tslib.js:165:16)
    at Bridge.Accessory.handleCharacteristicRead (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:1383:24)
    at _loop_1 (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1610:12)
    at Bridge.Accessory.handleGetCharacteristics (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:1371:17)
    at HAPServer.emit (node:events:519:28)
    at HAPServer.handleCharacteristics (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:908:12)
    at IncomingMessage.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:433:11)
    at IncomingMessage.emit (node:events:519:28)
    at endReadableNT (node:internal/streams/readable:1696:12)

--------------- End Daikin info for debugging reasons --------------------

Plugin Config: { "clientId": "removed", "clientSecret": "removed", "callbackServerExternalAddress": "10.1.1.151", "callbackServerPort": "8582", "oidcCallbackServerBindAddr": "0.0.0.0", "showExtraFeatures": false, "updateIntervalInMinutes": 15, "platform": "DaikinCloud" }

Daikin Environment:

Homebridge Environment:

d2ugsd commented 4 months ago

Daikin model: BRP069c4x Daikin Firmware version: 1_28_0

d2ugsd commented 4 months ago

All of a sudden it worked.