Hi,
I’ve just bought an M2 SSD into my server, which also runs HA.
I’m using Ubuntu 20.04, and can check the temperature with the command:
sudo nvme smart-log /dev/nvme0n1 | grep ‘^temperature’
Tried the command_line platform, which I already use for CPU temp:
- platform: command_line
name: CPU Temperature
command: ‘cat /sys/class/thermal/thermal_zone2/temp’
unit_of_measurement: ‘°C’
value_template: ‘{{ value | multiply(0.001) }}’
but it didn’t work out for the nvme drive
- platform: command_line
name: System SSD Temperature
command: ‘nvme smart-log /dev/nvme0 | grep ‘^temperature’’
unit_of_measurement: ‘°C’
value_template: ‘{{ value | multiply(0.001) }}’
Do you guys have any suggestion?