|
发表于 2021-5-17 20:45:32
|
显示全部楼层
请问mqtt关闭自动发现,手动配置要怎么写呢?
我还用了手动配置的hassmart开关,但是mqtt的discovery是true。一直报下面这个错,强迫症表示想把mqtt设备都改成手动来消除这个错误。
2021-05-17 12:17:16 ERROR (MainThread) [homeassistant.util.logging] Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'hassmart_8E933F_3', 'command_topic': 'hassmart/switch/hassmart_3key_module_8E933F_3/set', 'state_topic': 'hassmart/switch/hassmart_3key_module_8E933F_3/state', 'ip': '192.168.1.60', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},)
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/homeassistant/components/mqtt/mixins.py", line 160, in async_discover
config = schema(discovery_payload)
File "/usr/local/lib/python3.8/dist-packages/voluptuous/schema_builder.py", line 272, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.8/dist-packages/voluptuous/schema_builder.py", line 594, in validate_dict
return base_validate(path, iteritems(data), out)
File "/usr/local/lib/python3.8/dist-packages/voluptuous/schema_builder.py", line 432, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']
|
|