iobroker.lorawan 1.18.40 → 1.18.41

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
@@ -23,6 +23,9 @@ For now there is documentation in English here: https://wiki.hafenmeister.de
23
23
  Placeholder for the next version (at the beginning of the line):
24
24
  ### **WORK IN PROGRESS**
25
25
  -->
26
+ ### 1.18.41 (2025-12-01)
27
+ * (BenAhrdt) change sending the payload in case of light
28
+
26
29
  ### 1.18.40 (2025-12-01)
27
30
  * (BenAhrdt) change hash
28
31
 
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.18.40",
4
+ "version": "1.18.41",
5
5
  "news": {
6
+ "1.18.41": {
7
+ "en": "change sending the payload in case of light",
8
+ "de": "änderung des sendens der nutzlast bei licht",
9
+ "ru": "изменение отправки полезной нагрузки в случае света",
10
+ "pt": "alterar o envio da carga útil em caso de luz",
11
+ "nl": "verandering in het verzenden van de lading in geval van licht",
12
+ "fr": "changement d'envoi de la charge utile en cas de lumière",
13
+ "it": "cambiare inviando il carico utile in caso di luce",
14
+ "es": "cambio enviar la carga útil en caso de luz",
15
+ "pl": "zmiana wysyłania ładunku w przypadku światła",
16
+ "uk": "змінити відправлення корисного навантаження при світлі",
17
+ "zh-cn": "更改发送有效载荷的光线"
18
+ },
6
19
  "1.18.40": {
7
20
  "en": "change hash",
8
21
  "de": "ändern hash",
@@ -80,19 +93,6 @@
80
93
  "pl": "improwizacja kodu wewnętrznego dla lepszego czytania",
81
94
  "uk": "внутрішня обробка коду для кращого читання",
82
95
  "zh-cn": "内部代码即兴读取"
83
- },
84
- "1.18.34": {
85
- "en": "translation changed",
86
- "de": "übersetzung geändert",
87
- "ru": "перевод изменился",
88
- "pt": "tradução alterada",
89
- "nl": "vertaling gewijzigd",
90
- "fr": "traduction changée",
91
- "it": "traduzione cambiata",
92
- "es": "traducción modificada",
93
- "pl": "zmienione tłumaczenie",
94
- "uk": "зміни перекладу",
95
- "zh-cn": "翻译更改"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -815,16 +815,16 @@ class bridgeClass {
815
815
  val = {};
816
816
  val.state = (await this.adapter.getForeignStateAsync(publish.LightIds.onOff)).val;
817
817
  val.state = val.state === true ? 'ON' : 'OFF';
818
- if (publish.LightIds.brightness) {
818
+ if (id === publish.LightIds.brightness) {
819
819
  val.brightness = (await this.adapter.getForeignStateAsync(publish.LightIds.brightness)).val;
820
820
  }
821
- if (publish.LightIds.color) {
821
+ if (id === publish.LightIds.color) {
822
822
  val.color_mode = 'rgb';
823
823
  val.color = this.hexToRgb(
824
824
  (await this.adapter.getForeignStateAsync(publish.LightIds.color)).val,
825
825
  );
826
826
  }
827
- if (publish.LightIds.effects) {
827
+ if (id === publish.LightIds.effects) {
828
828
  const effect = (await this.adapter.getForeignStateAsync(publish.LightIds.effects)).val;
829
829
  val.effect = '';
830
830
  if (publish.effects[effect]) {
@@ -124,6 +124,13 @@ class bridgeMqttClientClass {
124
124
  */
125
125
  async publish(topic, message, opt) {
126
126
  this.adapter.log.debug(`Publishing bridge topic: ${topic} with message: ${message}.`);
127
+
128
+ // Write into debug
129
+ if (await this.adapter.objectExists('bridge.debug.outgoingTopic')) {
130
+ await this.adapter.setState('bridge.debug.outgoingTopic', topic, true);
131
+ await this.adapter.setState('bridge.debug.outgoingPayload', message, true);
132
+ }
133
+
127
134
  await this.client.publishAsync(topic, message, opt);
128
135
  }
129
136
 
package/main.js CHANGED
@@ -728,6 +728,30 @@ class Lorawan extends utils.Adapter {
728
728
  },
729
729
  native: {},
730
730
  });
731
+ // Outgoing
732
+ this.extendObject('bridge.debug.outgoingTopic', {
733
+ type: 'state',
734
+ common: {
735
+ name: 'topic of mqtt message',
736
+ type: 'string',
737
+ read: true,
738
+ write: false,
739
+ def: '',
740
+ },
741
+ native: {},
742
+ });
743
+ this.extendObject('bridge.debug.outgoingPayload', {
744
+ type: 'state',
745
+ common: {
746
+ name: 'payload of mqtt message',
747
+ type: 'string',
748
+ role: 'json',
749
+ read: true,
750
+ write: false,
751
+ def: '',
752
+ },
753
+ native: {},
754
+ });
731
755
  await this.setState(id, '', true);
732
756
  }
733
757
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.18.40",
3
+ "version": "1.18.41",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",