Draggon / hassio-hdd-tools

27 stars 12 forks source link

0.53 fails on HA 2022.8.7 #58

Closed Patrick010 closed 1 year ago

Patrick010 commented 1 year ago

I tried running this on Home Assistant 2022.8.7, installed on a Pi 4b with SSD, running Debian 11. After installing and running I get the below result. Cant access the logs as the container stops. Tried googing the Error, but no results. You've got suggestions?

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[Sat Aug 27 16:05:31 CEST 2022][INFO] HDD Tools start
[Sat Aug 27 16:05:31 CEST 2022][INFO] Configuration - sensor state type: smart_state
[Sat Aug 27 16:05:31 CEST 2022][INFO] Configuration - performance check enabled: true
[Sat Aug 27 16:05:31 CEST 2022][INFO] Configuration - disk path: /dev/sda
[Sat Aug 27 16:05:31 CEST 2022][INFO] Configuration - check period: 1
[Sat Aug 27 16:05:31 CEST 2022][INFO] Configuration - database update: true
[Sat Aug 27 16:05:31 CEST 2022][INFO] Configuration - database update period: 168
[Sat Aug 27 16:05:32 CEST 2022][INFO] Configuration - output file: temp.log
[Sat Aug 27 16:05:32 CEST 2022][INFO] Configuration - attributes property: 
[Sat Aug 27 16:05:32 CEST 2022][INFO] Init run
[Sat Aug 27 16:05:33 CEST 2022][ERROR] The sensor name "sensor.hdd_smart" must start by 'binary_sensor.' for 'smart_state' mode!
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

lsusb -v -s 002:002

Bus 002 Device 002: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS578 SATA 6Gb/s
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         9
  idVendor           0x152d JMicron Technology Corp. / JMicron USA Technology Corp.
  idProduct          0x0578 JMS578 SATA 6Gb/s
  bcdDevice            4.04
  iManufacturer           1 JMicron
  iProduct                2 External
  iSerial                 3 DD56419883AC7
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x002c
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              896mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0016
  bNumDeviceCaps          2
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000f0e
      BESL Link Power Management (LPM) Supported
    BESL value     3840 us
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat          32 micro seconds
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x000c
  (Bus Powered)
  U1 Enabled
  U2 Enabled
McGiverGim commented 1 year ago

The error is clear:

Aug 27 16:05:33 CEST 2022][ERROR] The sensor name "sensor.hdd_smart" must start by 'binary_sensor.' for 'smart_state' mode!

Change in the config the name of the sensor.

Patrick010 commented 1 year ago

Ok, to make the error understandable, please change the line to something like:

For smart_state the sensor name must be named 'binary_sensor.hdd_smart'