homeassistant-openmediavault icon indicating copy to clipboard operation
homeassistant-openmediavault copied to clipboard

Change the way the Disk sensors are created in HA [Feature]

Open thanomichalis opened this issue 6 months ago • 6 comments

Is your feature request related to a problem? Please describe.

Everytime the OMV is restarting, the drive letters are changing for each ssd disk. So if disk with serial X has a letter sda and disk with serial Y has sdb, in the next restart, the X is assigned the sdb and the Y assigned the sda. The integration however, is taking into consideration the sda and sdb to identify and keep the records from s.m.a.r.t. for each disk. Therefore, the history and the statistics data kept in HA, are mixing the two disks.

Describe the solution you'd like

We need to change the way HA identify and create the sensor to look not the letter that OMV assigns to the disks, but the their serial number which is unique.

thanomichalis avatar Dec 07 '23 12:12 thanomichalis