unraid / unraid/api

Disk/Disks do not show SSD temperature. Array->Disks does

Open
#1,842 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
113
Forks
22
Avg merge
10h 40m
Merged PRs (30d)
13

Description

Environment

Unraid OS Version:

7.2.2

Are you using a reverse proxy?

No - Issue tested with direct access to server.

Pre-submission Checklist

  • I have verified that my Unraid OS is up to date
  • I have tested this issue by accessing my server directly (not through a reverse proxy)
  • This is not an Unraid Connect related issue (if it is, please submit via the support form instead)

Issue Description

API query for disk or disks temperature returns null for SSD in cache. Query for array -> cache -> temp returns the correct temperature for those disks. Hard drives in array show temperature correctly.

Example with no Temp:

query ExampleQuery($diskId: PrefixedID!) {
  disk(id: $diskId) {
    name
    temperature
  }
}

Returns:

{
  "data": {
    "disk": {
      "name": "Samsung SSD 990 EVO Plus 1TB",
      "temperature": null
    }
  }
}

Example showing Temp:

query ExampleQuery {
  array {
    caches {
      temp
      name
    }
  }
}

Returns:

{
  "data": {
    "array": {
      "caches": [
        {
          "temp": 33,
          "name": "cache"
        },
        {
          "temp": 33,
          "name": "cache2"
        }
      ]
    }
  }
}

Steps to Reproduce

  1. Query SSD though GraphQL Sandbox or API calling disk or disks (no temp shown)
  2. Querry SSD though array (temp shown)

Expected Behavior

Disk/Disks should return temperature of SSD similar to array->disks or array->cache

Actual Behavior

No temperature is shown for SSD from Disk/Disks

Additional Context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the GraphQL resolvers or entry points for the disk and disks temperature fields, then compare their behavior with the array.caches temp query shown in the issue. Reproduce both queries against an SSD and verify that disk and disks return the same temperature as array.caches.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.