Open ShaunRoberts543 opened 1 year ago
Some more error messages:
[ESPresense] Initializing ESPresense platform...
[20/06/2023, 17:38:11] TypeError: Cannot read properties of undefined (reading 'url')
at new EspresenseHomebridgePlatform (/var/lib/homebridge/node_modules/homebridge-espresense/src/platform.ts:34:24)
at /var/lib/homebridge/node_modules/homebridge/src/server.ts:474:40
at Array.forEach (
My current config: { "platforms": [ { "name": "homebridge-espresense", "platform": "ESPresense", "mqtt": { "url": "mqtt://192.168.X.XX:1883", "options": { "username": "XXXXXX", "password": "XXXXXXX" } }, "roomSettings": [ { "name": "Office", "maxDistance": 2, "absorption": 3.5, "activeScan": true, "timeout": 6000, "devices": [ "apple:1005:9-8" ] } ] } ], "plugins": [ "homebridge-espresense" ], "platform": "ESPresense" }
I think I had too much I copied over from the sample config.json. I cleaned it up and removed the duplicated platforms and whatnot and it started to show up in HK. Issue now is it is not correctly reporting status and also my logs are showing it is shutting off auto-scan, but I have it set to "true".
Hey @ShaunRoberts543, I'm running into the same error. Did you just remove the entire 'bridge' section of the config? Setup docs are severely lacking.
I have the following config but the error persists:
{
"platforms": [
{
"name": "homebridge-espresense",
"platform": "ESPresense",
"mqtt": {
"url": "mqtt://192.168.XXX.XXX:1883",
"options": {}
},
"roomSettings": [
{
"name": "Living Room",
"maxDistance": 2,
"absorption": 3.5,
"activeScan": true,
"timeout": 6000,
"devices": [
"apple:1007:xx-xx"
]
}
]
}
],
"plugins": [
"homebridge-espresense"
],
"platform": "ESPresense"
}
TypeError: Cannot read properties of undefined (reading 'url') at new EspresenseHomebridgePlatform (/var/lib/homebridge/node_modules/homebridge-espresense/src/platform.ts:34:24)