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

 找回密码
 立即注册
查看: 2230|回复: 6

[技术探讨] 论坛定制模块不能在home assistant中被发现,求助,附上log

[复制链接]

3

主题

79

帖子

631

积分

论坛积极会员

积分
631
金钱
552
HASS币
0
发表于 2019-8-22 13:47:13 | 显示全部楼层 |阅读模式
论坛定制模块不能在home assistant中被发现,求助,附上log

A <class 'aiohttp.client_exceptions.ClientConnectorError'> error occurred: Cannot connect to host 172.28.55.14:3689 ssl:None [Connect call failed ('172.28.55.14', 3689)]
下午1:33 components/apple_tv/media_player.py (WARNING) - message first occured at 下午1:11 and shows up 100 times
['Auto', 'Silent', 'Favorite', 'Idle'] does not contain the speed setting off as its first element. Assuming that Auto is equivalent to 'off'.
下午1:11 components/homekit/util.py (WARNING)
The notify.ios platform was loaded but no devices exist! Please check the documentation at https://home-assistant.io/ecosystem/ios/notifications/ for more information
下午1:11 components/ios/notify.py (ERROR)
Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'keting_40FEB7_2', 'command_topic': 'hassmart/switch/hassmart_2key_module_40FEB7_2/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_40FEB7_2/state', 'ip': '172.28.55.126', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},) Traceback (most recent call last): File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/mqtt/switch.py", line 81, in async_discover config = PLATFORM_SCHEMA(discovery_payload) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__ return self._compiled([], data) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict return base_validate(path, iteritems(data), out) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']
下午1:11 util/logging.py (ERROR)
Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'keting_40FEB7_1', 'command_topic': 'hassmart/switch/hassmart_2key_module_40FEB7_1/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_40FEB7_1/state', 'ip': '172.28.55.126', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},) Traceback (most recent call last): File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/mqtt/switch.py", line 81, in async_discover config = PLATFORM_SCHEMA(discovery_payload) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__ return self._compiled([], data) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict return base_validate(path, iteritems(data), out) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']
下午1:11 util/logging.py (ERROR)
Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'canting_40FDAF_2', 'command_topic': 'hassmart/switch/hassmart_2key_module_40FDAF_2/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_40FDAF_2/state', 'ip': '172.28.55.46', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},) Traceback (most recent call last): File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/mqtt/switch.py", line 81, in async_discover config = PLATFORM_SCHEMA(discovery_payload) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__ return self._compiled([], data) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict return base_validate(path, iteritems(data), out) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']
下午1:11 util/logging.py (ERROR)
Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'canting_40FDAF_1', 'command_topic': 'hassmart/switch/hassmart_2key_module_40FDAF_1/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_40FDAF_1/state', 'ip': '172.28.55.46', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},) Traceback (most recent call last): File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/mqtt/switch.py", line 81, in async_discover config = PLATFORM_SCHEMA(discovery_payload) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__ return self._compiled([], data) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict return base_validate(path, iteritems(data), out) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']
下午1:11 util/logging.py (ERROR)
Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'tingtong_4128CD_2', 'command_topic': 'hassmart/switch/hassmart_2key_module_4128CD_2/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_4128CD_2/state', 'ip': '172.28.55.216', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},) Traceback (most recent call last): File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/mqtt/switch.py", line 81, in async_discover config = PLATFORM_SCHEMA(discovery_payload) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__ return self._compiled([], data) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict return base_validate(path, iteritems(data), out) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']
下午1:11 util/logging.py (ERROR)
Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'tingtong_4128CD_1', 'command_topic': 'hassmart/switch/hassmart_2key_module_4128CD_1/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_4128CD_1/state', 'ip': '172.28.55.216', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},) Traceback (most recent call last): File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/mqtt/switch.py", line 81, in async_discover config = PLATFORM_SCHEMA(discovery_payload) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__ return self._compiled([], data) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict return base_validate(path, iteritems(data), out) File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']
下午1:11 util/logging.py (ERROR)
 
 2019-08-22 13:11:13 ERROR (SyncWorker_1) [homeassistant.util.yaml.loader] YAML file /home/homeassistant/.homeassistant/configuration.yaml contains duplicate key "media_player". Check lines 25 and 80.
2019-08-22 13:11:23 ERROR (MainThread) [homeassistant.components.mqtt.switch] Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'tingtong_4128CD_1', 'command_topic': 'hassmart/switch/hassmart_2key_module_4128CD_1/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_4128CD_1/state', 'ip': '172.28.55.216', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},)
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/mqtt/switch.py", line 81, in async_discover
    config = PLATFORM_SCHEMA(discovery_payload)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']

