diff --git a/AutomowerConnectConfig/module.php b/AutomowerConnectConfig/module.php index 1b9656f..74259e7 100644 --- a/AutomowerConnectConfig/module.php +++ b/AutomowerConnectConfig/module.php @@ -114,6 +114,7 @@ private function getConfiguratorValues() if (is_array($mowers)) { foreach ($mowers['data'] as $mower) { $this->SendDebug(__FUNCTION__, 'mower=' . print_r($mower, true), 0); + $id = $this->GetArrayElem($mower, 'id', ''); $name = $this->GetArrayElem($mower, 'attributes.system.name', ''); $model = $this->GetArrayElem($mower, 'attributes.system.model', ''); @@ -124,7 +125,7 @@ private function getConfiguratorValues() $instanceID = 0; foreach ($instIDs as $instID) { - if (IPS_GetProperty($instID, 'serial') == $serial) { + if (@IPS_GetProperty($instID, 'serial') == $serial) { $this->SendDebug(__FUNCTION__, 'instance found: ' . IPS_GetName($instID) . ' (' . $instID . ')', 0); $instanceID = $instID; break; @@ -133,7 +134,7 @@ private function getConfiguratorValues() // Kompatibilität mit alter API if ($instanceID == 0) { foreach ($instIDs as $instID) { - $device_id = IPS_GetProperty($instID, 'device_id'); + @$device_id = IPS_GetProperty($instID, 'device_id'); if (preg_match('/^([^-]*)-.*$/', $device_id, $r)) { $device_id = $r[1]; } @@ -166,9 +167,8 @@ private function getConfiguratorValues() ], ], ]; - $entries[] = $entry; - $this->SendDebug(__FUNCTION__, 'entry=' . print_r($entry, true), 0); + $this->SendDebug(__FUNCTION__, 'instanceID=' . $instanceID . ', entry=' . print_r($entry, true), 0); } } foreach ($instIDs as $instID) { @@ -188,9 +188,9 @@ private function getConfiguratorValues() } $name = IPS_GetName($instID); - $model = IPS_GetProperty($instID, 'model'); - $serial = IPS_GetProperty($instID, 'serial'); - $id = IPS_GetProperty($instID, 'id'); + @$model = IPS_GetProperty($instID, 'model'); + @$serial = IPS_GetProperty($instID, 'serial'); + @$id = IPS_GetProperty($instID, 'id'); $entry = [ 'instanceID' => $instID, @@ -199,9 +199,8 @@ private function getConfiguratorValues() 'serial' => $serial, 'id' => $id, ]; - $entries[] = $entry; - $this->SendDebug(__FUNCTION__, 'missing entry=' . print_r($entry, true), 0); + $this->SendDebug(__FUNCTION__, 'lost: instanceID=' . $instID . ', entry=' . print_r($entry, true), 0); } return $entries; diff --git a/AutomowerConnectSplitter/module.php b/AutomowerConnectSplitter/module.php index 84ac97a..3686484 100644 --- a/AutomowerConnectSplitter/module.php +++ b/AutomowerConnectSplitter/module.php @@ -209,7 +209,7 @@ public function ApplyChanges() 'unit' => 'month', ]; } - $apiNotes = ''; + $apiNotes = ''; $this->ApiCallSetInfo($apiLimits, $apiNotes); } diff --git a/README.md b/README.md index 1d9150c..338fd78 100644 --- a/README.md +++ b/README.md @@ -238,8 +238,9 @@ Quellen: ## 7. Versions-Historie -- 3.6 @ 28.01.2024 16:45 +- 3.6 @ 07.02.2024 17:31 - Änderung: Medien-Objekte haben zur eindeutigen Identifizierung jetzt ebenfalls ein Ident + - Fix: Absicherung von Zugriffen auf andere Instanzen in Konfiguratoren - update submodule CommonStubs - 3.5 @ 27.01.2024 11:09 diff --git a/library.json b/library.json index bdc6794..6a755ed 100644 --- a/library.json +++ b/library.json @@ -8,5 +8,5 @@ }, "version": "3.6", "build": 0, - "date": 1706456703 + "date": 1707323484 }