Browse Source

fix command_line sensors

master
tmechen 1 year ago
parent
commit
925183d960
No known key found for this signature in database
GPG Key ID: A66056317FE39FC4
  1. 12
      configuration.yaml
  2. 10
      sensors/sensors.yaml

12
configuration.yaml

@ -25,3 +25,15 @@ switch: !include_dir_merge_list switches
light: !include_dir_merge_list lights light: !include_dir_merge_list lights
automation: !include_dir_merge_list automations automation: !include_dir_merge_list automations
scene: !include_dir_merge_list scenes 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"

10
sensors/sensors.yaml

@ -5,13 +5,3 @@
- type: memory_use_percent - type: memory_use_percent
- type: processor_use - type: processor_use
- type: last_boot - 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"

Loading…
Cancel
Save