kevinvincent / ha-wyzesense

A Home Assistant Component to interface with the WYZE Sense hub and sensor system
370 stars 100 forks source link

[Errno 110] Operation timed out #193

Closed roblefko closed 4 years ago

roblefko commented 4 years ago

I've been getting a timeout error on my sensors about once per day. This log shows a sensor with a zeroed out MAC address, but the problem predates the addition of this sensor. I'm running the latest versions of all the Home Assistant code on a Windows machine using Virtual Box.

Following is the part of the log preceding the time out: 2020-11-09 12:28:10 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Trying to parse: b'55aa53193500000175ae0cf9180ea200000000000000000101001904ac55aa531d1900000175ae0cf920a20000000000000000012f630001010019500571' 2020-11-09 12:28:10 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Received: b'55aa53193500000175ae0cf9180ea200000000000000000101001904ac' 2020-11-09 12:28:10 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] <=== Received: Packet: Cmd=5335, Payload=b'00000175ae0cf9180ea2000000000000000001010019' 2020-11-09 12:28:10 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] ===> Sending: Packet: Cmd=53FF, Payload=ACK(5335) 2020-11-09 12:28:10 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Sending: b'aa555335ff0286' 2020-11-09 12:28:10 INFO (Thread-3) [custom_components.wyzesense.wyzesense_custom] LOG: time=2020-11-09T12:28:07.192000, data=b'a2000000000000000001010019' 2020-11-09 12:28:10 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Trying to parse: b'55aa531d1900000175ae0cf920a20000000000000000012f630001010019500571' 2020-11-09 12:28:10 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Received: b'55aa531d1900000175ae0cf920a20000000000000000012f630001010019500571' 2020-11-09 12:28:10 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] <=== Received: Packet: Cmd=5319, Payload=b'00000175ae0cf920a20000000000000000012f63000101001950' 2020-11-09 12:28:10 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] ===> Sending: Packet: Cmd=53FF, Payload=ACK(5319) 2020-11-09 12:28:10 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Sending: b'aa555319ff026a' 2020-11-09 12:28:10 DEBUG (Thread-3) [custom_components.wyzesense.binary_sensor] {'available': True, 'mac': '\x00\x00\x00\x00\x00\x00\x00\x00', 'state': 1, 'device_class': 'door', 'timestamp': '2020-11-09T12:28:07.200000', 'rssi': -80, 'battery_level': 99} 2020-11-09 12:28:10 INFO (MainThread) [homeassistant.components.automation.mailtime] Mailtime: Running automation actions 2020-11-09 12:28:10 INFO (MainThread) [homeassistant.components.automation.mailtime] Mailtime: Executing step call service 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Trying to parse: b'55aa53193500000175ae0d0f8c0ea200000000000000000100001a043755aa531d1900000175ae0d0f94a20000000000000000013263000100001a5004ff' 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Received: b'55aa53193500000175ae0d0f8c0ea200000000000000000100001a0437' 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] <=== Received: Packet: Cmd=5335, Payload=b'00000175ae0d0f8c0ea200000000000000000100001a' 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] ===> Sending: Packet: Cmd=53FF, Payload=ACK(5335) 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Sending: b'aa555335ff0286' 2020-11-09 12:28:16 INFO (Thread-3) [custom_components.wyzesense.wyzesense_custom] LOG: time=2020-11-09T12:28:12.940000, data=b'a200000000000000000100001a' 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Trying to parse: b'55aa531d1900000175ae0d0f94a20000000000000000013263000100001a5004ff55aa531d1900000175ae0d0f94a20000000000000000013263000100001a5004ff' 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Received: b'55aa531d1900000175ae0d0f94a20000000000000000013263000100001a5004ff' 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] <=== Received: Packet: Cmd=5319, Payload=b'00000175ae0d0f94a20000000000000000013263000100001a50' 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] ===> Sending: Packet: Cmd=53FF, Payload=ACK(5319) 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Sending: b'aa555319ff026a' 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.binary_sensor] {'available': True, 'mac': '\x00\x00\x00\x00\x00\x00\x00\x00', 'state': 0, 'device_class': 'door', 'timestamp': '2020-11-09T12:28:12.948000', 'rssi': -80, 'battery_level': 99} 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Trying to parse: b'55aa531d1900000175ae0d0f94a20000000000000000013263000100001a5004ff' 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Received: b'55aa531d1900000175ae0d0f94a20000000000000000013263000100001a5004ff' 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] <=== Received: Packet: Cmd=5319, Payload=b'00000175ae0d0f94a20000000000000000013263000100001a50' 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] ===> Sending: Packet: Cmd=53FF, Payload=ACK(5319) 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Sending: b'aa555319ff026a' 2020-11-09 12:28:16 DEBUG (Thread-3) [custom_components.wyzesense.binary_sensor] {'available': True, 'mac': '\x00\x00\x00\x00\x00\x00\x00\x00', 'state': 0, 'device_class': 'door', 'timestamp': '2020-11-09T12:28:12.948000', 'rssi': -80, 'battery_level': 99} 2020-11-09 12:28:26 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Trying to parse: b'55aa53193500000175ae0d35ff0ea23737393034444130020000b0072755aa531d1900000175ae0d3605a2373739303444413002145e00010000b04c06c7' 2020-11-09 12:28:26 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Received: b'55aa53193500000175ae0d35ff0ea23737393034444130020000b00727' 2020-11-09 12:28:26 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] <=== Received: Packet: Cmd=5335, Payload=b'00000175ae0d35ff0ea23737393034444130020000b0' 2020-11-09 12:28:26 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] ===> Sending: Packet: Cmd=53FF, Payload=ACK(5335) 2020-11-09 12:28:26 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Sending: b'aa555335ff0286' 2020-11-09 12:28:26 INFO (Thread-3) [custom_components.wyzesense.wyzesense_custom] LOG: time=2020-11-09T12:28:22.783000, data=b'a23737393034444130020000b0' 2020-11-09 12:28:26 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Trying to parse: b'55aa531d1900000175ae0d3605a2373739303444413002145e00010000b04c06c7' 2020-11-09 12:28:26 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Received: b'55aa531d1900000175ae0d3605a2373739303444413002145e00010000b04c06c7' 2020-11-09 12:28:26 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] <=== Received: Packet: Cmd=5319, Payload=b'00000175ae0d3605a2373739303444413002145e00010000b04c' 2020-11-09 12:28:26 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] ===> Sending: Packet: Cmd=53FF, Payload=ACK(5319) 2020-11-09 12:28:26 DEBUG (Thread-3) [custom_components.wyzesense.wyzesense_custom] Sending: b'aa555319ff026a' 2020-11-09 12:28:32 ERROR (Thread-3) [custom_components.wyzesense.wyzesense_custom] [Errno 110] Operation timed out

Thanks for your help with this.

RoldyBuffalo commented 4 years ago

Wyze Home Assistant integration request Please Upvote this integration request on the wyze forums if possible. 70+ open issue tickets on this repo. Tons of other folk with similar issues. We need a Wyze API. Thank you for reading. :)

roblefko commented 4 years ago

Update: I've switched the configuration of Virtual Box to use USB 3.0, and that seems to have resolved the issue.

roblefko commented 4 years ago

No problems since the switch to USB 3.0.