summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bureautomation/sensor/airquality.nix
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/2configs/bureautomation/sensor/airquality.nix')
-rw-r--r--makefu/2configs/bureautomation/sensor/airquality.nix21
1 files changed, 12 insertions, 9 deletions
diff --git a/makefu/2configs/bureautomation/sensor/airquality.nix b/makefu/2configs/bureautomation/sensor/airquality.nix
index 217fa9595..7d95c3c15 100644
--- a/makefu/2configs/bureautomation/sensor/airquality.nix
+++ b/makefu/2configs/bureautomation/sensor/airquality.nix
@@ -1,9 +1,12 @@
-[
- # coming from 2configs/stats/telegraf/
- { platform = "mqtt";
- name = "Air Quality";
- state_topic = "/telegraf/wbob/airquality";
- value_template = "{{ value_json.fields.value }}";
- unit_of_measurement = "VOC";
- }
-]
+{
+ services.home-assistant.config.sensor =
+ [
+ # coming from 2configs/stats/telegraf/
+ { platform = "mqtt";
+ name = "Air Quality";
+ state_topic = "/telegraf/wbob/airquality";
+ value_template = "{{ value_json.fields.value }}";
+ unit_of_measurement = "VOC";
+ }
+ ];
+}