CodeFoodPixels / robovac

Add a Eufy RoboVac easily to Home Assistant
Other
110 stars 26 forks source link

15C max unavailable #67

Open sumofatguy opened 3 months ago

sumofatguy commented 3 months ago

Hi,

I am running v1.28 with HAOS 2024.3.1. It successfully detects the 15C max when I log in with my Eufy credentials, but the device and entities are unavailable. It looks like it briefly detected the battery percentage once, but went back to unknown. I also set the IP address of the device in the configuration settings. The vacuum is still successfully on my network and controllable with the Eufy app. I don't see anything in the logs

This may be a 'me' issue configuring this integration

image image image

FuturamaPhill commented 3 months ago

Sounds like the exact issue I'm having in #61

CodeFoodPixels commented 3 months ago

So this may be down to commands changing. If you're willing to test an alpha version, could you give the 1.3-better-dps versions a go? I have a 15C max too, and it's been stable on that branch for a couple of weeks

On Tue, 19 Mar 2024, 08:31 FuturamaPhill, @.***> wrote:

Sounds like the exact issue I'm having in #61 https://github.com/CodeFoodPixels/robovac/issues/61

— Reply to this email directly, view it on GitHub https://github.com/CodeFoodPixels/robovac/issues/67#issuecomment-2006293634, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEPFVESEDNSESH2NYSTKILYY7ZWPAVCNFSM6AAAAABE4CE2DOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBWGI4TGNRTGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sumofatguy commented 3 months ago

I'm fairly new to HA, my apologies

I was able to install v1.3.0-better-dps.2, and I still have the same issue

image image

2024-03-19 11:22:57.180 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.ebd5e0a4ef002cb8demame] Processing queue. Current length: 1
2024-03-19 11:22:57.180 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.ebd5e0a4ef002cb8demame] Sending to ebd5e0a4ef002cb8demame (10.10.10.107:6668): Message(0x9, b'', 0, <Device ebd5e0a4ef002cb8demame (10.10.10.107:6668)>)
2024-03-19 11:22:57.181 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.ebd5e0a4ef002cb8demame] Connecting to ebd5e0a4ef002cb8demame (10.10.10.107:6668)
2024-03-19 11:22:57.201 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.ebd5e0a4ef002cb8demame] Connection reset: [Errno 104] Connection reset by peer
Traceback (most recent call last):
  File "/config/custom_components/robovac/tuyalocalapi.py", line 833, in _async_handle_message
    await self._response_task
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 660, in readuntil
    await self._wait_for_data('readuntil')
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 545, in _wait_for_data
    await self._waiter
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1003, in _read_ready__data_received
    data = self._sock.recv(self.max_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 104] Connection reset by peer

2024-03-19 11:22:57.202 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.ebd5e0a4ef002cb8demame] Disconnected from ebd5e0a4ef002cb8demame (10.10.10.107:6668)
2024-03-19 11:22:57.202 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/robovac/tuyalocalapi.py", line 848, in _async_handle_message
    await self.async_disconnect()
  File "/config/custom_components/robovac/tuyalocalapi.py", line 753, in async_disconnect
    await self.writer.wait_closed()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 364, in wait_closed
    await self._protocol._get_close_waiter(self)
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1003, in _read_ready__data_received
    data = self._sock.recv(self.max_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 104] Connection reset by peer
KyleStilkey commented 3 months ago

I'm fairly new to HA, my apologies

I was able to install v1.3.0-better-dps.2, and I still have the same issue

image image

2024-03-19 11:22:57.180 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.ebd5e0a4ef002cb8demame] Processing queue. Current length: 1
2024-03-19 11:22:57.180 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.ebd5e0a4ef002cb8demame] Sending to ebd5e0a4ef002cb8demame (10.10.10.107:6668): Message(0x9, b'', 0, <Device ebd5e0a4ef002cb8demame (10.10.10.107:6668)>)
2024-03-19 11:22:57.181 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.ebd5e0a4ef002cb8demame] Connecting to ebd5e0a4ef002cb8demame (10.10.10.107:6668)
2024-03-19 11:22:57.201 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.ebd5e0a4ef002cb8demame] Connection reset: [Errno 104] Connection reset by peer
Traceback (most recent call last):
  File "/config/custom_components/robovac/tuyalocalapi.py", line 833, in _async_handle_message
    await self._response_task
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 660, in readuntil
    await self._wait_for_data('readuntil')
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 545, in _wait_for_data
    await self._waiter
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1003, in _read_ready__data_received
    data = self._sock.recv(self.max_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 104] Connection reset by peer

