no message
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user