Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash at init and at Vacuum.start service call: #25

Closed
tmenguy opened this issue Jul 5, 2024 · 8 comments
Closed

Crash at init and at Vacuum.start service call: #25

tmenguy opened this issue Jul 5, 2024 · 8 comments

Comments

@tmenguy
Copy link

tmenguy commented Jul 5, 2024

Hi,

Just adding in case you never seen it

On latest HA, latest iAqualink :

  • At init:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:241
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: July 4, 2024 at 11:59:12 PM (2 occurrences)
Last logged: July 4, 2024 at 11:59:55 PM

[281472418726384] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2731, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2774, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 999, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1071, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/iaqualinkRobots/vacuum.py", line 186, in async_start
data = await self.setCleanerState(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/iaqualinkRobots/vacuum.py", line 393, in setCleanerState
return message.json()
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/http_websocket.py", line 121, in json
return loads(self.data)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/json/init.py", line 339, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not int

  • at start call:
  • Logger: homeassistant.core
    Source: core.py:2751
    First occurred: July 4, 2024 at 11:58:10 PM (1 occurrences)
    Last logged: July 4, 2024 at 11:58:10 PM

Error executing service: <ServiceCall vacuum.start (c:01J1ZVG67CYWGD2YNJ2N6RK6KY): entity_id=['vacuum.peyrebelle_pool_robot']>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 2751, in _run_service_call_catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 2774, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 999, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1071, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/iaqualinkRobots/vacuum.py", line 186, in async_start
data = await self.setCleanerState(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/iaqualinkRobots/vacuum.py", line 393, in setCleanerState
return message.json()
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/http_websocket.py", line 121, in json
return loads(self.data)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/json/init.py", line 339, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not int

@tmenguy tmenguy changed the title Crash at init: Crash at init and at Vacuum.start service call: Jul 5, 2024
@tmenguy
Copy link
Author

tmenguy commented Jul 5, 2024

Robot : RA 6900 iQ
Well connected and accessible

@galletn
Copy link
Owner

galletn commented Jul 5, 2024

are you running the latest version of the code?

@galletn
Copy link
Owner

galletn commented Jul 5, 2024

or did you try to run the cleaning before it got populated? did not try to break it yet myself 🤕

@tmenguy
Copy link
Author

tmenguy commented Jul 5, 2024

Hi, yes latest code. I exposed the vacuum to homekit through the HA HomeKit integration, maybe it was from here

@tmenguy
Copy link
Author

tmenguy commented Jul 5, 2024

I'll see when I can reproduce those it I see a pattern ....

@galletn
Copy link
Owner

galletn commented Aug 1, 2024

any update?

@galletn
Copy link
Owner

galletn commented Aug 24, 2024

reminder ... trying to keep the list clean

@tmenguy
Copy link
Author

tmenguy commented Aug 27, 2024

yep , seems that we are good now!

@tmenguy tmenguy closed this as completed Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants