Home Assistant的mqtt服务器配置格式
安装完Home Assistant Add-on: Mosquitto broker
测试时匿名登录时不通,找配置格式【HA入门系列02】Mosquitto插件的安装与配置_哔哩哔哩 (゜-゜)つロ 干杯~-bilibilikk
看到一处更新说mosquitto broker禁止了匿名访问,遂配置了账户:
Option: logins (optional)
A list of local users that will be created with username and password. You don’t need to do this because you can use Home Assistant users too, without any configuration. If a local user is specifically desired:
logins:- username: userpassword: passwd
所有配置如下,测试发布和订阅,成功:
logins:- username: mqtt1password: mqtt1
require_certificate: false
certfile: fullchain.pem
keyfile: privkey.pem
customize:active: falsefolder: mosquitto
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
