Locking a Switch to "Off" if another Switch is "Off"

I am looking for a way to lock an entity to a specific state if another entity is specific value.
For example, my mini splits have a switch for “boost mode” which is always off if the units are off. If you try to turn on boost mode using the dashboard when the unit is off, the boost mode switch will just switch back off after a couple seconds. To improve the UI experience, I would like to have the “Boost Mode” switch be greyed out in the off position and not clickable unless the unit state is on.

You could use a conditional card that would hide the control from the UI completely unless the unit is on.