How can I create an opposite to a switch/an inverse switch?

My thermostat has a single HomeKit switch, "standby", which turns the heating on when turned off and turns the heating off when turned on. Is there way for me to create a custom switch called "Heating" that's the exact inverse of the "standby" switch? So when I turn the "Heating" switch on it turns the "Standby" switch off, thus switching the actual heating on and vice versa.