This commit is contained in:
belevo\mh
2025-05-26 09:22:39 +02:00
parent f7ce5ffe5b
commit ee2e2314f8

View File

@@ -41,16 +41,16 @@ class Symcon_Publish_to_Shelly_MQTT extends IPSModule
private function GetAction()
{
// Eigenschaften lesen
$broker = $this->ReadPropertyString("broker_address");
$port = $this->ReadPropertyInteger("broker_port");
$user = $this->ReadPropertyString("username");
$pass = $this->ReadPropertyString("password");
$topic = $this->ReadPropertyString("Topic");
$broker = GetValue($this->ReadPropertyString("broker_address"));
$port = GetValue($this->ReadPropertyInteger("broker_port"));
$user = GetValue($this->ReadPropertyString("username"));
$pass = GetValue($this->ReadPropertyString("password"));
$topic = GetValue($this->ReadPropertyString("Topic"));
$msg_id = $this->ReadPropertyInteger("msg_id");
$src = $this->ReadPropertyString("src");
$method = $this->ReadPropertyString("method");
$switch_bool = $this->ReadPropertyBoolean("switch_bool");
$msg_id = GetValue($this->ReadPropertyInteger("msg_id"));
$src = GetValue($this->ReadPropertyString("src"));
$method = GetValue($this->ReadPropertyString("method"));
$switch_bool = GetValue($this->ReadPropertyBoolean("switch_bool"));
// JSON-Payload erstellen
$payload = [
"id" => 0,