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
|
2020-10-30 23:39:40 +01:00
|
|
|
./zigbee2mqtt/fyrtur.nix
|
2020-10-30 00:36:00 +01:00
|
|
|
./zigbee2mqtt/heater.nix
|
2020-10-21 00:24:16 +02:00
|
|
|
./zigbee2mqtt/leds.nix
|
2020-04-15 21:47:21 +02:00
|
|
|
./zigbee2mqtt/lights.nix
|
|
|
|
./zigbee2mqtt/motion.nix
|
2020-10-30 00:36:00 +01:00
|
|
|
./zigbee2mqtt/repeater.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.
|
2020-11-01 23:59:51 +01:00
|
|
|
discover = true;
|
2020-05-09 16:43:47 +02:00
|
|
|
};
|
2020-04-08 16:43:09 +02:00
|
|
|
|
|
|
|
}
|