yinjiong 发表于 2018-1-18 10:32:25

kingmacth 发表于 2018-1-17 21:59
这个版本几分钟就掉线了。

log来......

kingmacth 发表于 2018-1-18 13:45:10

yinjiong 发表于 2018-1-18 10:32
log来......

你需要的是网页看到的日志还是命令行里的日志。用哪个命令?

kingmacth 发表于 2018-1-18 13:46:25

yinjiong 发表于 2018-1-18 10:32
log来......

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 136, 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 142, in update
    sockA.shutdown(SHUT_RDWR)
NameError: name 'SHUT_RDWR' is not defined

这是网页上的

kingmacth 发表于 2018-1-18 13:48:22

yinjiong 发表于 2018-1-18 10:32
log来......

顺便在咨询个问题。问什么心跳里面有的是2位有的是三位呢。
\xaaO\x01\xf2E\x119
比如这个AAOF2E 119是三位的01是2位的。

k_xg9 发表于 2018-1-18 15:26:24

谢谢分享

yinjiong 发表于 2018-1-18 16:50:52

kingmacth 发表于 2018-1-18 13:46
Update for sensor.m1 fails
Traceback (most recent call last):
File "/srv/homeassistant/homeassis ...

把 SHUT_RDWR 改成 2

pwq10000 发表于 2018-1-18 19:43:42

好东西,谢谢分享!!!

kingmacth 发表于 2018-1-18 19:56:33

yinjiong 发表于 2018-1-18 16:50
把 SHUT_RDWR 改成 2

在哪里改啊?

billy1101 发表于 2018-1-18 21:42:01





这是我的设置,但是HA系统里显示不出来,小白的我搞不清楚哪里错了,用的是树莓派




nhi001 发表于 2018-1-18 21:55:51

正好我买了几个
页: 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17 18 19 20 21 22
查看完整版本: (1月14日更新)斐讯空气检测仪M1插件 for HA