I have the following error in ubuntu 18.04 and 20.04 after detecting correctly all the vera devices. And after showing the QR it crashes. My config.json is very simple:
{
“bridge”: {
“name”: “Homebridge”,
“pin”: “987-54-453”,
“port”: 51826,
“username”: “CD:23:2D:D3:CE:30”
},
“accessories”: [],
“platforms”: [{
“platform”: “Vera”,
“name”: “Vera”,
“veraIP”: “192.168.1.50”
}]
}
Can you help me, in detecting what is causing the error? Thank you in advance.
The error is repeated 3 times:
[29/12/2020 20:30:02] TypeError: Cannot read property ‘level’ of undefined
at Object.module.getVariable (/usr/local/lib/node_modules/homebridge-vera/lib/functions.js:29:22)
at map.forEach (/usr/local/lib/node_modules/homebridge-vera/lib/functions.js:34:40)
at Array.forEach ()
at Timeout._onTimeout (/usr/local/lib/node_modules/homebridge-vera/lib/functions.js:33:15)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
It could be caused by duplicate id’s, when a scene and a device have the same id.
Add "ignorescenes":true to the config to see if that resolves the issue.
Can you post the home bridge log entries for the discovered devices? It looks like it is trying to process a device that has a ‘level’ property. If we can figure out which device is causing the issue, you can add it to the ignoreDevices section of the config.json.
Debug Homebridge.pdf (38.0 KB)
Thank you for your support. Attached you can find a pdf with the logs, but I still can’t see which device causes the problem.
Ok, you are running version 0.82 which is pretty old. I run the latest from Damian’s repo. I would suggest that you try to update your homebridge-vera install using the following:
@Crille - Think of Homebridge as a container that runs community plugins to expose accessories to HomeKit. Homebridge has a version as well as the plugin homebridge-vera. My suggestion is to install the latest homebridge-vera plugin from Damian’s git repo.
You’re absolutely right, too many New Year’s Eve drinks for me I guess, mixing up homebridge and homebridge-vera packages. But everything after 0.8.2 is beta what I can understand?
While beta, it has been working well in my home for months… If your aint broke, don’t fix it. If it is, then try the git repo because you can always revert.
1 Like
Best Home Automation shopping experience. Shop at Ezlo!