Skip to content

"Implementing Camera Object Detection Reporting with Alexa.SmartVision.ObjectDetectionSensor – Request Returns 202 but Alexa Shows No Response."

0

I have implemented Alexa.SmartVision.ObjectDetectionSensor according to the documentation. I can successfully update the device list, including changing the device name, by sending an AddOrUpdateReport request to https://api.amazonalexa.com/v3/events.

Here is the request I used:

{
    "event": {
        "header": {
            "namespace": "Alexa.Discovery",
            "name": "AddOrUpdateReport",
            "payloadVersion": "3",
            "messageId": "Unique identifier, preferably a version 4 UUID"
        },
        "payload": {
            "endpoints": [{
                "endpointId": "Unique ID of the endpoint",
                "manufacturerName": "Sample Manufacturer",
                "description": "Description that appears in the Alexa app",
                "friendlyName": "Your device name, displayed in the Alexa app",
                "displayCategories": ["CAMERA"],
                "additionalAttributes": {
                    "manufacturer": "Sample Manufacturer",
                    "model": "Sample Model",
                    "serialNumber": "Serial number of the device",
                    "firmwareVersion": "Firmware version of the device",
                    "softwareVersion": "Software version of the device",
                    "customIdentifier": "Optional custom identifier for the device"
                },
                "cookie": {},
                "capabilities": [{
                        "type": "AlexaInterface",
                        "interface": "Alexa.SmartVision.ObjectDetectionSensor",
                        "version": "1.0",
                        "properties": {
                            "supported": [{
                                    "name": "objectDetectionClasses"
                                }
                            ],
                            "proactivelyReported": true,
                            "retrievable": true
                        },
                        "configuration": {
                            "objectDetectionConfiguration" : [
                                {
                                   "imageNetClass" : "person"
                                },
                                {
                                   "imageNetClass" : "package"
                                }
                            ]
                        }
                    },
                    {
                        "type": "AlexaInterface",
                        "interface": "Alexa.EndpointHealth",
                        "version": "3.1",
                        "properties": {
                            "supported": [{
                                "name": "connectivity"
                            }],
                            "proactivelyReported": true,
                            "retrievable": true
                        }
                    },
                    {
                        "type": "AlexaInterface",
                        "interface": "Alexa",
                        "version": "3"
                    }
                ]
            }]
        }
    }
}

However, when I send an ObjectDetection event, it returns 202 Accepted, but Alexa does not respond. Even after setting up routines, there is no reaction. Additionally, I do not see any requests appearing in my /aws/lambda skill logs.

Here is the request I sent:

{
    "event": {
        "header": {
            "namespace": "Alexa.SmartVision.ObjectDetectionSensor",
            "name": "ObjectDetection",
            "payloadVersion": "1.0",
            "messageId": "67f61203-26ad-4092-a17d-589965c9e19d"
        },
        "endpoint": {
            "scope": {
                "type": "BearerToken",
                "token": "Atza|IwEBIDF5Gqn2uV39EKwU5bRq"
            },
            "endpointId": "3550031605"
        },
        "payload": {
            "events": [
                {
                    "eventIdentifier": "560e8400-e29b-41d4-a716-446655440112",
                    "imageNetClass": "person",
                    "timeOfSample": "2025-03-06T10:05:56Z",
                    "uncertaintyInMilliseconds": 0,
                    "objectIdentifier": "573409df-5486-7c52-b4ba-d361860bac73",
                    "frameImageUri": "https://ptnk.bmwwx.cn/pXPZbc",
                    "croppedImageUri": "https://ptnk.bmwwx.cn/pXPZbc"
                }
            ]
        }
    }
}

asked 2 years ago303 views

1 Answer
0

It seems you've correctly implemented the Alexa.SmartVision.ObjectDetectionSensor interface and are sending the appropriate requests. However, there are a few things you can check to troubleshoot why Alexa is not responding:

  1. Verify that the endpointId in your ObjectDetection event matches the one you used in the AddOrUpdateReport request.

  2. Ensure that the access token you're using in the "token" field of the ObjectDetection event is valid and has the necessary permissions.

  3. Check that the timeOfSample in your ObjectDetection event is not set too far in the future. The example you provided shows a date in 2025, which might cause issues.

  4. Confirm that the imageNetClass in your ObjectDetection event matches one of the classes you specified in the objectDetectionConfiguration of your AddOrUpdateReport request.

  5. Make sure the frameImageUri and croppedImageUri are accessible and valid.

  6. Double-check that your skill is correctly linked to your Alexa account and that the device appears in the Alexa app.

  7. Verify that your Lambda function is correctly set up and associated with your Alexa skill.

If you've confirmed all of these points and are still not seeing any response or logs, you may want to contact Amazon Alexa support for further assistance. They can help investigate if there are any issues with your skill configuration or event processing on their end.
Sources
Amazon Rekognition – Video - AWS
Guidance for Deploying Smart Cameras Using Amazon Kinesis Video Streams with WebRTC

answered 2 years ago

  • These don't work for me. My AddOrUpdateReport event was successful.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.