2024-03-19 11:22:57.202 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.ebd5e0a4ef002cb8demame] Disconnected from ebd5e0a4ef002cb8demame (10.10.10.107:6668)
2024-03-19 11:22:57.202 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/robovac/tuyalocalapi.py", line 848, in _async_handle_message
    await self.async_disconnect()
  File "/config/custom_components/robovac/tuyalocalapi.py", line 753, in async_disconnect
    await self.writer.wait_closed()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 364, in wait_closed
    await self._protocol._get_close_waiter(self)
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1003, in _read_ready__data_received
    data = self._sock.recv(self.max_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 104] Connection reset by peer

I had the same issue, for me I had to delete the vacuum cleaner and readd it for it to start working again. Give that a shot and also I see you have auto discover off, see if you turn that option back on resolves it and double check your IP is correct as it looks like it's having a communication error with the device.

sumofatguy commented 3 months ago

What do you mean delete the vacuum cleaner and read it? I will try again with autodiscovery on, I just saw some comments in a different thread about conflicts with localtuya being installed and tried disabling autodiscovery to see if that would have any effect image

FuturamaPhill commented 3 months ago

What do you mean delete the vacuum cleaner and read it? I will try again with autodiscovery on, I just saw some comments in a different thread about conflicts with localtuya being installed and tried disabling autodiscovery to see if that would have any effect image

Not sure if it's of any relevance but I also a eufy WAP and having the issue

@sumofatguy getting below log out put on v1.3.0-better-dps.2

2024-03-20 07:16:40.391 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.bf4b0ace39a5f9f09ajma7] Processing queue. Current length: 1
2024-03-20 07:16:40.391 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.bf4b0ace39a5f9f09ajma7] Sending to bf4b0ace39a5f9f09ajma7 (192.168.0.144:6668): Message(0xa, {'gwId': 'bf4b0ace39a5f9f09ajma7', 'devId': 'bf4b0ace39a5f9f09ajma7'}, 603219154, <Device bf4b0ace39a5f9f09ajma7 (192.168.0.144:6668)>)
2024-03-20 07:16:40.391 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.bf4b0ace39a5f9f09ajma7] Connecting to bf4b0ace39a5f9f09ajma7 (192.168.0.144:6668)
2024-03-20 07:16:40.406 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.bf4b0ace39a5f9f09ajma7] Connection reset: [Errno 104] Connection reset by peer
Traceback (most recent call last):
  File "/config/custom_components/robovac/tuyalocalapi.py", line 833, in _async_handle_message
    await self._response_task
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 660, in readuntil
    await self._wait_for_data('readuntil')
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 545, in _wait_for_data
    await self._waiter
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1003, in _read_ready__data_received
    data = self._sock.recv(self.max_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 104] Connection reset by peer
2024-03-20 07:16:40.406 DEBUG (MainThread) [custom_components.robovac.tuyalocalapi.bf4b0ace39a5f9f09ajma7] Disconnected from bf4b0ace39a5f9f09ajma7 (192.168.0.144:6668)
2024-03-20 07:16:40.406 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/robovac/tuyalocalapi.py", line 848, in _async_handle_message
    await self.async_disconnect()
  File "/config/custom_components/robovac/tuyalocalapi.py", line 753, in async_disconnect
    await self.writer.wait_closed()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 364, in wait_closed
    await self._protocol._get_close_waiter(self)
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1003, in _read_ready__data_received
    data = self._sock.recv(self.max_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 104] Connection reset by peer
m1dst commented 3 months ago

I am using 1.3 dps and also agree it doesn't work for 15C and produces the same output as @FuturamaPhill receives.

Logger: homeassistant
Source: custom_components/robovac/tuyalocalapi.py:753
integration: Eufy Robovac ([documentation](https://github.com/codefoodpixels/robovac), [issues](https://github.com/codefoodpixels/robovac/issues))
First occurred: 11:06:03 (11 occurrences)
Last logged: 11:07:24

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/robovac/tuyalocalapi.py", line 848, in _async_handle_message
    await self.async_disconnect()
  File "/config/custom_components/robovac/tuyalocalapi.py", line 753, in async_disconnect
    await self.writer.wait_closed()
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 364, in wait_closed
    await self._protocol._get_close_waiter(self)
  File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1003, in _read_ready__data_received
    data = self._sock.recv(self.max_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 104] Connection reset by peer
djrarky commented 2 months ago

I also confirm, 1.3-dps doesn't work for my 15C.