homebridge-iRobot
homebridge-iRobot copied to clipboard
Bug Report: TypeError: Cannot read properties of undefined (reading 'name')
Describe The Bug:
When starting the bridge, I get the error listed : TypeError: Cannot read properties of undefined (reading 'name')
To Reproduce:
I configured the plugin using auto config
Expected behavior:
for the plugin to start
Logs:
[2/21/2022, 3:26:30 AM] [iRobot] Configuring roomba: Braava jet FF
[2/21/2022, 3:26:30 AM] [iRobot] Configuring roomba: Roomba GF
[2/21/2022, 3:26:30 AM] [iRobot] Configuring roomba: Braava jet GF
[2/21/2022, 3:26:30 AM] [iRobot] Disabling Unconfigured Roomba: Braava jet FF
[2/21/2022, 3:26:30 AM] Homebridge v1.4.0 (HAP v0.10.0) (iRobot) is running on port 55100.
TypeError: Cannot read properties of undefined (reading 'name')
at getRoombas (/usr/local/lib/node_modules/homebridge-irobot/src/getRoombas.ts:50:63)
at iRobotPlatform.discoverDevices (/usr/local/lib/node_modules/homebridge-irobot/src/platform.ts:65:36)
at HomebridgeAPI.<anonymous> (/usr/local/lib/node_modules/homebridge-irobot/src/platform.ts:34:12)
at HomebridgeAPI.emit (node:events:520:28)
at HomebridgeAPI.signalFinished (/usr/local/lib/node_modules/homebridge/src/api.ts:275:10)
at ChildBridgeFork.startBridge (/usr/local/lib/node_modules/homebridge/src/childBridgeFork.ts:173:14)
Config:
{
"name": "iRobot",
"email": "***email",
"password": "***password",
"roombas": [
{
"autoConfig": true,
"info": {
"ver": 2
}
}
],
"manualDiscovery": false,
"lowBattery": 10,
"offAction": "pause:dock",
"status": "phase:run",
"eveStatus": "inverted:cycle:clean",
"bin": "filter:contact",
"ignoreMultiRoomBin": true,
"hideStuckSensor": false,
"disableMultiRoom": true,
"platform": "iRobotPlatform"
}
Node Version:
v16.14.0
NPM Version:
8.3.1
Homebridge Version:
1.4.0
Plugin Version:
v2.1.16
Operating System:
MacOS
here's the directory its talking about, I don't see an src folder
Updated to the latest Beta and that error goes away.. but I get this error on home bridge logs
[homebridge-irobot] This plugin slows down Homebridge. The read handler for the characteristic 'On' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.
This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: undefined. See https://git.io/JtMGR for more info.
I will be releasing a new beta either tonight or tomorrow that works very well
I just published a new beta that should be stable
Updated to beta 11 but this error is still showing up in my log.
Try clearing any homebridge-iRobot devices from your cache
Unfortunately, the error is still there after removing them from the cache.