Neato Component doesn't show after a restart

I’ve lost my neato vacuums completely after a recent restart/rebuild.

I’m using 0.88.2 and I get the following in the logs:

Thu Mar 07 2019 10:08:07 GMT+0000 (Greenwich Mean Time)

Setup of neato is taking over 10 seconds.

and…

neato: Error on device update!
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/app/homeassistant/helpers/entity.py", line 348, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/neato/vacuum.py", line 189, in update
    robot_map_id = self._robot_maps[self._robot_serial][0]['id']
IndexError: list index out of range

Any ideas on what i’ve done wrong? The vacuums previously showed up and worked fine!

Ok, so after several restarts one of the vacuums has shown up but not the other!

Both are available in the neato app and seem to be working from there

I’ve not seen my Neato Vac since the latest update :frowning:

Looks like the same problem.

Log Details (ERROR)
Thu Mar 07 2019 20:04:18 GMT+0000 (Greenwich Mean Time)
neato: Error on device update!
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 348, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/neato/vacuum.py", line 189, in update
    robot_map_id = self._robot_maps[self._robot_serial][0]['id']
IndexError: list index out of range

@dshokouhi replied to me on reddit with a short term fix here:

1 Like

Yup this will be fixed in 0.89.1 there was an issue in 0.89 when we introduced zone/custom cleaning. The issue is that some botvac models report that they have a map but no ID. We are now skipping those models entirely for the update check.

@dshokouhi, I’m attempting to get the file but the link is a 404 This one

Ugh my bad I merged the branch and deleted it, grab it from here: https://github.com/dshokouhi/hass-neato-custom-component/blob/master/neato/vacuum.py

Cheers :slight_smile: