Sensor for "is Dashboard XYZ currently visible on any client"?

I have a somewhat computationally intense template sensor, that I would like to render only when the a certain dashboard (the one displaying some rendering of the template data) is active.

if was hoping to find some condition, I could then use in an If-Else-Endif wrapper around my existing template code body

Furthermore, for usage tracking and other reasons, is there a way to get a list/map/object of all currently displayed dashboards (per user?) as a sensor?

If anything can do it, then it would be this

I don’t think it can though.

I wonder did you get this working? browser_mod has a browser_path sensor but my browser_path sensor is oftentimes “unavailable” and I don’t know why that happens. It would be great if could work all the time. I have searched and searched on how to trigger an automation based on current view but I can’t find anything.

I did, but hadn’t gotten around to posting a follow-up:

    - binary_sensor:
      - name: Map Devices Dashboard visible
        unique_id: map_devices_dashboard_visible
        state: >
            {{ integration_entities('browser_mod')
               | select('match','sensor\..*_browser_path$')
               | select('has_value')
               | expand
               | select('search','network_map')
               | list | count | bool }}