Open NicolaP8 opened 5 months ago
I have the same error
I am also having the same error while adding multimode gateway. Was able to add just the zigbee gateway without any issues.
I enabled the debug trace and added the Multimode (Zigbee + Bluetooth) gateway via configuration.yaml and see following in the trace so its clear that reaching the device successfully but something in the localtuya code is causing it to disconnect.
2024-01-27 13:58:24.384 DEBUG (MainThread) [custom_components.localtuya] Device bf1xxxxxxxxxx5b1b9l4wu found with IP 192.168.68.97 2024-01-27 13:58:24.385 DEBUG (MainThread) [custom_components.localtuya.common] [bf1...4wu] Connecting to gateway 192.168.68.97 2024-01-27 13:58:24.474 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf1...4wu] Started heartbeat loop 2024-01-27 13:58:24.475 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf1...4wu] Sending command heartbeat (device type: type_0d) 2024-01-27 13:58:24.475 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf1...4wu] Send payload: b'{}' 2024-01-27 13:58:24.479 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf1...4wu] Waiting for sequence number -100 2024-01-27 13:58:24.481 DEBUG (MainThread) [custom_components.localtuya.common] [bf1...4wu] Connected to gateway 192.168.68.97 successfully 2024-01-27 13:58:24.481 DEBUG (MainThread) [custom_components.localtuya.common] [bf1...4wu] Attempting to reconnect 0 subdevices 2024-01-27 13:58:24.565 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf1...4wu] Connection lost: [Errno 104] Connection reset by peer 2024-01-27 13:58:24.566 DEBUG (MainThread) [custom_components.localtuya.common] [bf1...4wu] Sending event_disconnected to 0 subdevices 2024-01-27 13:58:24.566 DEBUG (MainThread) [custom_components.localtuya.common] [bf1...4wu] Disconnected (TuyaGatewayDevice) - waiting for discovery broadcast 2024-01-27 13:58:24.570 DEBUG (MainThread) [custom_components.localtuya.pytuya] [bf1...4wu] Heartbeat failed due to timeout, disconnecting
I'm getting the same error. Any idea of how to make it work?
@leeyuentuen - please can you look into this. this is being outstanding for a while now. If you need any traces or help in reproducing pls. let me know
I'm trying to add a Moes Multimode Gateway (ZigBee+BLE, WiFi + Ethernet) but I get an "unkown" error. I followed instructions and found IDs and keys. The "Local Key" is in the new format: ".>XL:@~n7>TwN1[~" (excluded the quotes).