This type of switch is designed to control the opening and closing of the bathtub drain to allow water to enter or exit the tub.
Instead of traditional drain plugs or levers, some modern bathtubs, especially those with innovative designs, feature push button switches for drainage control.