如何使用用户名和密码设置 Home-Assistant MQTT
configuration.yml 中的以下设置使用用户名和密码连接到本地 mosquitto MQTT 代理:
home_assistant_mqtt_snippet.yml
mqtt:
broker: "127.0.0.1"
username: "homeassistant"
password: "iraughij3Phoh7ne9Aoxingi2eimoo"完整的 configuration.yml:
home_assistant_configuration.yml
default_config:
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
ip_ban_enabled: true
login_attempts_threshold: 5
mqtt:
broker: "127.0.0.1"
username: "homeassistant"
password: "iraughij3Phoh7ne9Aoxingi2eimoo"
# 文本转语音
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yamlCheck out similar posts by category:
Home-Assistant, MQTT
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow