Adding custom buttons to custom devices in new ST app

Hi,

I had created the device handler for Android TV discussed here:

On old ST app it shows the required buttons and works fine. But on new ST app it is not different than a presence sensor. None of the required buttons are showing up.
Is there a guide to follow for making my DTH compatible with new ST ?
or is it not even possible ?

thanks.

Start here, plus follow the other links in that discussion.

2 Likes

thanks. I am following the instructions to create a simple button for my DTH.
I get tve VID and MNMN returning from the last command and put them in my definition on the groovy file. Then I re-publish the DTH. But nothing happens.

I don’t see the added button.

The json returned from the cli command is :

    cli-win.exe presentation:device-config:create -j -i deviceConfig.json
{
    "type": "dth",
    "iconUrl": null,
    "dashboard": {
        "states": [
            {
                "component": "main",
                "capability": "switch",
                "version": 1,
                "values": [],
                "patch": [],
                "visibleCondition": null
            }
        ],
        "actions": [
            {
                "component": "main",
                "capability": "switch",
                "version": 1,
                "values": [],
                "patch": [],
                "visibleCondition": null
            }
        ]
    },
    "detailView": [
        {
            "component": "main",
            "capability": "switch",
            "version": 1,
            "values": [],
            "patch": [],
            "visibleCondition": null
        },
        {
            "component": "main",
            "capability": "presenceSensor",
            "version": 1,
            "values": [],
            "patch": [],
            "visibleCondition": null
        },
        {
            "component": "main",
            "capability": "faithboard04631.androidTv",
            "version": 1,
            "values": [],
            "patch": [],
            "visibleCondition": null
        }
    ],
    "automation": {
        "conditions": [
            {
                "component": "main",
                "capability": "switch",
                "version": 1,
                "values": [],
                "patch": [],
                "visibleCondition": null
            },
            {
                "component": "main",
                "capability": "presenceSensor",
                "version": 1,
                "values": [],
                "patch": [],
                "visibleCondition": null
            }
        ],
        "actions": [
            {
                "component": "main",
                "capability": "switch",
                "version": 1,
                "values": [],
                "patch": [],
                "visibleCondition": null
            },
            {
                "component": "main",
                "capability": "presenceSensor",
                "version": 1,
                "values": [],
                "patch": [],
                "visibleCondition": null
            },
            {
                "component": "main",
                "capability": "faithboard04631.androidTv",
                "version": 1,
                "values": [],
                "patch": [],
                "visibleCondition": null
            }
        ]
    },
    "presentationId": "99b7ec65-c4e8-3ea8-9807-af89de784b15",
    "manufacturerName": "SmartThingsCommunity",
    "vid": "99b7ec65-c4e8-3ea8-9807-af89de784b15",
    "mnmn": "SmartThingsCommunity"
}

what may be the problem ?