This commit is contained in:
belevo\mh
2025-01-20 16:19:05 +01:00
parent 18513f6e49
commit addb8328d4
3 changed files with 10 additions and 8 deletions

View File

@@ -117,19 +117,21 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
// Wenn Glättung aktiviert ist, führe das Glätten durch
$boilerFuehlerPT1ID = $this->ReadPropertyInteger("Boilerfuehler_PT1");
/*
if (IPS_VariableExists($boilerFuehlerPT1ID)) {
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
} else {
$boilerPT1 = 0.0; // Standardwert
$boilerPT1 = 0.0;
}
$boilerTempID = $this->GetIDForIdent("Boilertemperatur");
if (IPS_VariableExists($boilerTempID)) {
$boilerTemp = $this->GetValue("Boilertemperatur");
} else {
$boilerTemp = 0.0; // Standardwert
}
$boilerTemp = 0.0;
}*/
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
$boilerTemp = $this->GetValue("Boilertemperatur");
// PT
$time_constant= $this->ReadPropertyInteger("ZeitKonstante");
$delta_t = 30; // Zeitdifferenz zwischen den Messungen (30 Sekunden)
@@ -143,10 +145,10 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
if (IPS_VariableExists($boilerFuehlerPT1ID)) {
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
} else {
$boilerPT1 = 0.0; // Standardwert
$boilerPT1 = 0.0;
}
// Setze Boilertemperatur direkt auf den Wert des Boilerfühlers
$this->SetValue("Boilertemperatur", $boilerPT1);
}

View File

@@ -4,7 +4,7 @@ class CC100_HW extends IPSModule
{
private $DigOutPID = "/sys/kernel/dout_drv/DOUT_DATA";
private $PT1PID = "/sys/bus/iio/devices/iio:device2/in_voltage13_raw";
private $PT2PID = "/sys/bus/iio/devices/iio:device2/in_voltage1_raw";
private $PT2PID = "/sys/bus/iio/devices/iio:device2/in_voltage1_raw";
private $DIN_FILE = "/sys/devices/platform/soc/44009000.spi/spi_master/spi0/spi0.0/din";
private $waitingTime = 1; // Waiting time (in ms) for a new attempt to write a digital output (if file is blocked)
private $maxTime = 5000; // Max time (in ms) for the writing process

View File

@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "0.268",
"version": "0.269",
"build": 0,
"date": 0