Draggon / hassio-hdd-tools

27 stars 14 forks source link

[Feature request] Multi attributes support #32

Closed andrewjswan closed 2 years ago

andrewjswan commented 3 years ago

Add multi attributes support like:

sensor_name: sensor.ssd_temp
friendly_name: SSD Temp
hdd_path: /dev/disk/...
attributes:
  - format: object
    property: smart
    name: "Health"
  - format: list
    property: ata_smart_attributes.table
    name: "SMART"
check_period: 1
database_update: true
database_update_period: 168
performance_check: false
debug: true
output_file: temp.log
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? Is not exactly what you wanted but I think it will be enough.