AD 4 is not far away from release.
and AD 4 beta already got the camera widget that doesnt need api.
my advise is to hold of updating HA untill AD 4 is fully released,
or get the camera widgets files from the dev version from AD and place it in the custom_widgets directory. documentation can be found in the dev documentation.
depends on which widget you use.
the camera widget that comes with the hassio version from AD only works with api password.
so you need AD 4 beta (not available to hassio)
or you need a custom widget.
But after last HA update to 102.2 it stopped to work - I noticed that token is is not permanent (long lived)
Is there any way how to have camera widget working again?
api password is been taken out of HA in the HA version you use.
so there are 3 options for you:
wait for the AD 4 release (which is delayed because of IRL situations)
go back to HA 100
use a custom widget.
its possible to take the camera widget files from the AD dev github and place them in your custom widget directory. but they need a small change to work if i am not mistaken.
After holding for a while I did the upgrade to HA 0.103 and to get the camera widget back, I also upgraded to the dev branch of appdaemon (will change to the stable 4.0 release when its ready). The new camera widget has a nice āfull screenā mode when you click/touch it but it didnt revert back to the ānormalā view. If you are using it on tablet running a full screen browser (fully or wallpanel) you get stuck because thereās no ābackā button. Is there a fix/special configuration to change that? thx.
even with fully i always can get back to the previous page. unless you prevent that in the settings.
but i think you have some custom widget, because the inbuilt camera widget in dev doesnt have a fullscreen function.
Yes and no :-). I dont use a custom widget, but a custom js. Sometime ago another user wrote a js which you can add to a skin custom_css dir. It worked fine on hadashboard 3, but not in hadashboard4. But even on a skin without this custom js Iām getting this behaviour. I will start from scratch to check this.
Wellā¦ I just started a new appdaemon-dev container with minimal configuration and a single dashboard with a camera widget. Here is what it look like:
if you move the mouse to the image you can see the it will open the HA camera URL, not a dashboard URL. And if you click you ended in the camera image:
i dont use docker, but i know the code from the widget. there is just NOTHING in the widget that would do that.
i know its on the wishlist from a lot of people, and i know there are custom camera widgets that do that.
but its not in the code.
but i dont have my cams inside HA anymore and my HA is not up to date.
its a HA link that is used to view the cam, so its very wel possible that a recent HA change caused that you think its an AD change.
but you can easy check that.
view the cam directly in a browser (without dashboard) or even better view it in an iframe.
you can even view it in an iframe widget from dashboard, and i think you will see the same behaviour.
I ran into the popup today for the camera widget. I really like it; however, Iāll be finding a way to add the ability to close the window as well. Here is the line of code that added the functionality.
For now, I just added the widget locally as a custom, threw a target="_blank"on the anchor and called it a night. Iāll find a better fix tomorrow after a cup of coffee.