Devices was not removed from SmartThings after removing from app

It’s been 3 days since I unlinked a device from my app. When I sent the callback response to the SmartThings skill, I expected the stateRefreshRequest call to query my app and get the latest device state. However, while my app returns the correct state , the changes aren’t reflected in the SmartThings app. What could be causing this issue?

Brand/model of device you unlinked?

I have CieloWigle device and i connect it with smart thing.

Hi, @almoeeni

Can you provide more details to understand your use case better, please?
You mentioned you unlinked the device from your app, I’m guessing from the Cielo app, right?
So, you sent a callback to SmartThings that should have deleted the device but it didn’t happen?
You should send a stateCallback with the device error of DEVICE-DELETED, was that the callback you used?

If you’re referring to a device that still exists on both sides, SmartThings and Cielo, then you send a stateRefresh response providing the latest state but it isn’t showing on the ST side, first you need to check if you see any “interactionResult” in the Schema logs after the StateRefreshRequest.

Remember the StateRefreshRequest only happens after a discovery request which is called:

  1. When the integration is installed
  2. Every 24 hours
  3. When we open the ST app and go to Menu > Settings > Linked services and enter the integration