Community Hass.io Add-on: AppDaemon2

I see… Thanks for the info.

Looking at some other add-ons I have running, I see that they have SSL in the add-on config, like so.

{
  "ssl": true,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem"
}

Oh, and thanks for going all crazy with publishing all these add-ons. This is great!

Thanks for this add-on guys!!
Hass.io is really coming on leaps and bounds and this made getting Hadashboard going a breeze.:+1:

I can’t make it works with duckdns+Let’s Encrypt too.
I’ve tryed lots of things…

I used previously the vlad’s version ( https://github.com/vkorn/hassio-addons ) and it worked fine.
Any idea ?

Thx

Tried all this and still not connecting.

With this appdaemon always problems for me. Postponed project

1 Like

any news on add on working with ssl

im getting this but then i cant log in:
2018-01-03 18:51:25.972392 INFO AppDaemon Version 2.1.12 starting
2018-01-03 18:51:25.973187 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2018-01-03 18:51:26.953437 INFO Starting Apps
2018-01-03 18:51:27.834267 INFO Got initial state
2018-01-03 18:51:27.836700 INFO Loading Module: /config/appdaemon/apps/hello.py
2018-01-03 18:51:27.841610 INFO Loading Object hello_world using class HelloWorld from module hello
2018-01-03 18:51:28.154692 INFO hello_world: Hello from AppDaemon
2018-01-03 18:51:28.161455 INFO hello_world: You are now ready to run Apps!
2018-01-03 18:51:28.161967 INFO App initialization complete
2018-01-03 18:51:28.162935 INFO Starting dashboard
2018-01-03 18:51:28.179249 INFO API is disabled
2018-01-03 18:51:28.965954 INFO Connected to Home Assistant 0.60.0

is this cause i got SSL
do i have to foward port 5050?

thanks

edit
ok got it to work i ass portfoward 5050
its working just isnt SSL secure site

Is there any way for the addon have a login page like in homeassistant?

I’m sorry @vMeph, that is currently not possible, this is a limitation to AppDaemon itself.

You can add SSL to the AppDaemon, please refer to the AppDaemon manual for more information about configuring it.

The upcoming version will support the new internal web socket streams exposed by Hass.io.
This would solve these problems all together, so maybe it is time to retry :wink:

:tada: Release: AppDaemon v0.4.0

This release adds full support for an internet WebSocket connection via an proxy that Hass.io now provides!

Recommended for Hass.io users:

  • Change commtype in the add-on config to websockets
  • Change your appdaemon.yml file to use: ha_url: http://hassio/homeassistant

Furthermore, this release allows the installation of custom system & python packages ::smile:

Full Changelog

Added

  • Adds support for installing custom system and Python packages

Changed

  • Pass local CircleCI Docker socket into the build container
  • Use image tagged as test as a cache resource
  • Prevents possible future Docker login issue
  • Upgrades add-on base image to v1.3.1
  • Updated maintenance year, it is 2018

Removed

  • Removes Microbadger notification hooks

This update is now available in your Hass.io panel.

2 Likes

cool
just confused with part changing ha_url: http://hassio/homeassistant
i have at moment ha_url: https://MyName.duckdns.org:8123 and works normal
i have tryed other ways nothing, just trying to figuer out what you mean by http://hassio/homeassistant

point me on right direction?

thanks

HI @frenck,

Is this supposed to be happening? (changed to hassio/homeassistant, and also changed the 127.0.0.1 into hassio/homeassistant, same result):

2018-01-08 19:24:03.176011 INFO Got initial state
2018-01-08 19:24:03.179030 INFO Reloading Module: /config/appdaemon/apps/hello.py
2018-01-08 19:24:03.183584 INFO Loading Object hello_world using class HelloWorld from module hello
2018-01-08 19:24:03.192521 INFO hello_world: Hello from AppDaemon
2018-01-08 19:24:03.200624 INFO hello_world: You are now ready to run Apps!
2018-01-08 19:24:03.201173 INFO App initialization complete
2018-01-08 19:24:03.219680 WARNING Disconnected from Home Assistant, retrying in 5 seconds
2018-01-08 19:24:08.511527 INFO Got initial state
2018-01-08 19:24:08.514023 INFO Reloading Module: /config/appdaemon/apps/hello.py
2018-01-08 19:24:08.517648 INFO Loading Object hello_world using class HelloWorld from module hello
2018-01-08 19:24:08.525100 INFO hello_world: Hello from AppDaemon
2018-01-08 19:24:08.532652 INFO hello_world: You are now ready to run Apps!
2018-01-08 19:24:08.533207 INFO App initialization complete
2018-01-08 19:24:08.549293 WARNING Disconnected from Home Assistant, retrying in 5 seconds
2018-01-08 19:24:13.933602 INFO Got initial state
2018-01-08 19:24:13.935627 INFO Reloading Module: /config/appdaemon/apps/hello.py
2018-01-08 19:24:13.938586 INFO Loading Object hello_world using class HelloWorld from module hello
2018-01-08 19:24:13.945247 INFO hello_world: Hello from AppDaemon
2018-01-08 19:24:13.951498 INFO hello_world: You are now ready to run Apps!
2018-01-08 19:24:13.952021 INFO App initialization complete
2018-01-08 19:24:13.965615 WARNING Disconnected from Home Assistant, retrying in 5 seconds

I have the same issue, see this issue on Github, which also contains a working url.
https://github.com/hassio-addons/addon-appdaemon/issues/7

getting a strange error with regard to the supervisor version. Is this a common issue?

Hi,

I have this add-on mostly working. The Dashborad loads up and there are no error messages. Here are my configs in appdaemon.yaml:

AppDaemon:
  logfile: STDOUT
  errorfile: STDERR
  threads: 10
  app_dir: /config/appdaemon/apps
  api_port: 3030
  cert_verify: True
  cert_path: /ssl/cert.pem
  api_ssl_certificate: /ssl/fullchain.pem
  api_ssl_key: /ssl/privkey.pem
HASS:
  ha_url: http://myLocalIP:8123
  ha_key: myPassword
HADashboard:
  dash_url: http://127.0.0.1:5050
  dash_dir: /config/appdaemon/dashboards
# Apps
hello_world:
  module: hello
  class: HelloWorld

Results from logs:

starting version 3.2.4
[services.d] done.
2018-01-12 17:51:09.798115 INFO AppDaemon Version 2.1.12 starting
2018-01-12 17:51:09.798788 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2018-01-12 17:51:10.030203 INFO Starting Apps
2018-01-12 17:51:10.171416 INFO Got initial state
2018-01-12 17:51:10.174750 INFO Loading Module: /config/appdaemon/apps/hello.py
2018-01-12 17:51:10.178374 INFO Loading Object hello_world using class HelloWorld from module hello
2018-01-12 17:51:10.521873 INFO hello_world: Hello from AppDaemon
2018-01-12 17:51:10.528653 INFO hello_world: You are now ready to run Apps!
2018-01-12 17:51:10.533594 INFO App initialization complete
2018-01-12 17:51:10.535907 INFO Starting dashboard
2018-01-12 17:51:10.552561 INFO Starting API
2018-01-12 17:51:10.572520 INFO Connected to Home Assistant 0.60.1

All seems fine, but I can’t connect to the API at http://mylocalIP:3030. I tried without the SSL stuff, same thing. I get “ERR_CONNECTION_REFUSED”. The server does not seem to respond on port 3030. What am I doing wrong? And how should I be testing the API? I tried with a CURL command and always get “connection refused”.

Hi,

I am getting following error with AppDaemon start up. Not sure how to fix it.

[cont-init.d] 03-version-requirements.sh: executing... 
/var/run/s6/etc/cont-init.d/03-version-requirements.sh: line 44:   438 Illegal instruction     (core dumped) semver -q "${SUPERVISOR_VERSION}" "${version}"
FATAL: You Supervisor version is: 0.81
FATAL: This add-on requires: >=0.77.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.
-----------------------------------------------------------

What platform are you using?

frenck, both @shekhardivekar and I are on RPi B+. I just tried on the 3B and it’s not an issue there.

That is correct Frenck, thank you c.r.06 for jumping in. I will try Rpi3 next month

ok, so it is an ARMv6 issue, I don’t have one laying around.

/me hops on the interweb to get one…