A bit tricky.
My camera is a Dafang running a modified fw. It sort of works using ffmpeg and I got a camera entity in HA.
In my lovelace dashboard I set up a camera card and the image is refreshed every 10 seconds.
But it is completely unreliable.
My idea is to build up an automation that every 10 seconds retrieve an image through the camera web interface that is so much faster. And then I will setup an image card to show that latest still.
The point is that this is meaningless if nobody is looking at the dashboard.
I would like to enable the above automation only when I open my browser and navigate to HA.
Is it possible? Some sort of “heart beat” that Lovelace could trigger on HA?
Thanks for any help!