From d85588aadcb905582ea30cee9ff1cfb6bcbcfe74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 16 Jan 2023 21:17:27 +0100 Subject: nixos/home-assistant: drop bigclown-mqtt2influxdb I use telegraf now. --- nixos/modules/home-assistant.nix | 70 ---------------------------------------- 1 file changed, 70 deletions(-) (limited to 'nixos') diff --git a/nixos/modules/home-assistant.nix b/nixos/modules/home-assistant.nix index e9d6338..bf98609 100644 --- a/nixos/modules/home-assistant.nix +++ b/nixos/modules/home-assistant.nix @@ -53,76 +53,6 @@ in { password = "@PASS_MQTT@"; }; }; - mqtt2influxdb = { - # TODO remove as we have telegraf - enable = true; - environmentFile = "/run/secrets/bigclown.env"; - mqtt = { - username = "bigclown"; - password = "@PASS_MQTT@"; - }; - influxdb = { - host = "cynerd.cz"; - database = "bigclown"; - username = "bigclown"; - password = "@PASS_INFLUXDB@"; - ssl = true; - verify_ssl = false; - }; - points = [ - { - measurement = "temperature"; - topic = "bigclown/node/+/thermometer/+/temperature"; - fields.value = "$.payload"; - tags = { - id = "$.topic[2]"; - channel = "$.topic[4]"; - }; - } - { - measurement = "relative-humidity"; - topic = "bigclown/node/+/hygrometer/+/relative-humidity"; - fields.value = "$.payload"; - tags = { - id = "$.topic[2]"; - channel = "$.topic[4]"; - }; - } - { - measurement = "illuminance"; - topic = "bigclown/node/+/lux-meter/0:0/illuminance"; - fields.value = "$.payload"; - tags = { - id = "$.topic[2]"; - }; - } - { - measurement = "pressure"; - topic = "bigclown/node/+/barometer/0:0/pressure"; - fields.value = "$.payload"; - tags = { - id = "$.topic[2]"; - }; - } - { - measurement = "voltage"; - topic = "bigclown/node/+/battery/+/voltage"; - fields.value = "$.payload"; - tags = { - id = "$.topic[2]"; - }; - } - { - measurement = "button"; - topic = "bigclown/node/+/push-button/+/event-count"; - fields.value = "$.payload"; - tags = { - id = "$.topic[2]"; - channel = "$.topic[4]"; - }; - } - ]; - }; }; systemd.services.bigclown-leds = { -- cgit v1.2.3