From 8439213234e4894db58a7564c473fd4b3631bacf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Thu, 10 Sep 2026 08:02:53 +0000 Subject: [PATCH] Entwurf: libs/VerbraucherBasisTrait.php --- libs/VerbraucherBasisTrait.php | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 libs/VerbraucherBasisTrait.php diff --git a/libs/VerbraucherBasisTrait.php b/libs/VerbraucherBasisTrait.php new file mode 100644 index 0000000..5fc25a5 --- /dev/null +++ b/libs/VerbraucherBasisTrait.php @@ -0,0 +1,35 @@ +RegisterPropertyInteger('PrioritaetPV', 0); + $this->RegisterPropertyInteger('PrioritaetPeak', 0); + $this->RegisterPropertyInteger('Meldeintervall', 10); + $this->RegisterPropertyInteger('VorgabeTimeout', 30); + $this->RegisterPropertyBoolean('EinstellungenInVisu', false); + $this->RegisterPropertyBoolean('LoggingEin', false); + + $this->RegisterVariableBoolean('Aktiv', 'Aktiv', '~Switch', 10); + $this->EnableAction('Aktiv'); + $this->RegisterVariableFloat('Istleistung', 'Istleistung', '', 20); + $this->RegisterVariableInteger('Leistungsquelle', 'Leistungsquelle', '', 30); + $this->RegisterVariableInteger('Sollleistung', 'Sollleistung', '', 40); + $this->RegisterVariableBoolean('SollwertGueltig', 'Sollwert gueltig', '~Switch', 50); + $this->RegisterVariableBoolean('Verfuegbar', 'Verfuegbar', '~Switch', 60); + $this->RegisterVariableBoolean('AenderungMoeglich', 'Aenderung moeglich', '~Switch', 70); + $this->RegisterVariableBoolean('Stoerung', 'Stoerung', '', 80); + $this->RegisterVariableString('Stoertext', 'Stoertext', '', 90); + } +}