Skip to content

Commit

Permalink
1.14.10
Browse files Browse the repository at this point in the history
- also remove hm-rpc.meta.VALUES root object
  • Loading branch information
foxriver76 committed Jun 14, 2020
1 parent 0c67743 commit 8c909ee
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ If you use HomeMatic switches or remotes their button states will only be acknow
by ioBroker, when you have a running 'dummy' program on the CCU which depends on the related switch or remote.

## Changelog
### 1.14.9 (2020-06-10)
### 1.14.10 (2020-06-14)
* (foxriver76) removed meta data caching completely because meta data can be dynamic due to FW update or CuxD

### 1.14.6 (2020-06-05)
Expand Down
10 changes: 7 additions & 3 deletions hm-rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,12 +713,16 @@ async function main() {

// Clean up objects if still hm-rpc.meta.VALUES exist
try {
const doc = await adapter.getObjectViewAsync('hm-rpc', 'paramsetDescription', {
const doc = await adapter.getObjectListAsync({
startkey: 'hm-rpc.meta.VALUES',
endkey: 'hm-rpc.meta.VALUES.\u9999'
});

if (doc && doc.rows) {
if (doc.rows.length >= 50) {
adapter.log.info('Cleaning up meta folder... this may take some time');
}

for (const row of doc.rows) {
try {
await adapter.delForeignObjectAsync(row.id);
Expand Down Expand Up @@ -1578,8 +1582,8 @@ function getCuxDevices(callback) {
} catch (err) {
adapter.log.error(`Cannot call listDevices: ${err}`);
}
} else {
callback && callback();
} else if (typeof callback === 'function') {
callback();
}
}

Expand Down
4 changes: 2 additions & 2 deletions io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"es": "Conecta los Procesos de Interfaz HomeMatic (BidCos-Services, Homegear y CUxD) a través de XML-RPC o BIN-RPC a ioBroker",
"pl": "Łączy procesy HomeMatic-Interface (BidCos-Services, Homegear i CUxD) za pośrednictwem XML-RPC lub BIN-RPC z ioBroker"
},
"version": "1.14.9",
"version": "1.14.10",
"news": {
"1.14.9": {
"1.14.10": {
"en": "removed meta data caching completely because meta data can be dynamic due to FW update or CuxD",
"de": "Das Zwischenspeichern von Metadaten wurde vollständig entfernt, da Metadaten aufgrund von FW-Updates oder CuxD dynamisch sein können",
"ru": "полностью удалено кеширование метаданных, потому что метаданные могут быть динамическими из-за обновления FW или CuxD",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.hm-rpc",
"version": "1.14.9",
"version": "1.14.10",
"description": "Connects HomeMatic Interface-Processes (BidCos-Services, Homegear and CUxD) via XML-RPC or BIN-RPC to ioBroker",
"author": {
"name": "hobbyquaker",
Expand Down

0 comments on commit 8c909ee

Please sign in to comment.