|
发表于 2020-5-12 17:33:32
|
显示全部楼层
本帖最后由 hhyhxc13 于 2020-5-12 17:36 编辑
大佬,都写了,我还搞了个小白的教程 ...........
https://bbs.hassbian.com/thread-9968-1-1.html顺便贴个报错日志,使用正常
日志详细信息( ERROR )Logger: homeassistant.helpers.entity
Source: custom_components/midea/climate.py:108
First occurred: 下午5:34:48 (1 occurrences)
Last logged: 下午5:34:48
Update for climate.midea_b77300000038 failsTraceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update await self.async_update() File "/config/custom_components/midea/climate.py", line 108, in async_update await self.hass.async_add_executor_job(self._device.refresh) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.7/site-packages/msmart/device.py", line 170, in refresh data = self._lan_service.appliance_transparent_send(data) File "/usr/local/lib/python3.7/site-packages/msmart/lan.py", line 63, in appliance_transparent_send response = bytearray(self.request(data))[40:88] File "/usr/local/lib/python3.7/site-packages/msmart/lan.py", line 38, in request response = sock.recv(256)socket.timeout: timed out
|
|