Jump to content
CorneliousJD

[SUPPORT] Appdaemon & HADashboard - CorneliousJD Repo

18 posts in this topic Last Reply

Recommended Posts

AppDaemon is an execution environment for writing automation apps for Home Assistant home automation software.

It also provides a configurable dashboard (HADashboard) suitable for wall mounted tablets.

For full instructions on installation and use check out the AppDaemon Project Documentation.

 

I did not create Appdaemon or HADashboard, I simply created the template for unRAID because I wanted to share Appdaemon and HADashboard with the unRAID community.

This docker container REQUIRES Home Assistant as well.

A docker container for Home Assistant already exists, just search "HomeAssistant" in the apps tab!

 

The variables you need to set when setting up this container for the first time are as follows.

 

HA_URL: This is the URL to your Home Assistant installation.

Example: http://192.168.1.100:8123

 

HA_KEY: This is the password, or API key you set in your Home Assistant configuration.yaml file.

 

TZ: Your time zone, which is important to set if you create automation apps in Appdaemon so they run at the correct time. Pick from this list under the "TZ" column.

Example: America/Detroit

 

-- MORE POST INSTALL CONFIG COMING SOON --

Edited by CorneliousJD

Share this post


Link to post

thought I would give this a whirl but doesn't seem to work I get this in the log any ideas?

 

Thanks

 

Stuart

 

****

 

 

2018-06-19 12:08:12.673504 INFO AppDaemon Version 3.0.1 starting
2018-06-19 12:08:12.673636 INFO Configuration read from: /conf/appdaemon.yaml
2018-06-19 12:08:12.674797 INFO AppDaemon: Starting Apps
2018-06-19 12:08:12.676213 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-06-19 12:08:12.682130 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-06-19 12:08:12.682307 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-06-19 12:08:12.682411 INFO Dashboards are disabled
2018-06-19 12:08:12.682469 INFO API is disabled
2018-06-19 12:08:15.793762 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-06-19 12:08:23.857760 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-06-19 12:08:31.921764 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-06-19 12:08:39.985723 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-06-19 12:08:48.049772 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
 

Share this post


Link to post

To answer my own question on this you cannot mix and match bridge dockers with dockers with their own IP, so if you want dockers to be able to talk to each other they either both have to be bridge or both have their own IP addresses.

Share this post


Link to post

 

2 hours ago, schford said:

To answer my own question on this you cannot mix and match bridge dockers with dockers with their own IP, so if you want dockers to be able to talk to each other they either both have to be bridge or both have their own IP addresses.

 

This is not strictly true. But you do need to have an extra NIC to place the custom docker network on and let it talk to the bridge/unRAID.

Share this post


Link to post

The logs say the docker has started but the web ui does not launch.

 

2018-09-22 16:17:11.963238 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-09-22 16:17:12.025949 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-09-22 16:17:12.027045 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-09-22 16:17:12.027933 INFO Dashboards are disabled
2018-09-22 16:17:12.028271 INFO API is disabled
2018-09-22 16:17:12.139871 INFO AppDaemon: HASS: Connected to Home Assistant 0.78.2
2018-09-22 16:17:13.477726 INFO AppDaemon: Got initial state from namespace default
2018-09-22 16:17:14.411105 INFO AppDaemon: Reading config
2018-09-22 16:17:14.421794 INFO AppDaemon: /conf/apps/apps.yaml added or modified
2018-09-22 16:17:14.422239 INFO AppDaemon: /conf/apps/apps.yaml added or modified
2018-09-22 16:17:14.422697 INFO AppDaemon: App 'hello_world' added
2018-09-22 16:17:14.424687 INFO AppDaemon: Adding /conf/apps to module import path
2018-09-22 16:17:14.427733 INFO AppDaemon: Loading App Module: /conf/apps/hello.py
2018-09-22 16:17:14.474109 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello
2018-09-22 16:17:14.760391 INFO hello_world: Hello from AppDaemon
2018-09-22 16:17:14.763923 INFO hello_world: You are now ready to run Apps!
2018-09-22 16:17:14.765986 INFO AppDaemon: App initialization complete

Share this post


Link to post
On 9/22/2018 at 12:21 PM, rlust said:

The logs say the docker has started but the web ui does not launch.

 


