taurgis / homebridge-iRobot-v2

A homebridge plugin for controlling iRobot devices
Apache License 2.0
4 stars 1 forks source link

HomeKit Logs flooded by irobot plugin #1

Closed xveral closed 4 months ago

xveral commented 4 months ago

Describe Your Problem:

I keep receveing many messages on the log viewer on my homebridge like this:

[7/9/2024, 3:45:07 PM] [iRobot] Attempting To Reconnect To Roomba Veral [7/9/2024, 3:45:07 PM] [iRobot] Roomba Veral went offline, disconnecting... [7/9/2024, 3:45:07 PM] [iRobot] Roomba Veral connection closed, reconnecting in 5 seconds [7/9/2024, 3:45:12 PM] [iRobot] Attempting To Reconnect To Roomba Veral [7/9/2024, 3:45:12 PM] [iRobot] Roomba Veral went offline, disconnecting... [7/9/2024, 3:45:12 PM] [iRobot] Roomba Veral connection closed, reconnecting in 5 seconds [7/9/2024, 3:45:17 PM] [iRobot] Attempting To Reconnect To Roomba Veral [7/9/2024, 3:45:17 PM] [iRobot] Roomba Veral went offline, disconnecting... [7/9/2024, 3:45:17 PM] [iRobot] Roomba Veral connection closed, reconnecting in 5 seconds

Expected behavior:

No response

Logs:

[7/9/2024, 3:45:07 PM] [iRobot] Attempting To Reconnect To Roomba Veral
[7/9/2024, 3:45:07 PM] [iRobot] Roomba Veral  went offline, disconnecting...
[7/9/2024, 3:45:07 PM] [iRobot] Roomba Veral  connection closed, reconnecting in 5 seconds
[7/9/2024, 3:45:12 PM] [iRobot] Attempting To Reconnect To Roomba Veral
[7/9/2024, 3:45:12 PM] [iRobot] Roomba Veral  went offline, disconnecting...
[7/9/2024, 3:45:12 PM] [iRobot] Roomba Veral  connection closed, reconnecting in 5 seconds
[7/9/2024, 3:45:17 PM] [iRobot] Attempting To Reconnect To Roomba Veral
[7/9/2024, 3:45:17 PM] [iRobot] Roomba Veral  went offline, disconnecting...
[7/9/2024, 3:45:17 PM] [iRobot] Roomba Veral  connection closed, reconnecting in 5 seconds

Config:

{
    "name": "iRobot",
    "email": "xxx@xxx.com",
    "password": "xxx",
    "roombas": [
        {
            "autoConfig": true,
            "info": {
                "ver": 2
            }
        }
    ],
    "manualDiscovery": false,
    "lowBattery": 20,
    "offAction": "pause:dock",
    "status": "cycle:clean",
    "eveStatus": "inverted:cycle:clean",
    "bin": "filter:contact",
    "ignoreMultiRoomBin": true,
    "hideStuckSensor": false,
    "disableMultiRoom": false,
    "platform": "iRobotPlatform"
}

Node Version:

20.9.0

NPM Version:

10.1.0

Homebridge Version:

1.8.3

Plugin Version:

3.0.1

Operating System:

Other

taurgis commented 4 months ago

Released a preview 3.1.0-alpha.3 where I fiddle with the mqtt messages. Since I just got a Braava for cheap, I now got an I3 and M6 connected.

Keeping these changes live for me to see if it breaks anything in my setup. Feel free to check, though it might make things worse 👯

taurgis commented 4 months ago

I also noticed this happens when multiple clients connect to the Roomba (multiple Homebridge instances). It might limit how many clients can be connected.

Update: It turns out that the library used (dorita980) uses the robot name as client ID, which means it's not unique across multiple instances.

taurgis commented 4 months ago

I reduced the logs produced by the plugin in the latest release. Also take not of the above comments.