My continuous struggle with HADashboard

Hi Everyone.

Let’s start with the acknowledge that I’m still fairly new to the whole HA environment, so my problems might be easy for some of you. But anyway, I’ve just come to a hold and can’t seem to figure out why it doesn’t work.

I have installed the system via hass.io on a NUC and I have to say I’m really impressed with the overall ease of things when you take the hass.io way. My only real problem at the moment is the dashboard.

I’ve tried to follow various guides and forum topics, but still no result.

For the ease of things I’ve attached an image with the different configurations that I have, in hopes that someone skilled can tell me where it goes wrong. I’m also really sorry for any rookie mistakes that i’ve made, but i’ve changed so many congigurations now, that I actually lost track of some of it. But hey, it’s a learning process.

As far as I can tell from my logs, AppDeamon is running, and it says that it has startet the dashboard, but I can’t seem to find it anywhere. Whenever I go to the IP it just wont connect.

I really hope some of you can help, and I truly appreciate the time you guys spend on helping out! Big thanks!

I’m not familiar with hass.io yet, but is appdaemon running in the same docker container as HA? Are you sure the IP address is correct for the dash_url setting?

Hm. How do i check if it’s in the same docker container?

I’m pretty sure the IP is correct. I just put in the same as the HA installation, but with port 5050 at the end instead

Your screenshots don’t make sense. You should have a “hamburger menu” on the top left to access the dashbaord.

From a container perspective, every process has it’s own container.
Home assistant is one
AppDaemon (assuming you’re referring to the supervisor) should also be running in it’s own container. See below some screenshots showing the hamburger menu with the menu collapsed and how it should look expanded. “State” should be your main view.

33

I do have all that in my installation. Im referring to the HADashboard as shown here: https://home-assistant.io/docs/ecosystem/hadashboard/

That is the one I can’t seem to get working

did you create a dashboard?
and how is it called?
and where did you put it?

Hi ReneTode.

I think I created a dashboard. This is from my config files, and the path to where I placed it

i did look back at your configfile.

i assume you are running it all on the same device.
then you probably shouldnt give different IP adresses for HA and AD :wink:

if the dashboard is running on a device with ip 133, you need to give 133:5050 and not 140:5050

after changing that in your config you should be able to reach the dash with
http://ip:5050/hello

dont forget to restart before you try to reach it.

Shoot. you’re right. But I actually had it like that earlier, but changed it just out of desperation for things not working!

But changed it back, and it still gives me this:

I have no idea what I’m doing wrong…

whats in the logs at that time?
are you trying it from the same subnet?
have you set any certification?
and you could probably try the complete path to the dirs in your config.
like

/home/pi/…

@bager if your using the addon from the following repository https://github.com/vkorn/hassio-addons , try port 3030 as described here https://github.com/vkorn/hassio-addons/tree/master/appdaemon and see if that makes a difference. cheers

@bager did you get this fixed? I’ve ran into the same problem as you.

@bager
I am not familiar with docker containers, but if it is a linux based something then it should be running ssh. And it can be managed through ssh. If you are running windows on your home computer Download putty from here: www.putty.org, and then start it. Type the IP of your HA machine and log in with your HA user account. After that just type
sudo netstat -tpan
and you should get a list of services listening on different ports. And if you can’t see 3030 or 5050 in the list then appdaemon is not listening anywhere. If you can see localhost by the 3030 or 5050 port then you will need to make changes to make it listen on 0.0.0.0.
If you are using a mac, then you can use the command line (terminal) where you can type ssh Ip_Of_Ha_device and then login with the HA user account.
tom

1 Like

Hey @towme ! Thanks a lot for that reply. I won’t say that it got ME closer, but it definetly showed that nothing is listening on the ports. So I guess that that is a step? How do I then make sure that it will begin listening to the port? And to @leighcurran, as you can see, I’m still having the same issue.

GUYS!!! I GOT IT TO WORK! Can’t believe it.

I’m not quite sure how, and what I did, but I copied the config (again) from the GutHub repository. (Here: https://github.com/vkorn/hassio-addons/blob/master/appdaemon/appdaemon-example.yaml)
The of course replaced it with own info.

And then I put the port in the config in my hass.io setup, and then it actually worked!

Well. Almost. When I go to http://URL:5050 i get the dashboard welcome. Perfect
But from there, the link to the actual dashboard doesn’t work. I have it set in the config as:

  dash_url: http://192.168.0.133

But that won’t make it go to the dashboard as it lacks the port. if I then manually type dash_url: http://192.168.0.133:5050/hello, it works fine. BUT. If I add the port in the config like this:

  dash_url: http://192.168.0.133:5050

Nothing works. That seems weird.
Well, I can make it work as I just type the URL manually, and it is not an issue as the dashboards are static in my situation. so no problem. Just weird IMO.

So grateful for you guys help. Its extremely nice that this community is so helpful towards the less technical of us!

You shouldn’t add the port in the config, because the port shows what service it is so it gets assigned automatically (well sort of). For example ssh usually listens on port 22, http on port 80, https on 443 and so on. The first 1024 ports a reserved and already sorted out for different services, but from 1025 - 65535 you can almost freely choose your favourite port for your own app. Baloob chose 5050 when he wrote the Appdaemon 2.0, also 3030 for appdaemon v1.x.
All this is means is that if your service is not running on the default port number (which above 1024 is usually the case) then you will have to add it manually after the IP address separated with a colon.
So the correct way should be that you put your IP into the config, and then add :5050 to the links in your dashboard configs. Also keep in mind that the name of dashboard should be added to the link when you try to open it.
You probably will want to have different dashboards for the lightning and the heating, so your urls will look like this: http://IP:5050/lights and http://IP:5050/heat

don’t lose faith in this project, keep up with the trying thats the way to go!

cheers
tom

Makes sense. And the same conclusion I came to.
No though, I have issues with the actual devices from HA not working in the dashboard. I came across a forum saying that it has something to do with nginx not being configured correctly. But when I install NGINX on hass.io it won’t start. So that makes it kind of hard to configure it. Do you happen to know anything about that?

1 big correction!!

Appdaemon isnt written by baloob but it is a creation from aimc (Andrew) :wink:

2 Likes

@ReneTode
Yeah, you’re right. Wrote the wrong name, sorry.
tom

1 Like

@bagger
Appdaemon is not yet able to use the nginx reverse proxy. So you are not able to configure it like HA.
Anyways you should get it running first on your home network without any extra software getting in the way.
If you are trying to access http://192.168.0.133:5050/hello, then it suggests that you are at home on your own wired / wireless network. Then you do not need nginx in the middle.
You only need nginx if you want to “hide” your HA machine and port from the eyes of others.
Ha listens on 8123 port, nginx listens on 80 or 443.
So bad people know that port 8123 is HA, and then they know how to attack your system, and if you are controlling locks, then it is not a good thing to have your house hacked. But if you are using nginx, then it seems that it is listenting on port 80/443 which is standard http(s), and it does not tell you what is the software behind it.

cheers
tom