question

Antonio avatar image
Antonio asked

That command doesn't work on device... (failing to control device after discovery)

After discovery I can see my device but I cannot control. Any attempt like:

alexa turn on the [device-name]

end up with the following message:

That command doesn't work on device..

The lambda doesn't receive any event so I'm doubting that there is something wrong in my discovery response... This is the capability I'm returning during discovery for the device I'm trying to control.

Initially I was not returning the properties object.. but even after adding it the result did not changed

{    
    'type': 'AlexaInterface',
    'interface': 'PowerController',
    'version': '3',
    'properties': {
        'supported': [
            {
                'name': 'powerState'
            }
        ]
    }
}

What are the possible reason for receiving this message?

alexa skills kitdevicescontroller
1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

[
    {
        'endpointId': 'device_id_here',
        'manufacturerName': 'manufacturer',
        'friendlyName': 'device_name_here',
        'description': '',
        'displayCategories': ['SWITCH'],
        'capabilities': [
            {
                'type': 'AlexaInterface',
                'interface': 'PowerController',
                'version': '3',
                'properties': {
                    'supported': [
                        {'name': 'powerState'}
                    ]
                },
                'proactivelyReported': True,
                'retrievable': True
            }
        ],
        'cookie': {'aaa': 'bbb'}
    }
]

if it helps here is the list I'm reporting containing only one device, I tried also adding proactivelyReported and retrievable.. but result didn't change

0 Likes 0 ·

1 Answer

Antonio avatar image
Antonio answered

My bad.. The interface was Alexa.PowerController and not simply PowerController

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.