no message
This commit is contained in:
@@ -192,7 +192,7 @@ class MQTTBatterySDL extends IPSModule
|
|||||||
// Laden
|
// Laden
|
||||||
// -------------------------------------------------
|
// -------------------------------------------------
|
||||||
|
|
||||||
if ($soc < $targetSoC) {
|
if ($soc < ($targetSoC + $tolerance)) {
|
||||||
|
|
||||||
SetValue(
|
SetValue(
|
||||||
$reqActionID,
|
$reqActionID,
|
||||||
@@ -423,7 +423,7 @@ class MQTTBatterySDL extends IPSModule
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
private function PublishMQTT(string $topic, string $payload)
|
private function PublishMQTT(string $topic, string $payload)
|
||||||
{
|
{
|
||||||
$this->SafeSend([
|
$this->SafeSend([
|
||||||
@@ -436,7 +436,7 @@ class MQTTBatterySDL extends IPSModule
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
$this->SendDebug('PublishMQTT', $topic . ' → ' . $payload, 0);
|
$this->SendDebug('PublishMQTT', $topic . ' → ' . $payload, 0);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
|
||||||
private function PublishViaHelper(string $topic, string $payload)
|
private function PublishViaHelper(string $topic, string $payload)
|
||||||
@@ -478,7 +478,7 @@ public function DoDelayedPublish()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
private function SafeSend(array $packet)
|
private function SafeSend(array $packet)
|
||||||
{
|
{
|
||||||
$parent = @IPS_GetInstance($this->InstanceID)['ConnectionID'] ?? 0;
|
$parent = @IPS_GetInstance($this->InstanceID)['ConnectionID'] ?? 0;
|
||||||
@@ -496,6 +496,8 @@ public function DoDelayedPublish()
|
|||||||
@$this->SendDataToParent(json_encode($packet));
|
@$this->SendDataToParent(json_encode($packet));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
private function IsValidVariable(int $id)
|
private function IsValidVariable(int $id)
|
||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user