2018-09-22 16:17:12.027933 INFO Dashboards are disabled
2018-09-22 16:17:12.139871 INFO AppDaemon: HASS: Connected to Home Assistant 0.78.2
2018-09-22 16:17:14.760391 INFO hello_world: Hello from AppDaemon
2018-09-22 16:17:14.763923 INFO hello_world: You are now ready to run Apps!
2018-09-22 16:17:14.765986 INFO AppDaemon: App initialization complete

 

The first line I left there is most important, your config doesn't have dashboards enabled. Please see the AppDaemon/HADashboard website, but it bascially boils down to adding something like this to your appdaemon.yaml file in /config/

 

hadashboard:
  dash_url: http://UNRAIDIP:5050

This should enable dashboards for you to use.

Share this post


Link to post

Hi CorneliousJD.

 

Since a Home Assistant have user authentication method is it possible to change the Appdaemon authentication from API password to something else (according to HA docs API authentication method will be dropped in next releases)?

Edited by w^w

Share this post


Link to post
On 10/14/2018 at 9:11 AM, w^w said:

Hi CorneliousJD.

 

Since a Home Assistant have user authentication method is it possible to change the Appdaemon authentication from API password to something else (according to HA docs API authentication method will be dropped in next releases)?

 

Hi there, I don't actually run this docker itself, this is the official HADashboard/Appdaemon docker but I just created the template for it, and published it for unRAID. That being said it should be just a matter of the creator of Appdaemon/HADashboard updating this and then the docker will update for everyone as well after that. Right now it would be something you'd have to reach out to them for (ACockburn) to see if/when they plan to update.

 

Thanks!

Share this post


Link to post

everything seems to install ok but when i run it i get

Quote

2018-11-02 13:46:24.280795 INFO AppDaemon Version 3.0.2 starting
2018-11-02 13:46:24.281283 INFO Configuration read from: /conf/appdaemon.yaml
2018-11-02 13:46:24.287485 INFO AppDaemon: Starting Apps
2018-11-02 13:46:24.295084 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2018-11-02 13:46:24.449111 INFO AppDaemon: HASS: HASS Plugin Initializing
2018-11-02 13:46:24.449863 INFO AppDaemon: HASS: HASS Plugin initialization complete
2018-11-02 13:46:24.450441 INFO Starting Dashboards
2018-11-02 13:46:24.450899 WARNING ------------------------------------------------------------
2018-11-02 13:46:24.451130 WARNING Unexpected error during run()
2018-11-02 13:46:24.451293 WARNING ------------------------------------------------------------
2018-11-02 13:46:24.453445 WARNING Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/appdaemon/admain.py", line 82, in run
self.rundash = rundash.RunDash(self.AD, loop, self.logger, self.access, **hadashboard)
File "/usr/local/lib/python3.6/site-packages/appdaemon/rundash.py", line 130, in __init__
dash_net = url.netloc.split(":")
TypeError: a bytes-like object is required, not 'str'

2018-11-02 13:46:24.453750 WARNING ------------------------------------------------------------
2018-11-02 13:46:24.453986 INFO AppDeamon Exited

anyone have any ideas what i did wrong?

Share this post


Link to post
On 10/14/2018 at 9:11 AM, w^w said:

Hi CorneliousJD.

 

Since a Home Assistant have user authentication method is it possible to change the Appdaemon authentication from API password to something else (according to HA docs API authentication method will be dropped in next releases)?

ha_key can now be replaced with token -- fore more information on how to create a token see here: https://appdaemon.readthedocs.io/en/latest/CONFIGURE.html

Share this post


Link to post
8 minutes ago, wyleekiot said:

everything seems to install ok but when i run it i get

anyone have any ideas what i did wrong?

Did you try to configure your dashboards before hand? Try removing any dashboard and config other than getting it to connect to HA -- it should show you either successfully connecting to HA or give you a reason for the failure. If there's a failure you can then use that to troubleshoot why, if it DOES connect then you can add your dashboards back one by one to see where the issue lies perhaps? 

Share this post


Link to post

While setting up a Docker for Appdaemon I'm getting the exact same error as @wyleekiot:

 

File "/usr/local/lib/python3.6/site-packages/appdaemon/admain.py", line 82, in run
self.rundash = rundash.RunDash(self.AD, loop, self.logger, self.access, **hadashboard)
File "/usr/local/lib/python3.6/site-packages/appdaemon/rundash.py", line 130, in __init__
dash_net = url.netloc.split(":")
TypeError: a bytes-like object is required, not 'str'

 

No dashboards or config set, just trying to connect to HA. Anyone have an idea what might fix this?

Share this post


Link to post
10 hours ago, dopray said:

