diff --git a/Boiler_2_Stufig_Mit_Fueler/module.php b/Boiler_2_Stufig_Mit_Fueler/module.php index cf08493..79239d8 100644 --- a/Boiler_2_Stufig_Mit_Fueler/module.php +++ b/Boiler_2_Stufig_Mit_Fueler/module.php @@ -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); } diff --git a/CC100_HW/module.php b/CC100_HW/module.php index 5a305df..4b81267 100644 --- a/CC100_HW/module.php +++ b/CC100_HW/module.php @@ -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 diff --git a/library.json b/library.json index 3d8a4c1..9430156 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.268", + "version": "0.269", "build": 0, "date": 0