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() private function GetAction()
{ {
// Eigenschaften lesen // Eigenschaften lesen
$broker = $this->ReadPropertyString("broker_address"); $broker = GetValue($this->ReadPropertyString("broker_address"));
$port = $this->ReadPropertyInteger("broker_port"); $port = GetValue($this->ReadPropertyInteger("broker_port"));
$user = $this->ReadPropertyString("username"); $user = GetValue($this->ReadPropertyString("username"));
$pass = $this->ReadPropertyString("password"); $pass = GetValue($this->ReadPropertyString("password"));
$topic = $this->ReadPropertyString("Topic"); $topic = GetValue($this->ReadPropertyString("Topic"));
$msg_id = $this->ReadPropertyInteger("msg_id"); $msg_id = GetValue($this->ReadPropertyInteger("msg_id"));
$src = $this->ReadPropertyString("src"); $src = GetValue($this->ReadPropertyString("src"));
$method = $this->ReadPropertyString("method"); $method = GetValue($this->ReadPropertyString("method"));
$switch_bool = $this->ReadPropertyBoolean("switch_bool"); $switch_bool = GetValue($this->ReadPropertyBoolean("switch_bool"));
// JSON-Payload erstellen // JSON-Payload erstellen
$payload = [ $payload = [
"id" => 0, "id" => 0,