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 from the characteristic 'Swing Mode' #89

Closed grunchy99 closed 1 month ago

grunchy99 commented 1 month ago

Daikin Environment:

Homebridge Environment:

JeroenVdb commented 1 month ago

@grunchy99 can your logs? You should find them between the lines --- Daikin info for debugging reasons (enable Debug Mode for more logs) --- and --------------- End Daikin info for debugging reasons --------------------

grunchy99 commented 1 month ago

@JeroenVdb The logs :

[10/21/2024, 2:10:48 PM] [homebridge-daikin-cloud] --- Daikin info for debugging reasons (enable Debug Mode for more logs) --- [10/21/2024, 2:10:49 PM] [homebridge-daikin-cloud] [Platform] Restoring existing accessory from cache: Chambre Parents [10/21/2024, 2:10:49 PM] [homebridge-daikin-cloud] [Platform] Device found with id: 6255429d-b85e-4210-931d-433855d48373 [10/21/2024, 2:10:49 PM] [homebridge-daikin-cloud] [Platform] id: 6255429d-b85e-4210-931d-433855d48373 [10/21/2024, 2:10:49 PM] [homebridge-daikin-cloud] [Platform] name: Chambre Parents [10/21/2024, 2:10:49 PM] [homebridge-daikin-cloud] [Platform] last updated: Mon Oct 21 2024 14:10:49 GMT+0200 (Central European Summer Time) [10/21/2024, 2:10:49 PM] [homebridge-daikin-cloud] [Platform] modelInfo: BRP069B4x [10/21/2024, 2:10:49 PM] [homebridge-daikin-cloud] [Platform] deviceModel: dx23 [10/21/2024, 2:10:49 PM] [homebridge-daikin-cloud] --------------- End Daikin info for debugging reasons --------------------

grunchy99 commented 1 month ago

Logs from debug mode at problem timestamp :

[10/22/2024, 7:00:02 AM] [homebridge-daikin-cloud] Failed to set Error: Please provide a valid datapoint definition that exists in the data structure at DaikinCloudDevice.setData (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/device.ts:232:19) at ClimateControlService.handleSwingModeSet (/homebridge/node_modules/homebridge-daikin-cloud/src/climateControlService.ts:404:49) at SwingMode.handleSetRequest (/opt/homebridge/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2339:42) at Bridge.handleCharacteristicWrite (/opt/homebridge/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1810:29) at Bridge.handleSetCharacteristics (/opt/homebridge/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1683:12) at HAPServer.emit (node:events:519:28) at HAPServer.handleCharacteristics (/opt/homebridge/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:943:12) at IncomingMessage. (/opt/homebridge/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:418:11) at IncomingMessage.emit (node:events:519:28) at endReadableNT (node:internal/streams/readable:1696:12) { _id: '7d4bd896-b31c-478d-9ce4-a9e4234df253', id: '7d4bd896-b31c-478d-9ce4-a9e4234df253', type: 'dx23', deviceModel: 'dx23', isCloudConnectionUp: { settable: false, value: true }, managementPoints: [ { embeddedId: 'gateway', managementPointType: 'gateway', managementPointCategory: 'secondary', name: [Object], modelInfo: [Object], ipAddress: [Object], macAddress: [Object], firmwareVersion: [Object], isFirmwareUpdateSupported: [Object] }, { embeddedId: 'climateControl', managementPointType: 'climateControl', managementPointSubType: 'mainZone', managementPointCategory: 'primary', onOffMode: [Object], name: [Object], isHolidayModeActive: [Object], isInErrorState: [Object], errorCode: [Object], operationMode: [Object], temperatureControl: [Object], sensoryData: [Object], fanControl: [Object], schedule: [Object], isPowerfulModeActive: [Object], powerfulMode: [Object], consumptionData: [Object], holidayMode: [Object] }, { embeddedId: 'indoorUnit', managementPointType: 'indoorUnit', managementPointCategory: 'secondary', name: [Object], softwareVersion: [Object] } ], embeddedId: '52447ea2-2bd6-42e4-8876-5940a7c9b44b', timestamp: '2024-10-22T04:59:50.877Z' }

JeroenVdb commented 1 month ago

@grunchy99 can you try again with homebridge-daikin-cloud@2.7.0-beta.4? I added extra logging.

grunchy99 commented 1 month ago

Plugin updated to 2.7.0-b4, but still the error :

