From 0be17a13afdede3085a25b2dc9d2a683615458d8 Mon Sep 17 00:00:00 2001 From: pinkywafer Date: Sat, 15 Aug 2020 16:32:30 +0100 Subject: [PATCH] add lines of code sensor (excluding secrets) --- packages/system/lines.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 packages/system/lines.yaml diff --git a/packages/system/lines.yaml b/packages/system/lines.yaml new file mode 100644 index 00000000..965923b4 --- /dev/null +++ b/packages/system/lines.yaml @@ -0,0 +1,6 @@ +sensor: + - platform: command_line + name: yaml config lines + command: "find /config -name '*.yaml' ! -name '*secrets.yaml' ! -name '.ip_authenticated.yaml' ! -path '/config/esphome/*' | xargs cat | wc -l" + unit_of_measurement: 'Lines' + scan_interval: 14400 \ No newline at end of file