Browse Source

fix command_line sensors

master
tmechen 2 years ago
parent
commit
94004f48f2
No known key found for this signature in database
GPG Key ID: A66056317FE39FC4
  1. 7
      configuration.yaml

7
configuration.yaml

@ -24,12 +24,13 @@ automation: !include_dir_merge_list automations
scene: !include_dir_merge_list scenes scene: !include_dir_merge_list scenes
command_line: command_line:
sensor: - sensor:
- name: CPU Temperature name: CPU Temperature
command: "cat /sys/class/thermal/thermal_zone0/temp" command: "cat /sys/class/thermal/thermal_zone0/temp"
unit_of_measurement: "°C" unit_of_measurement: "°C"
value_template: "{{ (value | multiply(0.001)) | round(1) }}" value_template: "{{ (value | multiply(0.001)) | round(1) }}"
- name: Python Version - sensor:
name: Python Version
command: "python3 --version" command: "python3 --version"
mqtt: mqtt:

Loading…
Cancel
Save