/**
  * overload internal IPS_ApplyChanges($id) function
  */
 public function ApplyChanges()
 {
     // Diese Zeile nicht loeschen
     parent::ApplyChanges();
     if (IPS_GetKernelRunlevel() == self::KR_READY) {
         if ($this->HasActiveParent()) {
             $this->SetStatus(self::ST_AKTIV);
         } else {
             $this->SetStatus(self::ST_NOPARENT);
         }
         //check status
     }
     //must be here!!
     $this->SetStatusVariables();
     //Update Variables
 }
 /**
  * overwrite internal IPS_ApplyChanges($id) function
  */
 public function ApplyChanges()
 {
     // Diese Zeile nicht loeschen
     parent::ApplyChanges();
     if ($this->isActive() && $this->GetParent() > 0) {
         $this->SetStatus(self::ST_AKTIV);
         $i = $this->GetUpdateInterval();
         $this->SetTimerInterval('Update', $i * 1000);
         //ms
         $this->debug(__FUNCTION__, "Starte Timer {$i} sec");
         $this->init();
     } else {
         $this->SetStatus(self::ST_INACTIV);
     }
 }
 /**
  * overload internal IPS_ApplyChanges($id) function
  */
 public function ApplyChanges()
 {
     // Diese Zeile nicht loeschen
     parent::ApplyChanges();
     if ($this->isActive()) {
         $this->SetStatus(self::ST_AKTIV);
         $i = $this->GetUpdateInterval();
         $this->SetTimerInterval('Update', $i * 1000);
         //ms
         $this->init();
     } else {
         $this->SetStatus(self::ST_INACTIV);
         $this->SetTimerInterval('Update', 0);
     }
 }
 /**
  * overload internal IPS_ApplyChanges($id) function
  */
 public function ApplyChanges()
 {
     // Diese Zeile nicht loeschen
     parent::ApplyChanges();
     if ($this->isActive() && $this->HasActiveParent()) {
         $this->SetStatus(self::ST_AKTIV);
         $this->init();
     } else {
         $this->SetStatus(self::ST_INACTIV);
     }
 }
 /**
  * overload internal IPS_ApplyChanges($id) function
  */
 public function ApplyChanges()
 {
     // Diese Zeile nicht loeschen
     parent::ApplyChanges();
     //reinit
     if ($this->isActive() && $this->HasActiveParent()) {
         $this->SetStatus(self::ST_AKTIV);
         $this->init();
     } else {
         $this->SetStatus(self::ST_NOPARENT);
         $this->SetTimerInterval('ReInit', 0);
         $this->SetTimerInterval('Update', 0);
     }
 }
 /**
  * Set UPS Name as set in NUT
  * @param  int
  */
 private function SetUPSname($val)
 {
     $this->debug(__FUNCTION__, "UPS Name:{$val}");
     IPS_SetProperty($this->InstanceID, 'UPSname', $val);
     parent::ApplyChanges();
 }