I’m trying to show my HDD temperature in HA frontend. I have had success with CPU dan motherboard temperature, however HDD temp is just not showing. This is the yaml from sensor.yaml :
- platform: command_line
name: CPU Temperature
command: "cat /sys/class/thermal/thermal_zone2/temp"
# If errors occur, remove degree symbol below
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}'
- platform: command_line
name: Motherboard Temperature
command: "cat /sys/class/thermal/thermal_zone0/temp"
# If errors occur, remove degree symbol below
unit_of_measurement: "°C"
value_template: '{{ value | multiply(0.001) | round(1) }}'
- platform: command_line
name: HD Temperature
command: "hddtemp -n /dev/sda"
# If errors occur, remove degree symbol below
unit_of_measurement: "°C"
I just copy-pasted from example in the docs. However HDD temp is not showing :
Here is the error from info page : Command failed: hddtemp -n /dev/sda
I have tried :
Removing the degree symbol (as per comment in the example)
Using full path and even sudo sudo /usr/sbin/hddtemp -n /dev/sda
Still same erorr. Anyone please advise me how to get the HDD temp reading?
PS: I’ve installed hddtemp and can get the reading perfectly from command line
And that’s my friend, just how cool this community is… I never thought there’s a component for this, because I was looking for CPU temp at first. Thank you. Everything is good now…