shack/powerraw: fix telegraf tags (which cannot be int for some reason now)

This commit is contained in:
makefu 2020-12-01 23:20:05 +01:00
parent 08a48b931b
commit 9f2c161de0
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

View File

@ -67,7 +67,7 @@ in {
};
sensor = "total";
types = [ "Voltage" "Current" "Power" ];
phases = [ 1 2 3 ];
phases = [ "1" "2" "3" ];
in
[ (genTopic "Power consumed" "/power/${sensor}/consumed" { inherit sensor; }) ] ++
(lib.flatten (map (type: (map (phase: (genTopic "Power" "/power/${sensor}/L${toString phase}/${type}" { inherit sensor phase type; }) ) phases)) types));