Draggon / hassio-hdd-tools

27 stars 12 forks source link

Unable to install addon #52

Closed yousaf465 closed 1 year ago

yousaf465 commented 2 years ago

HA 2022.4.5 Add-on version 0.52.0 Install stuck at revolving circle. image

McGiverGim commented 2 years ago

Look at the supervisor logs, maybe there is some error there. Without any error giving more information I think I can't help.

yousaf465 commented 2 years ago

fixed, installed on fifth attempt. Now the issue is the frequency of temperature updates, is too low image image

McGiverGim commented 2 years ago

Look at the logs of the addon, you will see when it updates. Is configurable in the addon.

yousaf465 commented 2 years ago

same value since last 24hours no update from 52C.

[Thu Apr 21 18:49:03 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 18:50:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 18:50:02 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 18:51:03 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 18:51:03 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 18:52:03 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 18:52:03 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 18:53:03 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 18:53:03 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 18:54:03 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 18:54:03 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 18:55:03 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 18:55:03 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 18:56:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 18:56:02 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 18:57:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 18:57:02 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 18:58:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 18:58:02 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 18:59:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 18:59:02 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 19:00:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 19:00:02 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 19:01:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 19:01:02 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 19:02:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 19:02:02 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 19:03:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 19:03:02 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 19:04:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 19:04:02 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 19:05:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 19:05:02 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 19:06:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 19:06:02 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 19:07:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 19:07:02 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 19:08:03 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 19:08:03 PKT 2022][INFO] Sensor update response code: 200
[Thu Apr 21 19:09:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 19:09:02 PKT 2022][INFO] Sensor update response code: 200

image

sensor_state_type: temperature
sensor_name: sensor.hdd_smart
friendly_name: Hdd SMART
hdd_path: /dev/sda
attributes_format: object
attributes_property: ''
check_period: 1
database_update: true
database_update_period: 168
performance_check: false
debug: false
output_file: temp.log
McGiverGim commented 2 years ago

It seems to be working. Strange the temperature without change. Enable the debug and paste here the file generated, maybe there is something there. What I see is that you are not configuring the attributes property, maybe if it is wrong, it happens something like this.

yousaf465 commented 2 years ago

It seems to be working. Strange the temperature without change. Enable the debug and paste here the file generated, maybe there is something there. What I see is that you are not configuring the attributes property, maybe if it is wrong, it happens something like this.

how to enable debug? which attributes should be changed?

what should choose here? image

yousaf465 commented 2 years ago

enabled debug got this

[Thu Apr 21 20:05:02 PKT 2022][DEBUG] Sensor data before attributes: {"state": "52", "attributes": {"unit_of_measurement":"°C","friendly_name":"Hdd SMART","device_class":"temperature","state_class":"measurement"}}
[Thu Apr 21 20:05:02 PKT 2022][DEBUG] Sensor data which would be pushed to home-assistant and exposed as "sensor.hdd_smart": {"state": "52", "attributes": {"unit_of_measurement":"°C","friendly_name":"Hdd SMART","device_class":"temperature","state_class":"measurement"}}
[Thu Apr 21 20:05:02 PKT 2022][DEBUG] debug is enabled, sensor data is not published to home-assistant!
[Thu Apr 21 20:06:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 20:06:02 PKT 2022][DEBUG] Sensor data before attributes: {"state": "52", "attributes": {"unit_of_measurement":"°C","friendly_name":"Hdd SMART","device_class":"temperature","state_class":"measurement"}}
[Thu Apr 21 20:06:02 PKT 2022][DEBUG] Sensor data which would be pushed to home-assistant and exposed as "sensor.hdd_smart": {"state": "52", "attributes": {"unit_of_measurement":"°C","friendly_name":"Hdd SMART","device_class":"temperature","state_class":"measurement"}}
[Thu Apr 21 20:06:02 PKT 2022][DEBUG] debug is enabled, sensor data is not published to home-assistant!
[Thu Apr 21 20:07:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 20:07:02 PKT 2022][DEBUG] Sensor data before attributes: {"state": "52", "attributes": {"unit_of_measurement":"°C","friendly_name":"Hdd SMART","device_class":"temperature","state_class":"measurement"}}
[Thu Apr 21 20:07:02 PKT 2022][DEBUG] Sensor data which would be pushed to home-assistant and exposed as "sensor.hdd_smart": {"state": "52", "attributes": {"unit_of_measurement":"°C","friendly_name":"Hdd SMART","device_class":"temperature","state_class":"measurement"}}
[Thu Apr 21 20:07:02 PKT 2022][DEBUG] debug is enabled, sensor data is not published to home-assistant!
[Thu Apr 21 20:08:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 20:08:02 PKT 2022][DEBUG] Sensor data before attributes: {"state": "52", "attributes": {"unit_of_measurement":"°C","friendly_name":"Hdd SMART","device_class":"temperature","state_class":"measurement"}}
[Thu Apr 21 20:08:02 PKT 2022][DEBUG] Sensor data which would be pushed to home-assistant and exposed as "sensor.hdd_smart": {"state": "52", "attributes": {"unit_of_measurement":"°C","friendly_name":"Hdd SMART","device_class":"temperature","state_class":"measurement"}}
[Thu Apr 21 20:08:02 PKT 2022][DEBUG] debug is enabled, sensor data is not published to home-assistant!
[Thu Apr 21 20:09:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 20:09:02 PKT 2022][DEBUG] Sensor data before attributes: {"state": "52", "attributes": {"unit_of_measurement":"°C","friendly_name":"Hdd SMART","device_class":"temperature","state_class":"measurement"}}
[Thu Apr 21 20:09:02 PKT 2022][DEBUG] Sensor data which would be pushed to home-assistant and exposed as "sensor.hdd_smart": {"state": "52", "attributes": {"unit_of_measurement":"°C","friendly_name":"Hdd SMART","device_class":"temperature","state_class":"measurement"}}
[Thu Apr 21 20:09:02 PKT 2022][DEBUG] debug is enabled, sensor data is not published to home-assistant!
[Thu Apr 21 20:10:02 PKT 2022][INFO] Sensor value as temperature: 52
[Thu Apr 21 20:10:02 PKT 2022][DEBUG] Sensor data before attributes: {"state": "52", "attributes": {"unit_of_measurement":"°C","friendly_name":"Hdd SMART","device_class":"temperature","state_class":"measurement"}}
[Thu Apr 21 20:10:02 PKT 2022][DEBUG] Sensor data which would be pushed to home-assistant and exposed as "sensor.hdd_smart": {"state": "52", "attributes": {"unit_of_measurement":"°C","friendly_name":"Hdd SMART","device_class":"temperature","state_class":"measurement"}}
[Thu Apr 21 20:10:02 PKT 2022][DEBUG] debug is enabled, sensor data is not published to home-assistant!
McGiverGim commented 2 years ago

