Skip to content

Commit

Permalink
feat(meemee): enable zigbee2mqtts
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Dec 12, 2024
1 parent a121a5c commit 6d72d9d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 7 additions & 6 deletions machines/meemee/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
_:
let
ownIP = "10.100.20.2";
zigbeeBottomFloorIP = "10.210.10.10";

adguardCustomMappings = builtins.fromJSON (builtins.readFile ../domains.json);
in
Expand Down Expand Up @@ -265,18 +266,18 @@ rec {
wireguardPort = 53201;
};
zigbee2mqtt = {
enable = false;
enable = true;
serials = {
topfloor = {
port = "/dev/ttyUSB0";
disable_led = false;
baudrate = 115200;
};
# bottomfloor = {
# port = "tcp://<ip>:6638";
# baudrate = 115200;
# adapter = "ezsp";
# };
bottomfloor = {
port = "tcp://${zigbeeBottomFloorIP}:6638";
baudrate = 115200;
adapter = "ezsp";
};
};
};
};
Expand Down
4 changes: 4 additions & 0 deletions modules/system/containers/zigbee2mqtt/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ in
"--group-add=27" # dialout group in nixos, doesn't map 1:1 with container
] ++ lib.optionals (lib.strings.hasPrefix "/dev" value.port) [ "--device=${value.port}" ];
};
opts = {
# access remote coordinator
allowPublic = true;
};
};
}
) (builtins.attrNames cfg.serials)
Expand Down

0 comments on commit 6d72d9d

Please sign in to comment.