Switch fallback when light is not available

Hi Guys, I have wall light switches controlling the power that goes to smart bulbs. I have configured the wall switches (Esphome) to check if the light is available and then toggle the smart bulb state. If the smart bulb is not available then it toggles the relay in the wall light switch instead. I am looking to do the same on lovelace with a single entity. Toggle to switch on the smart bulb or relay depending on whether the smart bulb is available or not.
This is for fully kiosk, wall mounted tablet. Want to keep it simple. WAF…