Featured

How to remove phantom Amazon devices from Home Assistant

On our most recent IoT Podcast, Justin called in with a question about devices connected to both Home Assistant and Amazon. He’s looking for a way to remove a bunch of old smart home devices all at once: They’re no longer on his network but are still appearing in either the Amazon app or Home Assistant. There’s an easy way to accomplish this, but unfortunately, it doesn’t always work. So we’re adding two additional options to remove phantom smart home devices from Home Assistant.

The first and easiest method is open the Amazon Alexa mobile app and click the Devices option, followed by All Devices. Then you can tap a device, click the Settings option, and choose the Delete action. In theory, that should remove the device connection with Amazon, which in turn should remove it from Home Assistant as well.

Note that you can accomplish the same thing more quickly by browsing to alexa.amazon.com, signing in, and clicking the Smart Home menu option. You’ll see a much cleaner interface that responds faster than the mobile app.

Unfortunately, this process isn’t as reliable as it should be. That’s based on experience from users in various Home Assistant forums.

If you remove the devices from Amazon and they still appear in Home Assistant, you can select them in your Home Assistant dashboard and try to delete them manually. But even this can be hit or miss at times.

However, Home Assistant keeps a text-based file of all discovered devices. And it’s here that you can make these phantom devices disappear like Houdini. First, however, you’ll want to make a backup of this file, which can be found at ‘/config/.storage/core.entity_registry’.

Here you’ll look for the device entries you want to excise and simply delete their records from the text file.

You can do this manually, or if you’re feeling adventurous, use this command line as a template: It will query for devices on a single platform and remove them. If you’d rather use the command line for a single device, this one, shown below, will backup your device registry and create a new one without the device you specify.

This command is removing an old switch; you’ll have to swap your device name for the switch.

Personally, if you’re not familiar with the Home Assistant CLI, or command-line interface, I’d probably just manually delete device entities after making a backup.

To hear Justin’s question, along with our discussion in full on the topic, tune in to the IoT Podcast below:

 

Kevin C. Tofel

Share
Published by
Kevin C. Tofel

Recent Posts

Episode 437: Goodbye and good luck

This is the final episode of The Internet of Things Podcast, and to send us…

9 months ago

So long, and thanks for all the insights

This article was originally published in my weekly IoT newsletter on Friday August 18, 2023.…

9 months ago

We are entering our maintenance era

This article was originally published in my weekly IoT newsletter on Friday August 18, 2023.…

9 months ago

IoT news of the week for August 18, 2023

Verdigris has raised $10M for smarter buildings: I am so excited by this news, because roughly eight…

9 months ago

Podcast: Can Alexa (and the smart home) stand on its own?

Amazon's head of devices, David Limp, plans to retire as part of a wave of executives that…

9 months ago

Z-Wave gets a boost with new chip provider

If you need any more indication that Matter is not going to kill all of…

9 months ago