From 67c8e3dcaff77179cdfd5da0624e3d05b6b08718 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Mon, 22 Jul 2024 10:44:58 +0100 Subject: [PATCH] homeassistant: migrate to basnijholt/adaptive-lighting --- modules/services/homeassistant.nix | 36 +++++++++++++----------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/modules/services/homeassistant.nix b/modules/services/homeassistant.nix index 19ecf0c..3864694 100644 --- a/modules/services/homeassistant.nix +++ b/modules/services/homeassistant.nix @@ -44,7 +44,6 @@ in "bluetooth" "default_config" "esphome" - "flux" "google_assistant" "homekit" "met" @@ -54,6 +53,9 @@ in "sun" "switchbot" ]; + customComponents = with pkgs.home-assistant-custom-components; [ + adaptive_lighting + ]; config = { default_config = { }; @@ -88,25 +90,19 @@ in bluetooth = { }; - switch = [ - { - platform = "flux"; - start_time = "07:00"; - stop_time = "23:59"; - mode = "mired"; - disable_brightness_adjust = true; - lights = [ - "light.bedroom_lamp" - "light.bedroom_light" - "light.cubby_light" - "light.desk_lamp" - "light.hallway_light" - "light.living_room_lamp" - "light.living_room_light" - "light.wardrobe_light" - ]; - } - ]; + adaptive_lighting = { + lights = [ + "light.bedroom_lamp" + "light.bedroom_light" + "light.cubby_light" + "light.desk_lamp" + "light.hallway_light" + "light.living_room_lamp" + "light.living_room_light" + "light.wardrobe_light" + ]; + min_sunset_time = "21:00"; + }; light = [ {