This plugin remembers me the Gossiper Plugin and Tetr4 Switch plugins that I created.
Related to gossiper, I used the widget popup for showing the pedal new state. And related to Tetr4 Switch, I use a “patch” idea that enable changing multiple CV states depending “on plugin patch state”. This gif maybe make the plugin concept more clear:
I will put the source code here, maybe it could be useful for your project, @njsiva