Relay with switch
- 
					
					
					
					
 Hi Is it possible to connect simple relay to regular on/off wall switch? Oded 
 
- 
					
					
					
					
 You have to change some wiring if you have only a single wire availble in the switch box. 
 Have you checked the Relay project?
 
- 
					
					
					
					
 In the relay project the button is push button. 
 Can I use on/off switch with the same sketch?
 
- 
					
					
					
					
 I think you just need to change this line: if (value != oldValue && value==0) {to if (value != oldValue) {And wire the original switch , in order to short GND and pin 3. The original wires now go to the relay (and not more to the switch). You need to somehow power arduino + radio + relay , I use cheap phone chargers but the risk of fire is too high. We are testing other alternatives here. And please be careful when working with AC Mains! It is letal!  
 
- 
					
					
					
					
 Thanks for this input, please can you share which kind of relay i have to use ? 
 
 
			
		 
					
				


