Although config-template-card is a universal way to add templates - it is not recommended to use it in for the Gauge card. If you add a “needle” to the Gauge - it will “drop to 0” every time your sensor change.
Use auto-entities instead. Google in auto-entities main thread for “gauge”, I posted there a solution.
As mentioned, during refresh, it drops to 0 before adjusting to the new value, but something I can live with in this usecase. (Tapping the gauge issues a “central-off” to the respective lights)
where each ccl-sensor (“CentralControlledLight”) is something like
{% set ccl_lights = label_entities('CentralControlLight')
| select('match', 'light\.')
| list %}
{% set lights_floor = floor_areas('Garten')
| map('area_entities')
| sum(start=[])
| select('match', 'light\.')
| unique
| list %}
{% set ccl_lights_floor = set(ccl_lights).intersection(lights_floor) %}
{{ ccl_lights_floor | length }}
showing the respective group or group_on values. _on uses one more select like
{% set ccl_lights_on = set(ccl_lights_floor)
| select('is_state', 'on')
| list %}