App daemon run error

hi guys
please could someone help me. ive install appdaemon via pip3 and created a conf folder in my HA folder with two files
appdaemon.yaml which has the following:

AppDaemon:
  logfile: STDOUT
  errorfile: STDERR
  logsize: 100000
  log_generations: 3
  threads: 10
  cert_path: 
  cert_verify: True
  timezone: = <timezone>
  api_port: 5000
  api_key: 
  api_ssl_certificate: 
  api_ssl_key: 
HASS:
  ha_url: http://192.168.0.13:8123
  ha_key: xxxxx

and an app.yaml with the following:
hello_world:
module: hello
class: HelloWorld
i then created an app folder and placed the hello.py in it

i then ran the following command
$ appdaemon -c /home/homeassistant/conf

and i get the following error

Traceback (most recent call last):
  File "/usr/local/bin/appdaemon", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.4/dist-packages/appdaemon/admain.py", line 198, i                                                                                                                                                             
  n main
    config.read_file(open(config_file_conf))
TypeError: invalid file: None

what have i done wrong :frowning:

i think that the user which is running appdaemon doesnt have read/write access in your conf dir.

and i think its wise to set your logfile and errorfile to a file where AD has writeaccess.
cert_verify to true with an empty cert_path could also give a problem.

1 Like

Remove these entries and I was told there is a defect with the usage of ha_key.

As Rene mentioned check read/write access to conf folder. You didn’t mention about on which OS you are running appdaemon.

If you are running on Raspberry Pi and under ‘pi’ account then run something like this and try again.

sudo chown pi conf

1 Like

there is no problem with ha_key but with dash_password.

1 Like

Thank you for the help guys.

I’m running it on a RPI I’ll try the suggestion and report back

Ah…Thanks for clarifying this.

I don’t know how I messed up but after a full reinstall of my pi3 I’m have all seems okay I get the Hello world
Thanks guys

1 Like