question

Piotreeek avatar image
Piotreeek asked

Smart home discovery failure

Hi,

I have been using a custom smart home skill for some time. One day - it stopped working. It turns out it doesn't discover my devices. I recoded it, pasted sample code and it doesn't find any devices, however I do not receive any errors. Can you please have a look at my sample request and response to rule out an obvious error?

{
  "directive": {
    "header": {
      "namespace": "Alexa.Discovery",
      "name": "Discover",
      "payloadVersion": "3",
      "messageId": "1bd5d003-31b9-476f-ad03-71d471922820"
    },
    "payload": {
      "scope": {
        "type": "BearerToken",
        "token": "access-token-from-skill"
      }
    }
  }
}
{
  "event": {
    "header": {
      "namespace": "Alexa.Discovery",
      "name": "Discover.Response",
      "payloadVersion": "3",
      "messageId": "1bd5d003-31b9-476f-ad03-71d471922820"
    },
    "payload": {
      "endpoints": [
        {
          "endpointId": "demo_id",
          "manufacturerName": "Smart Device Company",
          "friendlyName": "Bedroom Outlet",
          "description": "Smart Device Switch",
          "displayCategories": [
            "SWITCH"
          ],
          "cookie": {
            "key1": "arbitrary key/value pairs to reference this endpoint.",
            "key2": "There can be multiple entries",
            "key3": "but they should only be used for reference purposes.",
            "key4": "This is not a suitable place to oint state."
          },
          "capabilities": [
            {
              "type": "AlexaInterface",
              "interface": "Alexa",
              "version": "3"
            },
            {
              "interface": "Alexa.PowerController",
              "version": "3",
              "type": "AlexaInterface",
              "properties": {
                "supported": [
                  {
                    "name": "powerState"
                  }
                ],
                "retrievable": true
              }
            }
          ]
        }
      ]
    }
  }
}
alexa skills kitalexa smart homesmart homedevice discovery
10 |5000

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

Tsuneki@Amazon avatar image
Tsuneki@Amazon answered

Hi there,

Thanks for posting.

Could you please disable "Send Alexa event" and try again?

If it work with disabling it, Authorization interface is missing or not properly implemented in your lambda function.

Please check here for detail.

10 |5000

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

Piotreeek avatar image
Piotreeek answered

It doesn't work with either disabled or enabled

My skill is

amzn1.ask.skill.106debc9-e968-4115-acaf-4b1a0348fcb2

can you have a look a\t this. Also, I'm still getting a "Skill I/O is available only for speech requests to skills you have created." output. I have tried every possible solutions to that. No luck, though

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.

Hi there,

Could you please file a contact us here with your account linking ID and password which already connected to your device so that we can reproduce the issue locally and assist further.

Regards,

Tsuneki

0 Likes 0 ·