--wip-- [skip ci]
This commit is contained in:
parent
a7b7632400
commit
34b8582144
1 changed files with 15 additions and 3 deletions
|
|
@ -74,12 +74,24 @@ in
|
||||||
services = {
|
services = {
|
||||||
mosquitto = {
|
mosquitto = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
# listeners = [{
|
||||||
|
# address = "127.0.0.1";
|
||||||
|
# port = 1883;
|
||||||
|
# users.zigbee2mqtt = {
|
||||||
|
# acl = [ "pattern readwrite #" ];
|
||||||
|
# omitPasswordAuth = true;
|
||||||
|
# };
|
||||||
|
# }];
|
||||||
listeners = [{
|
listeners = [{
|
||||||
address = "127.0.0.1";
|
address = "127.0.0.1";
|
||||||
port = 1883;
|
port = 1883;
|
||||||
users.zigbee2mqtt = {
|
users.iotdevice = {
|
||||||
acl = [ "pattern readwrite #" ];
|
acl = [
|
||||||
omitPasswordAuth = true;
|
"read IoT/device/action"
|
||||||
|
"write IoT/device/observations"
|
||||||
|
"write IoT/device/LW"
|
||||||
|
];
|
||||||
|
password = "mysweetpassword-or-use-hashedPassword";
|
||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue