xcy1231 / Ha-GreeCentralClimate

87 stars 29 forks source link

最新版本Fake-Gree-serve抛出大量异常 #28

Closed Joee-D closed 1 year ago

Joee-D commented 1 year ago

好像是最新更新了Fake-Gree-server,转发状态与控制命令 ,想问下这个是什么功能呢?

更新后抛出了大量异常,我看都是超时,但是功能是可用的,这个建议如何处理?

2023-07-08 21:03:19.783 ERROR (MainThread) [custom_components.xiaomi_miot.light] 晾衣架(hyd.airer.znlyj1): Got MiioException while fetching the state: Unable to discover the device 192.168.1.17, mapping: {'light.on': {'siid': 3, 'piid': 1}}, max_properties: 6/1 2023-07-08 21:03:44.491 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:03:45.351 ERROR (Thread-2 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-08 21:04:14.521 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:04:44.551 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:04:54.651 ERROR (Thread-2 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-08 21:05:14.581 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:05:44.611 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:05:54.615 ERROR (Thread-2 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-08 21:06:14.641 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:06:44.671 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:06:54.611 ERROR (Thread-2 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-08 21:07:14.701 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:07:44.731 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:07:54.611 ERROR (Thread-2 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-08 21:08:14.761 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:08:44.791 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:08:54.616 ERROR (Thread-2 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-08 21:09:14.821 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:09:44.851 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:09:54.621 ERROR (Thread-2 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-08 21:10:14.881 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:10:44.911 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:10:54.621 ERROR (Thread-2 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-08 21:11:14.941 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:11:44.971 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:11:54.626 ERROR (Thread-2 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-08 21:12:15.001 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:12:45.031 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:12:54.621 ERROR (Thread-2 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-08 21:13:15.062 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:13:45.091 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:13:54.621 ERROR (Thread-2 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-08 21:14:15.121 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:14:45.151 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:14:54.664 ERROR (Thread-2 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-08 21:15:15.181 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-08 21:15:45.211 ERROR (Thread-3 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out

Joee-D commented 1 year ago

不好意思,忘记看新的readme了,设置了一下,已经好了,但是还是会报异常,基本每分钟都会抛一次,看是否可以把告警级别改低一点,时间长了满屏异常;或者超时检测宽松一点。暂时回退到了上个版本。

platform: gree2 host: 192.168.1.16 scan_interval: 60 fake_server: 192.168.1.1 temp_sensor:

客厅

48218b1b000000: sensor.0x00158d0006ed65ba_temperature

卧室

0a188a1b000000: sensor.0x00158d00073a1aa2_temperature

次卧

1c638b1b000000: sensor.0x00158d000632c092_temperature

nslookup dis.gree.com 服务器: Joee.lan Address: 192.168.1.1

名称: dis.gree.com Addresses: ::ffff:192.168.1.1 192.168.1.1

2023-07-09 09:36:10.440 DEBUG (Thread-7 (receive)) [custom_components.gree2.fake_server] conn recv data: b'{"t":"hb","uid":0,"cid":"b4430db64194"}\n' from: 192.168.1.16 conn addr: ('192.168.1.16', 54407) 2023-07-09 09:36:10.441 INFO (Thread-7 (receive)) [custom_components.gree2.fake_server] Process: {'t': 'hb', 'uid': 0, 'cid': 'b4430db64194'} 2023-07-09 09:36:10.441 INFO (Thread-7 (receive)) [custom_components.gree2.fake_server] Hb request answer: {'t': 'hbok'} 2023-07-09 09:36:21.561 ERROR (Thread-3 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-09 09:36:23.571 ERROR (Thread-4 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-09 09:36:23.572 DEBUG (Thread-4 (fake_listen)) [custom_components.gree2.bridge] Socket timeout reset count :0 2023-07-09 09:36:30.355 DEBUG (Thread-7 (receive)) [custom_components.gree2.fake_server] conn recv data: b'{"t":"hb","uid":0,"cid":"b4430db64194"}\n' from: 192.168.1.16 conn addr: ('192.168.1.16', 54407) 2023-07-09 09:36:30.355 INFO (Thread-7 (receive)) [custom_components.gree2.fake_server] Process: {'t': 'hb', 'uid': 0, 'cid': 'b4430db64194'} . . . 2023-07-09 09:43:52.011 ERROR (Thread-3 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out . . . 2023-07-09 09:44:12.806 INFO (Thread-7 (receive)) [custom_components.gree2.fake_server] Hb request answer: {'t': 'hbok'} 2023-07-09 09:44:22.041 ERROR (Thread-3 (device_listen)) [custom_components.gree2.bridge] Device socket received error: timed out 2023-07-09 09:44:23.531 ERROR (Thread-4 (fake_listen)) [custom_components.gree2.bridge] Fake socket received error: timed out 2023-07-09 09:44:23.532 DEBUG (Thread-4 (fake_listen)) [custom_components.gree2.bridge] Socket timeout reset count :0

xcy1231 commented 1 year ago

恩,这两个报错其实没什么影响,我把级别调低