homebridge-plugins / homebridge-roomba2

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

error: undefined in Homebridge log #33

Closed BertoTavira closed 3 years ago

BertoTavira commented 3 years ago

Getting error: undefined in Homebridge log, even when all seems to work well

Expected Behavior

To not to have errors in log, like when I used this old plugin

Current Behavior

All seems to work but get an error: undefined every time it requests any status

Versions

Configuration

{
            "name": "Aspiradora",
            "model": "Roomba 671",
            "blid": "xxx",
            "robotpwd": "xxx",
            "ipaddress": "192.168.31.65",
            "autoRefreshEnabled": true,
            "keepAliveEnabled": false,
            "dockContactSensor": false,
            "binContactSensor": true,
            "cacheTTL": 1800,
            "_bridge": {
                "username": "0E:DE:AD:47:63:A7",
                "port": 46389
            },
            "accessory": "Roomba2"
        },

Homebridge Log / Command Output

[01/03/2021, 14:08:33] [Aspiradora] Received status: {"running":0,"charging":1,"batteryLevel":100,"batteryStatus":0,"binFull":false,"binStatus":0} -- error: undefined
[01/03/2021, 14:08:33] [Aspiradora] Battery status requested
[01/03/2021, 14:08:33] [Aspiradora] Battery level requested
[01/03/2021, 14:08:33] [Aspiradora] Charging status requested
[01/03/2021, 14:08:33] [Aspiradora] Bin status requested
[01/03/2021, 14:08:33] [Aspiradora] Running status requested
[01/03/2021, 14:08:33] [Aspiradora] Received status: {"running":0,"charging":1,"batteryLevel":100,"batteryStatus":0,"binFull":false,"binStatus":0} -- error: undefined
[01/03/2021, 14:08:33] [Aspiradora] Battery status requested
[01/03/2021, 14:08:33] [Aspiradora] Battery level requested
[01/03/2021, 14:08:33] [Aspiradora] Charging status requested
[01/03/2021, 14:08:33] [Aspiradora] Bin status requested
[01/03/2021, 14:08:35] [webostv] [LG TV] Connecting to TV
[01/03/2021, 14:08:38] [Aspiradora] Running status requested
[01/03/2021, 14:08:38] [Aspiradora] Received status: {"running":0,"charging":1,"batteryLevel":100,"batteryStatus":0,"binFull":false,"binStatus":0} -- error: undefined
[01/03/2021, 14:08:38] [Aspiradora] Battery status requested
[01/03/2021, 14:08:38] [Aspiradora] Battery level requested
[01/03/2021, 14:08:38] [Aspiradora] Charging status requested
[01/03/2021, 14:08:38] [Aspiradora] Bin status requested
karlvr commented 3 years ago

@BertoTavira This was resolved in #50