kingmacth
发表于 2018-1-18 22:10:33
yinjiong 发表于 2018-1-18 16:50
把 SHUT_RDWR 改成 2
我在PY文件里增加了 SHUT_RDWR = 2
用了几分钟还是
Thu Jan 18 2018 22:08:56 GMT+0800 (中国标准时间)
Update for sensor.m1 fails
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/sensor/PhicommAirDetector.py", line 137, in update
sockA.sendall(b'\xaaO\x01\xf2E\x119\x8f\x0b\x00\x00\x00\x00\x00\x00\x00\x00\xb0\xf8\x93\x11T/\x007\x00\x00\x02{"type":5,"status":1}\xff#END#')
BrokenPipeError: Broken pipe
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 199, in async_update_ha_state
yield from self.async_device_update()
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 306, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/lib/python3.5/asyncio/futures.py", line 379, in __iter__
yield self# This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 297, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 292, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/components/sensor/PhicommAirDetector.py", line 143, in update
sockA.shutdown(SHUT_RDWR)
OSError: Transport endpoint is not connected
billy1101
发表于 2018-1-19 12:09:34
楼主看看给我指导下,14页我发的图片
咸味土豆
发表于 2018-1-19 13:06:19
厉害,墙裂支持一下。
咸味土豆
发表于 2018-1-19 13:20:00
本帖最后由 咸味土豆 于 2018-1-19 13:21 编辑
billy1101 发表于 2018-1-19 12:09
楼主看看给我指导下,14页我发的图片
楼主发的是接到HA里面用的插件啊!难道我看错了么,你要往HB里面接,应该是不行的。
三木
发表于 2018-1-19 13:54:06
厉害,感谢分享 66666
billy1101
发表于 2018-1-19 14:46:22
咸味土豆 发表于 2018-1-19 13:20
楼主发的是接到HA里面用的插件啊!难道我看错了么,你要往HB里面接,应该是不行的。 ...
我是按照给的连接里面的方法刷的
咸味土豆
发表于 2018-1-19 14:48:12
billy1101 发表于 2018-1-19 14:46
我是按照给的连接里面的方法刷的
不好意思,是我的错。。酱油路过。
billy1101
发表于 2018-1-19 14:50:17
咸味土豆 发表于 2018-1-19 14:48
不好意思,是我的错。。酱油路过。
我看说明是Domoticz,所以就用了homebridge的,我也不懂
flashsoft
发表于 2018-1-19 21:29:14
协议开放了?
yinjiong
发表于 2018-1-20 11:38:07
kingmacth 发表于 2018-1-18 22:10
我在PY文件里增加了 SHUT_RDWR = 2
用了几分钟还是
Thu Jan 18 2018 22:08:56 GMT+0800 (中国标准时间)
所有的都要改成2啊!