From d974a4a94b5a81b1ca8aaf328a2bfe5feac5f8ca Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 1 Nov 2020 23:59:51 +0100 Subject: [PATCH] hass: lights wip --- configs/pepe/home-assistant/light-control.nix | 16 ++++++++-------- configs/pepe/home-assistant/zigbee2mqtt.nix | 2 +- .../pepe/home-assistant/zigbee2mqtt/heater.nix | 1 + 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/configs/pepe/home-assistant/light-control.nix b/configs/pepe/home-assistant/light-control.nix index b898601..8e5957e 100644 --- a/configs/pepe/home-assistant/light-control.nix +++ b/configs/pepe/home-assistant/light-control.nix @@ -132,14 +132,14 @@ topic = "zigbee2mqtt/light_7"; rooms = [ "sleeping_room" ]; }) - (led { - topic = "zigbee2mqtt/led_1"; - rooms = [ "office_room" ]; - }) - (led { - topic = "zigbee2mqtt/led_2"; - rooms = [ "kitchen" ]; - }) + #(led { + # topic = "zigbee2mqtt/led_1"; + # rooms = [ "office_room" ]; + #}) + #(led { + # topic = "zigbee2mqtt/led_2"; + # rooms = [ "kitchen" ]; + #}) #(sonoff { # id = "PAL01"; diff --git a/configs/pepe/home-assistant/zigbee2mqtt.nix b/configs/pepe/home-assistant/zigbee2mqtt.nix index 2fd005d..50c574a 100644 --- a/configs/pepe/home-assistant/zigbee2mqtt.nix +++ b/configs/pepe/home-assistant/zigbee2mqtt.nix @@ -18,7 +18,7 @@ mqttPassword = lib.fileContents ; networkKey = import ; # only turn on for new devices, usually turn of for security reasons. - discover = false; + discover = true; }; } diff --git a/configs/pepe/home-assistant/zigbee2mqtt/heater.nix b/configs/pepe/home-assistant/zigbee2mqtt/heater.nix index 07e618f..2f79691 100644 --- a/configs/pepe/home-assistant/zigbee2mqtt/heater.nix +++ b/configs/pepe/home-assistant/zigbee2mqtt/heater.nix @@ -21,6 +21,7 @@ in { retain = false; friendly_name = name; transition = 1; + debounce = 0.5; }; }) allDevices;