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