From f7ce5ffe5b2b28302acc244e707837813c8adc85 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Mon, 26 May 2025 09:19:47 +0200 Subject: [PATCH] . --- Symcon_Publish_to_Shelly_MQTT/module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Symcon_Publish_to_Shelly_MQTT/module.php b/Symcon_Publish_to_Shelly_MQTT/module.php index 40379af..bafde07 100644 --- a/Symcon_Publish_to_Shelly_MQTT/module.php +++ b/Symcon_Publish_to_Shelly_MQTT/module.php @@ -17,7 +17,7 @@ class Symcon_Publish_to_Shelly_MQTT extends IPSModule $this->RegisterPropertyInteger("msg_id", 1); $this->RegisterPropertyString("src", "user1"); $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"); $src = $this->ReadPropertyString("src"); $method = $this->ReadPropertyString("method"); - $switch_bool = $this->ReadPropertyString("switch_bool"); + $switch_bool = $this->ReadPropertyBoolean("switch_bool"); // JSON-Payload erstellen $payload = [ "id" => 0,