Reversed Virtual Switch Driver

Does anyone have a virtual switch driver - that is reversed? I have a few apps that allow a switch to control them - and I want them to be 'On' which sends an off state to the app.
I started to write one ... but thought I'd ask first!

I suspect I'm about to be informed to write a rule, or set a switch to a switch but I'm just looking for a less complex solution. This actually has come up now before - one app I use actually has a 'reversed' option within it... so I'm sure others have walked this path before me!

Not sure Iā€™m understanding your request. A switch is either on or off. You can start it in either position and flip as needed.

I just wanted it to show the opposite of it's state. So I wrote this.

https://raw.githubusercontent.com/jshimota01/hubitat/main/Drivers/virtual_inverse-able_switch/virtualInverse-ableSwitch.groovy