homebridge-plugins / homebridge-roomba2

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

Whenever Wifi Reconnects iRobot starts a vacuum session #89

Closed dhruvb14 closed 2 years ago

dhruvb14 commented 2 years ago

Expected Behavior

If connection to Homebridge is lost, when reconnected vacuum should not automatically start a vacuum session.

Current Behavior

If plugin is running in homebridge and wifi reboots then when the plugin reconnects, it starts a vacuum session. This often happens in middle of the night. If I manually reboot my accesspoint while homebridge plugin is running, I can replicate this behavior. If homebridge plugin is disabled and I reboot my accesspoint, it does not start a vacuum session as expected.

Steps to Reproduce (for bugs)

Listed above

Versions

Configuration

{
            "name": "Roomba",
            "model": "E619820",
            "blid": "31B5C41421917800",
            "robotpwd": "my-correct-password",
            "ipaddress": "192.168.2.20",
            "dockContactSensor": true,
            "runningContactSensor": true,
            "binContactSensor": true,
            "dockingContactSensor": true,
            "homeSwitch": true,
            "stopBehaviour": "pause",
            "_bridge": {
                "username": "0E:5A:E5:42:36:6B",
                "port": 47861
            },
            "accessory": "Roomba2"
        },

Homebridge Log / Command Output

karlvr commented 2 years ago

@dhruvb14 wow that's a strange fault. That's great that you have the beta installed. Could you please show me the log file entries from this plugin when this occurs? The beta has a lot of debug logging, so hopefully we'll see something enlightening!

dhruvb14 commented 2 years ago

So of course the second I file a bug, I can no longer replicate this. I have force multiple AP reboots and even disabled the roomba's access to internet to see if that was causing this issue. If it happens again I will reopen an issue. I have been monitoring it for last 5 days and it seems to be ok.