From c89338f1a6bf92179f6ce63d637d3a8c30d6874b Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Sat, 16 May 2020 14:10:40 +0300 Subject: [PATCH] Extract cobalt in own device file --- config/packages/devices/living_room/cobalt.yaml | 6 ++++++ config/packages/modules/system.yaml | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 config/packages/devices/living_room/cobalt.yaml diff --git a/config/packages/devices/living_room/cobalt.yaml b/config/packages/devices/living_room/cobalt.yaml new file mode 100644 index 0000000..9b074ee --- /dev/null +++ b/config/packages/devices/living_room/cobalt.yaml @@ -0,0 +1,6 @@ +sensor: + - platform: command_line + name: Cobalt CPU Temperature + command: "cat /sys/class/thermal/thermal_zone3/temp" + unit_of_measurement: "°C" + value_template: '{{ value | multiply(0.001) | round(1) }}' diff --git a/config/packages/modules/system.yaml b/config/packages/modules/system.yaml index 686438e..eaf9a3b 100644 --- a/config/packages/modules/system.yaml +++ b/config/packages/modules/system.yaml @@ -12,12 +12,6 @@ binary_sensor: or is_state('input_boolean.floorplan_night_mode', 'on') }} sensor: - - platform: command_line - name: Cobalt CPU Temperature - command: "cat /sys/class/thermal/thermal_zone3/temp" - unit_of_measurement: "°C" - value_template: '{{ value | multiply(0.001) | round(1) }}' - - platform: time_date display_options: - "time"