nayelyz
(SmartThings Developer Support)
March 2, 2022, 4:31pm
2
Hi!
To delete the device, you need to send the corresponding global error in a stateCallback. Here’s a post where I shared more information about the deletion process:
Hi, there!
The “Integration Deleted” interaction is called from the SmartThings side when:
We select the device created by our ST Schema Connector and delete it.
In the ST app, we go to Menu > Settings > Linked Services and delete the integration.
The third-party cloud can also call it by sending a stateCallback to the Schema connector (see the configuration sample for the stateCallback here ):
The URL will depend on the endpoint you configured in your Connector’s server to receive the request from the Third-Party, in the example, the endpoint to receive the “stateCallback” and update the device state is /command
The difference with a common stateCallback is that to trigger the “integrationDeleted” interaction, you need to send a globalError so, the payload from the stateCallback wou…
This cannot be done, the friendlyName parameter is only considered when the device is discovered for the first time. Please, take a look at this post:
I see…I’ve verified this with our engineering team and they mention this was disabled not so long ago, and it was because there’s no way to notify you if the user sets a new FriendlyName value. If a non-updated “discoveryCallback” comes in, that value would replace the user’s preferences.
If the user decides the device to have the same name on both applications, he/she must change it on both sides.