summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bureautomation/sensor
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-04-17 20:46:58 +0200
committermakefu <github@syntax-fehler.de>2019-04-17 20:46:58 +0200
commitbccb2fd4e51448a2e9794acd47e7df16339f64aa (patch)
tree7ab3b753abc25989d8c75cda3d9c52ecbb7520ba /makefu/2configs/bureautomation/sensor
parent6fa6659b8fc5d2e00131aa470408a17c9002ac75 (diff)
ma bureautomation: refactor
Diffstat (limited to 'makefu/2configs/bureautomation/sensor')
-rw-r--r--makefu/2configs/bureautomation/sensor/tasmota_firmware.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/makefu/2configs/bureautomation/sensor/tasmota_firmware.nix b/makefu/2configs/bureautomation/sensor/tasmota_firmware.nix
new file mode 100644
index 000000000..1a4738e12
--- /dev/null
+++ b/makefu/2configs/bureautomation/sensor/tasmota_firmware.nix
@@ -0,0 +1,16 @@
+let
+ tasmota_firmware = topic:
+ { platform = "mqtt";
+ name = "${topic} Firmware";
+ state_topic = "/bam/${topic}/stat/STATUS2";
+ availability_topic = "/bam/${topic}/tele/LWT";
+ value_template = "v{{value_json.StatusFWR.Version}}";
+ payload_available= "Online";
+ payload_not_available= "Offline";
+ };
+in
+ map tasmota_firmware [
+ "plug" "plug2" "plug3" "plug4" "plug5"
+ "status1" "status2" "buslicht"
+ "rfbridge"
+ ]