Can't get appdaemon instructions to work

my appdaemon.yaml is under /home/homeassistant/appdaemon
my hello.py is under /home/homeassistaant/appdaemon/apps
when i run appdaemon -c /home/homeassistant/appdaemon
it reads

ERROR error loading configuration
ERROR parser says
Error in “”, line 2 colum 1:
threads:10
error found character ‘\t’ that cannot start any token while scanning for the next token

my appdaemon.yaml file looks like
appdaemon:
----threads: 10
HASS:
----ha_url: my url
----ha_key: my key

Anybody have any idea what im doing wrong?

There is a tab character hidden in there somewhere messing with the indentation.

so when i enter my code i enter
appdaemon:
(tab)threads:(space)10

i’m not sure where i went wrong unless i’m not suppose to tab

Use spaces instead of tabs and you should be good to go.

1 Like

yup apparently that was it, i’ve been using tab everywhere else, so i didn’t think it would matter

Should i not be using tab when enter code, just use 4 spaces everytime

YAML can be picky, I stick to spaces and it doesn’t give me as much trouble :wink:

Python doesn;t care as long as you are consistent but I use spaces for python too

ok, so that took me one step forward now i get

traceback (most recent call last):
–File"/usr/local/bin/appdaemon", line 11 in
-----sys.exit(main())
–File “/usr/local/lib/pyton3.5/dist-packages/appdaemon/admin.py”, line 230, in main
---------conf.logfile = config[‘Appdaemon’].get('logfile")
keyerror: ‘AppDaemon’

What version are you running? Looks like you are running 2.x but using the docs for 3.x beta

Docs for 2.x are here:

http://appdaemon.readthedocs.io/en/2.1.12/

pretty sure i’m using the 2.x docs. I scrolled through the ones i had open and the ones you just linked and they are the same.

Then you’re missing the AppDaemon section in your config file.

your saying the appdaemon.yaml file correct or are you talking about a file that should have been created during the install of appdaemon

Yes, appdaemon.yaml should have an AppDaemon section in it.

ok i’m stupid i had put appdaemon: lower case, when i changed it to AppDaemon it worked.

Thanks for all your help much appreciated