question

Ashish Jha avatar image
Ashish Jha asked

Alexa Smart home Skill - Problem with discovering device!

Hi,

I'm a bit confused about how alexa discover and control works. I am just trying to integrate the smart home blueprint with a basic skill as given in tutorial here https://embeddedinn.github.io/articles/tutorial/Developing-an-Alexa-Smart-Home-Skill/

- My platform and alexa are linked successfuly (OAuth2)

- My lambda function is executed when i test from AWS console

- The response from lambda function is generated OK, this is an example: Request :

{
  "header": {
    "payloadVersion": "3",
    "namespace": "Alexa.ConnectedHome.Discovery",
    "name": "DiscoverAppliancesRequest",
    "messageId": "F8752B11-69BB-4246-B923-3BFB27C06C7D"
  },
  "payload": {
    "accessToken": "1"
  }
}
Response :
{
  "header": {
    "messageId": "38A28869-DD5E-48CE-BBE5-A4DB78CECB28",
    "name": "DiscoverAppliancesResponse",
    "namespace": "Alexa.ConnectedHome.Discovery",
    "payloadVersion": "3"
  },
  "payload": {
    "discoveredAppliances": [
      {
        "applianceId": "unique-id-for-non-dimmable-bulb-specific-to-user1",
        "manufacturerName": "SmartHome Product Company",
        "modelName": "NON-DIMMABLE BULB MODEL ABC",
        "version": "1.0",
        "friendlyName": "Smart light",
        "friendlyDescription": "Smart light bulb from SmartHome Product Company",
        "isReachable": true,
        "actions": [
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "extraDetail1": "optionalDetailForSkillAdapterToReferenceThisDevice",
          "extraDetail2": "There can be multiple entries",
          "extraDetail3": "but they should only be used for reference purposes.",
          "extraDetail4": "This is not a suitable place to maintain current device state"
        }
      },
      {
        "applianceId": "unique-id-for-dimmable-bulb-specific-to-user1",
        "manufacturerName": "SmartHome Product Company",
        "modelName": "DIMMABLE BULB MODEL XYZ",
        "version": "1.0",
        "friendlyName": "Dimmable light",
        "friendlyDescription": "Dimmable light bulb from SmartHome Product Company",
        "isReachable": true,
        "actions": [
          "turnOn",
          "turnOff",
          "setPercentage",
          "incrementPercentage",
          "decrementPercentage"
        ],
        "additionalApplianceDetails": {}
      }
    ]
  }
}

Alexa says that not found any smart home device.

What's wrong with the lambda adapter response ? or am i missing some steps ?

alexa skills kitalexa voice servicealexa smart homealexa skills challenge
10 |3000 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

newuser-7b64962a-ebdb-458f-9d90-754d345207ce avatar image
newuser-7b64962a-ebdb-458f-9d90-754d345207ce answered

10 |3000 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.