I’ve now done it with 2 automations, one for on and one for off.
I’ve also added the input boolean to my lamps group so when I flick the all lamps switch in my entities card it turns on and off too.
The problem I have now is if I turn just one lamp on the the group entity shows as turned on in the card, I would like the group entity to only show as on if all the lamps in the group are on