Uninstalling appdaemon

I have messed up my appdaemon install - I started following the instructions at Installing AppDaemon on Ubuntu with virtualenv. However, I then decided I didn’t want the appdaemon to run in a virtualenv separate from the homeassistant virtualenv. So I followed the instructions at http://appdaemon.readthedocs.io/en/latest/INSTALL.html. And appdaemon was running fine.
But then I decided that I didn’t want appdaemon running out of a virtualenv. So I then tried to install appdaemon within the homeassistant virtualenv by modifying the instructions at Installing AppDaemon on Ubuntu with virtualenv.
However when I got to running the test command “appdaemon -c /home/homeassistant/conf” the output included an error.
So I thought I would delete appdaemon and start again. I have deleted the user “appdaemon” and all his home directory. I have deleted the directory “/srv/appdaemon” and the appdaemon directory under the usr directory.
But having followed the instructions to set up appdaemon in the homeassistant virtualenv, when I run the test command I get
ERROR no 'appdaemon' section in /home/homeassistant/conf/appdaemon.yaml
I do have an appdaemon.yaml file and it contains:

AppDaemon:
  logfile: STDOUT
  errorfile: STDERR
  logsize: 100000
  log_generations: 3
  threads: 10
  api_port: 5000
HASS:
  ha_url: http://192.168.1.252:8123
  ha_key: !secret http_password

Please could someone kindly advise how I can completely remove appdaemon so I can start with a clean slate? Other than reinstalling Ubuntu!
Thank you very much.

There are really only 2 steps:

  1. Delete the AppDaemon Config directory
  2. Uninstall AppDaemon using PIP:
$ pip3 uninstall appdaemon

(you may need to use sudo for this step if you installed not in a venv)

If you did create a venv entirely for AD, just delete that directory too, then you should be able to start fresh.

Regardig your error, is the file you posted actually /home/homeassistant/conf/appdaemon.yaml?

Thanks very much aimc for the advice regarding uninstalling appdaemon.
The file was from that directory:

homeassistant@bhcontrol:~/conf$ ls -a
.  ..  appdaemon.yaml  apps  apps.yaml  secrets.yaml

Thanks again, I’ll get to work on removing all traces of appdaemon and starting again!

1 Like