Error NoneType and no app is working

I upgrade to the latest Appdaemon version and am struggling getting my apps up and running again.

Here is what I have done so far.

  1. Changes the config to the new YAML format
  2. Moved my app configs to the apps.yaml
  3. Removed all my apps and tried the Hello World example

However, whenever I save the apps.yaml, I get an error in my log file

> 2017-10-15 08:38:35.163570 WARNING ------------------------------------------------------------
> 2017-10-15 08:38:59.026801 WARNING ------------------------------------------------------------
> 2017-10-15 08:38:59.027641 WARNING Unexpected error:
> 2017-10-15 08:38:59.028262 WARNING ------------------------------------------------------------
> 2017-10-15 08:38:59.029067 WARNING Traceback (most recent call last):
>   File "/usr/local/lib/python3.4/dist-packages/appdaemon/appdaemon.py", line 824, in check_config
>     for name in conf.app_config:
> TypeError: 'NoneType' object is not iterable
> 
> 2017-10-15 08:38:59.029619 WARNING ------------------------------------------------------------

Here is my appdaemon.yaml (Note that the spaces did not get copied properly, but they are fine):

AppDaemon:
app_dir: /var/lib/appdaemon/conf/apps
errorfile: /var/lib/appdaemon/conf/error.log
logfile: /var/lib/appdaemon/conf/appdaemon.log
threads: β€˜10’
HASS:
ha_url: http://localhost:8123
HADashboard: {}

Here is my apps.yaml

hello_world:
module: hello
class: HelloWorld

you are missing 1 argument in appdaemon.yaml

i dont know which one will cause this error, but it could be the ha_key

so this could solve the problem:

  ha_key: ""

if thats not it then look in the docs which arguments there are.
1 off them is needed and you dont have it.

HA_KEY according to the documentation is optional and can be removed if not needed.

looking at the code from appdaemon.py it looks like something way more fundamental is wrong, but I can’t find the root cause.

threads should be a number and not an string. but thats not causing a none type.
i suspect that this line is bugging.

HADashboard: {}

it says that you want to use the dashboard but you dont give the needed info.

i would delete it or activate it by setting the needed info.
dash_url isnt optional if appdaemon thinks you want to use the dashboards.

1 Like

Thank, that was the solution !

I have to test if both topics caused the chaos or only one of them, but fixing both topics brings back Appdaemon.