summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/ham/multi/zigbee2mqtt.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-03-03 21:19:19 +0100
committermakefu <github@syntax-fehler.de>2020-03-03 21:19:19 +0100
commit0f93e2d02aa7bd63771a3ad41b0b0ffffbc0c564 (patch)
tree212aa8af809046a2c2e06363570793938109b585 /makefu/2configs/ham/multi/zigbee2mqtt.nix
parente1d6406fbd7be66bd4a2ebd08c568a19ee09f906 (diff)
ma ham: cleanup
Diffstat (limited to 'makefu/2configs/ham/multi/zigbee2mqtt.nix')
-rw-r--r--makefu/2configs/ham/multi/zigbee2mqtt.nix38
1 files changed, 1 insertions, 37 deletions
diff --git a/makefu/2configs/ham/multi/zigbee2mqtt.nix b/makefu/2configs/ham/multi/zigbee2mqtt.nix
index ba81b1298..947eb5517 100644
--- a/makefu/2configs/ham/multi/zigbee2mqtt.nix
+++ b/makefu/2configs/ham/multi/zigbee2mqtt.nix
@@ -8,43 +8,10 @@
let
inherit (import ../lib) zigbee;
prefix = zigbee.prefix;
- xiaomi_btn = name: [
- (zigbee.battery name)
- (zigbee.linkquality name)
- (zigbee.click name)
- ];
- xiaomi_temp = name: [
- (zigbee.battery name)
- (zigbee.linkquality name)
- (zigbee.temperature name)
- (zigbee.humidity name)
- (zigbee.pressure name)
- ];
- xiaomi_contact = name: [
- (zigbee.battery name)
- (zigbee.linkquality name)
- (zigbee.contact name)
- ];
- router_link = name: [
- (zigbee.linkquality name)
- ];
- router_bin = name: [
- (zigbee.state name)
- ];
in {
sensor =
- (xiaomi_btn "btn1")
- ++ (xiaomi_btn "btn2")
- ++ (xiaomi_btn "btn3")
-
- ++ (xiaomi_temp "temp1")
- ++ (xiaomi_temp "temp2")
- ++ (xiaomi_temp "temp3")
-
- ++ (router_link "router1")
- ++ (router_link "router2")
- ++ [
+ [
# Sensor for monitoring the bridge state
{
platform = "mqtt";
@@ -69,9 +36,6 @@ in {
icon = "mdi:chip";
}
];
- binary_sensor =
- (router_bin "router1")
- ++ (router_bin "router2");
switch = [
{
platform = "mqtt";