jeremywillans / ha-rest980-roomba

HA iRobot Roomba Configuration using rest980
MIT License
206 stars 43 forks source link

error on connect to get details of robot #55

Closed naThnaabu closed 1 year ago

naThnaabu commented 1 year ago

Hi I am getting an error when trying to get the details of the robot.

**node:events:490 throw er; // Unhandled 'error' event ^

Error: connect EHOSTUNREACH 192.168.1.XYZ: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: -113, code: 'EHOSTUNREACH', syscall: 'connect', address: '192.168.1.XYZ', port: 8883 } **

jeremywillans commented 1 year ago

Sounds like it cannot reach your robot on the network. Can you confirm the IP and that there is direct connectivity?

jeremywillans commented 1 year ago

bump

RTS007 commented 1 year ago

So I had the same issue with my i7+:

node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: connect EHOSTUNREACH 192.168.1.x: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: -113,
  code: 'EHOSTUNREACH',
  syscall: 'connect',
  address: '192.168.1.x',
  port: 8883
}

I start looking for the solution, and I found out that rebooting the robot was working for me. So my steps:

Later I discovered, that my wife had stated iRoomba app on her phone... And as we can read in instruction:

Do not have iRobot App running on your phone when doing this !!!

jeremywillans commented 1 year ago

Glad its working for you @RTS007 - closing and pinning issue.