Hi @ReneTode! Thank you for your help.
I deleted all Kodi entries and removed kodi.py from AppDaemon folder and tried to start the addon.
The log full log:
DEBUG: Requested API resource: http://hassio/supervisor/ping
DEBUG: API HTTP Response code: 200
DEBUG: API Response: {"result": "ok", "data": {}}
DEBUG: Requested API resource: http://hassio/addons/a0d7b954_appdaemon/info
DEBUG: API HTTP Response code: 200
DEBUG: API Response: {"result": "ok", "data": {"name": "AppDaemon", "description": "Python Apps and HADashboard for Home Assistant", "long_description": "# Community Hass.io Add-ons: AppDaemon\n\nThis is just a configuration stub to make the Hass.io repository work.\n\nThe add-on itself can be found at the following URL:\n\n<https://github.com/hassio-addons/addon-appdaemon>\n", "version": "0.4.0", "auto_update": false, "repository": "a0d7b954", "last_version": "0.4.0", "state": "started", "boot": "auto", "options": {"log_level": "debug", "commtype": "websockets", "system_packages": [], "python_packages": []}, "url": "https://community.home-assistant.io/t/community-hass-io-add-on-appdaemon/33823?u=frenck", "detached": false, "build": false, "network": {"5050/tcp": 5050}, "host_network": false, "host_ipc": false, "host_dbus": false, "privileged": null, "devices": null, "logo": false, "changelog": false, "webui": "http://[HOST]:5050", "stdin": false, "hassio_api": true, "homeassistant_api": true, "gpio": false, "audio": false, "audio_input": null, "audio_output": null}}
DEBUG: Filtering response using: .version
DEBUG: Requested API resource: http://hassio/addons/a0d7b954_appdaemon/info
DEBUG: API HTTP Response code: 200
DEBUG: API Response: {"result": "ok", "data": {"name": "AppDaemon", "description": "Python Apps and HADashboard for Home Assistant", "long_description": "# Community Hass.io Add-ons: AppDaemon\n\nThis is just a configuration stub to make the Hass.io repository work.\n\nThe add-on itself can be found at the following URL:\n\n<https://github.com/hassio-addons/addon-appdaemon>\n", "version": "0.4.0", "auto_update": false, "repository": "a0d7b954", "last_version": "0.4.0", "state": "started", "boot": "auto", "options": {"log_level": "debug", "commtype": "websockets", "system_packages": [], "python_packages": []}, "url": "https://community.home-assistant.io/t/community-hass-io-add-on-appdaemon/33823?u=frenck", "detached": false, "build": false, "network": {"5050/tcp": 5050}, "host_network": false, "host_ipc": false, "host_dbus": false, "privileged": null, "devices": null, "logo": false, "changelog": false, "webui": "http://[HOST]:5050", "stdin": false, "hassio_api": true, "homeassistant_api": true, "gpio": false, "audio": false, "audio_input": null, "audio_output": null}}
DEBUG: Filtering response using: .last_version
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 03-version-requirements.sh: executing...
DEBUG: Requested API resource: http://hassio/supervisor/ping
DEBUG: API HTTP Response code: 200
DEBUG: API Response: {"result": "ok", "data": {}}
DEBUG: Requested API resource: http://hassio/supervisor/info
DEBUG: API HTTP Response code: 200
DEBUG: API Response: {"result": "ok", "data": {"version": "0.82", "last_version": "0.83", "beta_channel": false, "arch": "armhf", "wait_boot": 5, "timezone": "[wonderland]", "addons": [{"name": "Pi-hole", "slug": "a0d7b954_pi-hole", "description": "Network-wide ad blocking using your Hass.io instance", "state": "started", "version": "0.5.0", "installed": "0.5.0", "repository": "a0d7b954", "logo": false}, {"name": "Samba share", "slug": "core_samba", "description": "Expose Hass.io folders with SMB/CIFS", "state": "started", "version": "3.0", "installed": "3.0", "repository": "core", "logo": true}, {"name": "SSH server", "slug": "core_ssh", "description": "Allows connections over SSH", "state": "started", "version": "3.0", "installed": "3.0", "repository": "core", "logo": true}, {"name": "AppDaemon", "slug": "a0d7b954_appdaemon", "description": "Python Apps and HADashboard for Home Assistant", "state": "started", "version": "0.4.0", "installed": "0.4.0", "repository": "a0d7b954", "logo": false}, {"name": "Duck DNS", "slug": "core_duckdns", "description": "Free Dynamic DNS (DynDNS or DDNS) service with Let's Encrypt support", "state": "started", "version": "1.0", "installed": "1.0", "repository": "core", "logo": true}, {"name": "Mosquitto broker", "slug": "core_mosquitto", "description": "An Open Source MQTT broker", "state": "started", "version": "1.0", "installed": "1.0", "repository": "core", "logo": true}], "addons_repositories": ["https://github.com/hassio-addons/repository", "https://github.com/bestlibre/hassio-addons", "https://github.com/sparck75/hassio-addons", "https://github.com/vkorn/hassio-addons"]}}
DEBUG: Filtering response using: .version
DEBUG: Current Supervisor version: 0.82
DEBUG: Supervisor version condition: >=0.77.0
INFO: Supervisor version requirements checks passed.
[cont-init.d] 03-version-requirements.sh: exited 0.
[cont-init.d] 20-init-configuration.sh: executing...
[cont-init.d] 20-init-configuration.sh: exited 0.
[cont-init.d] 21-compiled-dir.sh: executing...
[cont-init.d] 21-compiled-dir.sh: exited 0.
[cont-init.d] 50-compiled-symlink.sh: executing...
[cont-init.d] 50-compiled-symlink.sh: exited 0.
[cont-init.d] 80-system-packages.sh: executing...
[cont-init.d] 80-system-packages.sh: exited 0.
[cont-init.d] 81-python-packages.sh: executing...
[cont-init.d] 81-python-packages.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
starting version 3.2.4
[services.d] done.
2018-01-19 12:21:55.028690 INFO AppDaemon Version 2.1.12 starting
2018-01-19 12:21:55.029289 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2018-01-19 12:21:55.029783 DEBUG AppDaemon Section: {'logfile': 'STDOUT', 'errorfile': 'STDERR', 'threads': 10, 'app_dir': '/config/appdaemon/apps', 'path_ha_conf': '/config', 'api_port': 5050, 'cert_verify': True, 'cert_path': '/ssl/cert.pem', 'api_ssl_certificate': '/ssl/fullchain.pem', 'api_ssl_key': '/ssl/privkey.pem'}
2018-01-19 12:21:55.030276 DEBUG Hass Section: {'type': 'hass', 'ha_url': 'http://hassio/homeassistant', 'ha_key': '[redacted]'}
2018-01-19 12:21:55.031794 DEBUG HADashboard Section: {'dash_url': 'http://[hass.io.internal.ip]:5050', 'dash_dir': '/config/appdaemon/dashboards'}
2018-01-19 12:21:55.032670 DEBUG Calling HA for config with key: [Hass.io Password] and url: http://hassio/homeassistant
2018-01-19 12:21:55.033152 DEBUG get_ha_config()
2018-01-19 12:21:55.033620 DEBUG get_ha_config: url is http://hassio/homeassistant/api/config
2018-01-19 12:21:55.433555 DEBUG Success
2018-01-19 12:21:55.434107 DEBUG {'components': ['alarm_control_panel.manual_mqtt', 'browser', 'xiaomi_aqara', 'light.xiaomi_aqara', 'media_player.cast', 'weather.buienradar', 'frontend', 'system_log', 'media_player.kodi', 'history', 'mqtt', 'logbook', 'sun', 'config.core', 'config', 'switch.xiaomi_aqara', 'binary_sensor.xiaomi_aqara', 'light', 'input_select', 'updater', 'discovery', 'config.group', 'switch', 'panel_iframe', 'climate', 'script', 'telegram_bot', 'cover.xiaomi_aqara', 'hue', 'input_number', 'binary_sensor.mqtt', 'sensor.mqtt', 'alarm_control_panel', 'climate.generic_thermostat', 'api', 'conversation', 'weather', 'automation', 'media_player.universal', 'binary_sensor', 'light.yeelight', 'emulated_hue', 'zone', 'tts', 'config.script', 'google_assistant', 'switch.mqtt', 'media_player', 'light.mqtt_json', 'sensor.xiaomi_aqara', 'config.automation', 'input_boolean', 'cover', 'notify', 'http', 'hassio', 'binary_sensor.workday', 'device_tracker', 'websocket_api', 'config.customize', 'sensor', 'recorder', 'group'], 'config_dir': '/config', 'elevation': [xx], 'latitude': [latitude], 'location_name': 'SmartHome RiPatZ', 'longitude': [longitude], 'time_zone': 'wonderland', 'unit_system': {'length': 'km', 'mass': 'g', 'temperature': '°C', 'volume': 'L'}, 'version': '0.61.1', 'whitelist_external_dirs': ['/share/test', '/config/www']}
2018-01-19 12:21:55.674963 INFO Starting Apps
2018-01-19 12:21:55.675624 DEBUG Entering run()
2018-01-19 12:21:55.762542 DEBUG Creating worker threads ...
2018-01-19 12:21:55.768808 DEBUG Done
2018-01-19 12:21:55.769351 DEBUG Calling HA for initial state with key: [Hass.io Password] and url: http://hassio/homeassistant
2018-01-19 12:21:55.770506 DEBUG Refreshing HA state
2018-01-19 12:21:55.771663 DEBUG get_ha_state: url is http://hassio/homeassistant/api/states
2018-01-19 12:21:55.843955 INFO Got initial state
2018-01-19 12:21:55.844857 DEBUG Reading Apps
2018-01-19 12:21:55.846250 INFO Loading Module: /config/appdaemon/apps/hello.py
2018-01-19 12:21:55.848977 INFO Loading Object hello_world using class HelloWorld from module hello
2018-01-19 12:21:56.181268 INFO hello_world: Hello from AppDaemon
2018-01-19 12:21:56.186039 INFO hello_world: You are now ready to run Apps!
2018-01-19 12:21:56.187594 INFO App initialization complete
2018-01-19 12:21:56.188167 DEBUG Starting timer loop
2018-01-19 12:21:56.188963 INFO Starting dashboard
2018-01-19 12:21:56.205693 INFO Starting API
2018-01-19 12:21:56.214234 DEBUG Start Loop
2018-01-19 12:21:56.229549 WARNING Disconnected from Home Assistant, retrying in 5 seconds
2018-01-19 12:21:56.230071 WARNING ------------------------------------------------------------
2018-01-19 12:21:56.230475 WARNING Unexpected error:
2018-01-19 12:21:56.230938 WARNING ------------------------------------------------------------
2018-01-19 12:21:56.232614 WARNING Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py", line 1213, in appdaemon_loop
result["ha_version"]))
KeyError: 'ha_version'
2018-01-19 12:21:56.233170 WARNING ------------------------------------------------------------
2018-01-19 12:21:57.005611 DEBUG Main loop compute time: 3.0ms
My Appdaemon addon settings are:
{
"log_level": "debug",
"commtype": "websockets",
"system_packages": [],
"python_packages": []
}
App.yaml
hello_world:
module: hello
class: HelloWorld
And my Appdaemon.yaml:
AppDaemon:
logfile: STDOUT
errorfile: STDERR
threads: 10
app_dir: /config/appdaemon/apps
path_ha_conf: /config
api_port: 5050
cert_verify: True
cert_path: /ssl/cert.pem
api_ssl_certificate: /ssl/fullchain.pem
api_ssl_key: /ssl/privkey.pem
HASS:
type: hass
ha_url: http://hassio/homeassistant
ha_key: [Hass.io Password]
HADashboard:
dash_url: http://[hass.io.internal.ip]:5050
dash_dir: /config/appdaemon/dashboards
# Apps
hello_world:
module: hello
class: HelloWorld