nixos-config/configs/pepe/home-assistant/zigbee2mqtt/repeater.nix

19 lines
463 B
Nix
Raw Normal View History

2020-10-30 00:36:00 +01:00
{ pkgs, lib, ... }:
let
# https://www.zigbee2mqtt.io/devices/SPZB0001.html
allDevices = {
"repeater1" = { id = "0x680ae2fffe6e7dc1"; };
"repeater2" = { id = "0x680ae2fffe8e240d"; };
2020-11-08 21:41:34 +01:00
"repeater3" = { id = "0x680ae2fffe404f60"; };
"repeater4" = { id = "0x680ae2fffe8e2e71"; };
2020-10-30 00:36:00 +01:00
};
in {
2020-11-22 01:58:32 +01:00
services.zigbee2mqttConfiguration = lib.mapAttrs' (name:
2020-10-30 00:36:00 +01:00
{ id, ... }: {
name = id;
2020-11-08 21:41:34 +01:00
value = { friendly_name = name; };
2020-10-30 00:36:00 +01:00
}) allDevices;
}