From eb3fa6f460d7bf0670a191c6706ba097a630b8bd Mon Sep 17 00:00:00 2001 From: DanielHaefliger Date: Thu, 27 Nov 2025 15:02:28 +0100 Subject: [PATCH] no message --- VGT_Sub/module.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/VGT_Sub/module.php b/VGT_Sub/module.php index 44eef91..7002774 100644 --- a/VGT_Sub/module.php +++ b/VGT_Sub/module.php @@ -43,8 +43,25 @@ class VGT_Sub extends IPSModule parent::ApplyChanges(); $this->ConnectParent('{F7A0DD2E-7684-95C0-64C2-D2A9DC47577B}'); + + $device = $this->ReadPropertyString("DeviceID"); + + // Subscribes + $topics = [ + "feedback-request/" . $device, + "remote-control-request/" . $device + ]; + + foreach ($topics as $t) { + $this->SendDataToParent(json_encode([ + "DataID" => "{043E0F88-B2B0-4DF4-B1A6-64FB1C385D3C}", + "PacketType" => 8, // SUBSCRIBE + "Topic" => $t + ])); + } } + // --------------------------------------------------------------------- // ACTION HANDLER // ---------------------------------------------------------------------