🚽 Smart Bathroom Occupancy Light Control

This one might be slightly better for you as it allows for what it calls ‘transition doors’. I couldn’t get it to work for me (hence finding this one), but you might have more luck.