Home Assistant Integration - removing devices

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
lanbrown
Posts: 373
Joined: 01 Jun 2021 08:06

Home Assistant Integration - removing devices

Post by lanbrown »

If you have a Z-Wave device managed under Z-Way, the device gets created in Home Assistant with integration. If you delete a Z-Wave device under Z-Way, it still shows up in Home Assistant. Besides just disabling the device in Home Assistant, what is the best way to cleanup old devices from Z-Way in Home Assistant?
Kepex
Posts: 4
Joined: 30 May 2022 11:58

Re: Home Assistant Integration - removing devices

Post by Kepex »

I want to know that too, I cannot delete it from my list and I still do not know how to do it
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Home Assistant Integration - removing devices

Post by PoltoS »

We are working on it now. The next release will handle it.
lanbrown
Posts: 373
Joined: 01 Jun 2021 08:06

Re: Home Assistant Integration - removing devices

Post by lanbrown »

Just checking if there is an update to this? Deleting devices from core.config_entries is not an ideal solution as the file is quite large and needs to be properly formatted.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Home Assistant Integration - removing devices

Post by PoltoS »

It is in work
mango
Posts: 37
Joined: 06 Feb 2021 00:11

Re: Home Assistant Integration - removing devices

Post by mango »

following
lanbrown
Posts: 373
Joined: 01 Jun 2021 08:06

Re: Home Assistant Integration - removing devices

Post by lanbrown »

In the interim I'm using a YAML editing tool. You need to be careful when editing YAML as it needs to be properly formatted. Remove one extra character or leave an extra character in and it will cause issues. The editor makes it simple to expand or collapse. Then I just use the preview for that node to see if it is something I want to remove or not. Then removing it is just hitting the delete key and it removes everything in that node.

This obviously won't help Windows or Linux people, but I'm using an App called Power YAML editor. It was $3.99 but it will save a lot of time and make it easy to delete what I don't want.
Willem_K
Posts: 20
Joined: 09 May 2017 11:07

Re: Home Assistant Integration - removing devices

Post by Willem_K »

Any news on this?
lanbrown
Posts: 373
Joined: 01 Jun 2021 08:06

Re: Home Assistant Integration - removing devices

Post by lanbrown »

Rename with say "Old - " at the front and use a YAML editor to remove them. Unfortunately this is the only way. I believe part of the problem is that HA doesn't make it easy to remove certain things.

Make sure you perform a backup, preferable a full backup before starting this. You also need to use a YAML editor so you delete the entire config for that device/entity. The YAML editor knows how to handle this. A normal editor does not.
Post Reply