rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.95k stars 562 forks source link

socket.send() raised exception #1410

Closed garry0garry closed 1 year ago

garry0garry commented 1 year ago

Home Assistant 2023.5.4, Uptime 11 hours. Local Tuya v5.2.0 Device: "HIPER Weather Station P1" aka "Tuya generic (324164718cce4edbc7d7) by Tuya"

This error originated from a custom integration.

Logger: asyncio
Source: custom_components/localtuya/pytuya/__init__.py:768
Integration: LocalTuya (documentation, issues)
First occurred: 8:47:24 PM (379 occurrences)
Last logged: 10:21:56 PM

socket.send() raised exception.

What could it be?

lionslair commented 1 year ago

I have the same error appearing.

This error originated from a custom integration.

Logger: asyncio
Source: custom_components/localtuya/pytuya/__init__.py:768
Integration: LocalTuya (documentation, issues)
First occurred: 12:23:51 AM (7181 occurrences)
Last logged: 10:58:58 AM

socket.send() raised exception.
pbranly commented 1 year ago

Same here

patrik-malina commented 1 year ago

Same here. It increase number of occurrences every second... Having no problem in connections with devices.

garry0garry commented 1 year ago

https://github.com/rospogrigio/localtuya/issues/1406#issuecomment-1564330661

PachangaDad commented 1 year ago

Same error here 43,978 times

For what it's worth 5.2.0 version has the error My other system has 5.0.0 version and all is fine

garry0garry commented 1 year ago
  1. Disconnected
  2. Trying to connect
  3. Successfully connected
  4. [asyncio] socket.send() raised exception.
paulius2k commented 1 year ago

I can confirm same behaviour.

ghluhi commented 1 year ago

Same issue with light bulbs and multi-socket power strip.

djdevil commented 1 year ago

Same here

domoticasimoes commented 1 year ago

I have the same error

garry0garry commented 1 year ago

The reason can be found like this:

logger:
   default: warning
   logs:
     custom_components.localtuya:debug

Example:

[custom_components.localtuya.common] [324...7d7] Disconnected - waiting for discovery broadcast
[custom_components.localtuya.common] [324...7d7] Trying to connect to 192.168.50.180...
[custom_components.localtuya.common] [324...7d7] Successfully connected to 192.168.50.180
[asyncio] socket.send() raised exception.
[asyncio] socket.send() raised exception.
domoticasimoes commented 1 year ago

I can't resolve the error

garry0garry commented 1 year ago

I can't resolve the error

I got the error after 5 hours.

domoticasimoes commented 1 year ago

but it still does not solve this error??

garry0garry commented 1 year ago

@rospogrigio? Can you comment?

rospogrigio commented 1 year ago

Don't know what to say, it's not happening in my setup and no relevant part was changed between 5.1.0 and 5.2.0. Closing this issue because it's a duplicate of #1406 , please check in the future before posting.