From 33122a9b6f86aef8fcdba69dcaa1a1c2c961ecfb Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Wed, 5 Jan 2022 11:28:12 +0100 Subject: [PATCH] Try other dehumidifier control --- nixos/roles/home-assistant-local/default.nix | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/nixos/roles/home-assistant-local/default.nix b/nixos/roles/home-assistant-local/default.nix index c8c687c2..eff101a5 100644 --- a/nixos/roles/home-assistant-local/default.nix +++ b/nixos/roles/home-assistant-local/default.nix @@ -111,24 +111,14 @@ in conditions = [{ condition = "or"; conditions = [ - { condition = "numeric_state"; entity_id = "sensor.schlafzimmer_humidity"; below = 69; } + { condition = "numeric_state"; entity_id = "sensor.schlafzimmer_humidity"; below = 65; } { condition = "state"; entity_id = "binary_sensor.schlafzimmerfenster"; state = "on"; } ]; - } - { - condition = "or"; - conditions = [ - { condition = "numeric_state"; entity_id = "sensor.schlafzimmer_humidity"; below = 65; } - { condition = "state"; entity_id = "binary_sensor.schlafzimmerfenster"; state = "on"; } - (conditions.modeIs modes.schlafzimmer "active") - (conditions.modeIs modes.schlafzimmer "force-active") - (conditions.modeIs modes.schlafzimmer "empty") - ]; - }]; + }]; sequence = { service = "switch.turn_off"; target.entity_id = "switch.luftentfeuchter"; }; } { - conditions = [{ condition = "numeric_state"; entity_id = "sensor.schlafzimmer_humidity"; above = 70; }]; + conditions = [{ condition = "numeric_state"; entity_id = "sensor.schlafzimmer_humidity"; above = 66; }]; sequence = { service = "switch.turn_on"; target.entity_id = "switch.luftentfeuchter"; }; } ];