This commit is contained in:
@@ -588,7 +588,7 @@ class LadestationStandAlone extends IPSModule implements VerbraucherSchnittstell
|
|||||||
$this->setzeFahrzeugstromKandidatZurueck();
|
$this->setzeFahrzeugstromKandidatZurueck();
|
||||||
|
|
||||||
$transport = new LadestationTransport(
|
$transport = new LadestationTransport(
|
||||||
fn (array $anfrage): string => $this->fuehreHttpAnfrageAus($anfrage)
|
fn (array $anfrage): string => $this->fuehreHttpAnfrageAus($anfrage, true)
|
||||||
);
|
);
|
||||||
$transport->ladestromSetzen(
|
$transport->ladestromSetzen(
|
||||||
$this->ReadPropertyInteger('Geraetetyp'),
|
$this->ReadPropertyInteger('Geraetetyp'),
|
||||||
@@ -601,16 +601,21 @@ class LadestationStandAlone extends IPSModule implements VerbraucherSchnittstell
|
|||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $anfrage
|
* @param array<string, mixed> $anfrage
|
||||||
*/
|
*/
|
||||||
private function fuehreHttpAnfrageAus(array $anfrage): string
|
private function fuehreHttpAnfrageAus(
|
||||||
|
array $anfrage,
|
||||||
|
bool $alsGeraetebefehl = false
|
||||||
|
): string
|
||||||
{
|
{
|
||||||
$protokoll = [
|
if ($alsGeraetebefehl) {
|
||||||
'Methode' => $anfrage['Methode'],
|
$protokoll = [
|
||||||
'URL' => $anfrage['URL'],
|
'Methode' => $anfrage['Methode'],
|
||||||
];
|
'URL' => $anfrage['URL'],
|
||||||
$this->setzeSichtbareVariable(
|
];
|
||||||
'LetzterGeraetebefehl',
|
$this->setzeSichtbareVariable(
|
||||||
json_encode($protokoll, JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR)
|
'LetzterGeraetebefehl',
|
||||||
);
|
json_encode($protokoll, JSON_UNESCAPED_SLASHES | JSON_THROW_ON_ERROR)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->ReadPropertyBoolean('Testmodus')) {
|
if ($this->ReadPropertyBoolean('Testmodus')) {
|
||||||
$url = (string) $anfrage['URL'];
|
$url = (string) $anfrage['URL'];
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ Nur mit `DiagnosevariablenAnzeigen=true` sichtbar:
|
|||||||
| `AenderungMoeglich` | Zeigt, ob das aktuelle Angebot mehr als eine Leistungsstufe enthaelt. |
|
| `AenderungMoeglich` | Zeigt, ob das aktuelle Angebot mehr als eine Leistungsstufe enthaelt. |
|
||||||
| `Stoerung` | Sammelstatus fuer Konfigurations- und Kommunikationsfehler. |
|
| `Stoerung` | Sammelstatus fuer Konfigurations- und Kommunikationsfehler. |
|
||||||
| `Stoertext` | Letzte verstaendliche Fehlerbeschreibung. |
|
| `Stoertext` | Letzte verstaendliche Fehlerbeschreibung. |
|
||||||
| `LetzterGeraetebefehl` | Letzte HTTP-Methode und URL ohne Zugangsdaten. |
|
| `LetzterGeraetebefehl` | Letzter Steuerbefehl mit HTTP-Methode und URL ohne Zugangsdaten; Statusabfragen ueberschreiben ihn nicht. |
|
||||||
| `LeistungsangebotDiagnose` | Aktuelles Leistungsangebot als JSON-Liste in W. |
|
| `LeistungsangebotDiagnose` | Aktuelles Leistungsangebot als JSON-Liste in W. |
|
||||||
|
|
||||||
Die Regellogik speichert ihren Zustand unabhaengig von der Sichtbarkeit der
|
Die Regellogik speichert ihren Zustand unabhaengig von der Sichtbarkeit der
|
||||||
|
|||||||
Reference in New Issue
Block a user