prasad-edlabadka / homebridge-tuya-ir

Allows homebridge to control Tuya Smart IR based devices
Apache License 2.0
50 stars 22 forks source link

Several "Client network socket disconnected before secure TLS connection was established" #105

Open akram opened 1 month ago

akram commented 1 month ago

It is failing with this error The AC device in tuya has an empty brand and empty model. It is not a DIY, it is a whirlpool clone iirc

[31/05/2024, 4:03:17 pm] [Infrared Controllers] Login successful.
[31/05/2024, 4:03:17 pm] [Infrared Controllers] Fetching configured remotes...
[31/05/2024, 4:03:17 pm] [Infrared Controllers] Auto discovery of remotes enabled. Fetching with API...
[31/05/2024, 4:04:17 pm] [Infrared Controllers] Client network socket disconnected before secure TLS connection was established Error: Client network socket disconnected before secure TLS connection was established
    at TLSSocket.onConnectEnd (node:_tls_wrap:1727:19)
    at TLSSocket.emit (node:events:530:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[31/05/2024, 4:04:17 pm] [Infrared Controllers] Failed to get remote configuration for: xxxxxxxxx
[31/05/2024, 4:04:17 pm] [Infrared Controllers] Server returned error: 'Failed to invoke API 'Client network socket disconnected before secure TLS connection was established''
[31/05/2024, 4:04:17 pm] [Infrared Controllers] Failed because of TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
akram commented 1 month ago

another set of errors:

[31/05/2024, 4:58:19 pm] [TuyaIR] AC Guests Suite temperature is set to 16 degrees.
[31/05/2024, 4:58:48 pm] [TuyaIR] socket hang up Error: socket hang up
    at TLSSocket.socketOnEnd (node:_http_client:524:23)
    at TLSSocket.emit (node:events:530:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[31/05/2024, 4:58:48 pm] [TuyaIR] Failed to change AC Guests Suite mode due to error Failed to invoke API 'socket hang up'
[31/05/2024, 4:58:49 pm] [TuyaIR] socket hang up Error: socket hang up
    at TLSSocket.socketOnEnd (node:_http_client:524:23)
    at TLSSocket.emit (node:events:530:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[31/05/2024, 4:58:49 pm] [TuyaIR] Failed to change AC Guests Suite temperature due to error Failed to invoke API 'socket hang up'
[31/05/2024, 4:59:03 pm] [TuyaIR] Client network socket disconnected before secure TLS connection was established Error: Client network socket disconnected before secure TLS connection was established
    at TLSSocket.onConnectEnd (node:_tls_wrap:1727:19)
    at TLSSocket.emit (node:events:530:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[31/05/2024, 4:59:03 pm] [TuyaIR] Failed to change status of AC Guests Suite due to error Failed to invoke API 'Client network socket disconnected before secure TLS connection was established'