While setting up a Docker for Appdaemon I'm getting the exact same error as @wyleekiot:

dash_net = url.netloc.split(":")

TypeError: a bytes-like object is required, not 'str'

 

No dashboards or config set, just trying to connect to HA. Anyone have an idea what might fix this?

Inside the configuration.yaml file, your "dash_url" is blank.  Makes you wonder what other trivial errors you will see if it can't handle that happening.

 

Even if you remove the dash_url, it will generate a different error.  Remove the entire "hadashboard" section so the dashboard will be disabled, and the Docker should start up.

 

#hadashboard:
#  dash_url:

 

Share this post


Link to post
17 hours ago, thespooler said:

Inside the configuration.yaml file, your "dash_url" is blank.  Makes you wonder what other trivial errors you will see if it can't handle that happening.

Thank you! I looked inside the appdaemon.yaml file and first tried commenting it out like you suggested. This made the docker launch like you said.

After manually adding [myhostip]:5050 to dash_url in appdaemon.yaml I could launch the WebUI as well.

Share this post


Link to post

I had problems getting this to work.  I just pulled from dockerhub and setup vars to get working.   

 

Edited by BeerNut

Share this post


Link to post
Posted (edited)

RESOLVED!
Evening all, Any idea why all my squares on my dashboard have become blank in IOS 9? Seems to be working fine on android / PC,

having the same problem in IE11, but working in chrome and edge.

 

TIA.

 

Karl

20190407_003855.jpg

 

2019-04-07 18:31:31.243829 INFO Compiling dashboard '- Downstairs'
2019-04-07 18:31:31.397454 INFO Loading custom widget 'climate_select.yaml'
2019-04-07 18:31:31.397601 INFO Loading custom widget 'media_select.yaml'
2019-04-07 18:31:31.397667 INFO Loading custom widget 'media_with_volume.yaml'
2019-04-07 18:31:31.397723 INFO Loading custom widget 'baseclimateselect'
2019-04-07 18:31:31.398216 INFO Loading custom widget 'basemediaselect'
2019-04-07 18:31:31.398715 INFO Loading custom widget 'base_media_with_volume'
2019-04-07 18:31:31.399072 INFO Loading custom widget 'base_light_with_colorpicker'
2019-04-07 18:31:31.399378 INFO Loading custom widget 'light_with_colorpicker.yaml'
2019-04-07 18:31:31.399436 INFO Loading custom widget 'baseslider_new'
2019-04-07 18:31:31.399742 INFO Loading custom widget 'new_input_slider.yaml'
2019-04-07 18:31:31.399803 INFO Loading custom widget 'light_with_brightness.yaml'
2019-04-07 18:31:31.399864 INFO Loading custom widget 'base_light_with_brightness'
2019-04-07 18:31:31.400168 INFO Loading custom widget 'baseiconsensor'
2019-04-07 18:31:31.400462 INFO Loading custom widget 'baseiframe'
2019-04-07 18:31:31.400759 INFO Loading custom widget 'baseradial'
2019-04-07 18:31:31.401053 INFO Loading custom widget 'baseselect'
2019-04-07 18:31:31.401344 INFO Loading custom widget 'baseslider_vertical'
2019-04-07 18:31:31.401637 INFO Loading custom widget 'basetemperature'
2019-04-07 18:31:31.402099 INFO Loading custom widget 'camera.yaml'
2019-04-07 18:31:31.402178 INFO Loading custom widget 'heater.yaml'
2019-04-07 18:31:31.402235 INFO Loading custom widget 'iconsensor.yaml'
2019-04-07 18:31:31.402289 INFO Loading custom widget 'input_select.yaml'
2019-04-07 18:31:31.402340 INFO Loading custom widget 'radial.yaml'
2019-04-07 18:31:31.402397 INFO Loading custom widget 'readme.md'
2019-04-07 18:31:31.402454 INFO Loading custom widget 'temperature.yaml'
2019-04-07 18:31:31.402509 INFO Loading custom widget 'vertical_input_slider.yaml'
2019-04-07 18:31:31.402562 INFO Loading custom widget 'swipe_light.yaml'
2019-04-07 18:31:31.402605 INFO Loading custom widget 'baseswipe_light'
2019-04-07 18:31:31.402937 INFO Loading custom widget 'baseheater'
2019-04-07 18:31:31.467830 INFO function [get_dashboard] finished in 224 ms

This issue turned out to be related to "baseswipe_light" All Sorted now.

Edited by karldonteljames
Added Image

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.