- 积分
- 260
- 金钱
- 183
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 260
- 金钱
- 183
- HASS币
- 0
|
发表于 2018-11-4 20:26:48
|
显示全部楼层
本帖最后由 Lucky 于 2018-11-4 21:54 编辑
大佬,找你的帖子配置好了,刚开始几个徽章都出现了,显示“无法......”。我不知道懂了哪里,然后徽章全没了,但是历史记录还有。
log如下(请无视博联报错)
2018-11-04 11:58:09 WARNING (MainThread) [homeassistant.loader] You are using a custom component for sensor.record_time which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-11-04 11:58:11 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform record_time
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
return fut.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/home/homeassistant/.homeassistant/custom_components/sensor/record_time.py", line 71, in async_setup_platform
yield from data.async_update()
File "/usr/lib/python3.5/asyncio/coroutines.py", line 210, in coro
res = func(*args, **kw)
File "/home/homeassistant/.homeassistant/custom_components/sensor/record_time.py", line 237, in async_update
record_time_data = json.load(file_data)
File "/usr/lib/python3.5/json/__init__.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2018-11-04 12:01:52 ERROR (Thread-14) [homeassistant.loader] Error loading custom_components.switch.broadlink_mp1. Make sure all dependencies are installed
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 92, in get_component
module = importlib.import_module(path)
File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 673, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/switch/broadlink_mp1.py", line 19, in <module>
from broadlink import mp1 as BroadlinkMP1Device
这几个设一个组就正常。是我哪里理解错了么......
|
|