-
This commit is contained in:
@@ -117,19 +117,21 @@ class Boiler_2_Stufig_Mit_Fueler extends IPSModule
|
|||||||
// Wenn Glättung aktiviert ist, führe das Glätten durch
|
// Wenn Glättung aktiviert ist, führe das Glätten durch
|
||||||
$boilerFuehlerPT1ID = $this->ReadPropertyInteger("Boilerfuehler_PT1");
|
$boilerFuehlerPT1ID = $this->ReadPropertyInteger("Boilerfuehler_PT1");
|
||||||
|
|
||||||
|
/*
|
||||||
if (IPS_VariableExists($boilerFuehlerPT1ID)) {
|
if (IPS_VariableExists($boilerFuehlerPT1ID)) {
|
||||||
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
|
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
|
||||||
} else {
|
} else {
|
||||||
$boilerPT1 = 0.0; // Standardwert
|
$boilerPT1 = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$boilerTempID = $this->GetIDForIdent("Boilertemperatur");
|
$boilerTempID = $this->GetIDForIdent("Boilertemperatur");
|
||||||
if (IPS_VariableExists($boilerTempID)) {
|
if (IPS_VariableExists($boilerTempID)) {
|
||||||
$boilerTemp = $this->GetValue("Boilertemperatur");
|
$boilerTemp = $this->GetValue("Boilertemperatur");
|
||||||
} else {
|
} else {
|
||||||
$boilerTemp = 0.0; // Standardwert
|
$boilerTemp = 0.0;
|
||||||
}
|
}*/
|
||||||
|
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
|
||||||
|
$boilerTemp = $this->GetValue("Boilertemperatur");
|
||||||
// PT
|
// PT
|
||||||
$time_constant= $this->ReadPropertyInteger("ZeitKonstante");
|
$time_constant= $this->ReadPropertyInteger("ZeitKonstante");
|
||||||
$delta_t = 30; // Zeitdifferenz zwischen den Messungen (30 Sekunden)
|
$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)) {
|
if (IPS_VariableExists($boilerFuehlerPT1ID)) {
|
||||||
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
|
$boilerPT1 = GetValue($boilerFuehlerPT1ID);
|
||||||
} else {
|
} else {
|
||||||
$boilerPT1 = 0.0; // Standardwert
|
$boilerPT1 = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setze Boilertemperatur direkt auf den Wert des Boilerfühlers
|
|
||||||
$this->SetValue("Boilertemperatur", $boilerPT1);
|
$this->SetValue("Boilertemperatur", $boilerPT1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ class CC100_HW extends IPSModule
|
|||||||
{
|
{
|
||||||
private $DigOutPID = "/sys/kernel/dout_drv/DOUT_DATA";
|
private $DigOutPID = "/sys/kernel/dout_drv/DOUT_DATA";
|
||||||
private $PT1PID = "/sys/bus/iio/devices/iio:device2/in_voltage13_raw";
|
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 $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 $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
|
private $maxTime = 5000; // Max time (in ms) for the writing process
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.268",
|
"version": "0.269",
|
||||||
|
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
|
|||||||
Reference in New Issue
Block a user