找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4398|回复: 9

[N1盒子] N1安装HASS获取DC1数据显示未知

[复制链接]
发表于 2018-10-16 10:47 | 显示全部楼层 |阅读模式
按照安装了N1,HASS可以正常启动,配置后主页2个显示未知,求助大佬,该怎么搞?
IP劫持已经做了,PING是正常到N1的.DC1的地址也是正确的地址.

教程这位大佬的:https://www.right.com.cn/forum/thread-342510-1-1.html
HASS安装这位大佬的:
修改部分:只是在/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

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2018-10-16 11:17 | 显示全部楼层
@ruike002
大佬们 帮忙看一下,
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-16 12:30 | 显示全部楼层
看了你的配置文件,两个DC的IP一致,请根据实际ip修改,我在原来的贴上传了一份我的配置文件  你可以参考下

点评

嗯嗯,这个我是故意改一样的,但是改成正常2个IP,依然是提示获取不到数据  详情 回复 发表于 2018-10-16 12:52
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-16 12:41 | 显示全部楼层
情况跟我的一样

点评

也是还没解决?  详情 回复 发表于 2018-10-16 12:53
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-10-16 12:52 | 显示全部楼层
ruike002 发表于 2018-10-16 12:30
看了你的配置文件,两个DC的IP一致,请根据实际ip修改,我在原来的贴上传了一份我的配置文件  你可以参考下

嗯嗯,这个我是故意改一样的,但是改成正常2个IP,依然是提示获取不到数据

点评

哦哦 仔细看了下  详情 回复 发表于 2018-10-17 11:26
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-10-16 12:53 | 显示全部楼层
kinkit 发表于 2018-10-16 12:41
情况跟我的一样

也是还没解决?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-16 15:53 | 显示全部楼层
参照帖子 https://bbs.hassbian.com/thread-4072-1-1.html
重新安装试下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-16 15:56 | 显示全部楼层
问下ip劫持怎么做?高恪固件有个url重定向
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-17 11:26 | 显示全部楼层
kite52713 发表于 2018-10-16 12:52
嗯嗯,这个我是故意改一样的,但是改成正常2个IP,依然是提示获取不到数据

哦哦 仔细看了下

点评

是你的phicomm_dc1m.py文件有问题 你下错了吧  详情 回复 发表于 2018-10-17 11:26
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-17 11:26 | 显示全部楼层

是你的phicomm_dc1m.py文件有问题   你下错了吧
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-19 22:54

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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