question

王贺 avatar image
王贺 asked

Devices of type INTERIOR_BLIND cannot be found, always reply no new device found


Device discovery does not recognize devices of type INTERIOR_BLIND,

but other types of devices (LIGHT,SWITCH) can be found and controlled. Is there a problem with the data I returned?

arn:aws: lambda:us-east-1:080593384281:function:MoorgenSmartHome

skill id:amzn1.ask.skill.1ad19067-80c8-45da-a910-68646b0a72d9

Here is the data I get back:

{
  "event": {
    "header": {
      "messageId": "0cbe4da6-2d41-4db3-8777-9042aff846bf",
      "name": "Discover.Response",
      "namespace": "Alexa.Discovery",
      "payloadVersion": "3"
    },
    "payload": {
      "endpoints": [
        {
          "additionalAttributes": {
            "customIdentifier": "6ca7aa4530291a2b188ir0",
            "manufacturer": "Moorgen SmartHome",
            "model": "trkmqzji",
            "serialNumber": "43400"
          },
          "capabilities": [
            {
              "capabilityResources": {
                "friendlyNames": [
                  {
                    "@type": "asset",
                    "value": {
                      "assetId": "Alexa.Setting.Opening"
                    }
                  }
                ]
              },
              "configuration": {
                "supportedRange": {
                  "maximumValue": 100,
                  "minimumValue": 0,
                  "precision": 1
                },
                "unitOfMeasure": "Alexa.Unit.Percent"
              },
              "instance": "Blind.Lift",
              "interface": "Alexa.RangeController",
              "properties": {
                "proactivelyReported": true,
                "retrievable": true,
                "supported": [
                  {
                    "name": "rangeValue"
                  }
                ]
              },
              "semantics": {
                "actionMappings": [
                  {
                    "@type": "ActionsToDirective",
                    "actions": [
                      "Alexa.Actions.Close"
                    ],
                    "directive": {
                      "name": "SetRangeValue",
                      "payload": {
                        "rangeValue": 0
                      }
                    }
                  },
                  {
                    "@type": "ActionsToDirective",
                    "actions": [
                      "Alexa.Actions.Open"
                    ],
                    "directive": {
                      "name": "SetRangeValue",
                      "payload": {
                        "rangeValue": 100
                      }
                    }
                  },
                  {
                    "@type": "ActionsToDirective",
                    "actions": [
                      "Alexa.Actions.Lower"
                    ],
                    "directive": {
                      "name": "AdjustRangeValue",
                      "payload": {
                        "rangeValueDelta": -10,
                        "rangeValueDeltaDefault": false
                      }
                    }
                  },
                  {
                    "@type": "ActionsToDirective",
                    "actions": [
                      "Alexa.Actions.Raise"
                    ],
                    "directive": {
                      "name": "AdjustRangeValue",
                      "payload": {
                        "rangeValueDelta": 10,
                        "rangeValueDeltaDefault": false
                      }
                    }
                  }
                ],
                "stateMappings": [
                  {
                    "@type": "StatesToValue",
                    "states": [
                      "Alexa.States.Closed"
                    ],
                    "value": 0
                  },
                  {
                    "@type": "StatesToRange",
                    "range": {
                      "maximumValue": 100,
                      "minimumValue": 1
                    },
                    "states": [
                      "Alexa.States.Open"
                    ]
                  }
                ]
              },
              "type": "AlexaInterface",
              "version": "3"
            },
            {
              "interface": "Alexa",
              "type": "AlexaInterface",
              "version": "3"
            }
          ],
          "cookie": {
            "productId": "trkmqzji",
            "scene": false
          },
          "description": "Smart Shades",
          "displayCategories": [
            "INTERIOR_BLIND"
          ],
          "endpointId": "6ca7aa4530291a2b188ir0",
          "friendlyName": "curtain01",
          "manufacturerName": "Moorgen SmartHome"
        }
      ]
    }
  }
}
device 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.

0 Answers