Appdaemon 4.0.3 config file

Is there an example config anywhere? I just inadvertently pulled the 4.x container and it broke my whole house. I’ve added the things it’s complaining about but its still broken. The docs seem to be of little help.

logs:
  error_log:
    filename: /conf/errors.log
    log_generations: 1
  main_log:
    filename: /conf/appdaemon.log
    log_generations: 1
appdaemon:
  threads: 10
  app_dir: /conf/apps
  latitude: xxxx.xxxx
  longitude: -xxxx.xxxx
  elevation: xx
  time_zone: us/pacific
  plugins:
    HASS:
      type: hass
      ha_url: http://xxxx:8123
      token: xxxx
#hadashboard:
#  dash_url: http://127.0.0.1:5050

new logs stuff works but still complaining

2020-03-08 09:35:11.779704 INFO AppDaemon: Added log: AppDaemon
2020-03-08 09:35:11.779756 INFO AppDaemon: Added log: Error
2020-03-08 09:35:11.779796 INFO AppDaemon: Added log: Access
2020-03-08 09:35:11.779840 INFO AppDaemon: Added log: Diag
2020-03-08 09:35:11.779885 ERROR AppDaemon: time_zone not specified in appdaemon.cfg
2020-03-08 09:35:11.779931 ERROR AppDaemon: latitude not specified in appdaemon.cfg
2020-03-08 09:35:11.779973 ERROR AppDaemon: longitude not specified in appdaemon.cfg
2020-03-08 09:35:11.780017 ERROR AppDaemon: elevation not specified in appdaemon.cfg
1 Like

hmm…got past that with quoting, also documented here:
https://appdaemon.readthedocs.io/en/latest/UPGRADE_FROM_3.x.html

But now all of my apps are broken like so:

2020-03-08 09:43:02.187302 WARNING AppDaemon: Unable to find module bedroom - initialize() skipped

This was a working 3.x config using the docker container.

Apps_dir looks right to me. All of my apps are mounted at /conf/apps and the apps.yaml is in there too.

Perhaps related?

https://github.com/home-assistant/appdaemon/issues/845
https://github.com/home-assistant/appdaemon/issues/844

Maybe the claimed fix has not been pushed to the docker img? Dunno. I’m reverting.

also:

  File "/usr/local/lib/python3.8/site-packages/appdaemon/app_management.py", line 279, in init_object
    "object": app_class(
  File "/usr/local/lib/python3.8/site-packages/appdaemon/plugins/hass/hassapi.py", line 46, in __init__
    adbase.ADBase.__init__(self, ad, name, logging, args, config, app_config, global_vars)
  File "/usr/local/lib/python3.8/site-packages/appdaemon/adbase.py", line 75, in __init__
    self.dashboard_dir = self.AD.http.dashboard_dir
AttributeError: 'NoneType' object has no attribute 'dashboard_dir'

Woo got it working.
had to add the http component:

http:
  url: http://0.0.0.0:5050
  password: foo