Draggon / hassio-hdd-tools

27 stars 13 forks source link

Feature: ata attributes which are provided as a list #6

Closed boesing closed 3 years ago

boesing commented 3 years ago

Hey there,

I've checked #3 and realized that the attributes format differs from setup to setup aswell. In my case, its a proper object which can be merged with the other attributes such as friendly_name and unit_of_measurement. In the case of a setup within #3, it is a list of objects which contains the necessary data.

Sadly, the raw.value data contains weird integer value for Temperature_Celsius in the example within #3 so I decided to use regex to extract the temperature from raw.string instead.

Hopefully, this will work for most of the addon users now. :-)

When releasing (merging) this, you might want to change the version within config.json and change TBD within CHANGELOG.md to the current date 👍

Thanks for all!

boesing commented 3 years ago

I did not test the config.json changes but due to the documentation of home-assistant, that should work.