Custom Capability and CLI Developer Preview

Hi, @RBoy

I’ve been able to trigger commands from a test integration supporting the List display type. The issue is that argument passed at the setter command is the key itself and not the respective value. In conclusion, values that SmartThings app is using are the defined keys instead the value. I’ve already shared this details with our team, so it’ll be reviewed soon.

Here’s an example on how I’ve designed the capability’s presentation for a to-do custom capability:

{
    "detailView": [
        {
            "label": "To-Do list:",
            "displayType": "list",
            "list": {
                "state": {
                    "label": "todo.value",
                    "value": "todo.value",
                    "alternatives": [
                        {
                            "key": "cut",
                            "value": "Cut"
                        },
                        {
                            "key": "copy",
                            "value": "Copy"
                        },
                        {
                            "key": "paste",
                            "value": "Paste"
                        }
                    ]
                },
                "command": {
                    "name": "setTodo",
                    "alternatives": [
                        {
                            "key": "Do cut",
                            "value": "cut"
                        },
                        {
                            "key": "Do copy",
                            "value": "copy"
                        },
                        {
                            "key": "Do paste",
                            "value": "paste"
                        }
                    ]
                }
            }
        }
    ]
}