iobroker.lorawan 1.22.30 → 1.22.31

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.31 (2026-07-09)
28
+ - (BenAhrdt) Add selection of ToIob source id
29
+
27
30
  ### 1.22.30 (2026-07-07)
28
31
  - (BenAhrdt) Add PIR Mini device Profile
29
32
  - (BenAhrdt) Add possibillity to ad states to downlink numbers
@@ -38,9 +41,6 @@ For now there is documentation in English here: https://wiki.hafenmeister.de
38
41
  - (BenAhrdt) Bugfix warning for wrong id
39
42
  - (BenAhrdt) Add Profile to downloadconfig
40
43
 
41
- ### 1.22.26 (2026-07-04)
42
- - (BenAhrdt) Add ststes into Lock entity for ToIob devices
43
-
44
44
  [Older changes can be found there](CHANGELOG_OLD.md)
45
45
 
46
46
  ## License
@@ -28,6 +28,8 @@
28
28
  "BridgeTypeOff": "aus",
29
29
  "BridgeTypeSH": "Smart Home",
30
30
  "BridgeTypeTooltip": "Wählen Sie den Typ des Fremdsystems aus",
31
+ "BridgeToIobIdSource": "ToIob-ID Quelle",
32
+ "BridgeToIobIdSourceTooltip": "Wählen Sie, ob ToIob-Geräte ihre ioBroker-State-ID aus der entity_id oder unique_id bilden",
31
33
  "BridgenotificationActivation": "Benachrichtigungsaktivierung",
32
34
  "BridgenotificationTooltip": "Aktivieren oder deaktivieren Sie die Benachrichtigung",
33
35
  "ClimateActTemperatureText": "Isttemperatur",
@@ -28,6 +28,8 @@
28
28
  "BridgeTypeOff": "off",
29
29
  "BridgeTypeSH": "Smart Home",
30
30
  "BridgeTypeTooltip": "Select the Type of the foreign System",
31
+ "BridgeToIobIdSource": "ToIob ID source",
32
+ "BridgeToIobIdSourceTooltip": "Select whether ToIob devices build their ioBroker state ID from entity_id or unique_id",
31
33
  "BridgenotificationActivation": "notification activation",
32
34
  "BridgenotificationTooltip": "activate or deactivate the notification",
33
35
  "ClimateActTemperatureText": "Target Temperature",
@@ -28,6 +28,8 @@
28
28
  "BridgeTypeOff": "apagado",
29
29
  "BridgeTypeSH": "Hogar inteligente",
30
30
  "BridgeTypeTooltip": "Seleccione el tipo de sistema externo",
31
+ "BridgeToIobIdSource": "Fuente de ID ToIob",
32
+ "BridgeToIobIdSourceTooltip": "Seleccione si los dispositivos ToIob crean su ID de estado de ioBroker desde entity_id o unique_id",
31
33
  "BridgenotificationActivation": "activación de notificación",
32
34
  "BridgenotificationTooltip": "activar o desactivar la notificación",
33
35
  "ClimateActTemperatureText": "Temperatura objetivo",
@@ -28,6 +28,8 @@
28
28
  "BridgeTypeOff": "désactivé",
29
29
  "BridgeTypeSH": "Maison intelligente",
30
30
  "BridgeTypeTooltip": "Sélectionnez le type du système étranger",
31
+ "BridgeToIobIdSource": "Source d'ID ToIob",
32
+ "BridgeToIobIdSourceTooltip": "Choisissez si les appareils ToIob créent leur ID d'état ioBroker à partir de entity_id ou unique_id",
31
33
  "BridgenotificationActivation": "activation des notifications",
32
34
  "BridgenotificationTooltip": "activer ou désactiver la notification",
33
35
  "ClimateActTemperatureText": "Température cible",
@@ -28,6 +28,8 @@
28
28
  "BridgeTypeOff": "spento",
29
29
  "BridgeTypeSH": "Casa intelligente",
30
30
  "BridgeTypeTooltip": "Selezionare la Tipologia del Sistema estero",
31
+ "BridgeToIobIdSource": "Origine ID ToIob",
32
+ "BridgeToIobIdSourceTooltip": "Scegliere se i dispositivi ToIob creano l'ID stato ioBroker da entity_id o unique_id",
31
33
  "BridgenotificationActivation": "attivazione delle notifiche",
32
34
  "BridgenotificationTooltip": "attivare o disattivare la notifica",
33
35
  "ClimateActTemperatureText": "Temperatura target",
