question

SR avatar image
SR asked

V3: Should Discover return temporarily unreachable endpoints?

Under Smart Home Skill V3, when a Discover is received, if the endpoint is offline (specifically when EndpointHealth.connectivity == "UNREACHABLE") should it still include the endpoint in the list of discovered devices?

alexa smart homedevice 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.

Anand@Amazon avatar image
Anand@Amazon answered

Hello SR,

Thanks for posting !!!

If the endpoint is currently unreachable, but you can report all endpoint property values because they are cached, return the StateReport and include all of the property values. However, specify the value of the connectivity property of EndpointHealth as UNREACHABLE. If you cannot report the state of all of the properties because the endpoint is unreachable, and you have not cached the values, you should send an ErrorResponse type of BRIDGE_UNREACHABLE or ENDPOINT_UNREACHABLE.

10 |5000

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

SR avatar image
SR answered

Hi Anand: yes, that's correct for a `StateReport` but what about for `Discover`? Should unavailable endpoints be included in the array with the `Discover.Response`?

10 |5000

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