2019-08-22 13:11:23 ERROR (MainThread) [homeassistant.components.mqtt.switch] Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'tingtong_4128CD_2', 'command_topic': 'hassmart/switch/hassmart_2key_module_4128CD_2/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_4128CD_2/state', 'ip': '172.28.55.216', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},)
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/mqtt/switch.py", line 81, in async_discover
    config = PLATFORM_SCHEMA(discovery_payload)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']

2019-08-22 13:11:23 ERROR (MainThread) [homeassistant.components.mqtt.switch] Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'canting_40FDAF_1', 'command_topic': 'hassmart/switch/hassmart_2key_module_40FDAF_1/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_40FDAF_1/state', 'ip': '172.28.55.46', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},)
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/mqtt/switch.py", line 81, in async_discover
    config = PLATFORM_SCHEMA(discovery_payload)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']

2019-08-22 13:11:23 ERROR (MainThread) [homeassistant.components.mqtt.switch] Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'canting_40FDAF_2', 'command_topic': 'hassmart/switch/hassmart_2key_module_40FDAF_2/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_40FDAF_2/state', 'ip': '172.28.55.46', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},)
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/mqtt/switch.py", line 81, in async_discover
    config = PLATFORM_SCHEMA(discovery_payload)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']

2019-08-22 13:11:23 ERROR (MainThread) [homeassistant.components.mqtt.switch] Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'keting_40FEB7_1', 'command_topic': 'hassmart/switch/hassmart_2key_module_40FEB7_1/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_40FEB7_1/state', 'ip': '172.28.55.126', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},)
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/mqtt/switch.py", line 81, in async_discover
    config = PLATFORM_SCHEMA(discovery_payload)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']

2019-08-22 13:11:23 ERROR (MainThread) [homeassistant.components.mqtt.switch] Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'keting_40FEB7_2', 'command_topic': 'hassmart/switch/hassmart_2key_module_40FEB7_2/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_40FEB7_2/state', 'ip': '172.28.55.126', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},)
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/mqtt/switch.py", line 81, in async_discover
    config = PLATFORM_SCHEMA(discovery_payload)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 267, in __call__
    return self._compiled([], data)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 589, in validate_dict
    return base_validate(path, iteritems(data), out)
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 427, in validate_mapping
    raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']


回复

使用道具 举报

123

主题

4661

帖子

1万

积分

管理员

囧死

Rank: 9Rank: 9Rank: 9

积分
16410
金钱
11664
HASS币
45
发表于 2019-8-22 13:56:14 | 显示全部楼层
不要使用自动发现,必须使用手动配置方式。具体见教程贴。
回复

使用道具 举报

3

主题

79

帖子

631

积分

论坛积极会员

积分
631
金钱
552
HASS币
0
 楼主| 发表于 2019-8-22 17:23:44 | 显示全部楼层
Jones 发表于 2019-8-22 13:56
不要使用自动发现,必须使用手动配置方式。具体见教程贴。

谢谢解决了。都自发现不了了吗
回复

使用道具 举报

123

主题

4661

帖子

1万

积分

管理员

囧死

Rank: 9Rank: 9Rank: 9

积分
16410
金钱
11664
HASS币
45
发表于 2019-8-22 18:55:51 | 显示全部楼层
foreveryyl 发表于 2019-8-22 17:23
谢谢解决了。都自发现不了了吗

暂时的固件是不能了,后面会发布新固件。
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2019-8-23 09:34:30 | 显示全部楼层
Jones 发表于 2019-8-22 18:55
暂时的固件是不能了,后面会发布新固件。

还是不要自动发现的好,你写的配置网页不是挺好的么,谁知道HA后面会不会又改了。前几天 hassio 改了坑了我一大把
Nero
回复

使用道具 举报

123

主题

4661

帖子

1万

积分

管理员

囧死

Rank: 9Rank: 9Rank: 9

积分
16410
金钱
11664
HASS币
45
发表于 2019-8-23 11:19:19 | 显示全部楼层
neroxps 发表于 2019-8-23 09:34
还是不要自动发现的好,你写的配置网页不是挺好的么,谁知道HA后面会不会又改了。前几天 hassio 改了坑了 ...

有道理,准备大改一下固件,以后有在线升级就好了。
回复

使用道具 举报

0

主题

8

帖子

102

积分

注册会员

Rank: 2

积分
102
金钱
94
HASS币
0
发表于 2019-12-27 22:17:36 | 显示全部楼层
囧 发表于 2019-8-22 13:56
不要使用自动发现,必须使用手动配置方式。具体见教程贴。

能麻烦囧大说明一下手动配置的教程在哪里吗?

多谢了!!
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 17:19 , Processed in 0.234829 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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