aurc / melview-mitsubishi-au-nz

Apache License 2.0
9 stars 5 forks source link

Failed to process platform discovery #11

Open gavb2005 opened 1 year ago

gavb2005 commented 1 year ago

Describe Your Problem: Hoobs plugin appears to be finding the Building OK, but stalls on the above error. Any guidance would be appreaciated.

Logs:

11/2/2022, 11:50:58 AMAirconditioner Mitsubishi Au Nz Bridge starting 11/2/2022, 11:51:07 AMAirconditioner Mitsubishi Au Nz BridgeLoaded plugin 'homebridge-airconditioner-mitsubishi-au-nz' 11/2/2022, 11:51:07 AMAirconditioner Mitsubishi Au Nz BridgeLoading 1 platforms... 11/2/2022, 11:51:07 AMAirconditioner Mitsubishi Au Nz BridgeBridge is running on port 51826. 11/2/2022, 11:51:08 AMAirconditioner Mitsubishi Au Nz BridgeMitsubishiAUNZDiscovered Building [ 60709 ] = ' Building ' with 3 units! 11/2/2022, 11:51:08 AMAirconditioner Mitsubishi Au Nz BridgeMitsubishiAUNZAdding new accessory: Bedroom [ 206197 ]: 8c456e3c-1096-4001-9185-27be5c0e58c2 11/2/2022, 11:51:09 AMAirconditioner Mitsubishi Au Nz BridgeMitsubishiAUNZSet Device: Bedroom 11/2/2022, 11:51:09 AMAirconditioner Mitsubishi Au Nz BridgeMitsubishiAUNZERRORFailed to process platform discovery. Fix the problem and restart the service.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

iCodeTechnologies commented 1 year ago

I have the same problem, I have two A/C units on the same account, one is a ducted system PEA-RP140GAA, and a small wall mounted unit in my home office MSZ-GL25VGD. The ducted system shows up just fine, but the error (below) comes up when the plugin tries to setup the wall mounted unit.

Any help would be appreciated.

31/12/2022, 16:29:12Mitsubishi Aircon Au Nz BridgeMitsubishiAUNZAdding new accessory: Office [ 150230 ]: e3e4561e-b307-4f2e-99dd-acd58a3c5c17 31/12/2022, 16:29:12Mitsubishi Aircon Au Nz BridgeMitsubishiAUNZSet Device: Office 31/12/2022, 16:29:12Mitsubishi Aircon Au Nz BridgeMitsubishiAUNZHEAT/COOL Capability: Office [COMPLETED] 31/12/2022, 16:29:12Mitsubishi Aircon Au Nz BridgeMitsubishiAUNZERRORFailed to process platform discovery. Fix the problem and restart the service. 31/12/2022, 16:33:40Mitsubishi Aircon Au Nz BridgeERROR[Mitsubishi Aircon Au Nz Bridge D7B6@Office@@Active] Unhandled error thrown inside write handler for characteristic: Cannot read properties of undefined (reading 'lenth')

Plugin Config: { "platform": "MitsubishiAUNZ", "user": "xxxx", "password": "xxxx", "zonetype": "fan", "zones": true }

Plugin Version: 1.0.3 Homebridge Version: 1.5.0 Node.js Version: 16.19.0 NPM version: 8.19.3 Operating System: Linux hoobs 5.15.32-v7l+ armv7l GNU/Linux

iCodeTechnologies commented 1 year ago

I thought it might have been related to a mixture of zone & non-zone systems, but taking the zones out didn't help.

The messages out to the unit go through, sort of, but in the Home app it shows "No response", so I think the errors that appear are due to issues with the messaging to the cloud service.

31/12/2022, 18:02:54Mitsubishi Aircon Au Nz BridgeERROR[Mitsubishi Aircon Au Nz Bridge 3595@Office@@Active] Unhandled error thrown inside write handler for characteristic: Cannot read properties of undefined (reading 'lenth') 31/12/2022, 18:02:56Mitsubishi Aircon Au Nz BridgeERROR[Mitsubishi Aircon Au Nz Bridge 3595@Office@@Active] Unhandled error thrown inside write handler for characteristic: Cannot read properties of undefined (reading 'lenth') 31/12/2022, 18:02:59Mitsubishi Aircon Au Nz BridgeERROR[Mitsubishi Aircon Au Nz Bridge 3595@Office@@Active] Unhandled error thrown inside write handler for characteristic: Cannot read properties of undefined (reading 'lenth') 31/12/2022, 18:03:01Mitsubishi Aircon Au Nz BridgeERROR[Mitsubishi Aircon Au Nz Bridge 3595@Office@@Active] Unhandled error thrown inside write handler for characteristic: Cannot read properties of undefined (reading 'lenth') 31/12/2022, 18:03:03Mitsubishi Aircon Au Nz BridgeERROR[Mitsubishi Aircon Au Nz Bridge 3595@Office@@Active] Unhandled error thrown inside write handler for characteristic: Cannot read properties of undefined (reading 'lenth')

jclarkenz commented 1 year ago

I have the same issue, one ducted system (2 zones) and 2 console units. No solution found? I've gone back to the https://github.com/aurc/melview-mitsubishi-au-nz#readme plugin which does not have zone control but does work.

iCodeTechnologies commented 1 year ago

I tried messing around with the code but couldn't fix it. I've not worked with these plugins, or running things in node.

I took your advice and installed https://github.com/aurc/melview-mitsubishi-au-nz#readme, it seems to be working fine.