I think it will generate a file in the shared folder of homessistant, could you try to find it?

yousaf465 commented 2 years ago

I think it will generate a file in the shared folder of homessistant, could you try to find it?

how do I access it? I can access \192.168.1.8\config folder through windows

yousaf465 commented 2 years ago

found hdddebug.log

\192.168.1.8\share\hdd_tools

McGiverGim commented 2 years ago

what should choose here?

The one that references your disk, not a partition (the only one that does not have partX at the end).

In the debug file I can see two things:

  1. The temperature detected by the smartmoontools in the ADATA SU750 is 52ºC:
      {
        "id": 194,
        "name": "Temperature_Celsius",
        "value": 100,
        "worst": 100,
        "thresh": 0,
        "when_failed": "",
        "flags": {
          "value": 50,
          "string": "-O--CK ",
          "prefailure": false,
          "updated_online": true,
          "performance": false,
          "error_rate": false,
          "event_count": true,
          "auto_keep": true
        },
        "raw": {
          "value": 52,
          "string": "52"
        }
      },

    and

    
    "temperature": {
    "current": 52
    },

2. In the configuration, the correct `attributes` value must be `list` and the `attributes_property` must be `ata_smart_attributes.table`
yousaf465 commented 2 years ago

what should choose here?

The one that references your disk, not a partition (the only one that does not have partX at the end).

In the debug file I can see two things:

  1. The temperature detected by the smartmoontools in the ADATA SU750 is 52ºC:
      {
        "id": 194,
        "name": "Temperature_Celsius",
        "value": 100,
        "worst": 100,
        "thresh": 0,
        "when_failed": "",
        "flags": {
          "value": 50,
          "string": "-O--CK ",
          "prefailure": false,
          "updated_online": true,
          "performance": false,
          "error_rate": false,
          "event_count": true,
          "auto_keep": true
        },
        "raw": {
          "value": 52,
          "string": "52"
        }
      },

and

  "temperature": {
    "current": 52
  },
  1. In the configuration, the correct attributes value must be list and the attributes_property must be ata_smart_attributes.table

Is it 'ata_smart_attributes.table' as attribute property? NO SATA_SMART...?

McGiverGim commented 2 years ago

Is it 'ata_smart_attributes.table' as attribute property? NO SATA_SMART...?

Yes, this is from your debug file:

  },
  "ata_smart_attributes": {
    "revision": 10,
    "table": [
      {
        "id": 1,

It has nothing to do with the connection, is the JSON returned by the smartmontools.

yousaf465 commented 2 years ago

Is it 'ata_smart_attributes.table' as attribute property? NO SATA_SMART...?

Yes, this is from your debug file:

  },
  "ata_smart_attributes": {
    "revision": 10,
    "table": [
      {
        "id": 1,

It has nothing to do with the connection, is the JSON returned by the smartmontools.

this is how the configuration looks like right now. Is it fine?

image

image

McGiverGim commented 2 years ago

Yes. Disable the debug.

nepozs commented 2 years ago

@yousaf465 If temperature never change, you should use variant with binary smart_state sensor. Some models of ssd report false temperature (they are without hardware sensor), it is easy to find - it just never change.

yousaf465 commented 2 years ago

@yousaf465 If temperature never change, you should use variant with binary smart_state sensor. Some models of ssd report false temperature (they are without hardware sensor), it is easy to find - it just never change.

How do I do that?

nepozs commented 2 years ago

Example: hdd_tools_smart_2022-04-26_14-59

It is common situation with cheap ssd hardware (some manufactures use generic firmware, but they do not mount sensors, so firmware report always the same value) e.g. PNY CS900, some Adata models, many Natec models, mine SanDisk U110 (it is dedicated to ThinClients so every cent is important, but only SanDisk firmware does not show false sensor temperature).

BTW I will never buy Adata or Natec products again due to warranty issues. In the case of Adata, I will also avoid the XPG brand, Natec SSDs are sold under many (mainly Chinese) brands, so it is important not to buy unfamiliar brands.

McGiverGim commented 2 years ago

@yousaf465 Usually is good read and not simply ask: https://github.com/Draggon/hassio-hdd-tools/blob/develop/hdd_tools/DOCS.md