@@ -28,6 +28,8 @@
28
28
  "BridgeTypeOff": "uit",
29
29
  "BridgeTypeSH": "Slim huis",
30
30
  "BridgeTypeTooltip": "Selecteer het type van het buitenlandse systeem",
31
+ "BridgeToIobIdSource": "ToIob-ID-bron",
32
+ "BridgeToIobIdSourceTooltip": "Selecteer of ToIob-apparaten hun ioBroker-state-ID maken uit entity_id of unique_id",
31
33
  "BridgenotificationActivation": "melding activering",
32
34
  "BridgenotificationTooltip": "activeer of deactiveer de melding",
33
35
  "ClimateActTemperatureText": "Doeltemperatuur",
@@ -28,6 +28,8 @@
28
28
  "BridgeTypeOff": "wyłączony",
29
29
  "BridgeTypeSH": "Inteligentny dom",
30
30
  "BridgeTypeTooltip": "Wybierz typ obcego systemu",
31
+ "BridgeToIobIdSource": "Źródło ID ToIob",
32
+ "BridgeToIobIdSourceTooltip": "Wybierz, czy urządzenia ToIob tworzą ID stanu ioBroker z entity_id czy unique_id",
31
33
  "BridgenotificationActivation": "aktywacja powiadomień",
32
34
  "BridgenotificationTooltip": "włączyć lub wyłączyć powiadomienie",
33
35
  "ClimateActTemperatureText": "Temperatura docelowa",
@@ -28,6 +28,8 @@
28
28
  "BridgeTypeOff": "desligado",
29
29
  "BridgeTypeSH": "Casa inteligente",
30
30
  "BridgeTypeTooltip": "Selecione o tipo do sistema externo",
31
+ "BridgeToIobIdSource": "Fonte de ID ToIob",
32
+ "BridgeToIobIdSourceTooltip": "Selecione se os dispositivos ToIob criam o ID de estado ioBroker a partir de entity_id ou unique_id",
31
33
  "BridgenotificationActivation": "ativação de notificação",
32
34
  "BridgenotificationTooltip": "ativar ou desativar a notificação",
33
35
  "ClimateActTemperatureText": "Temperatura alvo",
@@ -28,6 +28,8 @@
28
28
  "BridgeTypeOff": "выключенный",
29
29
  "BridgeTypeSH": "Умный дом",
30
30
  "BridgeTypeTooltip": "Выберите тип сторонней системы",
31
+ "BridgeToIobIdSource": "Источник ID ToIob",
32
+ "BridgeToIobIdSourceTooltip": "Выберите, создают ли устройства ToIob ID состояния ioBroker из entity_id или unique_id",
31
33
  "BridgenotificationActivation": "активация уведомления",
32
34
  "BridgenotificationTooltip": "активировать или деактивировать уведомление",
33
35
  "ClimateActTemperatureText": "Целевая температура",
@@ -28,6 +28,8 @@
28
28
  "BridgeTypeOff": "вимкнено",
29
29
  "BridgeTypeSH": "Розумний будинок",
30
30
  "BridgeTypeTooltip": "Виберіть тип сторонньої системи",
31
+ "BridgeToIobIdSource": "Джерело ID ToIob",
32
+ "BridgeToIobIdSourceTooltip": "Виберіть, чи пристрої ToIob створюють ID стану ioBroker з entity_id або unique_id",
31
33
  "BridgenotificationActivation": "активація сповіщень",
32
34
  "BridgenotificationTooltip": "активувати або деактивувати сповіщення",
33
35
  "ClimateActTemperatureText": "Цільова температура",
@@ -28,6 +28,8 @@
28
28
  "BridgeTypeOff": "离开",
29
29
  "BridgeTypeSH": "智能家居",
30
30
  "BridgeTypeTooltip": "选择外部系统类型",
31
+ "BridgeToIobIdSource": "ToIob ID 来源",
32
+ "BridgeToIobIdSourceTooltip": "选择 ToIob 设备从 entity_id 还是 unique_id 创建 ioBroker state ID",
31
33
  "BridgenotificationActivation": "通知激活",
32
34
  "BridgenotificationTooltip": "激活或停用通知",
33
35
  "ClimateActTemperatureText": "目标温度",
@@ -878,6 +878,23 @@
878
878
  "lg": 3,
879
879
  "xl": 3
880
880
  },
