Changing Labels for Existing Production Capability

Hi!

Please, take a look at this post where another Community member showed how he changed the stock capabilities label and other properties like range or alternatives:

I made the following sample to show how to change only the label:

{
    "dashboard": {
        "states": [
            {
                "component": "main",
                "capability": "temperatureMeasurement",
                "version": 1,
                "values": []
            }
        ],
        "actions": [
            {
                "component": "main",
                "capability": "temperatureMeasurement",
                "version": 1
            }
        ],
        "basicPlus": []
    },
    "detailView": [
        {
            "component": "main",
            "capability": "temperatureMeasurement",
            "version": 1,
            "values": [
                {
                    "key": "temperature.value",
                    "label":"Internal Thermostat"
                }
            ],
            "patch": []
        },
        {
            "component": "main",
            "capability": "switch",
            "version": 1,
            "values": [
                {
                    "key": "switch.value",
                    "label":"Main Power"
                }
            ],
            "patch": []
        },
        {
            "component": "main",
            "capability": "powerMeter",
            "version": 1,
            "values": [
                {
                    "key": "power.value",
                    "label":"Used Power"
                }
            ],
            "patch": []
        }
    ],
    "automation": {
        "conditions": [
            {
                "component": "main",
                "capability": "temperatureMeasurement",
                "version": 1,
                "values": [
                    {
                        "key": "temperature.value",
                        "label":"Internal Thermostat"
                    }
                ],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "main",
                "capability": "switch",
                "version": 1,
                "values": [
                    {
                        "key": "switch.value",
                        "label":"Main Power"
                    }
                ],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "main",
                "capability": "powerMeter",
                "version": 1,
                "values": [
                    {
                        "key": "power.value",
                        "label":"Used Power"
                    }
                ],
                "patch": [],
                "exclusion": []
            }
        ],
        "actions": [
            {
                "component": "main",
                "capability": "temperatureMeasurement",
                "version": 1,
                "values": [
                    {
                        "key": "temperature.value",
                        "label":"Internal Thermostat"
                    }
                ],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "main",
                "capability": "switch",
                "version": 1,
                "values": [
                    {
                        "key": "switch.value",
                        "label":"Main Power"
                    }
                ],
                "patch": [],
                "exclusion": []
            },
            {
                "component": "main",
                "capability": "powerMeter",
                "version": 1,
                "values": [
                    {
                        "key": "power.value",
                        "label":"Used Power"
                    }
                ],
                "patch": [],
                "exclusion": []
            }
        ]
    },
    "type": "profile" //or dth
}

That sample is in JSON but you can get the device-config used to create the device presentation (in the format you prefer: -j or -y) with the following command:

smartthings presentation:device-config 640367e6-70bd-36c9-9ccf-2852208635da -y -o=deviceConfig.yaml

Note: In this case, 640367e6-70bd-36c9-9ccf-2852208635da is the presentationID created using the config I shared above.

Let me know if this info helps :smiley: