The tap water pushes the floating magnetic or water pressure switch through the valve core into the electric faucet, and the floating magnetic or water pressure switch is turned from off to closed under the action of water pressure, thereby turning on the power, and the heating indicator lights up after the power is turned on, the heating tube At the same time, the heating is started, and the heat is transferred to the tap water in the faucet, so that the hot water flows out of the tap after the tap water flows out. If the spool is closed or cold watered, the internal float or water pressure switch will not start, the circuit will be disconnected, the indicator light will not light, and the heating tube will not heat up.