881
+ "BridgeToIobIdSource": {
882
+ "newLine": true,
883
+ "type": "select",
884
+ "label": "BridgeToIobIdSource",
885
+ "hidden": "data.BridgeType === 'off'",
886
+ "tooltip": "BridgeToIobIdSourceTooltip",
887
+ "options": [
888
+ { "label": "Entity Id", "value": "entity_id" },
889
+ { "label": "Unique Id", "value": "unique_id" }
890
+ ],
891
+ "default": "entity_id",
892
+ "xs": 12,
893
+ "sm": 3,
894
+ "md": 3,
895
+ "lg": 3,
896
+ "xl": 3
897
+ },
881
898
  "_BridgeServersettingsHeader": {
882
899
  "newLine": true,
883
900
  "type": "header",
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.22.30",
4
+ "version": "1.22.31",
5
5
  "news": {
6
+ "1.22.31": {
7
+ "en": "Add selection of ToIob source id",
8
+ "de": "Auswahl der ToIob-Quell-ID hinzufügen",
9
+ "ru": "Добавить выборку идентификатора источника ToIob",
10
+ "pt": "Adicionar seleção de ID da fonte ToIob",
11
+ "nl": "Voeg een selectie van de ToIob-bron-ID toe.",
12
+ "fr": "Ajouter une sélection d'identifiants de source ToIob",
13
+ "it": "Aggiungi selezione ID sorgente ToIob",
14
+ "es": "Agregar selección de ID de origen ToIob",
15
+ "pl": "Dodaj wybór identyfikatora źródłowego obiektu ToIob",
16
+ "uk": "Додати вибір ідентифікатора джерела ToIob",
17
+ "zh-cn": "添加 ToIob 源 ID 的选择"
18
+ },
6
19
  "1.22.30": {
7
20
  "en": "Add PIR Mini device Profile\nAdd possibillity to ad states to downlink numbers",
8
21
  "de": "PIR-Mini-Geräteprofil hinzufügen\nFüge die Möglichkeit hinzu, Anzeigenstatus zu Downlink-Nummern hinzuzufügen",
@@ -80,19 +93,6 @@
80
93
  "pl": "Zmień Assignhandler na kontrolę intensywnie wykorzystującą przypadek\nDodaj podprzypisanie dla części nazwy",
81
94
  "uk": "Змінити обробник присвоєння для перевірки з інтенсивним виконанням регістрів\nДодати subAssign для частини імені",
82
95
  "zh-cn": "更改案例密集型检查的分配处理程序\n为名称的一部分添加子分配"
83
- },
84
- "1.22.24": {
85
- "en": "Add Absolute Humidity to device_class",
86
- "de": "Füge der Geräteklasse die absolute Luftfeuchtigkeit hinzu.",
87
- "ru": "Добавить абсолютную влажность в device_class",
88
- "pt": "Adicionar umidade absoluta à classe do dispositivo",
89
- "nl": "Voeg absolute luchtvochtigheid toe aan de device_class.",
90
- "fr": "Ajouter l'humidité absolue à la classe de périphérique",
91
- "it": "Aggiungi l'umidità assoluta alla classe di dispositivi",
92
- "es": "Agregar humedad absoluta a device_class",
93
- "pl": "Dodaj wilgotność bezwzględną do device_class",
94
- "uk": "Додати абсолютну вологість до класу пристроїв",
95
- "zh-cn": "将绝对湿度添加到设备类"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -429,6 +429,7 @@
429
429
  "RefreshDiscoveryCronJob": "0 * * * *",
430
430
  "BridgeEnum": "*",
431
431
  "BridgenotificationActivation": "allNotifications, bridgeConnection, newDiscover, deviceState",
432
+ "BridgeToIobIdSource": "entity_id",
432
433
  "BridgeDevicesToGenerate": [
433
434
  "toIobDevices",
434
435
  "foreignDevices",
@@ -773,8 +773,9 @@ class bridgeDeviceHandlerClass {
773
773
  const activeFunction = 'bridgeDeviceHandler.js - buildSafeStateId';
774
774
  this.adapter.log.silly(`Function ${activeFunction} started.`);
775
775
  try {
776
- // 1. Basis: unique_id oder entity_id
777
- const baseId = entity.unique_id || entity.entity_id;
776
+ const idSource = this.adapter.config.BridgeToIobIdSource || 'entity_id';
777
+ const baseId =
778
+ idSource === 'unique_id' ? entity.unique_id || entity.entity_id : entity.entity_id || entity.unique_id;
778
779
 
779
780
  if (!baseId) {
780
781
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.22.30",
3
+ "version": "1.22.31",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",