This commit is contained in:
@@ -100,6 +100,7 @@ class LadestationStandAlone extends IPSModule implements VerbraucherSchnittstell
|
||||
$this->RegisterAttributeInteger('PhasenerkennungSeit', 0);
|
||||
$this->RegisterAttributeInteger('PhasenerkennungVersion', 0);
|
||||
$this->RegisterAttributeBoolean('LadeleistungSeitFreigabeErkannt', false);
|
||||
$this->RegisterAttributeInteger('GeraeteMaximalstrom', 32);
|
||||
$this->RegisterAttributeInteger('ErkannterMaximalstrom', 32);
|
||||
$this->RegisterAttributeInteger('FahrzeugstromKandidat', 0);
|
||||
$this->RegisterAttributeInteger('FahrzeugstromKandidatSeit', 0);
|
||||
@@ -236,7 +237,6 @@ class LadestationStandAlone extends IPSModule implements VerbraucherSchnittstell
|
||||
if ((bool) $wert) {
|
||||
$this->SetTimerInterval('RueckmeldungVerzoegert', 0);
|
||||
}
|
||||
$this->aktualisiere(false);
|
||||
$this->sendeVerbraucherdaten();
|
||||
return;
|
||||
|
||||
@@ -315,6 +315,7 @@ class LadestationStandAlone extends IPSModule implements VerbraucherSchnittstell
|
||||
$phasenzahl = $this->ReadAttributeInteger('ZustandPhasenzahl');
|
||||
$maximalstrom = min(
|
||||
$this->ReadPropertyInteger('MaximalerLadestrom'),
|
||||
max(6, $this->ReadAttributeInteger('GeraeteMaximalstrom')),
|
||||
max(6, $this->ReadAttributeInteger('ErkannterMaximalstrom'))
|
||||
);
|
||||
$this->setzeSichtbareVariable('FahrzeugMaximalstrom', $maximalstrom);
|
||||
@@ -423,6 +424,15 @@ class LadestationStandAlone extends IPSModule implements VerbraucherSchnittstell
|
||||
$this->ReadPropertyInteger('Geraetetyp'),
|
||||
$antwort
|
||||
);
|
||||
if (isset($rohstatus['Sollstrom_A'])) {
|
||||
$geraeteSollstrom = (int) $rohstatus['Sollstrom_A'];
|
||||
if ($geraeteSollstrom === 0 || ($geraeteSollstrom >= 6 && $geraeteSollstrom <= 32)) {
|
||||
$this->WriteAttributeInteger('LetzterGesetzterStrom', $geraeteSollstrom);
|
||||
}
|
||||
}
|
||||
if (isset($rohstatus['Maximalstrom_A'])) {
|
||||
$this->WriteAttributeInteger('GeraeteMaximalstrom', (int) $rohstatus['Maximalstrom_A']);
|
||||
}
|
||||
|
||||
$warVerbunden = $this->ReadAttributeBoolean('ZustandFahrzeugVerbunden');
|
||||
$verbunden = $rohstatus['Rohstatus'] !== 1;
|
||||
|
||||
Reference in New Issue
Block a user