appdaemon.yaml is not involved here!! it does nothing for the camera!
i know, because i have setup AD 1000 times and am involved in the development.
frank started to use api password in the url instead of token.
@ReneTode I removed the token from the camera url as you suggested and replaced it with api_password=myownpassword
No camera stream showing and the Login attempt failed with invalid authentication appeared in HA from the device I tried to access the HADashboard I configured.
HA throws up a Login attempt or request with invalid authentication from my device as soon as I attempt to open my HADashboard dash file and no camera stream appears
The only way to stop this error AND show a stream is to use the short term access token OR I can comment out the Generic Camera in the Dash file which of course will show unknown widget.
I thought the whole point of the long term access token was to avoid situations like this.
Iāve tried including the api_password=myownpassword and omitting the short term token in the camera url but this makes no difference.
It possibly works in the Foscam camera widget but not in the Generic camera widget.
this is a pic from 2 generic cams. and i never created any tokens.
and to access those cams i use
http://HA_IP:8123/api/camera_proxy/camera.gang_firetab?api_password=MY_PASSWORD or
http://HA_IP:8123/api/camera_proxy/camera.hal_1e_firetab?api_password=MY_PASSWORD
i can do that in a browser or in my dashboards without token, and it keeps running.
off course its possible they changed something after 0.82
the widget is just not setup to work with tokens, because at the time that AD was last updated we didnt know how to work with the tokens in js. thats why creating tokens will not work.
the url you give in the dashboard must be a valid 1 and it needs to work in a browser also.
I can confirm that my cam settings are exactly the same as yours in HA.
I can also confirm that the following url works in the browser and in HA Dashboard using the token currently in use in the HA UI entity_picture url in entity_picture using the token method which changes every few minutes. The api_password=myownpassword method does not work.
I am not requesting a token to be used anywhere in my setup so im wondering why now in v87 HA insists that HA Dashboard supplies one before it will pass the stream to it
they have made a change in a version between 83 and 87 that makes that api doesnt work anymore with the camera proxy. they have made many changes in that area, but i cant confirm it because i still run 82.
but it should not be that hard to adapt the widget, so that it gets that entity picture url.
ill look into if i can find time to make a working custom widget for it, but i dont promise anything.
Back at v073 now and all that authorisation and verification madness has disappeared and cameras are streaming away on Dashboard.
Iām wondering how many others have upgraded and reverted as a result of these type of difficulties.Doesnāt sound too promising.Surely others using the generic widget were experiencing similar difficulties
Iām still puzzled why HA is not feeding the stream back to HA Dashboard.
I was looking at the camera_entity in version 073 and while itās displaying a token HA Dashboard does not require one to display the stream
I created a user name and password and a long term token when setting up HA v087 but thatās purely for logging into HA. Thatās nothing to do with HA Dashboard or the camera streams.
I did use the api_password without token in the dash file as you suggested but this made no difference.
I wonder what is causing this problem.
As a developer would you normally keep your system updated with the most recent release of HA.
you think so???. a developer is just someone who offers something he created for himself to other to use also.
there is not an obligation to check out HA every 2 weeks if there is something HA changing so you must also create an update to please others for free.
i think you forget that this is created in free time, for no money, by 1 person (with a little help), and that he has a live besides HA also
i personally think that the 2 week release from HA is insane, and i only update my system every few months. i really have no need to shutdown my heating, my lights, etc. make an update and hope that nothing breaks, every 2 weeks.
if i would do that, my wife would rip out everything.
I completely agree with you. I was just asking if it was something you would normally do.
I couldnāt agree more with the update cycle too. Maybe a stable release as a reference point and a beta version for those who want to spend their days testing.
I had v073 working nicely for an extended period and only realised that the whole authorisation/verification concept had been introduced at v076.
I tried updating with disastrous results so I reinstalled v087 and rebuilt my setup. Still trying to get it right as youāve seen from todayās question.