From c2230d30c5d75622eb25f3e0df977691cbf01058 Mon Sep 17 00:00:00 2001
From: makefu <github@syntax-fehler.de>
Date: Thu, 4 Jul 2019 08:03:50 +0200
Subject: ma bureautomation: remove announcement, fix schlechteluft

---
 makefu/2configs/bureautomation/automation/schlechteluft.nix | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

(limited to 'makefu/2configs/bureautomation/automation/schlechteluft.nix')

diff --git a/makefu/2configs/bureautomation/automation/schlechteluft.nix b/makefu/2configs/bureautomation/automation/schlechteluft.nix
index 9a5c4c5c8..4a5fb17c2 100644
--- a/makefu/2configs/bureautomation/automation/schlechteluft.nix
+++ b/makefu/2configs/bureautomation/automation/schlechteluft.nix
@@ -1,11 +1,8 @@
 let
 secs = 60;
 in [
-  # TODO: trigger if it is before dusk and somebody arives but nachtlichter are
-  # off from last day
-  # TODO: do not have nachtlicht turned on at night
   {
-    alias = "Turn on Nachtlicht at dusk"; # when it gets dim
+    alias = "Bad Air Alarm";
     trigger =
     { platform = "numeric_state";
       entity_id = "sensor.air_quality";
@@ -33,7 +30,7 @@ in [
         ];
       }
       { service = "notify.matrix_notify";
-        data_template.message = "Bad Air Alarm! VOC above threshold for ${toString secs} seconds ({{state.sensor.air_quality.state_with_unit}})";
+        data_template.message = "Bad Air Alarm! VOC above threshold for ${toString secs} seconds ({{states.sensor.air_quality.state_with_unit}})";
       }
     ];
   }
-- 
cgit v1.2.3