question

Joseph Hughes avatar image
Joseph Hughes asked

Alexa Lighting API is not sending HealthCheck requests.

https://developer.amazon.com/public/binaries/content/assets/html/alexa-lighting-api.html According to those documents my lambda function should respond to a 'HealthCheckRequest' that is supposed to check the health of the connected device service. I have logging in that handler and never see it called. After a few hours my devices show offline even though I can continue to control them. This is a homebrew project and I am in 'testing' so I am curious if maybe the Lighting API does not send health check requests until the service is 'Live' I am not sure I ever want to truly publish this, I just want it for my own tinkering. Thanks
alexa skills kitsubmission testing certification
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

Levon@Amazon avatar image
Levon@Amazon answered
Hi Joseph, Welcome to dev forums and thanks for posting! We may send a healthcheck if our service needs to validate the status of a 3rd party driver. The health checks are not necessarily uniformly timed. As for your question about the devices showing as offline: are you setting the isReachable flag in the DiscoveredAppliance object to true? We display appliance online/offline status based on the response of the most recent discovery response for that appliance. To clarify - the lack of health checks are not related to the appliance showing as offline.
10 |5000

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