bloomkd46 / homebridge-iRobot

A homebridge plugin for controlling iRobot devices
Apache License 2.0
62 stars 14 forks source link

Bug Report: #179

Open siobhanellis opened 1 year ago

siobhanellis commented 1 year ago

Describe The Bug:

Plugin will not start

To Reproduce:

Try starting

Expected behavior:

Runs

Logs:

[iRobot] Restarting Process...
[1/2/2023, 9:38:27 AM] [iRobot] Launched child bridge with PID 26545
[1/2/2023, 9:38:27 AM] Registering platform 'homebridge-irobot.iRobotPlatform'
[1/2/2023, 9:38:27 AM] [iRobot] Loaded homebridge-irobot v4.0.0-beta.2 child bridge successfully
[1/2/2023, 9:38:27 AM] Loaded 1 cached accessories from cachedAccessories.0E87261C7363.
[1/2/2023, 9:38:27 AM] Homebridge v1.6.0 (HAP v0.11.0) (iRobot) is running on port 38528.
TypeError: this.config.accessories is not iterable
    at iRobotPlatform.discoverDevices (/usr/local/lib/node_modules/homebridge-irobot/src/platform.ts:101:38)
    at HomebridgeAPI.<anonymous> (/usr/local/lib/node_modules/homebridge-irobot/src/platform.ts:60: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:189:14)
[1/2/2023, 9:38:27 AM] [iRobot] Child bridge process ended
[1/2/2023, 9:38:27 AM] [iRobot] Process Ended. Code: 1, Signal: null

Config:

{
    "name": "iRobot",
    "logLevel": 4,
    "autoConnect": true,
    "alwaysShowModes": false,
    "_bridge": {
        "username": "0E:87:26:1C:73:63",
        "port": 38528
    },
    "platform": "iRobotPlatform"
}

Node Version:

16.14.0

NPM Version:

8.3.1

Homebridge Version:

1.6.0

Plugin Version:

4.0.2

Operating System:

MacOS

bloomkd46 commented 1 year ago

Please try the latest beta: npm

siobhanellis commented 1 year ago

seems to be fixed