Skip to content

Commit 01c189c

Browse files
committed
Update dishwasher.ts
1 parent 57dc78f commit 01c189c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/devices/dishwasher.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,20 @@ export class SmartHQDishWasher extends deviceBase {
6060
return
6161
}
6262

63+
// Debug: Log what's actually in the Matter API
64+
this.infoLog(`Matter API available. Keys: ${Object.keys(matterAPI).join(', ')}`)
65+
this.infoLog(`Matter API.uuid: ${typeof matterAPI.uuid} = ${matterAPI.uuid ? 'exists' : 'missing'}`)
66+
this.infoLog(`Matter API.deviceTypes: ${typeof matterAPI.deviceTypes} = ${matterAPI.deviceTypes ? 'exists' : 'missing'}`)
67+
this.infoLog(`Matter API.registerAccessory: ${typeof matterAPI.registerAccessory}`)
68+
69+
if (matterAPI.deviceTypes) {
70+
this.infoLog(`Available deviceTypes: ${Object.keys(matterAPI.deviceTypes).join(', ')}`)
71+
}
72+
6373
// Verify all required Matter API methods exist
6474
if (!matterAPI.uuid || !matterAPI.deviceTypes || typeof matterAPI.registerAccessory !== 'function') {
6575
this.errorLog('Matter API is incomplete (missing required methods) - falling back to HAP')
76+
this.errorLog(`Available Matter API keys: ${Object.keys(matterAPI).join(', ')}`)
6677
this.initializeHAP()
6778
return
6879
}

0 commit comments

Comments
 (0)