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

 找回密码
 立即注册
楼主: luzai

[插件集成] 20190117更新【升级版】多DC1插排离线控制

  [复制链接]

19

主题

457

帖子

8161

积分

元老级技术达人

云淡风轻近午天

积分
8161
金钱
7704
HASS币
0

教程狂人

 楼主| 发表于 2019-1-16 09:24:27 | 显示全部楼层
guitengyue 发表于 2018-12-23 09:35
今天断了下整个插座的微断,然后插座是不上电了,总开关被关

试试最新的文件,好坏与否到时候给个反馈
回复

使用道具 举报

4

主题

85

帖子

466

积分

中级会员

Rank: 3Rank: 3

积分
466
金钱
381
HASS币
0
发表于 2019-1-16 22:06:52 | 显示全部楼层
luzai 发表于 2019-1-16 09:24
试试最新的文件,好坏与否到时候给个反馈

大佬,更新了好像用不了呀,只显示电压和功率,开关都不见了,配置也没动啊
回复

使用道具 举报

19

主题

457

帖子

8161

积分

元老级技术达人

云淡风轻近午天

积分
8161
金钱
7704
HASS币
0

教程狂人

 楼主| 发表于 2019-1-17 08:59:51 | 显示全部楼层
liuxinsc 发表于 2019-1-16 22:06
大佬,更新了好像用不了呀,只显示电压和功率,开关都不见了,配置也没动啊 ...

之前下载过的朋友再次下载更新一下(只需更新phicomm_dc1.py文件)
记得重启HA
回复

使用道具 举报

4

主题

85

帖子

466

积分

中级会员

Rank: 3Rank: 3

积分
466
金钱
381
HASS币
0
发表于 2019-1-17 09:17:06 | 显示全部楼层
luzai 发表于 2019-1-17 08:59
之前下载过的朋友再次下载更新一下(只需更新phicomm_dc1.py文件)
记得重启HA ...

大神,重启了还是不行,可以帮我看看不
ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (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 764, in async_process_component_config
    platform = get_platform(hass, domain, p_name)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/loader.py", line 60, in get_platform
    return get_component(hass, PLATFORM_FORMAT.format(domain, platform))
  File "/usr/local/lib/python3.6/site-packages/homeassistant/loader.py", line 92, 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_dc1.py", line 339
    continue
           ^
SyntaxError: invalid syntax
2019-01-17 01:13:17 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template 褰撳墠鐢靛帇, the state is unknown.
2019-01-17 01:13:17 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template 褰撳墠鍔熺巼, the state is unknown.
2019-01-17 01:13:17 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template 褰撳墠鍔熺巼, the state is unknown.
2019-01-17 01:13:17 WARNING (MainThread) [homeassistant.components.sensor.template] Could not render template 褰撳墠鐢靛帇, the state is unknown.
2019-01-17 01:14:06 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 406, in start
    resp = await task
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_app.py", line 435, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 120, 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 99, in auth_middleware
    return await handler(request)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/http/view.py", line 118, in handle
    result = await result
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/config/core.py", line 21, in post
    errors = await async_check_ha_config_file(request.app['hass'])
  File "/usr/local/lib/python3.6/site-packages/homeassistant/config.py", line 800, 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 367, 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 60, in get_platform
    return get_component(hass, PLATFORM_FORMAT.format(domain, platform))
  File "/usr/local/lib/python3.6/site-packages/homeassistant/loader.py", line 92, 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_dc1.py", line 339
    continue
           ^
SyntaxError: invalid syntax
回复

使用道具 举报

19

主题

457

帖子

8161

积分

元老级技术达人

云淡风轻近午天

积分
8161
金钱
7704
HASS币
0

教程狂人

 楼主| 发表于 2019-1-17 13:00:14 | 显示全部楼层
liuxinsc 发表于 2019-1-17 09:17
大神,重启了还是不行,可以帮我看看不
ERROR (MainThread) [homeassistant.core] Error doing job: Task ...

不好意思,屏蔽调试代码的时候有部分没有完全屏蔽掉
你重新下载更新试试看
回复

使用道具 举报

4

主题

85

帖子

466

积分

中级会员

Rank: 3Rank: 3

积分
466
金钱
381
HASS币
0
发表于 2019-1-17 13:21:09 | 显示全部楼层
luzai 发表于 2019-1-17 13:00
不好意思,屏蔽调试代码的时候有部分没有完全屏蔽掉
你重新下载更新试试看 ...

多谢大神,可以用了,我先来试试
回复

使用道具 举报

0

主题

7

帖子

53

积分

注册会员

Rank: 2

积分
53
金钱
46
HASS币
0
发表于 2019-1-17 16:14:18 | 显示全部楼层
感谢发布
回复

使用道具 举报

0

主题

90

帖子

428

积分

中级会员

Rank: 3Rank: 3

积分
428
金钱
338
HASS币
0
发表于 2019-1-17 16:17:46 | 显示全部楼层
学习一下
回复

使用道具 举报

2

主题

199

帖子

3539

积分

论坛元老

Rank: 8Rank: 8

积分
3539
金钱
3340
HASS币
0
发表于 2019-1-17 19:34:44 | 显示全部楼层
学习一下
回复

使用道具 举报

7

主题

105

帖子

446

积分

中级会员

Rank: 3Rank: 3

积分
446
金钱
341
HASS币
0
发表于 2019-1-17 21:29:18 | 显示全部楼层
获取不到任何数据,下面是日志:
2019-01-17 21:25:41 WARNING (SyncWorker_13) [custom_components.switch.phicomm_dc1] PhicommDC1Switch server started on port 8000
2019-01-17 21:25:48 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/homekit/type_thermostats.py", line 245, in update_state
    if isinstance(target_temp, float) and current_temp < target_temp:
TypeError: '<' not supported between instances of 'NoneType' and 'float'
2019-01-17 21:26:47 ERROR (MainThread) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/homekit/type_thermostats.py", line 245, in update_state
    if isinstance(target_temp, float) and current_temp < target_temp:
TypeError: '<' not supported between instances of 'NoneType' and 'float'
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-22 23:58 , Processed in 0.195934 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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