# Presentation Bug: ColorTemperature

**URL:** <https://community.smartthings.com/t/presentation-bug-colortemperature/242546>\
**Category:** Writing Device Types\
**Created:** [May 10, 2022, 11:26pm UTC](https://community.smartthings.com/t/presentation-bug-colortemperature/242546 "2022-05-10T23:26:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueyetisoftware](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/blueyetisoftware/32/143828_2.png) [@blueyetisoftware](https://community.smartthings.com/u/blueyetisoftware)\
**Post date:** [May 10, 2022, 11:26pm UTC](https://community.smartthings.com/t/presentation-bug-colortemperature/242546/1 "2022-05-10T23:26:57Z")

</div>

The action presentation for colorTemperature shows a slider with range 1-30000 in automations, but the valid range in the detail view is 1-6500. The color scale is also mismatched due to this 1-30000 range

 ![ct](https://global.discourse-cdn.com/smartthings/original/3X/e/9/e921c20864d658cf0d19a65c112e5d1be4ec10ae.jpeg)

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [May 11, 2022, 12:22am UTC](https://community.smartthings.com/t/presentation-bug-colortemperature/242546/2 "2022-05-11T00:22:58Z")

</div>

Hi, @blueyetisoftware

Is this behavior present using the default presentation or did you create a custom one?  
If the last, please share the VID.

In the capability presentation, I see the range is `1 - 30000` in all the views…

---

<div class="post-metadata">

**Author:** ![blueyetisoftware](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/blueyetisoftware/32/143828_2.png) [@blueyetisoftware](https://community.smartthings.com/u/blueyetisoftware)\
**Post date:** [May 11, 2022, 12:29am UTC](https://community.smartthings.com/t/presentation-bug-colortemperature/242546/3 "2022-05-11T00:29:03Z")

</div>

> [@nayelyz](#):
>
> default presentation

This is the default presentation. The presentation does define 1-30000 as you note. It is odd that the details view only shows 1-6500. It looks like it may be a special case that is ignoring the presentation. 1-6500 is the more reasonable choice though, as that is the common range for color temperatures in lighting.

---

<div class="post-metadata">

**Author:** ![Mariano\_Colmenarejo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mariano_colmenarejo/32/220132_2.png) [@Mariano\_Colmenarejo](https://community.smartthings.com/u/Mariano_Colmenarejo)\
**Post date:** [May 11, 2022, 8:10am UTC](https://community.smartthings.com/t/presentation-bug-colortemperature/242546/4 "2022-05-11T08:10:16Z")

</div>

Hi @blueyetisoftware,

The default presentation for automations, conditions, and actions is from 1 to 30000k.  
A claim for this was already made at the beginning of edge last October.

To limit it you have to make a vid for each range you want to use.

The problem that remains unsolved is that the custom range does not override the stock range in automation, actions.

> [@\[ST Edge\] Lidl Bulb Zigbee Driver](https://community.smartthings.com/t/st-edge-lidl-bulb-zigbee-driver/231658/44):
>
> Ok, I was able to replicate the behavior you mentioned, it is not an issue related to Edge drivers as it’s also affecting other integrations. I’ll report it to the corresponding team. As the range is overridden in the device presentation, it cannot be changed dynamically. In this case, each device should use its own profile with the corresponding presentation. I believe that’s how @Mariano_Colmenarejo is configuring his driver.

I have made several personalized presentations vid for profiles with ranges 2200-4000, 2000-6500, 2700-6000, 2700-6500, depending on the bulb to be matched to the driver.

The other problem that has now arisen is that custom vids, in drivers packaged after May 03 afternoon, are not taken into account and the default is always executed.

They are in the process of fixing it as @nayelyz yesterday said

---

<div class="post-metadata">

**Author:** ![blueyetisoftware](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/blueyetisoftware/32/143828_2.png) [@blueyetisoftware](https://community.smartthings.com/u/blueyetisoftware)\
**Post date:** [May 11, 2022, 6:16pm UTC](https://community.smartthings.com/t/presentation-bug-colortemperature/242546/5 "2022-05-11T18:16:00Z")

</div>

> [@Mariano\_Colmenarejo](#):
>
> custom vids, in drivers packaged after May 03

Thanks. I have run across this as well. None of the recent custom vids are working as you mentioned.

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [May 12, 2022, 12:58am UTC](https://community.smartthings.com/t/presentation-bug-colortemperature/242546/6 "2022-05-12T00:58:04Z")

</div>

Ok, I can see what you mean, @blueyetisoftware. I made a test using an ST Schema and the range is not correct in the Detail View. I even set a range of `1-30000` directly in the device config and got the same result. So, I’ll report this to the corresponding team.

@Mariano_Colmenarejo, about changing the range in `automation.actions`, the correct syntax in the device-config is:

```auto
{
    "component": "main",
    "capability": "colorTemperature",
    "version": 1,
    "values": [
      {
        "key": "setColorTemperature",
        "range": [
            1,25000
        ]
      }
    ]
}

```

I also made the test and it was modified correctly:

 ![cc9be188-f47b-4da4-9d77-31ea9f200376](https://global.discourse-cdn.com/smartthings/original/3X/7/7/77091119bfe95b8c5884e41779e3b4e65e3696cd.jpeg)

---

<div class="post-metadata">

**Author:** ![Mariano\_Colmenarejo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mariano_colmenarejo/32/220132_2.png) [@Mariano\_Colmenarejo](https://community.smartthings.com/u/Mariano_Colmenarejo)\
**Post date:** [May 12, 2022, 9:06pm UTC](https://community.smartthings.com/t/presentation-bug-colortemperature/242546/7 "2022-05-12T21:06:00Z")

</div>

> [@nayelyz](#):
>
> about changing the range in `automation.actions` , the correct syntax in the device-config is:
> 
> ```auto
> {
> "component": "main",
> "capability": "colorTemperature",
> "version": 1,
> "values": [
> {
> "key": "setColorTemperature",
> "range": [
> 1,25000
> ]
> }
> ]
> }
> 
> ```

Will custom vids work in edge yet so I can try it out?

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [May 12, 2022, 9:11pm UTC](https://community.smartthings.com/t/presentation-bug-colortemperature/242546/8 "2022-05-12T21:11:42Z")

</div>

No, not yet, that’s why I used an ST Schema integration to test it.  
As soon as I get an update about the fix, I’ll let you know.

---

<div class="post-metadata">

**Author:** ![Mariano\_Colmenarejo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mariano_colmenarejo/32/220132_2.png) [@Mariano\_Colmenarejo](https://community.smartthings.com/u/Mariano_Colmenarejo)\
**Post date:** [May 17, 2022, 8:52am UTC](https://community.smartthings.com/t/presentation-bug-colortemperature/242546/9 "2022-05-17T08:52:51Z")

</div>

> [@nayelyz](#):
>
> I also made the test and it was modified correctly:

The custom vid for colorTemperature range works perfectly in automation actions now

Thank you

 ![Screenshot_20220517-104927](https://global.discourse-cdn.com/smartthings/original/3X/7/1/71fdbe8ea8cae293ce0586b305d58a8f67b017c6.png)
