HADashboard

Thank you! This was very helpful.

Any update on this? This would be wonderful :slight_smile:

Not sure what you are asking?

Sorry, my quote failed! Edited it :slight_smile:
I was asking about the integration of the dashboard with homeassistant.
I’ve been trying to set up HAdashboard for a couple of days now and I’m still failing, so that would be a relief!

I’m getting ready to put out 3.0 of AD which is a complete refactor - it’s taken me a while to get through. One of the goals of this is to make the integration with HASS possible.So When I am through a short beta period, I’ll start looking at the integration in more detail. It won;t be immediate but I have made some huge steps in the right direction under the covers.

2 Likes

I’m very glad to hear it, thanks for your hard work.
I’d be happy to beta test if you’re looking for testers.

Thanks :slight_smile: When the time comes for 3.0 (probably in the next couple of weeks) I’ll post a thread so that anyone who wants to can can help with the beta.

3 Likes

Count me in on the Beta as well, excited to hear about the upcoming release. :beers:

1 Like

Has anyone managed to get HaDashboard running on HassIO? I have the appdaemon add-on V3, are there any changes needed to the add-on config other than the default?

{
  "log_level": "info",
  "commtype": "websockets",
  "system_packages": [],
  "python_packages": []
}

Did you uninstall the v2? Do you have any error? Did you change the AppDaemon.yaml according to the docs?

I did get it to work, thanks. I saw there was an error file so went through that. I’ll go through the steps I took to get it working for the next person that has trouble and searches the forum.

I uninstalled V2 and only have V3 with default settings:

 {
  "log_level": "info",
  "system_packages": [],
  "python_packages": []
}

I made folder in the config folder called appdaemon. In there I made a folder called dashboard and another called apps.

I then have appdaemon.yaml at /config/appdaemon which has the following:

log:
  logfile: /config/appdaemon/appdaemon.log
  errorfile: /config/appdaemon/error.log

appdaemon:
  threads: 10
  app_dir: /config/appdaemon/apps
  plugins:
    HASS:
      type: hass
      ha_url: https://xxxxxx.duckdns.org:8123
      ha_key: Secret
hadashboard:
  dash_url: http://192.168.0.196:5050
  dash_dir: /config/appdaemon/dashboards
  dash_password: secret

In the apps folder, /config/apps I have two files. apps.yaml with the following:

hello_world:
  module: hello
  class: HelloWorld

And a file called hello.py:

import appdaemon.appapi as appapi

#
# Hellow World App
#
# Args:
#

class HelloWorld(appapi.AppDaemon):

  def initialize(self):
     self.log("Hello from AppDaemon")
     self.log("You are now ready to run Apps!")

And finally, in the dashboards folder I have my panel file, called panel.dash:

##
## Main arguments, all optional
##
title: Hello Panel
widget_dimensions: [120, 120]
widget_margins: [5, 5]
columns: 8

label:
    widget_type: label
    text: Hello World

layout:
    - label(2x2)

I know this was long but I think it will help others starting out.

6 Likes

Mate, you’re a legend. Created an account just to thank you! Spent so much time trying to get this to work and your post solved it from start to finish in an hour!

1 Like

Hello everyone, sorry OOT.
I am getting error in program dashboard, in case my filename is “NiHao.dash”

I getting error like this:
NiHao: Error while parsing dashboard ‘/config/appdaemon/dashboards/NiHao.dash’:
NiHao: parser says
NiHao: in “”, line 38, column 1: - label(2x2), light_bedroom, sw … ^
NiHao: found character ‘\t’ that cannot start any token while scanning for the next token

and this is my program:

Main arguments, all optional

title: Switchboard
widget_dimensions: [120, 120]
widget_size: [1, 1]
widget_margins: [5, 5]
columns: 8
global_parameters:
use_comma: 0
precision: 1
use_hass_icon: 1
##namespace: default
##devices:
##media_player:
##step: 5

clock:
widget_type: clock

label:
widget_type: label
text: Hello Word

light_bedroom:
widget_type: light
title: bedroom_light
entity: light.bedroom
widget_style: “background-color:ROYALBLUE;”

switch_bedroom:
widget_type: switch
title: bedroom_switch
entity: switch.bedroom
widget_style: “background-color:DARKRED;”

layout:
- label(2x2), light_bedroom, switch_bedroom

anyone can help me, where i get a failure ?

@dion0511 I’m not using HADashboard currently but planning to use it, so i could not tell you for sure. But it looks like you are using a tab \t character on line 38 which triggers the error. I could not check this since you did not add the config as code block.

1 Like

@imaikel is right.
the dashboard is yaml and yaml does not accept tabs (and a lot of other strange characters)

and he is also right that its better to show yaml as codeblock so people can read it.

so thx. @imaikel