From 925183d960ef804a295adefb73224de492a45ce1 Mon Sep 17 00:00:00 2001 From: tmechen Date: Thu, 22 Jun 2023 21:32:48 +0200 Subject: [PATCH] fix command_line sensors --- configuration.yaml | 12 ++++++++++++ sensors/sensors.yaml | 10 ---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/configuration.yaml b/configuration.yaml index a31a33a..558b334 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -25,3 +25,15 @@ switch: !include_dir_merge_list switches light: !include_dir_merge_list lights automation: !include_dir_merge_list automations scene: !include_dir_merge_list scenes + +command_line: + - sensor: + name: CPU Temperature + command: "cat /sys/class/thermal/thermal_zone0/temp" + unit_of_measurement: "°C" + value_template: "{{ (value | multiply(0.001)) | round(1) }}" + + - sensor: + name: Python Version + command: "python3 --version" + \ No newline at end of file diff --git a/sensors/sensors.yaml b/sensors/sensors.yaml index 51b85fa..16cc4a0 100644 --- a/sensors/sensors.yaml +++ b/sensors/sensors.yaml @@ -5,13 +5,3 @@ - type: memory_use_percent - type: processor_use - type: last_boot - -- platform: command_line - name: CPU Temperature - command: "cat /sys/class/thermal/thermal_zone0/temp" - unit_of_measurement: "°C" - value_template: "{{ (value | multiply(0.001)) | round(1) }}" - -- platform: command_line - name: Python Version - command: "python3 --version"