home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.31k stars 30.62k forks source link

Receiving a 404 error when trying to activate Ecovacs 920 vacuum #42186

Closed fidonet closed 3 years ago

fidonet commented 4 years ago

The problem

Having installed the ecovacs component in configuration.yaml both of my 920's then appear in the Dashboard, however they're listed as offline.

If I toggle the switch I get a 404 error back

## Environment - Home Assistant Core release with the issue: - Last working Home Assistant Core release (if known): - Operating environment (OS/Container/Supervised/Core): - Integration causing this issue: - Link to integration documentation on our website: I'm ## Problem-relevant `configuration.yaml` ```yaml ecovacs: username: 'jon@******' password: '*******' country: uk continent: eu sensor: - platform: template sensors: vacuum_filter: friendly_name: "Vacuum Filter Remaining Lifespan" unit_of_measurement: '%' value_template: "{{ state_attr('vacuum.my_vacuum_id', 'component_filter') }}" logger: logs: homeassistant.components.ecovacs: debug homeassistant.components.vacuum.ecovacs: debug sucks: debug ``` ## Traceback/Error logs ```txt Failed to call service vacuum/turn_off. Failed to call service vacuum/turn_on. ``` ## Additional information
frenck commented 4 years ago

Hi there @fidonet!

Thanks for opening an issue. However, there is quite a bit of information missing. Would you mind editing your issue and adding the requested information about the versions you are running and such?

Thanks already 👍

yavuzaydin commented 4 years ago

I have the same issue with a Deebot Ozmo 950.

Requested information:

probot-home-assistant[bot] commented 4 years ago

ecovacs documentation ecovacs source (message by IssueLinks)

probot-home-assistant[bot] commented 4 years ago

Hey there @overloadut, mind taking a look at this issue as its been labeled with an integration (ecovacs) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

donkawechico commented 3 years ago

Sounds related to #38625

fidonet commented 3 years ago

deebot Ozmo 920 Home Assistant versions 0.8 through to 1.0.0.b1 as of this morning

System Health

version 1.0.0b1
installation_type Home Assistant OS
dev false
hassio true
docker true
virtualenv false
python_version 3.8.6
os_name Linux
os_version 5.4.81
arch x86_64
timezone Europe/London
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | HassOS 4.19 -- | -- update_channel | beta supervisor_version | 2020.12.6 docker_version | 19.03.12 disk_total | 62.3 GB disk_used | 20.4 GB healthy | true supported | true board | ova supervisor_api | ok version_api | ok installed_addons | Samba share (9.3.0), File editor (5.1.0), Check Home Assistant configuration (3.6.0), Almond (1.0.1), Terminal & SSH (8.10.0), Grafana (5.3.6), ESPHome (1.15.3), AirSonos (2.4.1), Node-RED (7.2.11), InfluxDB (3.7.9), AppDaemon 4 (0.3.2), Glances (0.9.1), IDE (2.2.0), ZeroTier One (0.9.0), AirCast (2.4.1), Google Assistant SDK (2.5.0), Portainer (1.3.0), Mosquitto broker (5.1), Visual Studio Code (2.9.1), CEC Scanner (2.4)
Lovelace dashboards | 2 -- | -- mode | auto-gen resources | 0
fidonet commented 3 years ago

Logger: homeassistant.components.websocket_api.http.connection Source: components/ecovacs/vacuum.py:160 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 14:48:38 (1 occurrences) Last logged: 14:48:38 [140315780534336]

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in _execute_service await handler.job.target(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 593, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 630, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/vacuum/init.py", line 293, in async_turn_on await self.hass.async_add_executor_job(partial(self.turn_on, *kwargs)) File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/ecovacs/vacuum.py", line 160, in turn_on self.device.run(sucks.Clean()) File "/usr/local/lib/python3.8/site-packages/sucks/init.py", line 416, in run self.send_command(action.to_xml()) File "/usr/local/lib/python3.8/site-packages/sucks/init.py", line 413, in send_command self.xmpp.send_command(xml, self._vacuum_address()) File "/usr/local/lib/python3.8/site-packages/sucks/init.py", line 482, in send_command c.send() File "/usr/local/lib/python3.8/site-packages/sleekxmppfs/stanza/iq.py", line 235, in send raise IqError(result) sleekxmppfs.exceptions.IqError:

2020-12-07 14:48:45 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry. 2020-12-07 14:48:49 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry. 2020-12-07 14:49:15 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry. 2020-12-07 14:49:19 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry. 2020-12-07 14:49:46 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry. 2020-12-07 14:49:50 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry. 2020-12-07 14:50:16 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry. 2020-12-07 14:50:20 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry. 2020-12-07 14:50:47 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry. 2020-12-07 14:50:51 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry. 2020-12-07 14:51:18 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry. 2020-12-07 14:51:21 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry. 2020-12-07 14:51:48 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry. 2020-12-07 14:51:52 WARNING (event_thread_0) [sucks] Ping did not reach VacBot. Will retry.

This is configured as ecovacs: username: !secret ecovacs_username password: !secret ecovacs_password country: us continent: an

FYI If I set the country to gb / eu then it fails to resolve a DNS entry and uk/ eu results in a library error as reported by others elsewhere

Traceback (most recent call last): File "/usr/local/bin/sucks", line 11, in sys.exit(cli()) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in call return self.main(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1281, in invoke allow_interspersed_args=False, File "/usr/local/lib/python3.6/site-packages/click/core.py", line 700, in make_context self.parse_args(ctx, args) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1048, in parse_args value, args = param.handle_parse_result(ctx, opts, args) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1623, in handle_parse_result value = self.full_process_value(ctx, value) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1964, in full_process_value return self.prompt_for_value(ctx) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1926, in prompt_for_value default = self.get_default(ctx) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1917, in get_default return Parameter.get_default(self, ctx) File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1531, in get_default rv = self.default() File "/usr/local/lib/python3.6/site-packages/sucks/cli.py", line 143, in default=lambda: continent_for_country(click.get_current_context().params['country_code'])) File "/usr/local/lib/python3.6/site-packages/sucks/cli.py", line 119, in continent_for_country return country_alpha2_to_continent_code(country_code.upper()).lower() File "/usr/local/lib/python3.6/site-packages/pycountry_convert/convert_country_alpha2_to_continent_code.py", line 265, in country_alpha2_to_continent_code raise KeyError("Invalid Country Alpha-2 code: '{0}'".format(country_2_code)) KeyError: "Invalid Country Alpha-2 code: 'UK'"

github-actions[bot] commented 3 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.