question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Devices deleted in SmartThings aren't removed from Home Assistant

See original GitHub issue

The problem

Devices deleted in SmartThings are not removed from Home Assistant automatically and can’t be deleted manually in Home Assistant.

Environment

  • Home Assistant Core release with the issue: 2020.12.2
  • Last working Home Assistant Core release (if known): Unknown
  • Operating environment (OS/Container/Supervised/Core): OS (RPi 4)
  • Integration causing this issue: SmartThings
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/smartthings/

Problem-relevant configuration.yaml

GUI used for SmartThings integration configuration.

Traceback/Error logs

I enabled debug logging for the SmartThings integration per the documentation above but didn’t identify any relevant logs related to the issue. I don’t see any log entries related to the devices removed in SmartThings.

Additional information

I also attempted to delete and re-add the entire SmartThings integration but this caused entities to be revert to their default entity ID (requiring automations to be reconfigured) and entities/devices needed to be re-added to areas.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:12

github_iconTop GitHub Comments

2reactions
ovidiupruteanucommented, Oct 11, 2021

It looks like this is still an issue in 2021.10.2

1reaction
briodancommented, Aug 15, 2022

I completed my migration from ST to HA so this does not really impact me anymore but figured I would share the process I used in case it helps others. Since I doubt this is getting fixed anytime soon.

  1. made sure none of the ST devices or entities were renamed in HA or if they were revert them to original name. I had about 40 devices so it took a bit of work. Had influxdb running in ST which helped with getting the original names from ST.
  2. Made sure to have a saved copy of the ST token
  3. For each device I wanted to move I would do the following
  4. Check for all automations using the device/entity in HA, I would just open the automation in a new tab.
  5. Remove the device from ST
  6. Rename the device/entities in HA to start with “old_”. This allows reuse of the name without having to add _2 or something to it
  7. Added device to HA, note sometimes the entities get new names in HA ie temperature_measurement would become temperature.
  8. Updated automations with the new device/entity name
  9. Test automations
  10. Deleted and re-add the ST integration every 2-3 devices migrated this would get rid of the “old_” devices, however it would keep all existing automation etc working after the add since the names are the same.

I was fortunate to not have a lot of devices that I renamed in HA, so it was not much of a problem, if someone renamed extensively I would save step 10 for when all devices have been migrated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How does one delete or remove unavailable entities for ...
Exclude the device from SmartThings · Rename the device in Home Assistant by adding something like “old ST” to the end of the...
Read more >
SmartThings integration not automatically removing devices ...
Problem is when remove a device from SmartThings Hub/IDE then device + its entity/entities is not removed from Home Assistant.
Read more >
Delete Orphaned SmartThings Devices? : r/homeassistant
If you search for 'smartthings' you can find the entity and devices that aren't the ones you want to keep and just delete...
Read more >
Deleted devices keep reappearing - SmartThings Community
I moved all of my Zigbee and Zwave devices over to Home Assistant a ... need to remove them from the creator so...
Read more >
How to Remove a Device from Google Home - Lifewire
Troubleshoot: Perform a factory reset, double-check Google Assistant settings, or delete the associated room or home. This article explains how ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found