2020-04-15 23:55:21 +02:00
|
|
|
{ pkgs, lib, config, ... }: {
|
2020-04-15 21:47:21 +02:00
|
|
|
imports = [
|
|
|
|
./mqtt.nix
|
2020-10-21 00:24:16 +02:00
|
|
|
./zigbee2mqtt/buttons.nix
|
|
|
|
./zigbee2mqtt/doors.nix
|
|
|
|
./zigbee2mqtt/leds.nix
|
2020-04-15 21:47:21 +02:00
|
|
|
./zigbee2mqtt/lights.nix
|
|
|
|
./zigbee2mqtt/motion.nix
|
2020-10-21 00:24:16 +02:00
|
|
|
./zigbee2mqtt/service.nix
|
2020-04-15 23:55:21 +02:00
|
|
|
./zigbee2mqtt/temperatur.nix
|
2020-04-15 21:47:21 +02:00
|
|
|
];
|
|
|
|
|
2020-05-09 16:43:47 +02:00
|
|
|
services.zigbee2mqtt = {
|
|
|
|
enable = true;
|
|
|
|
mqttPassword = lib.fileContents <secrets/zigbee/password>;
|
|
|
|
networkKey = import <secrets/home-assistant/zigbee/networkKey>;
|
|
|
|
# only turn on for new devices, usually turn of for security reasons.
|
|
|
|
discover = false;
|
|
|
|
};
|
2020-04-08 16:43:09 +02:00
|
|
|
|
|
|
|
}
|