Community Hass.io Add-on: AppDaemon 3

i did take a quick look in the code and it seems like that the sensor widget isnt the same as the others.
it seems that you can use “state_text” instead of “state_map”

@aimc if i am correct, then please change it in the code or in the docs

:tada: Release v1.0.0

First stable release containing the first AppDaemon 3.0.0 stable release!
Thanks to @aimc for all his hard work on this!

Full Changelog

Changed

  • Updates AppDaemon to version 3.0.0 (#9) (@acockburn)
2 Likes

Just updated from 0.3.0 to 1.0.0

Everything is working fine so far! Thank you.

@frenck, you full change log link is pointing to the wrong place…

Euhm no, it is not. This topic is about the add-on, the changelog links to the add-on changelog… Seems legit :sunny:

Sorry, i was expecting a list of new or changed stuff like you have on your fist post.

what you were looking for is here:

this topic is about the addon, which is the connection between hassio and appdaemon.

1 Like

That’s it! Thank you.

1 Like

Hi everyone!

Is there anyway to use “Time Travel” feature of AppDaemon3 with this Add-on?

Working with a lot of sunset/sunrise automations, and waking up at 7am just to check my scripts is maybe not the most flexible option :joy:

Thanks for your help !

if i am correct then its not possible to start appdaemon from the commandline in a terminal with hassio.
hassio is created to have a simple environment with a lot of options, but off course when you choose such a thing you also get some disadvantages.

Hi,
Since the announcement that Appdaemon 3 was out and Version 2 was depreciated I have spent many hours installing and uninstalling to try and get it to work. I am using the latest updated version of Hassio . At first I could see folders within the AppDaemon folder but since tonight there is nothing there. So, please can I check if the sub folders appear in the AppDaemon folder (in the config main folder) when I install the add-on or I have to add them myself. This may seem a damn question but I would like to ask it before I scream. I have done searches over the past couple of weeks to get this to work. From the pictures I’ve seen this looks great.

Here is the log with errors from restarting hassio
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 154, in main
with open(config_file_yaml, ‘r’) as yamlfd:
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/appdaemon/appdaemon.yaml’
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 365, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 154, in main
with open(config_file_yaml, ‘r’) as yamlfd:
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/appdaemon/appdaemon.yaml’
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 365, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 154, in main
with open(config_file_yaml, ‘r’) as yamlfd:
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/appdaemon/appdaemon.yaml’
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 365, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 154, in main
with open(config_file_yaml, ‘r’) as yamlfd:
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/appdaemon/appdaemon.yaml’
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 365, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 154, in main
with open(config_file_yaml, ‘r’) as yamlfd:
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/appdaemon/appdaemon.yaml’
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 365, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 154, in main
with open(config_file_yaml, ‘r’) as yamlfd:
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/appdaemon/appdaemon.yaml’
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 365, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 154, in main
with open(config_file_yaml, ‘r’) as yamlfd:
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/appdaemon/appdaemon.yaml’
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 365, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 154, in main
with open(config_file_yaml, ‘r’) as yamlfd:
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/appdaemon/appdaemon.yaml’
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 365, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 154, in main
with open(config_file_yaml, ‘r’) as yamlfd:
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/appdaemon/appdaemon.yaml’
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 365, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 154, in main
with open(config_file_yaml, ‘r’) as yamlfd:
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/appdaemon/appdaemon.yaml’
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 365, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 154, in main
with open(config_file_yaml, ‘r’) as yamlfd:
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/appdaemon/appdaemon.yaml’
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 365, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 154, in main
with open(config_file_yaml, ‘r’) as yamlfd:
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/appdaemon/appdaemon.yaml’
Traceback (most recent call last):
File “/usr/bin/appdaemon”, line 11, in
sys.exit(main())
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 365, in main
admain.main()
File “/usr/lib/python3.6/site-packages/appdaemon/admain.py”, line 154, in main
with open(config_file_yaml, ‘r’) as yamlfd:
FileNotFoundError: [Errno 2] No such file or directory: ‘/config/appdaemon/appdaemon.yaml’

Thanks

with a first install the files are probably created, but reinstalling is always tricky.

at least make sure that this /config/appdaemon/appdaemon.yaml file exist and has the right configuration.

When I check the files via samba /config/appdaemon/ exists but nothing shows within the folder/directory which appears empty. I just tried reinstalling with nothing still showing and same log as above.

like i said it could be that reinstalling gives trouble.
you could try to create the needed files and directory structure yourselve.

Thanks, I will try that. I’ll do some research in doing that. I cann’t fully remember what should be there.

: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.