question

Mathias avatar image
Mathias asked ·

discovery response not valid

I trie to implement a smart home skill with a nodejs-lambda-function. But my discovery response will not be valid. An I does not find the failure. I tried also https://www.jsonschemavalidator.net/ with the shema alexa_smart_home_message_schema.json and node js schema validation with https://github.com/epoberezkin/ajv .

Here is my response:

{
  "event": {
    "header": {
      "namespace": "Alexa.Discovery",
      "name": "Discover.Response",
      "payloadVersion": "3",
      "messageId": "afc26efa-11a8-4c39-b504-7feaecc1407d"
    },
    "payload": {
      "endpoints": [
        {
          "endpointId": "0b0b6ef8-03af-d9eb-ffffeee000000000",
          "description": "-",
          "friendlyName": "Außensteckdosen",
          "manufacturerName": "Loxone",
          "displayCategories": "SWITCH",
          "cookie": {
            "extraDetail1": "Raum:Garten",
            "extraDetail2": "Kategorie:Technik"
          },
          "capabilities": [
            {
              "type": "AlexaInterface",
              "interface": "Alexa.PowerController",
              "version": "3",
              "properties": {
                "supported": [
                  {
                    "name": "powerState"
                  }
                ],
                "proactivelyReported": true,
                "retrievable": true
              }
            }
          ]
        },
        {
          "endpointId": "0b0b5341-0070-3b19-ffffeee000000000",
          "description": "-",
          "friendlyName": "Jalousie",
          "manufacturerName": "Loxone",
          "displayCategories": "SWITCH",
          "cookie": {
            "extraDetail1": "Raum:Zentral",
            "extraDetail2": "Kategorie:Jalousie"
          },
          "capabilities": [
            {
              "type": "AlexaInterface",
              "interface": "Alexa.PowerController",
              "version": "3",
              "properties": {
                "supported": [
                  {
                    "name": "powerState"
                  }
                ],
                "proactivelyReported": true,
                "retrievable": true
              }
            }
          ]
        }
      ]
    }
  }
}

Can someone help me?

alexa smart homeapidevice discovery
10 |2000 characters needed characters left characters exceeded

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

1 Answer

Tsuneki@Amazon avatar image
Tsuneki@Amazon answered ·

Hi there,

Thanks for posting.

Could you share your skill ID for further investigation?

10 |2000 characters needed characters left characters exceeded

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