wgwqd 发表于 2023-5-16 12:08:47

求助,HomeAssistant配置文件:configuration.yaml

求助,先说一下系统环境威联通中虚拟机装的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 : 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).


也不知道是怎么回事,请大神帮忙指点一下,非常感谢!

xieahui 发表于 2023-5-16 12:33:31

直接去设备和服务里面添加mqtt集成,不要configuration.yaml写了

wgwqd 发表于 2023-5-16 12:43:18

本帖最后由 wgwqd 于 2023-5-16 12:46 编辑

集成我添加完了,这样就可以了吗,不好意思,我啥都不懂
我在这里面看不到任何设备和实体,不是应该能显示出来吗
页: [1]
查看完整版本: 求助,HomeAssistant配置文件:configuration.yaml