From ca59d8b15ba3f36cfff13319b6ad09db7a50723e Mon Sep 17 00:00:00 2001 From: jhartworks Date: Thu, 16 Apr 2026 12:32:38 +0200 Subject: [PATCH] update MQTT topic format in CounterClient module --- CounterClient/module.php | 2 +- library.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CounterClient/module.php b/CounterClient/module.php index f7765a3..b9fc3fc 100644 --- a/CounterClient/module.php +++ b/CounterClient/module.php @@ -46,7 +46,7 @@ class CounterClient extends IPSModule if ($this->ReadPropertyBoolean('EnableMQTT')) { $mqttClientId = $this->ReadPropertyInteger('MqttClientID'); - $mqttTopic = $this->ReadPropertyInteger('Projectyear').'/'.$this->ReadPropertyInteger('Projectnumber').'/Counters'; + $mqttTopic = 'Projekte/'.$this->ReadPropertyInteger('Projectyear').'/P'.$this->ReadPropertyInteger('Projectnumber').'/Counters'; if ($mqttClientId > 0 && IPS_InstanceExists($mqttClientId) && $mqttTopic !== '') { $this->MqttPublish($mqttClientId, $mqttTopic, $json, true); diff --git a/library.json b/library.json index 5e17695..980d66a 100644 --- a/library.json +++ b/library.json @@ -8,6 +8,6 @@ "date": 1491343200 }, "version": "1.0", - "build": 1, + "build": 2, "date": 0 } \ No newline at end of file