|
按照安装了N1,HASS可以正常启动,配置后主页2个显示未知,求助大佬,该怎么搞?
IP劫持已经做了,PING是正常到N1的.DC1的地址也是正确的地址.
HASS安装这位大佬的:https://bbs.hassbian.com/thread-4520-1-1.html
修改部分:只是在/usr/share/hassio/homeassistant/configuration.yaml 内添加了
homeassistant:
packages: !include_dir_named packages
配置文件2个正常放在packages和custom_components/switch内,重启后系统提示下图的未知数据,
系统日志:
ress the button to load the full Home Assistant log.
2018-10-16 01:33:53 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrievedTraceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 56, in async_setup_component return await task # type: ignore File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 118, in _async_setup_component conf_util.async_process_component_config(hass, config, domain) File "/usr/local/lib/python3.6/site-packages/homeassistant/config.py", line 757, in async_process_component_config platform = get_platform(hass, domain, p_name) File "/usr/local/lib/python3.6/site-packages/homeassistant/loader.py", line 62, in get_platform return get_component(hass, PLATFORM_FORMAT.format(domain, platform)) File "/usr/local/lib/python3.6/site-packages/homeassistant/loader.py", line 94, in get_component module = importlib.import_module(path) File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 674, in exec_module File "<frozen importlib._bootstrap_external>", line 781, in get_code File "<frozen importlib._bootstrap_external>", line 741, in source_to_code File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/config/custom_components/switch/phicomm_dc1m.py", line 7 <!DOCTYPE html> ^SyntaxError: invalid syntax2018-10-16 01:33:53 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template 当前功率, the state is unknown.2018-10-16 01:33:53 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template 当前电压, the state is unknown.2018-10-16 01:33:53 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template 当前电压, the state is unknown.2018-10-16 01:33:53 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template 当前功率, the state is unknown.2018-10-16 01:34:03 WARNING (SyncWorker_10) [netdisco.ssdp] Error fetching description at http://[fd72:cfd1:4f4a::1]:5000/rootDesc.xml2018-10-16 01:34:28 ERROR (MainThread) [aiohttp.server] Error handling requestTraceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 390, in start resp = await self._request_handler(request) File "/usr/local/lib/python3.6/site-packages/aiohttp/web_app.py", line 366, in _handle resp = await handler(request) File "/usr/local/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 106, in impl return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/static.py", line 66, in staticresource_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 67, in ban_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/auth.py", line 68, in auth_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/real_ip.py", line 34, in real_ip_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 67, in ban_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/auth.py", line 68, in auth_middleware return await handler(request) File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/view.py", line 113, in handle result = await result File "/usr/local/lib/python3.6/site-packages/homeassistant/components/config/core.py", line 24, in post errors = yield from async_check_ha_config_file(request.app['hass']) File "/usr/local/lib/python3.6/site-packages/homeassistant/config.py", line 793, in async_check_ha_config_file check_ha_config_file, hass) File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.6/site-packages/homeassistant/scripts/check_config.py", line 372, in check_ha_config_file platform = loader.get_platform(hass, domain, p_name) File "/usr/local/lib/python3.6/site-packages/homeassistant/loader.py", line 62, in get_platform return get_component(hass, PLATFORM_FORMAT.format(domain, platform)) File "/usr/local/lib/python3.6/site-packages/homeassistant/loader.py", line 94, in get_component module = importlib.import_module(path) File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 674, in exec_module File "<frozen importlib._bootstrap_external>", line 781, in get_code File "<frozen importlib._bootstrap_external>", line 741, in source_to_code File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/config/custom_components/switch/phicomm_dc1m.py", line 7 <!DOCTYPE html> ^SyntaxError: invalid syntax
|
|