Appdaemon unable to find modules while initializing

Hi everyone.

First off im new to this forum as i just recently switched from openhab. I’ve been testing alot these past days trying to integrate all my stuff.

I am therefore not familiar with homeassistant nor its syntax and this is probably the issue. I have been searching for a solution all over the internet.

I am trying to use Appdaemon to run a couple of apps but without any luck.

This is my setup:
HassOS 3.12 Production running on the “official” vmdk running on ESXi 6.7.

It is running Home Assistant v. 0.107.4

I have installed AppDaemon 4 through HACS and although it was automatic i still had to configure it manually.

The module i am mainly focusing on getting to work is AutoMoLi which is also installed through Hacs(https://github.com/benleb/ad-automoli).

The configuration is based on the given example by the author.

Here is the my appdaemon.yaml. (# is censored)

appdaemon:
  time_zone: Europe/Copenhagen
  latitude: #
  longitude: #
  elevation: 35
  plugins:
    HASS:
      type: hass
      ha_url: "http://192.168.1.165:8123"
      token: "#"

Here is my apps.yaml

check_config:
  module: checkconfig
  class: CheckConfig
  
Livingroom:
  module: automoli
  class: AutoMoLi
  room: Oliver
  delay: 600
  daytimes:
    - { starttime: "05:30", name: morning, light: "Morning" }
    - { starttime: "07:30", name: day, light: "Working" }
    - { starttime: "20:30", name: evening, light: 90 }
    - { starttime: "22:30", name: night, light: 20 }
    - { starttime: "23:30", name: more_night, light: 0 }
  lights:
    - light.loft_2
    - light.loft_1
  motion:
    - binary_sensor.pir_1
  humidity:
    - sensor.aeon_labs_zw100_multisensor_6_relative_humidity

And last but not least the error log for AppDaemon:

[15:08:43] INFO: Starting AppDaemon...
2020-03-21 15:08:44.590201 INFO AppDaemon: AppDaemon Version 4.0.3 starting
2020-03-21 15:08:44.590422 INFO AppDaemon: Python version is 3.8.2
2020-03-21 15:08:44.590954 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml
2020-03-21 15:08:44.591192 INFO AppDaemon: Added log: AppDaemon
2020-03-21 15:08:44.591450 INFO AppDaemon: Added log: Error
2020-03-21 15:08:44.591660 INFO AppDaemon: Added log: Access
2020-03-21 15:08:44.591786 INFO AppDaemon: Added log: Diag
2020-03-21 15:08:44.614369 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2020-03-21 15:08:44.646482 INFO HASS: HASS Plugin Initializing
2020-03-21 15:08:44.646618 INFO HASS: HASS Plugin initialization complete
2020-03-21 15:08:44.647022 INFO AppDaemon: HTTP is disabled
2020-03-21 15:08:44.654220 INFO HASS: Connected to Home Assistant 0.107.4
2020-03-21 15:08:44.667088 INFO AppDaemon: App 'check_config' added
2020-03-21 15:08:44.667403 INFO AppDaemon: App 'Livingroom' added
2020-03-21 15:08:44.667806 INFO AppDaemon: Found 2 total apps
2020-03-21 15:08:44.668083 INFO AppDaemon: Starting Apps with 2 workers and 2 pins
2020-03-21 15:08:44.676108 INFO HASS: Evaluating startup conditions
2020-03-21 15:08:44.680050 INFO AppDaemon: Got initial state from namespace default
2020-03-21 15:08:46.671703 INFO AppDaemon: Scheduler running in realtime
2020-03-21 15:08:46.673182 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2020-03-21 15:08:46.673492 INFO AppDaemon: Adding /config/appdaemon/apps/ad-automoli to module import path
2020-03-21 15:08:46.673738 INFO AppDaemon: Adding /config/appdaemon/apps/Night-Mode to module import path
2020-03-21 15:08:46.673976 INFO AppDaemon: Adding /config/appdaemon/apps/config-check to module import path
2020-03-21 15:08:46.675620 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/ad-automoli/automoli.py
2020-03-21 15:08:47.694654 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/Night-Mode/nightmode.py - ignoring
2020-03-21 15:08:47.695273 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/config-check/checkconfig.py
2020-03-21 15:08:47.697136 INFO AppDaemon: Initializing app check_config using class CheckConfig from module checkconfig
2020-03-21 15:08:47.697628 WARNING check_config: ------------------------------------------------------------
2020-03-21 15:08:47.697817 WARNING check_config: Unexpected error initializing app: check_config:
2020-03-21 15:08:47.697999 WARNING check_config: ------------------------------------------------------------
2020-03-21 15:08:47.716028 WARNING check_config: Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 820, in check_app_updates
    await self.init_object(app)
  File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 279, in init_object
    "object": app_class(
  File "/usr/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/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'
2020-03-21 15:08:47.716510 WARNING check_config: ------------------------------------------------------------
2020-03-21 15:08:47.716701 INFO AppDaemon: Initializing app Livingroom using class AutoMoLi from module automoli
2020-03-21 15:08:47.717329 WARNING Livingroom: ------------------------------------------------------------
2020-03-21 15:08:47.717522 WARNING Livingroom: Unexpected error initializing app: Livingroom:
2020-03-21 15:08:47.717694 WARNING Livingroom: ------------------------------------------------------------
2020-03-21 15:08:47.717937 WARNING Livingroom: Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 820, in check_app_updates
    await self.init_object(app)
  File "/usr/lib/python3.8/site-packages/appdaemon/app_management.py", line 279, in init_object
    "object": app_class(
  File "/usr/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/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'
2020-03-21 15:08:47.718336 WARNING Livingroom: ------------------------------------------------------------
2020-03-21 15:08:47.718664 WARNING AppDaemon: Unable to find module check_config - initialize() skipped
2020-03-21 15:08:47.718943 WARNING AppDaemon: Unable to find module Livingroom - initialize() skipped
2020-03-21 15:08:47.719353 INFO AppDaemon: App initialization complete

Any help solving this would be greatly appreciated.

If you need further information please ask.

Thanks in advance.

Add this to appdaemon.yaml

http:
  url: http://192.168.1.165:5050
api: