From add194538d467fe0384d042c837df8a18dfb722b Mon Sep 17 00:00:00 2001 From: Johannes Holzwarth | SE-Inno GmbH Date: Fri, 19 Apr 2024 08:33:18 +0200 Subject: [PATCH] version 2.0.2 --- Monitoring Client/module.php | 11 +++++++++++ library.json | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Monitoring Client/module.php b/Monitoring Client/module.php index b0840c1..d8b4266 100644 --- a/Monitoring Client/module.php +++ b/Monitoring Client/module.php @@ -205,6 +205,17 @@ class MonitoringClient extends IPSModule { foreach ($childids as $childid){ + foreach ($childids as $childid){ + if (IPS_VariableExists($childid) != 1){ + if(IPS_LinkExists($childid) == 1){ + $linkInfo = IPS_GetLink($childid); + $linkTarget = $linkInfo["TargetID"]; + $childid = $linkTarget; + } + }else{ + $varInfo = IPS_GetVariable($childid); + } + } $varname = IPS_GetName($childid); $topic = $catId["top"]. $parname."_".$varname; $payload = round(getvalue($childid), 2); diff --git a/library.json b/library.json index 9d153c0..6e0e367 100644 --- a/library.json +++ b/library.json @@ -8,6 +8,6 @@ "date": 1491343200 }, "version": "2.0", - "build": 1, + "build": 2, "date": 0 } \ No newline at end of file