Customize color temperature range in APP view

Hi @nayelyz ,

following this example:
https://developer.smartthings.com/docs/devices/configurations-and-presentations/embedded-device-configurations

And I also saw this:
https://community.smartthings.com/t/presentation-bug-colortemperature/242546/5

I would like to customize color temperature as I want(ex: 2000 ~ 7000), but seems not working.
My device profile id is 2952d000-7962-4f34-b0b2-1fd1f9f7ad3c.

But still default range 2200k to 6500k in APP view. May I ask there’s anything wrong? It’s hard to find examples to modify device profile configurations.

{
    "mnmn": "0A6z",
    "vid": "ST_04cf9bb7-0055-4719-94e5-24a5ae8402f6",
    "version": "0.0.1",
    "type": "profile",
    "dashboard": {
        "states": [
            {
                "component": "fan1",
                "capability": "switch",
                "version": 1,
                "idx": 0,
                "group": "main",
                "composite": false
            }
        ],
        "actions": [
            {
                "component": "fan1",
                "capability": "switch",
                "version": 1,
                "idx": 0,
                "group": "main"
            }
        ],
        "basicPlus": []
    },
    "detailView": [
        {
            "component": "main",
            "capability": "refresh",
            "version": 1,
            "values": [],
            "patch": []
        },
        {
            "component": "fan1",
            "capability": "switch",
            "version": 1,
            "values": [],
            "patch": []
        },
        {
            "component": "fan1",
            "capability": "fanSpeed",
            "version": 1,
            "values": [],
            "patch": []
        },
        {
            "component": "light1",
            "capability": "switch",
            "version": 1,
            "values": [],
            "patch": []
        },
        {
            "component": "light1",
            "capability": "switchLevel",
            "version": 1,
            "values": [],
            "patch": []
        },
        {
            "component": "light1",
            "capability": "colorTemperature",
            "version": 1,
            "values": [
                {
                    "key": "colorTemperature.value",
                    "range": [
                        2000,
                        7000
                    ]
                }
            ],
            "patch": []
        }
    ],
    "automation": {
        "conditions": [
            {
                "component": "fan1",
                "capability": "switch",
                "version": 1,
                "values": [],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "fan1",
                "capability": "fanSpeed",
                "version": 1,
                "values": [],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "light1",
                "capability": "switch",
                "version": 1,
                "values": [],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "light1",
                "capability": "switchLevel",
                "version": 1,
                "values": [],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "light1",
                "capability": "colorTemperature",
                "version": 1,
                "values": [
                    {
                        "key": "colorTemperature.value",
                        "range": [
                            2000,
                            7000
                        ]
                    }
                ],
                "patch": [],
                "exclusion": []
            }
        ],
        "actions": [
            {
                "component": "main",
                "capability": "refresh",
                "version": 1,
                "values": [],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "fan1",
                "capability": "switch",
                "version": 1,
                "values": [],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "fan1",
                "capability": "fanSpeed",
                "version": 1,
                "values": [],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "light1",
                "capability": "switch",
                "version": 1,
                "values": [],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "light1",
                "capability": "switchLevel",
                "version": 1,
                "values": [],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "light1",
                "capability": "colorTemperature",
                "version": 1,
                "values": [
                    {
                        "key": "colorTemperature.value",
                        "enabledValues": [],
                        "range": [
                            2000,
                            7000
                        ]
                    },
                    {
                        "key": "setColorTemperature",
                        "enabledValues": [],
                        "range": [
                            2000,
                            7000
                        ]
                    }
                ],
                "patch": [],
                "exclusion": []
            }
        ]
    },
    "migration": true,
    "isAutoUpdateRequired": true
}

Hi, @exosite

I made a test with an Edge driver using the embedded device configuration which shouldn’t be so different from what you did and it worked correctly.

Also, I used your presentation in my profile and I see the range in the app set to 2000-7000. So, I don’t know if what you see is due to something being cached. I would suggest you:

  1. Verify your device is using this presentation
  2. If so, clean the app’s cache to force an update.

Hi @nayelyz

I am using cloud connected devices but I think the device profile configuration is the same. My configuration took effect but it seems need to wait for a while to take effect, not immediately.
Cloud connected devices also can be cleaned the cache? Or you mean clean the cache of SmartThings APP?
From my above example in “actions” section in “colorTemperature” capability’s values, which one is correct?


                    {
                        "key": "colorTemperature.value",
                        "enabledValues": [],
                        "range": [
                            2000,
                            7000
                        ]
                    }

Or


                   {
                        "key": "setColorTemperature",
                        "enabledValues": [],
                        "range": [
                            2000,
                            7000
                        ]
                    }

Thanks.

Hi, @exosite

sorry for the delay.
You’re referring to the “Automations” view, right?

In the “condition” section, the “key” should be "colorTemperature.value".
In the “actions” section, the “key” should be the command name, which in this case, is "setColorTemperature".

Note: There are some capabilities that have a special configuration in their presentation which requires a different approach here. An example is “alarm” which has a few “enumCommands” instead of a setter. In that case, this is the example to filter in this view:

Open here to see the example
"automation": {
    "conditions": [
        {
            "component": "main",
            "capability": "alarm",
            "version": 1,
            "values": [
                {
                    "key": "alarm.value",
                    "enabledValues": [
                        "siren",
                        "off"
                    ]
                }
            ],
            "patch": [],
            "exclusion": []
        }
    ],
    "actions": [
        {
            "component": "main",
            "capability": "alarm",
            "version": 1,
            "values": [
                {
                    "key": "{{enumCommands}}",
                    "enabledValues": [
                        "siren",
                        "off"
                    ]
                }
            ],
            "patch": [],
            "exclusion": []
        }
    ]
}