homebridge-plugins / homebridge-roomba2

Homebridge plugin to connect iRobot Roomba devices with Homebridge/HomeKit.
MIT License
146 stars 17 forks source link

Error in script getpassword, unable to move forward with installation (iRobot i6+) #144

Open AlSmyth81 opened 1 year ago

AlSmyth81 commented 1 year ago

Running the commands as listed in the README file NOTE: installed on Pi image, file directiories do not match NOTE: iRobot model i6+

$ cd $(npm root -g)/homebridge-roomba2
bash: cd: /opt/homebridge/lib/node_modules/homebridge-roomba2: No such file or directory)

I dug a little and found the directory:
` /var/lib/homebridge/node_modules/homebridge-roomba2

` Here are the results of funning the command, along with the Press/Hold of the HOME button when prompted

/var/lib/homebridge/node_modules/homebridge-roomba2 $ npm run getpassword 192.168.1.84

> homebridge-roomba2@1.4.0 getpassword
> get-roomba-password 192.168.1.84

Make sure your robot is on the Home Base and powered on (green lights on). Then press and hold the HOME button (or DOCK+SPOT on some models) on your robot until it plays a series of tones (about 2 seconds). Release the button and your robot will flash WIFI light.
Then press any key here...
 - - - -  Here is where I pressed the Home button on the i6+ ------
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: connect ECONNREFUSED 192.168.1.84:8883
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)
Emitted 'error' event on TLSSocket instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.1.84',
  port: 8883
}

Node.js v18.16.0
/var/lib/homebridge/node_modules/homebridge-roomba2 $

I first did this while the child/pet lock was enabled, and assumed an error based on the voice message from the unit. I disabled the CHild/pet lock, and repeated with the same rrooro details.

Versions

homebridge --version 1.6.1 node --version v18.16.0 homebridge-roomba2 v1.4.0

Configuration

unable to continue to Configuration

tim-arnold commented 2 months ago

In my case, when I got the same error, I had to be sure my iOS iRobot app was shut down. I was then able to get nearly everything. At least I got json back that included the "blid" but was (and am still) unable to get the password. It just returns all the good data from my vacuum but ends with "Error getting password. Follow the instructions and try again."