.
This commit is contained in:
@@ -17,7 +17,7 @@ class Symcon_Publish_to_Shelly_MQTT extends IPSModule
|
|||||||
$this->RegisterPropertyInteger("msg_id", 1);
|
$this->RegisterPropertyInteger("msg_id", 1);
|
||||||
$this->RegisterPropertyString("src", "user1");
|
$this->RegisterPropertyString("src", "user1");
|
||||||
$this->RegisterPropertyString("method", "Switch.Set");
|
$this->RegisterPropertyString("method", "Switch.Set");
|
||||||
$this->RegisterPropertyBoolean("switch_bool", "false");
|
$this->RegisterPropertyBoolean("switch_bool", false);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -50,7 +50,7 @@ class Symcon_Publish_to_Shelly_MQTT extends IPSModule
|
|||||||
$msg_id = $this->ReadPropertyInteger("msg_id");
|
$msg_id = $this->ReadPropertyInteger("msg_id");
|
||||||
$src = $this->ReadPropertyString("src");
|
$src = $this->ReadPropertyString("src");
|
||||||
$method = $this->ReadPropertyString("method");
|
$method = $this->ReadPropertyString("method");
|
||||||
$switch_bool = $this->ReadPropertyString("switch_bool");
|
$switch_bool = $this->ReadPropertyBoolean("switch_bool");
|
||||||
// JSON-Payload erstellen
|
// JSON-Payload erstellen
|
||||||
$payload = [
|
$payload = [
|
||||||
"id" => 0,
|
"id" => 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user