XFCE Temperature Widget for NVMe Drive over USB 3 (Pi 4b)?

Hello,

I’ve got a USB 3 drive enclosure connected, and inxi -Fazy reports its temperature via the SMART sensor suite, with no issues.

I’m trying to figure out how to get the xfce4-sensors-plugin to read the temperature data.

I think I need to get it to read from the hddtemp service, which I can do, but the issue I’m running into is I don’t know what to put in hddtemp’s database to get it to read this drive’s temperature sensor. Apparently there’s supposed to be a code number I can use, but smartctl -a isn’t printing any codes.

(It does, however, readily provide the temperature, so I know that the sensor works.)

Here’s the output. What am I missing? Is there another flag I should be passing to smartctl to get the field codes?

~]$ sudo smartctl -a /dev/sda
smartctl 7.1 2019-12-30 r5022 [aarch64-linux-5.10.1-1-MANJARO-ARM] (local build)
Copyright © 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number: Sabrent Rocket 4.0 500GB
Serial Number: 03F10709104419246665
Firmware Version: RKT401.3
PCI Vendor/Subsystem ID: 0x1987
IEEE OUI Identifier: 0x6479a7
Total NVM Capacity: 500,107,862,016 [500 GB]
Unallocated NVM Capacity: 0
Controller ID: 1
Number of Namespaces: 1
Namespace 1 Size/Capacity: 500,107,862,016 [500 GB]
Namespace 1 Formatted LBA Size: 512
Namespace 1 IEEE EUI-64: 6479a7 3dd0201d55
Local Time is: Sat Jan 16 18:59:26 2021 CST
Firmware Updates (0x12): 1 Slot, no Reset required
Optional Admin Commands (0x0017): Security Format Frmw_DL Self_Test
Optional NVM Commands (0x005d): Comp DS_Mngmt Wr_Zero Sav/Sel_Feat Timestmp
Maximum Data Transfer Size: 512 Pages
Warning Comp. Temp. Threshold: 90 Celsius
Critical Comp. Temp. Threshold: 95 Celsius

Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 7.14W - - 0 0 0 0 0 0
1 + 5.43W - - 1 1 1 1 0 0
2 + 4.57W - - 2 2 2 2 0 0
3 - 0.0490W - - 3 3 3 3 2000 2000
4 - 0.0018W - - 4 4 4 4 25000 25000

Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 + 512 0 2
1 - 4096 0 1

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 41 Celsius
Available Spare: 100%
Available Spare Threshold: 5%
Percentage Used: 0%
Data Units Read: 56,945 [29.1 GB]
Data Units Written: 108,405 [55.5 GB]
Host Read Commands: 674,547
Host Write Commands: 1,374,655
Controller Busy Time: 2
Power Cycles: 36
Power On Hours: 76
Unsafe Shutdowns: 29
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0

Error Information (NVMe Log 0x01, max 63 entries)
No Errors Logged