Announcement: HADashboard v2 Beta!

It worked!

But now i receive another error…after that one.

Maybe there is something wrong on my config file.

[AppDaemon]
ha_url = http://192.168.x…xxx:8123

ha_key =

logfile = /home/homeassistant/appdaemon_dashboard/appdaemon/appdaemon.log
errorfile = /home/homeassistant/appdaemon_dashboard/appdaemon/appdaemon.err
threads = 10
latitude = xx.xxxx
longitude = x.xxxx
elevation = xxx
time_zone = Europe/Rome
app_dir = /home/homeassistant/appdaemon_dashboard/appdaemon/conf/apps
dash_url = http://192.168.x.xxx:5050
dash_dir = /home/homeassistant/appdaemon_dashboard/appdaemon/conf/dashboards

Apps

[hello_world]
module = hello
class = HelloWorld

Because the log file says: 2017-03-05 00:34:39.651465 WARNING Unable to connect to Home Assistant, retrying in 5 seconds

Just asking the obvious while your config sinks in. Home assistant is up and running at that address and you can access it from a web browser. Right???

ohhhh yes!

Maybe could depend that I’ve set an api password to login?

Because I receive a “Login Attemp Failed” message…

Ok, this one just became one for @aimc, @rpitera or @ReneTode You are over my head. That’s not saying much, I’m on the short side.

1 Like

Thank you anyway. Your help was PRECIOUS!

Just above your logifile line in your appdaemon.cfg file should have a two lines:

ha_url = THIS SHOULD BE THE URL YOU USE TO GET TO YOUR HA WEB UI
ha_key = THIS SHOULD BE THE PASSWORD THAT YOU USE TO LOGIN TO IT

If you don’t have a password set up, remove the ha_key = line entirely

I’ve added the url from the browser :

ha_url = http://192.168.x.xxx:8123
ha_key =xxxxx12345

But I still continue to receive error

Maybe the spacing?

ha_key = xxxxx12345

in the original file the spacing is correct. The typo was only here. :frowning:

Let’s try this to eliminate any misunderstanding.

Paste the contents of your appdaemon.cfg file (after sanitizing any passwords) to a new post.

Then select that code block and press the preformatted text button indicated in the image below:

That will preserve all the formatting and let us see it properly.

Ok sorry.

Here it is:

[AppDaemon]
ha_url = http://192.168.x.xxx:8123
ha_key = xxxxxxx
logfile = /home/homeassistant/appdaemon_dashboard/appdaemon/appdaemon.log 
errorfile = /home/homeassistant/appdaemon_dashboard/appdaemon/appdaemon.err
threads = 10
latitude = xx.xxxx
longitude = x.xxxx
elevation = 238
time_zone = Europe/Rome
app_dir = /home/homeassistant/appdaemon_dashboard/appdaemon/conf/apps
dash_url = http://192.168.x.xxx:5050
dash_dir = /home/homeassistant/appdaemon_dashboard/appdaemon/conf/dashboards
# Apps
[hello_world]
module = hello
class = HelloWorld

Also, While the dashboard shows the icon and shows the input i’m on for the TV and the title of what’s playing for DirecTv and AppleTv, I can’t control any of them and I can at least turn them on and off from HA.

Nothing in the logs, no errors on the screen. It remains gray but with text across it describing what is playing.

These are leftovers from the old appdaemon.cfg example and can be removed.

latitude = xx.xxxx
longitude = x.xxxx
elevation = 238
time_zone = Europe/Rome

Comment out these two lines as you shouldn’t need them:

app_dir = /home/homeassistant/appdaemon_dashboard/appdaemon/conf/apps

dash_dir = /home/homeassistant/appdaemon_dashboard/appdaemon/conf/dashboards

Now, I know this may sound silly, but go to a browser and verify that HA is running and that you can log in to it using the exact same URL and password that are in your appdaemon.cfg

So ran into a Docker issue here now that I’m not in localhost terms. It looks like dash_url is literally being sent down to the client browser and its doing redirects/requests against that. 0.0.0.0 works fine from localhost but not remotely, obviously…

It appears the dash_url is also used to figure out a bind address, so it’s not possible to make this work as a container right now.

Is there a reason the relative paths didn’t work and that’s why dash_url was hard coded? If that’s the case I’d request being able to split up the bind config from the dash_url config (with defaults like, bind any:5050 is just the default if you don’t specify otherwise)

2 Likes

Ok here’s my quick hack for now…

Put the external address in dash_url in appdaemon.cfg

In appdash.py under run_dash, changed this line to hard code the 0.0.0.0
f = loop.create_server(handler, "0.0.0.0", int(conf.dash_port))

Enough to keep moving on!

1 Like

It’s alllllivveeee (V2 on the tablet, V1 on the computer)

3 Likes

FIrst Screen Down, a bunch more to go!!!

Just a couple things for the wish list ( dashboard Vn)

  1. A way to draw boxes around a group of widgets
  2. that’s all I got at the moment. :slight_smile:

AWESOME App

Thanks!!!

2 Likes

Where do you get the different icons?

Oh, you’re about to have some fun :slight_smile:

These are the Font Awesome icons that you can use in Dashboard (and HASS!!) directly. They are bundled with both.

Go to http://fontawesome.io/icons/ to look them up

Then in your widgets you can do stuff like
icon_on: fa-user

Where fa-user is the class ID for that icon

1 Like

I can’t seem to get past the websocket error…

$ python3 -m appdaemon.appdaemon -c ./conf
Traceback (most recent call last):
File “/usr/local/lib/python3.5/runpy.py”, line 184, in _run_module_as_main
main”, mod_spec)
File “/usr/local/lib/python3.5/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/pi/appdaemon_dashboard/appdaemon/appdaemon/appdaemon.py”, line 17, in
from websocket import create_connection
ImportError: No module named ‘websocket’

This after installing and uninstalling and re-installing websockets

AIO RPI3 HA 0.39.2

Any ideas?

The install line was …
sudo pip3 install websocket-client
Collecting websocket-client
Requirement already satisfied: six in /usr/local/lib/python3.4/dist-packages (from websocket-client)
Installing collected packages: websocket-client
Successfully installed websocket-client-0.40.0