core: Neato component : "Error on device update!" after lastest update to 0.89

Home Assistant release with the issue: 0.89

Last working Home Assistant release (if known): 0.88.2

Operating environment (Hass.io/Docker/Windows/etc.): Docker raspberrypi3-homeassistant

Component/platform: Neato Robotics

Description of problem:

Since the last update of hass I have an issue when it start and the sensors are not present.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):


neato:
  username: XXX
  password: XXX

Traceback (if applicable):

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

Additional information: Configured with the Neato Botvac Connected

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

Looks good 👍🏽

@heinemml can you try this branch instead? https://github.com/dshokouhi/hass-neato-custom-component/tree/multiple_floorplans

I have a fix for this issue now I believe but I do not have a D5 to test with.

screenshot 2019-03-07 at 17 47 17

You got it buddy, good work. I’ll run some tests and report back later.

@Swiftnesses and @Gunth I believe I may have a fix for this if you guys are willing to test a custom component. I went ahead and looked back at the docs and found that there is one service version for the maps service that is not supported which seems to be the botvac connected model.

https://developers.neatorobotics.com/api/robot-remote-protocol/maps

This code now ignores those service versions.

Simply copy the entire neato directory to your custom_components folder and restart, let me know how it works.

https://github.com/dshokouhi/hass-neato-custom-component