Skip to content

Instantly share code, notes, and snippets.

@SimedruF
Created March 13, 2022 10:30
Show Gist options
  • Save SimedruF/c22ef554f473a79b4cf531c43c21e8e7 to your computer and use it in GitHub Desktop.
Save SimedruF/c22ef554f473a79b4cf531c43c21e8e7 to your computer and use it in GitHub Desktop.
CPU and GPU temperature
- platform: command_line
name: CPU Temperature
command: 'cat /sys/class/thermal/thermal_zone1/temp'
unit_of_measurement: '°C'
value_template: '{{ value | multiply(0.001) | round(1) }}'
- platform: command_line
name: GPU Temperature
command: 'cat /sys/class/thermal/thermal_zone2/temp'
unit_of_measurement: '°C'
value_template: '{{ value | multiply(0.001) | round(1) }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment