no message

This commit is contained in:
2026-05-27 08:39:22 +02:00
parent 7fa282128f
commit 4adb79bddf
+6 -4
View File
@@ -192,7 +192,7 @@ class MQTTBatterySDL extends IPSModule
// Laden
// -------------------------------------------------
if ($soc < $targetSoC) {
if ($soc < ($targetSoC + $tolerance)) {
SetValue(
$reqActionID,
@@ -423,7 +423,7 @@ class MQTTBatterySDL extends IPSModule
/*
private function PublishMQTT(string $topic, string $payload)
{
$this->SafeSend([
@@ -436,7 +436,7 @@ class MQTTBatterySDL extends IPSModule
]);
$this->SendDebug('PublishMQTT', $topic . ' → ' . $payload, 0);
}
}*/
private function PublishViaHelper(string $topic, string $payload)
@@ -478,7 +478,7 @@ public function DoDelayedPublish()
}
/*
private function SafeSend(array $packet)
{
$parent = @IPS_GetInstance($this->InstanceID)['ConnectionID'] ?? 0;
@@ -496,6 +496,8 @@ public function DoDelayedPublish()
@$this->SendDataToParent(json_encode($packet));
}
*/
private function IsValidVariable(int $id)
{
return (