home-assistant-vacuum-styj02ym icon indicating copy to clipboard operation
home-assistant-vacuum-styj02ym copied to clipboard

timeout

Open max5962 opened this issue 3 years ago • 4 comments

Hello,

i have timeout with the latest version :( any idea ? image

max5962 avatar Oct 13 '21 10:10 max5962

also a problem, model STYTJ02YM

iyshustov avatar Oct 19 '21 17:10 iyshustov

Logger: miio.miioprotocol Source: /usr/local/lib/python3.9/site-packages/miio/miioprotocol.py:240 First occurred: 22:40:51 (7 occurrences) Last logged: 22:44:51 Got error when receiving: timed out

iyshustov avatar Oct 19 '21 17:10 iyshustov

In my case it's showing the below errors, it was working fine until HASS restart. It's easy to resolve as I have to restart the vacuum and then HASS will connect it.

2021-12-06 20:06:14 INFO (MainThread) [custom_components.miio2.vacuum] Initializing with host 192.168.x.x (token xxxx...)
2021-12-06 20:06:20 DEBUG (SyncWorker_5) [miio.miioprotocol] Unable to discover a device at address 192.168.x.x 
2021-12-06 20:06:20 WARNING (SyncWorker_5) [custom_components.miio2.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.x.x 

The vacuum and HASS are in different subnets, but this doesn't seem to cause issues until a restart of HASS.

Edit: I seem to have found out why. The vacuum was connecting to a previously saved WiFi network, not the currently one configured 🤦‍♂️Either way, I blocked its MAC at the Access Point level and now it reconnected to the desired network.

mateuszdrab avatar Dec 06 '21 20:12 mateuszdrab

I got the same error (Unable to discover a device) after I blocked its internet access. The led on the power/home button kept blinking.

accelle17 avatar Jan 06 '22 01:01 accelle17