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

22 lines
479 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
};
2021-11-01 09:20:42 +01:00
in
{
services.zigbee2mqttConfiguration = lib.mapAttrs'
(name:
{ id, ... }: {
name = id;
value = { friendly_name = name; };
})
allDevices;
2020-10-30 00:36:00 +01:00
}