homebridge-plugins / homebridge-roomba2

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

Issue connecting to 960 (was working for a year+ up until now) #100

Closed 88gts closed 1 year ago

88gts commented 2 years ago

Expected Behavior

Roomba is not responding, is on dock, can be started using iRobot app. This issue started happening today with no changes to my environment. Any thoughts?

Current Behavior

[1/11/2022, 4:44:32 PM] [Roomba] Bin status requested [1/11/2022, 4:44:32 PM] [Roomba] Running status requested [1/11/2022, 4:44:32 PM] [Roomba] Docked status requested [1/11/2022, 4:44:32 PM] [Roomba] Battery status requested [1/11/2022, 4:44:55 PM] [Roomba] Battery status requested [1/11/2022, 4:45:07 PM] [Roomba] Battery status requested

Steps to Reproduce (for bugs)

Start Homebridge

Versions

Configuration

-->

Homebridge Log / Command Output

  "accessory": "Roomba2",
  "name": "Roomba",
  "model": "960",
  "blid": "",
  "robotpwd": "",
  "ipaddress": "10.0.1.99",
  "dockContactSensor": true,
  "runningContactSensor": true,
  "binContactSensor": true,
  "dockOnStop": true
88gts commented 2 years ago

well i am able to access the Roomba now but the status is wonky. Everything looks good in logs but it appears that only the Roomba Running sensor is reliable. I am constantly seeing the Roomba as "No Response" but have access to the sensors. Have seen the Roomba respond once as Powered On so its not a configuration issue.

[1/12/2022, 9:18:17 AM] [Roomba] Connected to Roomba
[1/12/2022, 9:18:17 AM] [Roomba] Received status: {"running":0,"charging":1,"batteryLevel":100,"batteryStatus":0,"binFull":false,"binStatus":0} -- error: null
[1/12/2022, 9:18:17 AM] [Roomba] Roomba[{"running":0,"charging":1,"batteryLevel":100,"batteryStatus":0,"binFull":false,"binStatus":0}]
[1/12/2022, 9:18:18 AM] [Roomba] Running status requested
[1/12/2022, 9:18:18 AM] [Roomba] Bin status requested
[1/12/2022, 9:18:18 AM] [Roomba] Docked status requested
[1/12/2022, 9:18:18 AM] [Roomba] Battery status requested
[1/12/2022, 9:18:21 AM] [Roomba] Connected to Roomba
88gts commented 2 years ago

seems to be an issue related to the emulated contact sensors, after disabling them, the Roomba always responds.

lmjabreu commented 2 years ago

Exactly the same behaviour here. Disabling all contact sensors fixes this issue.

karlvr commented 2 years ago

@88gts @lmjabreu could you provide any more information about this issue? I'm not sure what problem you're observing ("status is wonky"); it also sounds like Roomba isn't starting or stopping when you ask it? ("after disabling them, the Roomba always responds). Please try the latest version (1.3.1) and if you can provide some really specific info, and include the configuration that remedied it... we can see if we can improve this for everyone! Debug logging also always useful!