iobroker.lorawan 1.22.25 → 1.22.26

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 CHANGED
@@ -24,6 +24,9 @@ For now there is documentation in English here: https://wiki.hafenmeister.de
24
24
  Placeholder for the next version (at the beginning of the line):
25
25
  ### **WORK IN PROGRESS**
26
26
  -->
27
+ ### 1.22.26 (2026-07-04)
28
+ - (BenAhrdt) Add ststes into Lock entity for ToIob devices
29
+
27
30
  ### 1.22.25 (2026-06-25)
28
31
  - (BenAhrdt) Change Assignhandler for case intensive Check
29
32
  - (BenAhrdt) Add subAssign for a part of name
@@ -37,9 +40,6 @@ For now there is documentation in English here: https://wiki.hafenmeister.de
37
40
  ### 1.22.22 (2026-06-16)
38
41
  - (BenAhrdt) Remove writing of the last 10 values at receive and public message
39
42
 
40
- ### 1.22.21 (2026-06-16)
41
- - (BenAhrdt) Changed setTimeout to this.adapter.setTimeout
42
-
43
43
  [Older changes can be found there](CHANGELOG_OLD.md)
44
44
 
45
45
  ## License
@@ -232,7 +232,7 @@
232
232
  "customJson": "Objekt für den \"Custom\"-Bereich im \"Common\" Objekt",
233
233
  "customJsonActiveTooltip": "With this function it is possible to add your own custom entries to the decoded states",
234
234
  "customJsonInformation": "With this function it is possible to add your own custom entries to the decoded states. Just input the desired json content in active function.",
235
- "customJsonTooltip": "Fügen Sie ein Objekt hinzu, welches in common.custom geschrieben wird.",
235
+ "customJsonTooltip": "Add a new Object, wich will be written into common.custom.",
236
236
  "decimalPlaces": "decimal places",
237
237
  "decimalPlacesTooltip": "select the desired numberof decimal places",
238
238
  "detectedRoles": "detected roles",
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.22.25",
4
+ "version": "1.22.26",
5
5
  "news": {
6
+ "1.22.26": {
7
+ "en": "Add ststes into Lock entity for ToIob devices",
8
+ "de": "Fügen Sie Statusmeldungen zur Sperrentität für ToIob-Geräte hinzu.",
9
+ "ru": "Добавьте sttes в сущность Lock для устройств ToIob.",
10
+ "pt": "Adicionar estados à entidade Lock para dispositivos ToIob",
11
+ "nl": "Voeg statussen toe aan de Lock-entiteit voor ToIob-apparaten.",
12
+ "fr": "Ajouter des ststes à l'entité Verrou pour les périphériques ToIob",
13
+ "it": "Aggiungi stati all'entità Blocco per i dispositivi ToIob",
14
+ "es": "Agregar estados a la entidad Bloqueo para dispositivos ToIob",
15
+ "pl": "Dodaj stacje do encji blokady dla urządzeń ToIob",
16
+ "uk": "Додати станції до сутності блокування для пристроїв ToIob",
17
+ "zh-cn": "将状态添加到锁定实体中,用于 ToIob 设备"
18
+ },
6
19
  "1.22.25": {
7
20
  "en": "Change Assignhandler for case intensive Check\nAdd subAssign for a part of name",
8
21
  "de": "Ändern Sie den Zuweisungshandler für die fallintensive Prüfung.\nFüge Unterzuweisung für einen Teil des Namens hinzu",
@@ -80,19 +93,6 @@
80
93
  "pl": "Napisz publishIds i subskrybedTopics opóźnione",
81
94
  "uk": "Напишіть відгукПрихильники та підписки",
82
95
  "zh-cn": "写入 Publishing Ids 和订阅日期延迟"
83
- },
84
- "1.22.19": {
85
- "en": "Test durch fehlerhaften git commit",
86
- "de": "Test durch fehlerhaften git commit",
87
- "ru": "Тестирование durch fehlerhaften",
88
- "pt": "Teste durch fehlerhaften git commit",
89
- "nl": "Test durch fehlerhoften git commit",
90
- "fr": "Tester l'engagement de fehlerhaften git",
91
- "it": "Test durch fehlerhaften git commit",
92
- "es": "Test durch fehlerhaften git commit",
93
- "pl": "Test durch fehlerhaften git commit",
94
- "uk": "Тест дюх fehlerhaften git commit",
95
- "zh-cn": "测试 fehlerhaften git 执行"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -449,8 +449,7 @@ class bridgeDeviceHandlerClass {
449
449
  type: 'string',
450
450
  role: this.detectRole(entity, type),
451
451
  read: true,
452
- write: true,
453
- states: entity.capabilities.commands.states ? entity.capabilities.commands.states : undefined,
452
+ write: false,
454
453
  val: entity.state,
455
454
  isAttribute: true,
456
455
  });
@@ -560,21 +559,38 @@ class bridgeDeviceHandlerClass {
560
559
  * **********************************************************************************************
561
560
  * *********************************************************************************************/
562
561
  } else if (entity.domain === 'lock') {
563
- const commands = {
564
- lock: 'lock',
565
- unlock: 'unlock',
566
- };
567
- if ((entity.attributes.supported_features & 1) !== 0) {
568
- commands.open = 'open';
562
+ if (!entity.capabilities.commands) {
563
+ const commands = {
564
+ states: {
565
+ 0: 'lock',
566
+ 1: 'unlock',
567
+ },
568
+ };
569
+ if ((entity.attributes.supported_features & 1) !== 0) {
570
+ commands.states[2] = 'open';
571
+ }
572
+ entity.capabilities.commands = commands;
569
573
  }
574
+
570
575
  state.push({
571
576
  id: `${channel.id}.command`,
572
577
  name: clearStatename || stateId,
573
- type: 'string',
578
+ type: 'number',
574
579
  role: this.detectRole(entity, type),
575
580
  read: true,
576
581
  write: true,
577
- states: commands,
582
+ states: entity.capabilities.commands.states ? entity.capabilities.commands.states : undefined,
583
+ val: null,
584
+ isAttribute: true,
585
+ });
586
+
587
+ state.push({
588
+ id: `${channel.id}.state`,
589
+ name: clearStatename || stateId,
590
+ type: 'string',
591
+ role: this.detectRole(entity, type),
592
+ read: true,
593
+ write: false,
578
594
  val: entity.state,
579
595
  isAttribute: true,
580
596
  });
@@ -866,7 +882,8 @@ class bridgeDeviceHandlerClass {
866
882
  // humidity
867
883
  if (id.endsWith('command')) {
868
884
  sendInfo.attribute = 'command';
869
- sendInfo.value = state.val;
885
+ const commands = idObject.native.entity.capabilities.commands.states;
886
+ sendInfo.value = commands[state.val];
870
887
  }
871
888
  }
872
889
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.22.25",
3
+ "version": "1.22.26",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",
@@ -25,7 +25,7 @@
25
25
  "node": ">= 22"
26
26
  },
27
27
  "dependencies": {
28
- "@iobroker/adapter-core": "^3.3.2",
28
+ "@iobroker/adapter-core": "^3.4.1",
29
29
  "@iobroker/dm-utils": "^3.0.19",
30
30
  "easy-crc": "^1.1.0",
31
31
  "lodash": "^4.18.1",