enable zigbee2mqtt
This commit is contained in:
parent
7fe56e78ea
commit
913213e228
|
@ -26,7 +26,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
deploy.nodes.bastion = {
|
deploy.nodes.bastion = {
|
||||||
hostname = "localhost";
|
hostname = "10.42.42.4";
|
||||||
fastConnection = true;
|
fastConnection = true;
|
||||||
profiles.system = {
|
profiles.system = {
|
||||||
user = "root";
|
user = "root";
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
victor = {
|
victor = {
|
||||||
acl = ["topic readwrite #"];
|
acl = ["topic readwrite #"];
|
||||||
};
|
};
|
||||||
|
zigbee2mqtt = {
|
||||||
|
acl = ["topic readwrite #"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 1883;
|
port = 1883;
|
||||||
|
@ -37,5 +40,24 @@
|
||||||
allowAnonymous = true;
|
allowAnonymous = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.zigbee2mqtt = {
|
||||||
|
enable = true;
|
||||||
|
dataDir = "/var/lib/zigbee2mqtt";
|
||||||
|
settings = {
|
||||||
|
homeassistant = false;
|
||||||
|
permit_join = true;
|
||||||
|
|
||||||
|
serial = {
|
||||||
|
port = "/dev/ttyUSB0";
|
||||||
|
};
|
||||||
|
|
||||||
|
mqtt = {
|
||||||
|
base_topic = "zigbee2mqtt";
|
||||||
|
server = "mqtt://localhost:${toString config.services.mosquitto.port}";
|
||||||
|
user = "zigbee2mqtt";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ config.services.mosquitto.port ];
|
networking.firewall.allowedTCPPorts = [ config.services.mosquitto.port ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue