Draggon / hassio-hdd-tools

27 stars 14 forks source link

Option to specify the device type (smartctl) #50

Closed eroldan closed 1 year ago

eroldan commented 2 years ago

A copy of: https://community.home-assistant.io/t/hdd-smart-data-add-on/194508/24?u=eroldan

Thanks for the addon. I've some problems tough:

I'm using RPI4 with an USB to NVME adapter. The addon is reporting "null" temperature. Poking with the addon container I found that this kind of adapter needs a special parameter for smartctl, so this command line works for me:

smartctl --all -d sntjmicron /dev/sda

Can you add an option to specify the -d TYPE to smartctl? Maybe add a bit of documentation to point the reader to this fact. Thank you!