[10/22/2024, 10:57:51 AM] [homebridge-daikin-cloud] Failed to set Error: Please provide a valid datapoint definition that exists in the data structure at DaikinCloudDevice.setData (/homebridge/node_modules/homebridge-daikin-cloud/node_modules/daikin-controller-cloud/src/device.ts:232:19) at ClimateControlService.handleSwingModeSet (/homebridge/node_modules/homebridge-daikin-cloud/src/climateControlService.ts:405:49) at SwingMode.handleSetRequest (/opt/homebridge/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2339:42) at Bridge.handleCharacteristicWrite (/opt/homebridge/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1810:29) at Bridge.handleSetCharacteristics (/opt/homebridge/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1683:12) at HAPServer.emit (node:events:519:28) at HAPServer.handleCharacteristics (/opt/homebridge/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:943:12) at IncomingMessage. (/opt/homebridge/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:418:11) at IncomingMessage.emit (node:events:519:28) at endReadableNT (node:internal/streams/readable:1696:12) { "managementPoints": [ { "embeddedId": "gateway", "managementPointType": "gateway", "managementPointCategory": "secondary", "name": { "settable": false, "maxLength": 32, "value": "Gateway" }, "modelInfo": { "settable": false, "value": "BRP069B4x" }, "ipAddress": { "settable": false, "value": "REDACTED" }, "macAddress": { "settable": false, "value": "REDACTED" }, "firmwareVersion": { "settable": false, "value": "1_14_88" }, "isFirmwareUpdateSupported": { "settable": false, "value": true } }, { "embeddedId": "climateControl", "managementPointType": "climateControl", "managementPointSubType": "mainZone", "managementPointCategory": "primary", "onOffMode": { "settable": true, "values": [ "on", "off" ], "value": "on" }, "name": { "settable": false, "maxLength": 32, "value": "Chambre Parents" }, "isHolidayModeActive": { "settable": false, "value": false }, "isInErrorState": { "settable": false, "value": false }, "errorCode": { "settable": false, "value": "00" }, "operationMode": { "settable": true, "values": [ "auto", "dry", "cooling", "heating", "fanOnly" ], "value": "heating" }, "temperatureControl": { "ref": "#temperatureControl", "settable": true, "value": { "operationModes": { "auto": { "setpoints": { "roomTemperature": { "settable": true, "value": 25, "minValue": 18, "maxValue": 30, "stepValue": 0.5 } } }, "cooling": { "setpoints": { "roomTemperature": { "settable": true, "value": 25, "minValue": 18, "maxValue": 32, "stepValue": 0.5 } } }, "heating": { "setpoints": { "roomTemperature": { "settable": true, "value": 13, "minValue": 10, "maxValue": 30, "stepValue": 0.5 } } } } } }, "sensoryData": { "ref": "#sensoryData", "settable": false, "value": { "roomTemperature": { "settable": false, "value": 19 }, "outdoorTemperature": { "settable": false, "value": 17 } } }, "fanControl": { "ref": "#fanControl", "settable": true, "value": { "operationModes": { "auto": { "fanDirection": { "vertical": { "currentMode": { "settable": true, "value": "stop", "values": [ "stop", "swing" ] } } }, "fanSpeed": { "currentMode": { "settable": true, "value": "fixed", "values": [ "quiet", "auto", "fixed" ] }, "modes": { "fixed": { "value": 3, "settable": true, "maxValue": 5, "minValue": 1, "stepValue": 1 } } } }, "dry": { "fanDirection": { "vertical": { "currentMode": { "settable": true, "value": "stop", "values": [ "stop", "swing" ] } } }, "fanSpeed": { "currentMode": { "settable": true, "value": "auto", "values": [ "auto" ] } } }, "cooling": { "fanDirection": { "vertical": { "currentMode": { "settable": true, "value": "stop", "values": [ "stop", "swing" ] } } }, "fanSpeed": { "currentMode": { "settable": true, "value": "fixed", "values": [ "quiet", "auto", "fixed" ] }, "modes": { "fixed": { "value": 3, "settable": true, "maxValue": 5, "minValue": 1, "stepValue": 1 } } } }, "heating": { "fanDirection": { "vertical": { "currentMode": { "settable": true, "value": "stop", "values": [ "stop", "swing" ] } } }, "fanSpeed": { "currentMode": { "settable": true, "value": "fixed", "values": [ "quiet", "auto", "fixed" ] }, "modes": { "fixed": { "value": 4, "settable": true, "maxValue": 5, "minValue": 1, "stepValue": 1 } } } }, "fanOnly": { "fanDirection": { "vertical": { "currentMode": { "settable": true, "value": "stop", "values": [ "stop", "swing" ] } } }, "fanSpeed": { "currentMode": { "settable": true, "value": "fixed", "values": [ "quiet", "auto", "fixed" ] }, "modes": { "fixed": { "value": 3, "settable": true, "maxValue": 5, "minValue": 1, "stepValue": 1 } } } } } } }, "schedule": "REDACTED", "isPowerfulModeActive": { "settable": false, "value": false }, "powerfulMode": { "settable": true, "values": [ "on", "off" ], "value": "off" }, "consumptionData": "REDACTED", "holidayMode": { "ref": "#holidayMode", "settable": true, "value": { "enabled": false } } }, { "embeddedId": "indoorUnit", "managementPointType": "indoorUnit", "managementPointCategory": "secondary", "name": { "settable": false, "maxLength": 32, "value": "Indoor Unit" }, "softwareVersion": { "settable": false, "value": "3.20" } } ], "_id": "7d4bd896-b31c-478d-9ce4-a9e4234df253", "id": "7d4bd896-b31c-478d-9ce4-a9e4234df253", "type": "dx23", "deviceModel": "dx23", "isCloudConnectionUp": { "settable": false, "value": true }, "embeddedId": "52447ea2-2bd6-42e4-8876-5940a7c9b44b", "timestamp": "2024-10-22T08:47:34.264Z" }

JeroenVdb commented 1 month ago

Perfect, now I have enough information for debugging. Looks like your device doesn't support horizontal swing. I added a check on this in homebridge-daikin-cloud@2.7.0-beta.5. Can you verify that version works for you?

grunchy99 commented 1 month ago

I confirm my device doesn't have horizontal swing, only vertical. homebridge-daikin-cloud@2.7.0-beta.5 solve my problem, thanks a lot.