|
求助,先说一下系统环境威联通中虚拟机装的homeassistant,IP:192.168.31.68
威联通中container station中装的EMQX,桥接 IP:192.168.31.100
威联通IP:192.168.31.222
首先配置--设备与服务--添加集成--添加mqtt成功
然后打开config中的configuration.yaml添加如下
mqtt:
broker: 192.168.31.100
port: 1883
username: admin
password: admin1203
discovery: true
discovery_prefix: homeassistant
在重新启动的时候提示如下:
The system cannot restart because the configuration is not valid: Invalid config for [mqtt]: The 'broker' option near /config/configuration.yaml:4 has been removed, please remove it from your configuration for dictionary value @ data['mqtt']. Got {'broker': '192.168.31.100', 'port': 1883, 'username': 'admin', 'password': 'admin1203', 'discovery': True, 'discovery_prefix': 'homeassistant'}. (See /config/configuration.yaml, line 4).
也不知道是怎么回事,请大神帮忙指点一下,非常感谢!
|
|