question

thomkins2008 avatar image
thomkins2008 asked

Does the LockController work with the ContactSensor?

I put the LockController and the ContactSensor together, so the ContactSensor doesn't show up. Only the SMARTLOCK is displayed without the ContactSensor.


{
  "event": {
    "header": {
      "namespace": "Alexa.Discovery",
      "name": "Discover.Response",
      "payloadVersion": "3",
      "messageId": "38A28869-DD5E-48CE-BBE5-B3E5"
    },
    "payload": {
      "endpoints": [
        {
          "endpointId": "D013214210010",
          "manufacturerName": "test",
          "description": "Smart Sensor by Sensor Maker",
          "friendlyName": "TEST001",
          "displayCategories": ["SMARTLOCK", "CONTACT_SENSOR"],
          "cookie": {},
          "capabilities": [
           {
              "type": "AlexaInterface",
              "interface": "Alexa.LockController",
              "version": "3",
              "properties": {
                  "supported": [
                      {
                          "name": "lockState"
                      }
                  ],
                  "proactivelyReported": true,
                  "retrievable": true
              }
            },
            {
              "type": "AlexaInterface",
              "interface": "Alexa.ContactSensor",
              "version": "3",
              "properties": {
                "supported": [
                  {
                    "name": "detectionState"
                  }
                ],
                "proactivelyReported": true,
                "retrievable": true
              }
            },
            {
              "type": "AlexaInterface",
              "interface": "Alexa.EndpointHealth",
              "version": "3",
              "properties": {
                "supported": [
                  {
                    "name":"connectivity"
                  }
                ],
                "proactivelyReported": true,
                "retrievable": true
              }
            },
            {
              "type": "AlexaInterface",
              "interface": "Alexa",
              "version": "3"
            }
          ]
        }
      ]
    }
  }
}


I want to add more functionality to the lock. Such as door sensor, camera, etc

alexa smart homelocks
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