nixos-configs/configurations/homie/modules/home-assistant/zigbee.nix
matt1432 0c7dec7928
All checks were successful
Discord / discord commits (push) Has been skipped
feat(zigbee): make use of z2m
2025-02-02 16:08:03 -05:00

47 lines
837 B
Nix

{...}: {
services = {
home-assistant = {
extraComponents = [
"mqtt"
"smlight"
"zha"
];
};
mosquitto = {
enable = true;
listeners = [
{
port = 1883;
acl = ["pattern readwrite #"];
omitPasswordAuth = true;
settings.allow_anonymous = true;
}
];
};
zigbee2mqtt = {
enable = true;
settings = {
serial = {
port = "tcp://192.168.0.129:6638";
baudrate = 115200;
adapter = "zstack";
disable_led = false;
};
mqtt.server = "mqtt://localhost/1883";
availability.enabled = true;
frontend = {
port = 8080;
host = "100.64.0.10";
};
advanced.transmit_power = 20;
};
};
};
}