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

 找回密码
 立即注册
查看: 2446|回复: 2

N1安装HASS获取DC1数据显示未知

[复制链接]

10

主题

140

帖子

639

积分

论坛积极会员

积分
639
金钱
499
HASS币
0
发表于 2018-10-16 10:13:11 | 显示全部楼层 |阅读模式
按照安装了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


微信截图_20181016101016.png
微信截图_20181016095559.png

configuration和2个配置.zip

24.04 KB, 下载次数: 13

回复

使用道具 举报

0

主题

32

帖子

233

积分

中级会员

Rank: 3Rank: 3

积分
233
金钱
201
HASS币
0
发表于 2018-10-16 15:56:38 | 显示全部楼层
猜测是版本问题,升级最新版homeassistant试试
回复

使用道具 举报

4

主题

531

帖子

3904

积分

论坛元老

Rank: 8Rank: 8

积分
3904
金钱
3363
HASS币
120
发表于 2018-10-16 17:58:05 | 显示全部楼层
/custom_components/switch/phicomm_dc1m.py", line 7    <!DOCTYPE html>    ^SyntaxError: invalid syntax2018-10-16 01:33:53
打开看看应该是下错了,重新下载
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-20 03:23 , Processed in 0.053245 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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