Updated mosquitto ACL docs with note about homeassistant user (#2421)

* Updated mosquitto ACL docs with note about homeassistant user

* Update mosquitto/DOCS.md

Co-authored-by: Mike Degatano <michael.degatano@gmail.com>

Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
This commit is contained in:
Jaimyn Mayer
2022-04-29 00:02:08 +10:00
committed by GitHub
parent 3d7bc632f5
commit f899885103

View File

@@ -97,7 +97,9 @@ See the following links for more information:
- [Mosquitto topic restrictions](http://www.steves-internet-guide.com/topic-restriction-mosquitto-configuration/)
- [Mosquitto.conf man page](https://mosquitto.org/man/mosquitto-conf-5.html)
Add the following configuration to enable **unrestricted** access to all topics.
Add the following configuration to enable **unrestricted** access to all topics for `[YOUR_MQTT_USER]`.
**Note:** Home Assistant expects the users `homeassistant` and `addons` to have unrestricted readwrite access to all topics. If you choose to enable ACLs, you should grant this access to these users as demonstrated below. Otherwise you will run into issues.
1. Enable the customize flag
@@ -116,6 +118,12 @@ Add the following configuration to enable **unrestricted** access to all topics.
3. Create `/share/mosquitto/accesscontrollist` with the contents:
```text
user addons
topic readwrite #
user homeassistant
topic readwrite #
user [YOUR_MQTT_USER]
topic readwrite #
```