『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 6224|回复: 0

[求助] HA启动问题求助

[复制链接]

2

主题

30

帖子

143

积分

注册会员

Rank: 2

积分
143
金钱
112
HASS币
0
发表于 2018-1-2 11:52:37 | 显示全部楼层 |阅读模式
之前都使用正常,后来不知道做了什么操作,导致手机模块,和彩云天气模块加载出现问题,查看log如下,本人新手,不知道是哪里出错,求大神指点!

2018-01-02 11:48:08 ERROR (Thread-20) [homeassistant.util.json] Could not parse JSON content: /home/homeassistant/.homeassistant/.ios.conf
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/util/json.py", line 19, in load_json
    return json.loads(fdesc.read())
  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-01-02 11:48:08 ERROR (MainThread) [homeassistant.setup] Error during setup of component ios
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/util/json.py", line 19, in load_json
    return json.loads(fdesc.read())
  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)


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/setup.py", line 193, in _async_setup_component
    component.setup, hass, processed_config)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, 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/ios.py", line 212, in setup
    CONFIG_FILE = load_json(CONFIG_FILE_PATH)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/util/json.py", line 25, in load_json
    raise HomeAssistantError(error)
homeassistant.exceptions.HomeAssistantError: Expecting value: line 1 column 1 (char 0)
2018-01-02 11:48:08 WARNING (MainThread) [homeassistant.setup] Setup of weather is taking over 10 seconds.
2018-01-02 11:48:08 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2018-01-02 11:48:10 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform CaiyunweatherSE is taking over 10 seconds.
2018-01-02 11:48:12 ERROR (MainThread) [homeassistant.components.sensor] Error on device update!
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 217, in async_add_entity
    yield from entity.async_device_update(warning=False)
  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 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, 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 "/home/homeassistant/.homeassistant/custom_components/sensor/CaiyunweatherSE.py", line 1046, in update
    high_aqi_data = get_high_aqi_day(self,i)
  File "/home/homeassistant/.homeassistant/custom_components/sensor/CaiyunweatherSE.py", line 1038, in get_high_aqi_day
    type_high_aqi = {num_day_type[num]+'最高aqi':day_max_aqi,num_day_type[num]+'空气质量预警':'空气质量指数为{high_aqi},空气质量级别为五级,空气质量状况属于重度污染。此时,心脏病和肺病患者症状显著加剧,运动耐受力降低,健康人群普遍出现症状,建议儿童、老年人和心脏病、肺病患者应停留在室内,停止户外运动,一般人群减少户外运动。'.format(high_temp=day_max_aqi)}
KeyError: 'high_aqi'

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 08:07 , Processed in 0.109596 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表