diff options
author | makefu <github@syntax-fehler.de> | 2020-11-18 20:50:43 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2020-11-18 20:51:14 +0100 |
commit | a54974412751c98dec78b5e3977afc4a97aadea9 (patch) | |
tree | a096472a2c762f04a67a795a922f26259517dd7a /makefu/2configs/bureautomation/sensor/airquality.nix | |
parent | f66309f0289c76dc9797573a73acbad186f4e380 (diff) |
ma bureautomation: move to 20.09 style imports
Diffstat (limited to 'makefu/2configs/bureautomation/sensor/airquality.nix')
-rw-r--r-- | makefu/2configs/bureautomation/sensor/airquality.nix | 21 |
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"; + } + ]; +} |