-
Notifications
You must be signed in to change notification settings - Fork 1
TypeError: characteristic.internalHAPRepresentation is not a function #8
Comments
Same problem here. Plese, please fix it... |
Hi, can you please provide node version, homebridge vedsion, your config as well as some details about how you’re running homebridge? |
Node: v17.9.0 Part of my config I run my homebridge on raspbian 10 buster. There is also one more error in the logs: |
The last bit is a very annoying warning that makes no difference so you can safely ignore it. Regarding the rest, I've tried it on a lower version of node/homebridge and it works. The error is in the internals of homebridge so I would not know where to start to fix it (since there's been no published change to the APIs) |
There is new version of homebridge out there (1.4.1), this is from changelog: Upgraded HAP-NodeJS to v0.10.2 With homebridge update to 1.4.1 I receive new error ... is this fixable on your side? :-) TypeError: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined |
I'm seeing the same exact issue. I've tested on homebridge 1.2.x, 1.3.x, and 1.4.x with no success. I've also tried Node v12, v14, and v16. |
"TypeError: characteristic.internalHAPRepresentation is not a function" exactly same here! |
Continuing conversation over #9 |
Hi,
Installing this pluggin it shows this error and Homebridge stops.
Can you help??
TypeError: characteristic.internalHAPRepresentation is not a function
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Service.ts:648:82
at Array.map ()
at Switch.Service.internalHAPRepresentation (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Service.ts:648:45)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1097:54
at Array.map ()
at Accessory.internalHAPRepresentation (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1097:31)
at Bridge.Accessory.internalHAPRepresentation (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1104:36)
at Bridge. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1213:25)
at step (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:143:27)
at Object.next (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:124:57)
at /usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:117:75
at new Promise ()
at __awaiter (/usr/local/lib/node_modules/homebridge/node_modules/tslib/tslib.js:113:16)
at Bridge.Accessory.publish (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:928:38)
at BridgeService.publishBridge (/usr/local/lib/node_modules/homebridge/src/bridgeService.ts:215:17)
at Server.publishBridge (/usr/local/lib/node_modules/homebridge/src/server.ts:186:24)
at /usr/local/lib/node_modules/homebridge/src/server.ts:177:24
at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:176:5)
The text was updated successfully, but these errors were encountered: