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