|
发表于 2018-9-28 09:25:07
|
显示全部楼层
感谢,用最新版本,已经没有这个问题了。
可以控制灯的开关了。
有个问题,我控制灯的颜色的时候,报了个错误:
2018-09-28 09:19:52 ERROR (MainThread) [custom_components.aligenie] Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/custom_components/aligenie.py", line 102, in post
response = await handleRequest(data)
File "/home/homeassistant/.homeassistant/custom_components/aligenie.py", line 137, in handleRequest
result = await controlDevice(name, payload)
File "/home/homeassistant/.homeassistant/custom_components/aligenie.py", line 243, in controlDevice
result = await _hass.services.async_call(domain, service, data, True)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/core.py", line 1074, in async_call
done, _ = await asyncio.wait([fut], timeout=SERVICE_CALL_LIMIT)
File "/usr/lib/python3.6/asyncio/tasks.py", line 313, in wait
return (yield from _wait(fs, timeout, return_when, loop))
File "/usr/lib/python3.6/asyncio/tasks.py", line 396, in _wait
yield from waiter
concurrent.futures._base.CancelledError
2018-09-28 09:19:52 ERROR (MainThread) [aiohttp.server] Unhandled exception
Traceback (most recent call last):
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 410, in start
await resp.prepare(request)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/aiohttp/web_response.py", line 300, in prepare
return await self._start(request)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/aiohttp/web_response.py", line 608, in _start
return await super()._start(request)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/aiohttp/web_response.py", line 367, in _start
await writer.write_headers(status_line, headers)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/aiohttp/http_writer.py", line 110, in write_headers
self._write(buf)
File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/aiohttp/http_writer.py", line 67, in _write
raise ConnectionResetError('Cannot write to closing transport')
ConnectionResetError: Cannot write to closing transport
|
|