Pim van Pelt 
							
						 
					 
					
						
						
							
						
						4a083555e8 
					 
					
						
						
							
							Clean up RPC response.  
						
						 
						
						... 
						
						
						
						- Refactor mqtt_publish_stat() to take va_list
- Make publish_stat format its response with json_vprintf() so it is
  valid JSON.
- Call publish_stat in channel_set, the only place where the GPIO state
  changes
- Return (valid) JSON response in all RPCs 
						
						
					 
					
						2018-01-24 14:08:29 +01:00  
					
					
						 
						
						
							
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						118eb14447 
					 
					
						
						
							
							Rewrite statusled implementation.  
						
						 
						
						... 
						
						
						
						- Read it now from app.config JSON file.
- Allow for inverted status leds (Sonoff et al)
- Clean up unit tests. 
						
						
					 
					
						2018-01-24 13:33:13 +01:00  
					
					
						 
						
						
							
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						f0fa04dc26 
					 
					
						
						
							
							s/led_green/led_status/g because not all status leds are green :)  
						
						 
						
						
						
						
					 
					
						2018-01-22 23:23:43 +01:00  
					
					
						 
						
						
							
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						3327a561f9 
					 
					
						
						
							
							Add channel_get_total()  
						
						 
						
						
						
						
					 
					
						2018-01-22 22:23:48 +01:00  
					
					
						 
						
						
							
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						b78e79223a 
					 
					
						
						
							
							Add sonoff devices  
						
						 
						
						... 
						
						
						
						The S20, TH, Basic and SV all share the same 1-channel pinout.
The 4CH has a few more IO pins. 
						
						
					 
					
						2018-01-22 19:16:17 +01:00  
					
					
						 
						
						
							
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						42524d15b2 
					 
					
						
						
							
							Add configs for some banggood light switches:  
						
						 
						
						... 
						
						
						
						- YK3_WIFI_SV2 (1 and 2 gang)
- YK3_WIFI_SV5 (3 gang) 
						
						
					 
					
						2018-01-05 17:07:20 +01:00  
					
					
						 
						
						
							
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Pim van Pelt 
							
						 
					 
					
						
						
							
						
						4679636fdc 
					 
					
						
						
							
							Initial checkin.  
						
						 
						
						
						
						
					 
					
						2018-01-05 16:58:15 +01:00