iobroker.drag-indicator 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/io-package.json +13 -1
- package/main.js +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,9 @@ e.g. you can use it for power or temperature values.
|
|
|
23
23
|
### **WORK IN PROGRESS**
|
|
24
24
|
-->
|
|
25
25
|
|
|
26
|
+
### 2.0.2 (2022-06-08) - rewrite additional state with ack true
|
|
27
|
+
* (BenAhrdt) write ack = true in case of additional state is subscribed
|
|
28
|
+
|
|
26
29
|
### 2.0.1 (2022-06-08) - Bugfix unsubscribe additional value
|
|
27
30
|
* (BenAhrdt) Do not unsubscribe additional values with deactivate object
|
|
28
31
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "drag-indicator",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"news": {
|
|
6
|
+
"2.0.2": {
|
|
7
|
+
"en": "write ack = true in case of additional state is subscribed",
|
|
8
|
+
"de": "schreiben ack = wahr bei zusätzlichem zustand abonniert",
|
|
9
|
+
"ru": "написать ack = true в случае дополнительного состояния подписано",
|
|
10
|
+
"pt": "write ack = true em caso de estado adicional é subscrito",
|
|
11
|
+
"nl": "schrijf ack = waar in geval van extra staat wordt ingediend",
|
|
12
|
+
"fr": "écrire ack = true en cas d'état supplémentaire est souscrit",
|
|
13
|
+
"it": "scrivere ack = vero in caso di stato aggiuntivo è sottoscritto",
|
|
14
|
+
"es": "escribir ack = verdadero en caso de estado adicional se suscribe",
|
|
15
|
+
"pl": "ac = prawdziwa w przypadku stanu dodatkowego jest podana do zapisu",
|
|
16
|
+
"zh-cn": "写包装=在有更多国家的情况下真实情况"
|
|
17
|
+
},
|
|
6
18
|
"2.0.1": {
|
|
7
19
|
"en": "Do not unsubscribe additional values with deactivate object",
|
|
8
20
|
"de": "Abmelden Sie zusätzliche Werte nicht mit deaktiviertem Objekt",
|
package/main.js
CHANGED
|
@@ -274,7 +274,6 @@ class DragIndicator extends utils.Adapter {
|
|
|
274
274
|
|
|
275
275
|
async onObjectChange(id, obj) {
|
|
276
276
|
if (obj) {
|
|
277
|
-
this.log.info("Object");
|
|
278
277
|
try {
|
|
279
278
|
if(!obj.common.custom || !obj.common.custom[this.namespace]){
|
|
280
279
|
if(this.activeStates[id])
|
|
@@ -357,8 +356,8 @@ class DragIndicator extends utils.Adapter {
|
|
|
357
356
|
}
|
|
358
357
|
}
|
|
359
358
|
|
|
360
|
-
// Check Changes in internal States
|
|
361
|
-
|
|
359
|
+
// Check Changes in internal States (also if id is active state)
|
|
360
|
+
if(this.activeStatesLastAdditionalValues[id] !== undefined && this.activeStatesLastAdditionalValues[id] !== null && !state.ack){
|
|
362
361
|
const extentionLength = this.additionalIds.reset.length;
|
|
363
362
|
const extention = id.substring(id.length - extentionLength);
|
|
364
363
|
const prefixLengt = this.namespace.length;
|