---
name: "useOriginMatterTemp"
mode: "api"
versionRequirements:
  - { name: "", version: "1.15.0" }
title: "useOriginMatterTemp"
summary: "Read raw Matter color_temp_control to avoid precision loss vs standard temp_value."
questions:
  - "Why can temp_value and color_temp_control lose precision when converted?"
  - "In which UI scenarios should this hook be used?"
---

## useOriginMatterTemp

> [VERSION] v1.15.0+

### Description

Get the raw Matter color temperature color_temp_control (Kelvin) to avoid precision loss when converting with the standard temp_value, for UI display.

### Parameters

None


### Return Value

None


### Examples

#### Example

```tsx
import React from 'react';
import { View } from '@ray-js/ray';
import { createMatterKit } from '@ray-js/panel-sdk';

const matterKit = createMatterKit();

export default function TempDisplay() {
  const originTemp = matterKit.hooks.useOriginMatterTemp();
  return <View>Original color temperature: {originTemp}</View>;
}
```
