- $NodeId = preg_quote(substr(json_encode(utf8_encode(chr($this->ReadPropertyInteger('NodeId')))), 0, -1));
- foreach ($APICommands as $APICommand) {
- $Lines[] = '.*"Command":' . $APICommand . ',"Data":' . $NodeId . '.*';
- }
- $Line = implode('|', $Lines);
- }
- $this->SetReceiveDataFilter('(' . $Line . ')');
- $this->SendDebug('FILTER', $Line, 0);
- $this->NodeSubType = $this->ReadAttributeInteger('NodeSubType');
- $this->SetSummary(sprintf('%04X', $this->NodeSubType));
- $this->RegisterProfileInteger('KLF200.Intensity.51200', '', '', ' %', 0, 0xC800, 1);
- $this->RegisterProfileInteger('KLF200.RollerShutter', 'Jalousie', '', ' %', 0, 0xC800, 1);
- $this->RegisterProfileInteger('KLF200.Slats', 'Speedo', '', ' %', 0, 0xC800, 1);
- $this->RegisterProfileInteger('KLF200.Blind', 'Raffstore', '', ' %', 0, 0xC800, 1);
- $this->RegisterProfileInteger('KLF200.Window', 'Window', '', ' %', 0, 0xC800, 1);
- $this->RegisterProfileInteger('KLF200.Heating.Reversed', 'Temperature', '', ' %', 0, 0xC800, 1);
- $this->RegisterProfileInteger('KLF200.Garage', 'Garage', '', ' %', 0, 0xC800, 1);
- $this->RegisterProfileInteger('KLF200.Light.51200.Reversed', 'Light', '', ' %', 0, 0xC800, 1);
- $this->RegisterProfileBoolean('KLF200.Light.Reversed', 'Light', '', '');
- $this->RegisterProfileBoolean('KLF200.Lock', 'Lock', '', '');
- if (IPS_GetKernelRunlevel() == KR_READY) {