Recently moved over to hassio and have appdaemon/hadash up and running. Everything works apart from the camera views.
If i put the entity IDs of the cameras into my camera panel, the cameras load but after approx 5min they disappear. On the HA front end i then start getting illegal logins from the IP the dash is running on. When i check the entity IDs in HA they have changed.
As anybody experienced this? Im not using SSL or DuckDNS as i managed everything internal or via VPN.
the entity IDs in HA change?
can you give a little more info about that?
they change from what to what?
what kind of camera?
what version from HA?
how do you check that they change?
how did you setup the cam in HA?
you get illegal logins? is appdaemon at that moment still running? what is in the appdaemon logs?
what do you have in your appdaemon.yaml?
Sorry my mistakes its the access tokens that keep changing. Cameras i have are Axis
Latest version of Hassio on virtulbox with appdaemon installed from addon store.
see configs below for HA and appdaemon. Its only the cameras im having trouble with and all other aspects of the dashboard work as expected.
Logs from HA
2018-12-09 22:37:16 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.5.236
2018-12-09 22:37:16 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.5.236
2018-12-09 22:37:18 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.5.236
2018-12-09 22:37:18 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.5.236
2018-12-09 22:37:20 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.5.236
Every 2 seconds as per refresh interval. IF i removed the camera from HADash, the illegal logins disappear.
oke.
yeah a cam with a changing token is a problem
i know that i some cases the token isnt required, so you could try without.
i also know that other have struggled with this, so you might want to search the forum in the dashboard section to see if there was a solution that you can use.
we are planning to change the way a cam gets connected, but that can take a while.
After a bit of frustration trying to get my cams to work again in HADashboard after moving everything over to the Token based security model - I am now having this issue as well. Camera tokens change regularly. I am using the Synology camera component
the point is that the camera doesnt use long term tokens.
and the HADashboard camera widget was build by someone who didnt have tokens.
we are going to change a lot in HADashboard after the next release from appdaemon, but Andrew is very busy IRL again, which slows down development.
are you sure that your cam needs a token?
you dont need the HA api_key in appdaemon.yaml but you need it in HA.
my cams (foscam) work with api password from HA only.
does refreshing the dashboard work to get the cam back?
@ReneTode I tried that solution but it’s not working for me.
As I mentioned earlier the streams are working fine as long as I don’t navigate (refresh the screen) from the current Dashboard using the frequently generated token for the camera stream I get from HA.
This is really puzzling me.
This setup all worked fine in v73. I do understand that the Appdaemon is a little behind development wise but the introduction of the token system seems to be what is at issue here for me.
Simplifying things as far as I can see it I have the following situation
Home Assistant -> Appdaemon-> HADashboard
Calling the url 192.168.0.75:5050 gives me a list of Dashboards. As long as I edit the dash file with the current token that HA is offering the streams will display in HADashboard. As soon as I refresh the browser those tokens are no longer valid and I see no streams.
I definitely need those frequently generated tokens to see a stream though and they need to be manually updated in the dash file each time. Not ideal.
like i said my cams all have a token. (also the generic cam) but i dont need the token in the url, because the api password takes care of that.
i must say that i didnt update HA after 0.82.1, so i cant tell for versions after that.
you did set the api password?
and you did try without token?
then its just 1 of those cams that dont work, but then you should have had that problem from the beginning. (unless there has been an update for your camera component, which can be found in the blogs)
for cams its actually homeassistant>HAdashboard
thats why you need to give a working url. the cam just connects to the api in js.
The cameras are working fine. They worked in v073 so it’s down the token system.
I’m getting Login attempt or request with invalid authentication from 192.168.x.xx on my device as soon as I refresh the browser. This problem disappears as soon as I blank out the camera widgets so it’s definitely down to the cameras.
I need to find some way of permanently authorising the camera streams each time I access the Dashboard and not having to edit the dash file with the changed token before I can see the stream.