question

Developer avatar image
Developer asked ·

What is the correct smarthome behaviour for a deleted device

If a device is removed and we return NO_SUCH_ENDPOINT, what is the expect behavior for the end user? Are they notified to remove the device or otherwise advised?

alexa smart homethermostat
10 |2000 characters needed characters left characters exceeded

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

Developer avatar image
Developer answered ·

Adding to this question, if a device is renamed but retains the same EndpointID, the behavior in the Alexa app seems to be to create another device rather than renaming the existing one. Is this expected behavior or from a development point of view do we need to do something extra?

10 |2000 characters needed characters left characters exceeded

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

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered ·

Hello and sorry for the time it took to reply to your question.

Please find below the answers:

If a device is removed and we return NO_SUCH_ENDPOINT, what is the expect behavior for the end user? Are they notified to remove the device or otherwise advised?

When a device is removed and you start returning NO_SUCH_ENDPOINT the user will receive an error message "Device is unresponsive. If it\'s no longer in use, tap "Edit" to delete from Alexa app.". Unless the user deletes the device it will remain until discovery occurs and the client refreshes its updated data from the server with the removed device no longer in the list of appliances. Unfortunately we do not have a mechanism for you to proactively propagate the removal event to the client yet.

Adding to this question, if a device is renamed but retains the same EndpointID, the behavior in the Alexa app seems to be to create another device rather than renaming the existing one. Is this expected behavior or from a development point of view do we need to do something extra?

Perhaps you can clarify your question but when a rename occurs no new endpoint or endpointId is created, just an alternate name that displays in the client and allows the customer to refer to that endpoint with the new name. No additional development is necessary.

I hope this answers your queries. If you have more questions, don't hesitate to contact us.

Regards,

Barry

10 |2000 characters needed characters left characters exceeded

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