bloomkd46 / homebridge-iRobot

A homebridge plugin for controlling iRobot devices
Apache License 2.0
62 stars 14 forks source link

Bug Report: #180

Open siobhanellis opened 1 year ago

siobhanellis commented 1 year ago

Describe The Bug:

Error messages in homebridge log with robot configured but not contactable

To Reproduce:

Have a robot that is configured in the app, but for some reason I snot connect dto local ip

Expected behavior:

Shouldn't throw up the error messages shown, a nd should just show a single error message

Logs:

[1/3/2023, 10:26:12 AM] [iRobot] Robbie: Connecting... 
[1/3/2023, 10:26:12 AM] [homebridge-irobot] This plugin threw an error from the characteristic 'Status Low Battery': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'batPct'). See https://homebridge.io/w/JtMGR for more info.
[1/3/2023, 10:26:12 AM] [homebridge-irobot] This plugin threw an error from the characteristic 'Battery Level': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'batPct'). See https://homebridge.io/w/JtMGR for more info.
[1/3/2023, 10:26:12 AM] [homebridge-irobot] This plugin threw an error from the characteristic 'Charging State': Unhandled error thrown inside read handler for characteristic: Cannot use 'in' operator to search for 'cleanMissionStatus' in undefined. See https://homebridge.io/w/JtMGR for more info.
[1/3/2023, 10:26:12 AM] [iRobot] Robbie: Updating IP Address To 192.168.4.72 
[1/3/2023, 10:26:12 AM] [iRobot] Robbie: Unavailable 
[1/3/2023, 10:26:12 AM] [iRobot] Robbie: Disconnected 
[1/3/2023, 10:26:13 AM] [iRobot] Robbie: Disconnected

Config:

{
    "name": "iRobot",
    "logLevel": 3,
    "autoConnect": true,
    "alwaysShowModes": false,
    "accessories": [
        {
            "name": "Robbie",
            "blid": "352452AF08CC41F299B91292EDCA5EAD",
            "password": ":1:***********:A0OpcTU78On6gVur",
            "sw": "sapphire+22.29.3+2022-08-23-eb90240ea48+Firmware-Production+96",
            "sku": "j715840",
            "ipResolution": "lookup",
            "hostname": "iRobot-352452AF08CC41F299B91292EDCA5EAD.local"
        },
        {
            "name": "Roomba",
            "blid": "3165050841132540",
            "password": ":1:**********:NxLNQgxwrGWVy43a",
            "sw": "v2.4.6-3",
            "sku": "R960020",
            "ipResolution": "manual",
            "ip": ""
        },
        {
            "name": "Daneel Olivaw",
            "blid": "32F90039FE684894AF22170E914074DC",
            "password": ":1:**********:Z27m5kjXXAc8v1RS",
            "sw": "lewis+22.29.3+2022-08-23-eb90240ea48+Firmware-Build+1832",
            "sku": "i715640",
            "ipResolution": "lookup",
            "hostname": "iRobot-32F90039FE684894AF22170E914074DC.local"
        }
    ],
    "platform": "iRobotPlatform",
    "_bridge": {
        "username": "XX:XX:XX:XX:XX:XX",
        "port": 43468
    }
}

Node Version:

16.14.0

NPM Version:

8.3.1

Homebridge Version:

1.6.0

Plugin Version:

4.0.4

Operating System:

MacOS