question

Hicham EL IFQAOUI avatar image
Hicham EL IFQAOUI asked

smart home Skill linked to Lambda function, not working

Hi,

I create a lambda function (for Home Assistant), which can discover all my devices. all the process works well, the Logs of test result discover all my devices, automations and scripts.

lambda-function.jpg

below the result (partial) returned by your function execution:

{
  "event": {
    "header": {
      "namespace": "Alexa.Discovery",
      "name": "Discover.Response",
      "messageId": "58794a28-aecd-4232-b359-645d7bec0b33",
      "payloadVersion": "3"
    },
    "payload": {
      "endpoints": [
        {
          "displayCategories": null,
          "cookie": {},
          "endpointId": "binary_sensor#updater",
          "friendlyName": "Updater",
          "description": "binary_sensor.updater via Home Assistant",
          "manufacturerName": "Home Assistant",
          "additionalAttributes": {
            "manufacturer": "Home Assistant",
            "model": "binary_sensor",
            "softwareVersion": "2021.8.7",
            "customIdentifier": "-binary_sensor.updater"
          },
          "capabilities": [
            {
              "type": "AlexaInterface",
              "interface": "Alexa.EndpointHealth",
              "version": "3",
              "properties": {
                "supported": [
                  {
                    "name": "connectivity"
                  }
                ],
                "proactivelyReported": true,
                "retrievable": true
              }
            },
            {
              "type": "AlexaInterface",
              "interface": "Alexa",
              "version": "3"
            }
          ]
        },
        {
          "displayCategories": [
            "CAMERA"
          ],
          "cookie": {},
          "endpointId": "camera#mjpeg_camera",
          "friendlyName": "Mjpeg Camera",
          "description": "camera.mjpeg_camera via Home Assistant",
          "manufacturerName": "Home Assistant",
          "additionalAttributes": {
            "manufacturer": "Home Assistant",
            "model": "camera",
            "softwareVersion": "2021.8.7",
            "customIdentifier": "-camera.mjpeg_camera"
          },

Then, i create a Alexa skill which i linked to my lambda function, the linked work. when i come back to Alexa app, i add the new skill but once the discover finished, Alexa did not find any devices!!

in alexa developper console the region : https://pitangui.amazon.com/

and in AWS, the region is set to virgina

when i try to access with https (https://<BASE_URL:MY-PORT>/api/alexa/smart_home i get 405: Method Not Allowed

Did i miss something? why i didnot work in alexa app?

Thanks for help

Hicham

alexa smart homelambda
lambda-function.jpg (32.9 KiB)
10 |5000

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

1 Answer

Hicham EL IFQAOUI avatar image
Hicham EL IFQAOUI answered

Hi,


After checking and do again all over, i think this is a region setting issue, Could you indicate which region should i set for it?


Thanks

10 |5000

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