pollen hinzugefügt

This commit is contained in:
belevo\mh
2025-05-26 13:20:16 +02:00
parent 4e30f2d970
commit 8254553775

View File

@@ -20,7 +20,7 @@ class Symcon_Publish_to_Shelly_MQTT extends IPSModule
$this->RegisterPropertyString("method", "Switch.Set");
$this->RegisterPropertyInteger("switch_bool", 0); // ID der Bool-Variable
$this->RegisterTimer("Timer_Influx",5000,"IPS_RequestAction(" . $this->InstanceID . ', "GetAction", "");');
}
public function ApplyChanges()
@@ -28,7 +28,6 @@ class Symcon_Publish_to_Shelly_MQTT extends IPSModule
parent::ApplyChanges();
}
public function RequestAction($Ident, $Value)
{
IPS_LogMessage("ShellySwitchSender", "RequestAction gestartet");
@@ -90,7 +89,7 @@ class Symcon_Publish_to_Shelly_MQTT extends IPSModule
if ($mqtt->connect(true, NULL, $username, $password)) {
IPS_LogMessage("ShellySwitchSender", "Verbunden mit dem MQTT-Broker");
$mqtt->publish($topic, $payload, 0);
IPS_LogMessage("ShellySwitchSender", "Nachricht gesende");
IPS_LogMessage("ShellySwitchSender", "Nachricht gesendet");
$mqtt->close();
} else {
IPS_LogMessage("ShellySwitchSender", "Verbindung fehlgeschlagen");