feat: discover Symcon room utility meters and sum floor consumption

This commit is contained in:
jhartworks committed 2026-11-11 09:55:26 +01:00
1 parent 18e73194e0
commit a804fc8e15
27 files changed
+2504 -1874

No files matched your search

+3 -1
View File
@@ -419,7 +419,9 @@ class NextFloor extends IPSModuleStrict
'icon' => (string) $object['ObjectIcon']
];
if ($type === 1) { // OBJECTTYPE_INSTANCE: the logical console view separates system modules.
$node['module_type'] = (int) IPS_GetInstance($objectID)['ModuleInfo']['ModuleType'];
$module = IPS_GetInstance($objectID)['ModuleInfo'];
$node['module_type'] = (int) $module['ModuleType'];
$node['module_id'] = (string) ($module['ModuleID'] ?? '');
}
if ($type === 0) { // OBJECTTYPE_CATEGORY
$nearestCategory = $objectID;