Error:
ValueError: Sensor sensor.nvme_temperature has device class ‘None’, state class ‘None’ unit ‘°C’ and suggested precision ‘None’ thus indicating it has a numeric value; however, it has the non-numeric value: ‘’ (<class ‘str’>)
Thanks, but again no luck.
Error:
ValueError: Template error: int got invalid input ‘’ when rendering template ‘{{ value | int }}’ but no default was specified
Try this please.
Go to settings → Add-ons → Add-on Store in Home Assistant.
Install Glances.
Configure it to expose system sensors (it includes CPU, RAM, disk temps, etc.).
Then in HA, enable the Glances integration → it will automatically create sensors for your disks, including NVMe temperatures if supported.
p.s. I believe the smartctl binary is not available by default inside the HA container. That’s why you see ssh: command not found: smartctl
Okay, got Glances setup and found a whole lot of data, including several temps.
Got Sensor 1 temperature, Sensor 2 temperature and Composite temperature, I assume are related to the NVMe ssd. The Composite temperature probably is what I need.