Debug serveur stats\nDebug
This commit is contained in:
		@@ -46,14 +46,14 @@ class rdc_sdb_eclairage extends hook
 | 
			
		||||
					logger(DEBUG, _("CASE: state_l1"), __FILE__ . ":" . __LINE__);
 | 
			
		||||
					if ($value == "ON")
 | 
			
		||||
					{
 | 
			
		||||
						if ($deviceTarget->properties["state_l1"]["method"] != MANUAL)
 | 
			
		||||
						{
 | 
			
		||||
							$delay = $this->delay;
 | 
			
		||||
							$deviceTarget->properties["state_l1"]["method"] = AUTO;
 | 
			
		||||
						}else
 | 
			
		||||
						if ($deviceTarget->properties["state_l1"]["method"] != AUTO)
 | 
			
		||||
						{
 | 
			
		||||
							$delay = $this->delayManual;
 | 
			
		||||
							$deviceTarget->properties["state_l1"]["method"] = MANUAL;
 | 
			
		||||
						}else
 | 
			
		||||
						{
 | 
			
		||||
							$delay = $this->delay;
 | 
			
		||||
							$deviceTarget->properties["state_l1"]["method"] = MANUAL;
 | 
			
		||||
						}
 | 
			
		||||
						setDelay($deviceTarget, $delay, $this->timeUnit, "state_l1", "OFF", true, IDLE);
 | 
			
		||||
					}elseif ($value == "OFF")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user