keymaster icon indicating copy to clipboard operation
keymaster copied to clipboard

[Feature Request] LockManager uninstall procedure

Open Vartkat opened this issue 4 years ago • 17 comments

Is your feature request related to a problem? Please describe.

I was using LockManager with ZHA then with OpenZwave and now I'm going to ZWaveJS. As LockManager became KeyMaster I would like to redo things from scratch. Is there any uninstall procedure ? What to delete, how to get rid of all the entities which have been created by LockManager before begining with KeyMaster. And...

Just a word about renaming entities, as some default lock names are very long, putting a suffix as the lock name some times (at least on my screen which is not big) doesn't help, I mean only the first characters are seen on the interface which doesn't help choosing from lock.be469zp_connect_smart_deadbolt_locked_back_door and lock.be469zp_connect_smart_deadbolt_locked_front_door as the interface only shows lock.be469zp_connect_smart_deadbo... Wouldn't it be better to make it a prefix ?

Describe the solution you'd like 1- An LockManager uninstall procedure in the WiKi 2- Prefix instead of suffix in the entities renaming

Describe alternatives you've considered

Additional context I suppose that is because of my small screen as I didn't see anyboby else complain about this naming problem.

Vartkat avatar Mar 18 '21 23:03 Vartkat

Prefix instead of suffix in the entities renaming

Renaming isn't required, it's optional and for your sanity.

An LockManager uninstall procedure in the WiKi

This is a good idea, we'll see what we can do.

firstof9 avatar Mar 18 '21 23:03 firstof9

I'd like to bump this and add to it -- when I decided to remove Keymaster from my setup I thought it'd be as simple as uninstalling Keymaster from HACS, but it didn't remove any of the entities and there were tons of input Booleans left behind, plus I have a line in my log that seems like keymaster is still lingering somewhere in my system. I can't find any folders/files associated, nor is there anything in my config file. I'm not sure what I need to do to remove this. I'm going to file a separate issue, but just wanted to bump this to stress its importance.

Logger: homeassistant.setup Source: setup.py:172 First occurred: 10:16:25 AM (1 occurrences) Last logged: 10:16:25 AM

Setup failed for keymaster: Integration not found.

mifbody avatar May 10 '21 14:05 mifbody

I'd like to bump this and add to it -- when I decided to remove Keymaster from my setup I thought it'd be as simple as uninstalling Keymaster from HACS, but it didn't remove any of the entities and there were tons of input Booleans left behind, plus I have a line in my log that seems like keymaster is still lingering somewhere in my system. I can't find any folders/files associated, nor is there anything in my config file. I'm not sure what I need to do to remove this. I'm going to file a separate issue, but just wanted to bump this to stress its importance.

Logger: homeassistant.setup Source: setup.py:172 First occurred: 10:16:25 AM (1 occurrences) Last logged: 10:16:25 AM

Setup failed for keymaster: Integration not found.

The issue is that you uninstalled the integration from HACS before you removed the integration from your config. Now you still have keymaster in your config and when HA tries to load it, it fails because keymaster the integration isn't installed.

The steps to resolve this are:

  1. Reinstall keymaster
  2. Go into configuration > integrations, find the keymaster card, and click remove/delete from the ... menu
  3. Uninstall keymaster

This isn't specific to keymaster, this is how all integrations work. And when you do step 2 (normally step 1 but you have to reinstall keymaster first in your case), it will clean everything up for you, including files written to disk, except for any lovelace dashboards you have added to your UI because we can't auto clean those up

raman325 avatar May 10 '21 15:05 raman325

So I removed the integrations and uninstalled it through HACS and rebooted. After that, I then removed entities that said Keymaster and the automations related to Keymaster

I rebooted again, reinstalled through HACS, then rebooted again, but I do not see Keymaster in the integrations. Would this be a separate issue or related to the uninstall process?

roborobp avatar Nov 23 '21 14:11 roborobp

Press F5 in the integrations screen, then try to add it.

firstof9 avatar Nov 23 '21 14:11 firstof9

Press F5 in the integrations screen, then try to add it.

That was exactly it, thanks for that!

roborobp avatar Nov 23 '21 14:11 roborobp

After uninstalling the integration, then removing through HACS and doing several reboots, I am left with a LOT of entities still. How do I remove all of these?

bmbouter avatar Nov 08 '23 20:11 bmbouter

remove any files related to keymaster in your packages folder, typically config/packages, then reload all automations, input helpers, etc. or just restart HA

raman325 avatar Nov 08 '23 21:11 raman325

Thanks for the reply. I've removed the files from /config/packages (the packages dir) and reloaded all the automations, restarted HA, etc, but all of these entities are still around.

I've also tried a lot of other things, reinstalling it in HACS, reinstalling it as an automation, disabling/enabling keymaster of an automation, with lots of restarts in between.

Maybe I'm doing this wrong. Can someone give more detailed instructions? For example I don't see a "reload all automations" button AFAICT.

bmbouter avatar Nov 10 '23 14:11 bmbouter

I ended up just resolving it manually by fully uninstalling the add-on, then removing keymaster from HACS, removing everything from the /config/packages/ dir, and then restarting everything. Then I went to /config/entities and ended up manually removing all the entities, helpers, etc associated w/ he keymaster install.

I needed to reinstall with another lock, so I basically then did a fresh install and I was all set.

bmbouter avatar Nov 10 '23 21:11 bmbouter

I have exactly the same problem - having deleted the integration for my lock, then deleting keymaster from HACS, and having done several re-starts, I am still left with loads of keymaster automations. And it seems I cannot delete them because “Only automations in automations.yaml can be deleted” and these aren’t.

Using File Editor I can’t see the /config/entities folder that @bmbouter refers to. Is there anywhere else to look or other ways to tidy this up?

kingswindsor avatar May 08 '24 12:05 kingswindsor

Using File Editor I can’t see the /config/entities folder

They were referring to the menus in HA. Check /config/packages, but the integration should nuke all the helpers it created on removal.

firstof9 avatar May 08 '24 13:05 firstof9