I do use a similar switch but bought somewhere else. You can do it that way and it will work.  
But I feel uneasy running an ac line pretty close to a water source for something that's diy even though i made it. I have mine connected to a dc source which triggers a relay to turn on. 
		
	
		
		
		
		
		
	
		
			
			
			
			
			
			
			
			
			
				
			
			
		 
		
	
	
	 |