Moin Attain,
ich habe mir die neue DP2000 von Froggit gegönnt:-)
Mir ist aufgefallen das mir ein paar Werte fehlen und ich habe sie integriert. Da ich ein StringProfile brauche habe ich auch das hinzugefügt:
private function CreateVarProfileString(string $ProfilName, string $ProfilIcon, string $ProfileText)
{
if (!IPS_VariableProfileExists($ProfilName)) {
IPS_CreateVariableProfile($ProfilName, 3);
IPS_SetVariableProfileIcon($ProfilName, $ProfilIcon);
IPS_SetVariableProfileText($ProfilName, '', $ProfileText);
}
}
Folgende Werte habe ich bei mir neu eingebaut:
case 'ws90cap_volt' :
$ID = $this->VariableCreate('float', $key, $this->Translate('Volt') ,'~Volt', 903);
if($ID && ($this->GetValue($key) != $value || $SaveAllValues)) $this->SetValue($key, $value);
break;
case 'ws90_ver' :
$ID = $this->VariableCreate('integer', $key, $this->Translate('Version') ,'', 904);
if($ID && ($this->GetValue($key) != $value || $SaveAllValues)) $this->SetValue($key, intval($value));
break;
case 'freq' :
$this->CreateVarProfileString('Froggit.frequence', '',' Hz');
$ID = $this->VariableCreate('string', $key, 'Frequenz','Froggit.frequence', 905);
if($ID && ($this->GetValue($key) != $value || $SaveAllValues)) $this->SetValue($key, $value);
break;
case 'interval' :
$this->CreateVarProfileInteger('Froggit.interval', '',' sek');
$ID = $this->VariableCreate('integer', $key, 'Interval','Froggit.interval', 906);
if($ID && ($this->GetValue($key) != $value || $SaveAllValues)) $this->SetValue($key, $value);
break;
case 'PASSKEY' :
$ID = $this->VariableCreate('string', $key, 'PassKey','', 907);
if($ID && ($this->GetValue($key) != $value || $SaveAllValues)) $this->SetValue($key, $value);
break;
ws90cap_volt ist wohl die aktuelle Spannung des Akkus. Auf jeden Fall stieg der Wert bei dem sonnigen Tag heute an.
ws90_ver bei mir 126 scheint Firmware 1.2.6 zu bedeuten.
freq Frequenz des Sensors bei mir 868M Hz.
interval Interval der Aktualisierung.
PASSKEY (noch keine Ahnung).
Ralf