why don't you try this?

on *:connect: { .enable #mygroup }
on *:disconnect: { .disable #mygroup }

is that the effect you're looking for?