Community Hass.io Add-on: AppDaemon 3

:tada: Release v1.0.1

Full Changelog

Changed

  • Updates AppDaemon to version 3.0.1 (#12) (@acockburn)
1 Like

@frenck Why I cannot access to homeassistant.component?

from homeassistant.components.media_player.kodi import (
EVENT_KODI_CALL_METHOD_RESULT)

Error:
ModuleNotFoundError: No module named 'homeassistant'

That module is not required by AppDaemon as far as I know, so it is not in by default.

@aimc? It my assumption correct?

Correct - that is for the native hass python api if I recall, which has nothing to do with homeassistant.

In a non hass.io install running in the same host as hass this would work.

thanks!! @frenck and @aimc

1 Like

today i noticed my dashboard doesn’t load anymore. a reload of the dashboard now results in a page not found. Did not make changes the last 4 days in appdeamon/hassio.
the error states i need 0.85 of the supervisor and a newer one is installed.
Do i need to reinstall appdeamon3?

Logfile:
> [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
> [s6-init] ensuring user provided files have correct perms...exited 0.
> [fix-attrs.d] applying ownership & permissions fixes...
> [fix-attrs.d] done.
> [cont-init.d] executing container initialization scripts...
> [cont-init.d] 00-banner.sh: executing... 
> 
> -----------------------------------------------------------
>  Hass.io Add-on: AppDaemon3 v1.0.1
> 
>  Python Apps and HADashboard using AppDaemon 3.x for Home Assistant
> 
>  From: Community Hass.io Add-ons
>  By: Franck Nijhof <[email protected]>
> -----------------------------------------------------------
> [cont-init.d] 00-banner.sh: exited 0.
> [cont-init.d] 01-log-level.sh: executing... 
> Log level is set to INFO
> [cont-init.d] 01-log-level.sh: exited 0.
> [cont-init.d] 02-updates.sh: executing... 
> 
> 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... 
> 
> Version 103 is not a valid version.Error: "No Major.Minor.Patch elements found"FATAL: You Supervisor version is: 103
> FATAL: This add-on requires: >=0.85.0
> FATAL: Please consider upgrading.
> [cont-init.d] 03-version-requirements.sh: exited 1.
> [cont-finish.d] executing container finish scripts...
> [cont-finish.d] 50-compiled-symlink.sh: executing... 
> [cont-finish.d] 50-compiled-symlink.sh: exited 0.
> [cont-finish.d] 99-message.sh: executing... 
> -----------------------------------------------------------
>                 Oops! Something went wrong.
>  
>  We are so sorry, but something went terribly wrong when
>  starting or running this add-on.
>  
>  Be sure to check the log above, line by line, for hints.
> -----------------------------------------------------------
> [cont-finish.d] 99-message.sh: exited 0.
> [cont-finish.d] done.
> [s6-finish] syncing disks.
> [s6-finish] sending all processes the TERM signal.

I am having the same problem as Alex here. I have not changed anything or updated anything and this started happening. Same error I tried updating hassio from 65.5. to the latest version 68.1 hoping that would help but no luck I now get the following error.

2018-05-05 18:57:47.140122 INFO AppDaemon Version 3.0.1 starting
2018-05-05 18:57:47.140743 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2018-05-05 18:57:47.144269 INFO AppDaemon: Starting Apps
2018-05-05 18:57:47.152375 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-05-05 18:57:47.192811 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-05-05 18:57:47.193852 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-05-05 18:57:47.194908 INFO Starting Dashboards
2018-05-05 18:57:47.217659 INFO API is disabled
2018-05-05 18:57:47.238576 INFO AppDaemon: HASS: Connected to Home Assistant 0.68.1
2018-05-05 18:57:47.711923 WARNING AppDaemon: HASS: Error getting metadata
2018-05-05 18:57:47.713437 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-05-05 18:57:52.752989 INFO AppDaemon: HASS: Connected to Home Assistant 0.68.1
2018-05-05 18:57:53.322348 WARNING AppDaemon: HASS: Error getting metadata
2018-05-05 18:57:53.323807 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-05-05 18:57:54.306428 ERROR AppDaemon: Required attribute not set or obtainable from any plugin: latitude
2018-05-05 18:57:54.308171 ERROR AppDaemon: AppDaemon is terminating
2018-05-05 18:57:54.316159 ERROR AppDaemon: Required attribute not set or obtainable from any plugin: longitude
2018-05-05 18:57:54.317467 ERROR AppDaemon: AppDaemon is terminating
2018-05-05 18:57:54.319659 ERROR AppDaemon: Required attribute not set or obtainable from any plugin: elevation
2018-05-05 18:57:54.321155 ERROR AppDaemon: AppDaemon is terminating
2018-05-05 18:57:54.323099 ERROR AppDaemon: Required attribute not set or obtainable from any plugin: time_zone
2018-05-05 18:57:54.324801 ERROR AppDaemon: AppDaemon is terminating
2018-05-05 18:57:58.330050 INFO AppDaemon: HASS: Disconnecting from Home Assistant
2018-05-05 18:57:58.333504 INFO AppDeamon Exited

1 Like

Added latitude longitude elevation and timezone to my appdaemon.yaml file and restarted now getting this error.

2018-05-05 19:05:55.417578 WARNING AppDaemon: ------------------------------------------------------------
2018-05-05 19:05:55.440263 WARNING AppDaemon: HASS: Error getting metadata
2018-05-05 19:05:55.441663 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-05-05 19:06:00.474063 INFO AppDaemon: HASS: Connected to Home Assistant 0.68.1
2018-05-05 19:06:01.055777 WARNING AppDaemon: ------------------------------------------------------------
2018-05-05 19:06:01.056842 WARNING AppDaemon: Unexpected error during utility()
2018-05-05 19:06:01.058429 WARNING AppDaemon: ------------------------------------------------------------
2018-05-05 19:06:01.060492 WARNING AppDaemon: Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py”, line 1424, in utility
if datetime.datetime.now() - self.last_plugin_state[plugin] > datetime.timedelta(
KeyError: ‘default’

Having issues with AppDaemon3 as well.

2018-05-05 18:57:14.314234 WARNING AppDaemon: HASS: Error getting metadata

1 Like

Yep. Same exact issue here. All was working fine until today. Is it broken for everyone?

1 Like

I too am getting the same error

This has been broken due to a change in the output of the Hass.io Supervisor API, which is shipped with Supervisor 103.

This change has been reverted in Supervisor 103.1. To update do the following:

If you are running 103 or older, an update button would appear right after. Hit it, to install the Supervisor 103.1. After this is done, everything will function normally again.

If issues after this upgrade still remain, please let me know.

Thanks, but this doesn’t seem to fix the isuee, now I get the following error instead

2018-05-06 07:16:29.651741 INFO AppDaemon: HASS: Connected to Home Assistant 0.68.1
2018-05-06 07:16:29.739246 WARNING AppDaemon: HASS: Error getting metadata
2018-05-06 07:16:29.741027 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-05-06 07:16:32.528462 INFO HADashboard: New dashboard connected: Landscape Panel
2018-05-06 07:16:34.774916 INFO AppDaemon: HASS: Connected to Home Assistant 0.68.1
2018-05-06 07:16:34.865738 WARNING AppDaemon: HASS: Error getting metadata
2018-05-06 07:16:34.869992 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds

@Wilber Anything in the Supervisor log?

Lots!

    resp = await handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 88, in impl
    return await handler(request)
  File "/usr/lib/python3.6/site-packages/hassio/api/security.py", line 36, in token_validation
    return await handler(request)
  File "/usr/lib/python3.6/site-packages/hassio/api/proxy.py", line 108, in api
    client = await self._api_client(request, path)
  File "/usr/lib/python3.6/site-packages/hassio/api/proxy.py", line 37, in _api_client
    method = getattr(self._websession_ssl, request.method.lower())
  File "/usr/lib/python3.6/site-packages/hassio/coresys.py", line 269, in __getattr__
    raise AttributeError()
AttributeError
18-05-06 06:26:05 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API request initialze
18-05-06 06:26:05 INFO (MainThread) [hassio.api.proxy] Websocket access from a0d7b954_appdaemon3
18-05-06 06:26:05 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API request running
18-05-06 06:26:05 INFO (MainThread) [hassio.api.proxy] /homeassistant/api/config access from a0d7b954_appdaemon3
18-05-06 06:26:05 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 381, in start
    resp = await self._request_handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_app.py", line 322, in _handle
    resp = await handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 88, in impl
    return await handler(request)
  File "/usr/lib/python3.6/site-packages/hassio/api/security.py", line 36, in token_validation
    return await handler(request)
  File "/usr/lib/python3.6/site-packages/hassio/api/proxy.py", line 108, in api
    client = await self._api_client(request, path)
  File "/usr/lib/python3.6/site-packages/hassio/api/proxy.py", line 37, in _api_client
    method = getattr(self._websession_ssl, request.method.lower())
  File "/usr/lib/python3.6/site-packages/hassio/coresys.py", line 269, in __getattr__
    raise AttributeError()
AttributeError
18-05-06 06:26:10 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API request initialze
18-05-06 06:26:10 INFO (MainThread) [hassio.api.proxy] Websocket access from a0d7b954_appdaemon3
18-05-06 06:26:10 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API request running
18-05-06 06:26:10 INFO (MainThread) [hassio.api.proxy] /homeassistant/api/config access from a0d7b954_appdaemon3
18-05-06 06:26:10 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 381, in start
    resp = await self._request_handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_app.py", line 322, in _handle
    resp = await handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 88, in impl
    return await handler(request)
  File "/usr/lib/python3.6/site-packages/hassio/api/security.py", line 36, in token_validation
    return await handler(request)
  File "/usr/lib/python3.6/site-packages/hassio/api/proxy.py", line 108, in api
    client = await self._api_client(request, path)
  File "/usr/lib/python3.6/site-packages/hassio/api/proxy.py", line 37, in _api_client
    method = getattr(self._websession_ssl, request.method.lower())
  File "/usr/lib/python3.6/site-packages/hassio/coresys.py", line 269, in __getattr__
    raise AttributeError()
AttributeError
18-05-06 06:26:15 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API connection is closed
18-05-06 06:26:15 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API connection is closed
18-05-06 06:26:15 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API connection is closed
18-05-06 06:26:15 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API connection is closed
18-05-06 06:26:19 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API request initialze
18-05-06 06:26:19 INFO (MainThread) [hassio.api.proxy] Websocket access from a0d7b954_appdaemon3
18-05-06 06:26:19 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API request running
18-05-06 06:26:19 INFO (MainThread) [hassio.api.proxy] /homeassistant/api/config access from a0d7b954_appdaemon3
18-05-06 06:26:19 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 381, in start
    resp = await self._request_handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_app.py", line 322, in _handle
    resp = await handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 88, in impl
    return await handler(request)
  File "/usr/lib/python3.6/site-packages/hassio/api/security.py", line 36, in token_validation
    return await handler(request)
  File "/usr/lib/python3.6/site-packages/hassio/api/proxy.py", line 108, in api
    client = await self._api_client(request, path)
  File "/usr/lib/python3.6/site-packages/hassio/api/proxy.py", line 37, in _api_client
    method = getattr(self._websession_ssl, request.method.lower())
  File "/usr/lib/python3.6/site-packages/hassio/coresys.py", line 269, in __getattr__
    raise AttributeError()
AttributeError
18-05-06 06:26:24 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API request initialze
18-05-06 06:26:25 INFO (MainThread) [hassio.api.proxy] Websocket access from a0d7b954_appdaemon3
18-05-06 06:26:25 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API request running
18-05-06 06:26:25 INFO (MainThread) [hassio.api.proxy] /homeassistant/api/config access from a0d7b954_appdaemon3
18-05-06 06:26:25 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 381, in start
    resp = await self._request_handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_app.py", line 322, in _handle
    resp = await handler(request)
  File "/usr/lib/python3.6/site-packages/aiohttp/web_middlewares.py", line 88, in impl
    return await handler(request)
  File "/usr/lib/python3.6/site-packages/hassio/api/security.py", line 36, in token_validation
    return await handler(request)
  File "/usr/lib/python3.6/site-packages/hassio/api/proxy.py", line 108, in api
    client = await self._api_client(request, path)
  File "/usr/lib/python3.6/site-packages/hassio/api/proxy.py", line 37, in _api_client
    method = getattr(self._websession_ssl, request.method.lower())
  File "/usr/lib/python3.6/site-packages/hassio/coresys.py", line 269, in __getattr__
    raise AttributeError()
AttributeError

OK that is a new issue, anything in the Supervisor logs?

Sorry, where do I see the supervisor logs?

Hass.io Panel -> System tab

That’s where the above log was from.
Also get
18-05-06 06:33:05 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API connection is closed
18-05-06 06:33:05 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API connection is closed
18-05-06 06:33:05 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API connection is closed
18-05-06 06:33:05 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API connection is closed
18-05-06 06:33:05 INFO (MainThread) [hassio.api.proxy] Home-Assistant Websocket API connection is closed

Sorry, I just woke up… need :coffee:… Thanks m8, I will be looking in to this and get back to you guys asap.