PSA: Turn on/off all lights in Home Assistant 0.104+ (group.all_* changes)

OK. If you want to update the Template Sensor more frequently than every minute, create an automation, triggered by Time Pattern (using whatever short interval you require), that runs the homeassistant.update_entity service (to refresh the Template Sensor).