question

Pooja P. avatar image
Pooja P. asked

Device discovery of 'offline' devices

Say the first time the user ran the device discovery, and it found 4 devices.

Now one of the devices lost server connection and is offline.

then when alexa runs device discovery in the background, the Lambda skill returned only 3 that it found online.

But in the Alexa app, it shows up as 8 devices: original 4 + new 4 with 1 marked as offline.

Shouldn't it show only 3 and the 4th as offline ?..

When exactly are devices marked as "offline" in the alexa app?

alexa skills kitdevices
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

Brian@Amazon avatar image
Brian@Amazon answered
Hi Pooja. Is this on a current live smarthome skill or one that you are developing?
3 comments
10 |5000

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

@Brian@Amazon, its on a skill i am currently developing. My Lambda function returns only online devices.. So again: if originally 2 online devices were discovered, lambda returned 2; then if one went offline, Lambda is going to return only 1 device back to Alexa in the next discovery.. is this the right behaviour?

-1 Like -1 ·

I believe that is acceptable behavior, per the spec. If the discovery isn't run but the device isn't detected, it shoudl show as offline.

0 Likes 0 ·

Okay, thanks Brian!

0 Likes 0 ·