CorneliousJD 14 Posted June 5, 2018 (edited) 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 June 5, 2018 by CorneliousJD Quote Share this post Link to post
schford 2 Posted June 19, 2018 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 starting2018-06-19 12:08:12.673636 INFO Configuration read from: /conf/appdaemon.yaml2018-06-19 12:08:12.674797 INFO AppDaemon: Starting Apps2018-06-19 12:08:12.676213 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin2018-06-19 12:08:12.682130 INFO AppDaemon: HASS: HASS Plugin Initializing2018-06-19 12:08:12.682307 INFO AppDaemon: HASS: HASS Plugin initialization complete2018-06-19 12:08:12.682411 INFO Dashboards are disabled2018-06-19 12:08:12.682469 INFO API is disabled2018-06-19 12:08:15.793762 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds2018-06-19 12:08:23.857760 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds2018-06-19 12:08:31.921764 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds2018-06-19 12:08:39.985723 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds2018-06-19 12:08:48.049772 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds Quote Share this post Link to post
schford 2 Posted June 20, 2018 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. Quote Share this post Link to post
ken-ji 124 Posted June 20, 2018 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. Quote Share this post Link to post
rlust 0 Posted September 22, 2018 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 Quote Share this post Link to post
CorneliousJD 14 Posted September 24, 2018 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. Quote Share this post Link to post
w^w 0 Posted October 14, 2018 (edited) 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 October 15, 2018 by w^w Quote Share this post Link to post
CorneliousJD 14 Posted October 15, 2018 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! Quote Share this post Link to post
wyleekiot 0 Posted November 2, 2018 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? Quote Share this post Link to post
CorneliousJD 14 Posted November 2, 2018 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 Quote Share this post Link to post
CorneliousJD 14 Posted November 2, 2018 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? Quote Share this post Link to post
w^w 0 Posted November 5, 2018 On 11/2/2018 at 7:57 PM, CorneliousJD said: 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 It's a very good information. Thanks Quote Share this post Link to post
dopray 0 Posted November 19, 2018 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? Quote Share this post Link to post
thespooler 3 Posted November 20, 2018 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: 1 Quote Share this post Link to post
dopray 0 Posted November 20, 2018 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. Quote Share this post Link to post
BeerNut 0 Posted November 26, 2018 (edited) I had problems getting this to work. I just pulled from dockerhub and setup vars to get working. Edited November 28, 2018 by BeerNut Quote Share this post Link to post
karldonteljames 2 Posted April 7 (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 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 April 9 by karldonteljames Added Image Quote Share this post Link to post
mgranger 0 Posted November 26 i am now getting this error. is there something i need to fix? 2019-11-26 17:38:32.630108 INFO AppDaemon Version 3.0.5 starting 2019-11-26 17:38:32.630249 INFO Configuration read from: /conf/appdaemon.yaml 2019-11-26 17:38:32.631356 INFO AppDaemon: Starting Apps 2019-11-26 17:38:32.633425 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin 2019-11-26 17:38:32.711857 INFO AppDaemon: HASS: HASS Plugin Initializing 2019-11-26 17:38:32.712072 INFO AppDaemon: HASS: HASS Plugin initialization complete 2019-11-26 17:38:32.712225 INFO Starting Dashboards 2019-11-26 17:38:32.712337 WARNING ------------------------------------------------------------ 2019-11-26 17:38:32.712393 WARNING Unexpected error during run() 2019-11-26 17:38:32.712447 WARNING ------------------------------------------------------------ 2019-11-26 17:38:32.712884 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' 2019-11-26 17:38:32.712939 WARNING ------------------------------------------------------------ 2019-11-26 17:38:32.713005 INFO AppDeamon Exited Quote Share this post Link to post