Binary switch controlled by webpage usage

How can I have a binary sensor that is set whenever a panel is being visualised for at least one client of the Home Assistant dashboard.
One of my panels present all my cameras and I would like to turn on a IR lamp only if someone is visualising that panel (otherwise I want to turn it off to save energy) and for that I need that switch.
Any help?
Thanks

Sounds like a job for this card:

See the sensor: https://github.com/thomasloven/hass-browser_mod#sensor

1 Like

Thanks Thomas
Sounds promising!
I will give it a try…
Regards

I only get called Thomas when I’m in trouble. Also I’m not Thomas Loven. Just a username coincidence.