Draggon / hassio-hdd-tools

27 stars 14 forks source link

How to get overall health state? #45

Closed fokcuk closed 2 years ago

fokcuk commented 2 years ago

Want to get an overall health status, not the attributes:

"smart_status": { "passed": true },

McGiverGim commented 2 years ago

I think it has sense. Maybe this must be principal value of the sensor, and all the other, including the temperature, be the attributes. The biggest problem with this is is that it will be a breaking change probably.

McGiverGim commented 2 years ago

I've pushed a PR https://github.com/Draggon/hassio-hdd-tools/pull/46 that I think will fix this. Can you take a look at it?