Core: Neato Botvac D7 Latest Firmware (4.3.1) Causes Component Not To Setup

Created on 5 Dec 2018  Â·  12Comments  Â·  Source: home-assistant/core

Home Assistant release with the issue:

All after this firmware update

Last working Home Assistant release (if known):

None after this firmware update

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

All environments impacted

Component/platform:

neato:

https://www.home-assistant.io/components/neato

Description of problem:

After updating to firmware 4.3.1 HA will fail to load as neato has changed the cleaning service name. This issue is a problem with the dependency and it is fixed in this PR: https://github.com/stianaske/pybotvac/pull/28

Once it is merged and a new version of the dependency is pushed to pypi I will submit a PR to correct this.

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

neato:
  username: username
  password: password

Traceback (if applicable):

Error during setup of component neato
Traceback (most recent call last):
  File "/home/pi/home-assistant/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/pi/home-assistant/homeassistant/components/neato.py", line 154, in setup
    hass.data[NEATO_LOGIN] = NeatoHub(hass, config[DOMAIN], Account)
  File "/home/pi/home-assistant/homeassistant/components/neato.py", line 178, in __init__
    self._hass.data[NEATO_ROBOTS] = self.my_neato.robots
  File "/home/pi/home-assistant/lib/python3.6/site-packages/pybotvac/account.py", line 63, in robots
    self.refresh_robots()
  File "/home/pi/home-assistant/lib/python3.6/site-packages/pybotvac/account.py", line 111, in refresh_robots
    endpoint=robot['nucleo_url']))
  File "/home/pi/home-assistant/lib/python3.6/site-packages/pybotvac/robot.py", line 42, in __init__
    raise UnsupportedDevice("Version " + self.service_version + " of service houseCleaning is not known")
pybotvac.robot.UnsupportedDevice: Version basic-4 of service houseCleaning is not known

Additional information:

neato

All 12 comments

Same issue, same log. Just to confirm:

Error during setup of component neato
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/neato.py", line 103, in setup
    hass.data[NEATO_LOGIN] = NeatoHub(hass, config[DOMAIN], Account)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/neato.py", line 127, in __init__
    self._hass.data[NEATO_ROBOTS] = self.my_neato.robots
  File "/usr/local/lib/python3.6/site-packages/pybotvac/account.py", line 64, in robots
    self.refresh_robots()
  File "/usr/local/lib/python3.6/site-packages/pybotvac/account.py", line 112, in refresh_robots
    endpoint=robot['nucleo_url']))
  File "/usr/local/lib/python3.6/site-packages/pybotvac/robot.py", line 42, in __init__
    raise UnsupportedDevice("Version " + self.service_version + " of service houseCleaning is not known")
pybotvac.robot.UnsupportedDevice: Version basic-4 of service houseCleaning is not known

@rafuz so you don't get stuck, I have updated my custom component and personal repo with the D7 code and latest changes: https://github.com/dshokouhi/hass-neato-custom-component

to revert back you just need to remove the files and restart

Tested it now and works correctly. Thank you!

Got my D7 yesterday and was curious about HASS integration, and I'm happy to say your extra commits did the trick for me!
Thank you!

Hi,
Im new to home assistant. Where can i add this code for Neato? Im using HA for docker/qnap.

B/rgs Mads

Hi @mjuhldk,

Instructions are included with the github link

kind regards,

Ruben

Got this error:

Mon Dec 10 2018 12:08:04 GMT+0100 (Centraleuropæisk normaltid)

Error during setup of component neato

Traceback (most recent call last):
File "/usr/src/app/homeassistant/setup.py", line 148, in
_async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(self.args, *self.kwargs)
File "/config/custom_components/neato.py", line 155, in setup
hass.data[NEATO_LOGIN] = NeatoHub(hass, config[DOMAIN], Account)
File "/config/custom_components/neato.py", line 179, in __init__
self._hass.data[NEATO_ROBOTS] = self.my_neato.robots
File "/config/deps/lib/python3.6/site-packages/pybotvac/account.py",
line 63, in robots
self.refresh_robots()
File "/config/deps/lib/python3.6/site-packages/pybotvac/account.py",
line 109, in refresh_robots
endpoint=robot['nucleo_url']))
File "/config/deps/lib/python3.6/site-packages/pybotvac/robot.py",
line 41, in __init__
if self.service_version not in SUPPORTED_SERVICES:
File "/config/deps/lib/python3.6/site-packages/pybotvac/robot.py",
line 213, in service_version
return self.available_services['houseCleaning']
File "/config/deps/lib/python3.6/site-packages/pybotvac/robot.py",
line 209, in available_services
return self.state['availableServices']
File "/config/deps/lib/python3.6/site-packages/pybotvac/robot.py",
line 205, in state
return self.get_robot_state().json()
File "/config/deps/lib/python3.6/site-packages/pybotvac/robot.py",
line 163, in get_robot_state
return self._message({'reqId': "1", 'cmd': "getRobotState"})
File "/config/deps/lib/python3.6/site-packages/pybotvac/robot.py",
line 60, in _message
response.raise_for_status()
File "/usr/local/lib/python3.6/site-packages/requests/models.py",
line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url:
https://nucleo.neatocloud.com/vendors/neato/robots/OPS35518-30451178BEA2/messages

Den man. 10. dec. 2018 kl. 11.01 skrev rudeq notifications@github.com:

Hi mjuhldk,

Instructions are included with the github link
[(https://github.com/dshokouhi/hass-neato-custom-component)]

kind regards,

Ruben

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/19044#issuecomment-445757742,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Arot-XyZUzo1Hk0Q-exomMK1gMU4f0Fgks5u3jDigaJpZM4ZDEPC
.

@mjuhldk that error usually means the botvac is either not connected to wifi or it needs to be restarted. Can you check the status of the botvac in the neato app and make sure you can still control it? Restarting the botvac usually fixes that error.

Hi.

A reset of the botvac fixed the issue.

Thanks

Regards mads

man. 10. dec. 2018 kl. 16.30 skrev Daniel Shokouhi <[email protected]

:

@mjuhldk https://github.com/mjuhldk that error usually means the botvac
is either not connected to wifi or it needs to be restarted. Can you check
the status of the botvac in the neato app and make sure you can still
control it? Restarting the botvac usually fixes that error.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/19044#issuecomment-445856297,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Arot-Zx0iuN3ooCKrJRsUJBgDPEt_efKks5u3n4FgaJpZM4ZDEPC
.

When this fix will be in home assistant?

@rafuz we need pybotvac to release a new pypi package since the PR was merged, then I can submit a PR to bump the library.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aweb-01 picture aweb-01  Â·  3Comments

arangates picture arangates  Â·  3Comments

piitaya picture piitaya  Â·  3Comments

Konstigt picture Konstigt  Â·  3Comments

sibbl picture sibbl  Â·  3Comments