Yeah, it is a bit unclear what you’re trying to do and what’s not working for you.
Do you just want to turn a group of lights (some of which might be on and some might be off) on then off (where they all go on at the same time and off at the same time, possibly repeating that some number of times) and don’t know how to do that? Or are some of the lights not toggling the right number of times, so their ending state is wrong (i.e., on when they should be off, or off when they should be on)?
Of course, when this is done, all the lights/switches defined by group.lounge_view will be off. Is that what you want?
Or, by unreliable, do you mean that some of the lights you tell to toggle don’t actually toggle, or if you toggle them multiple times, at the end, they’re not in the state they should be?