iobroker.lorawan 1.22.32 → 1.22.33

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
@@ -21,13 +21,16 @@ For now there is documentation in English here: https://wiki.hafenmeister.de
21
21
 
22
22
  ### Home Assistant sensor discovery
23
23
 
24
- For numeric sensor entities, the bridge assigns Home Assistant `device_class` and `state_class` attributes according to the adapter's counter-first convention. Current measurements use `measurement`. Energy values in `Wh`, `kWh`, or `MWh`, as well as values identified by an ioBroker energy or consumption role, are treated as consumption counters and use `total_increasing` for Home Assistant energy statistics. If a quantity cannot be distinguished reliably from a consumption reading, the bridge prefers counter semantics: `m³` and `ft³` are published as `gas` with `total_increasing`, and `L` as `water` with `total_increasing`. `mL` and `gal` remain generic `volume` values. Ambiguous concentration units such as `ppm`, `ppb`, or `µg/m³` do not imply a specific substance. `L/min`, `L/s`, and `m³/h` use `volume_flow_rate`.
24
+ For numeric sensor entities, the bridge assigns Home Assistant `device_class` and `state_class` attributes according to the adapter's counter-first convention. Current measurements use `measurement`. Wind direction states with the ioBroker role `value.direction.wind` use the device class `wind_direction` and state class `measurement_angle`; an existing unit is retained, while `°` is added if no unit is defined. Energy values in `Wh`, `kWh`, or `MWh`, as well as values identified by an ioBroker energy or consumption role, are treated as consumption counters and use `total_increasing` for Home Assistant energy statistics. If a quantity cannot be distinguished reliably from a consumption reading, the bridge prefers counter semantics: `m³` and `ft³` are published as `gas` with `total_increasing`, and `L` as `water` with `total_increasing`. `mL` and `gal` remain generic `volume` values. Ambiguous concentration units such as `ppm`, `ppb`, or `µg/m³` do not imply a specific substance. `L/min`, `L/s`, and `m³/h` use `volume_flow_rate`.
25
25
 
26
26
  ## Changelog
27
27
  <!--
28
28
  Placeholder for the next version (at the beginning of the line):
29
29
  ### **WORK IN PROGRESS**
30
30
  -->
31
+ ### 1.22.33 (2026-08-19)
32
+ - (BenAhrdt) Add Home Assistant wind direction and angle measurement classification
33
+
31
34
  ### 1.22.32 (2026-08-19)
32
35
  - (BenAhrdt) Align Home Assistant sensor device classes, state classes, and units with the current specification
33
36
 
@@ -41,9 +44,6 @@ For numeric sensor entities, the bridge assigns Home Assistant `device_class` an
41
44
  ### 1.22.29 (2026-07-06)
42
45
  - (BenAhrdt) Add some roles and units to assignhandler
43
46
 
44
- ### 1.22.28 (2026-07-05)
45
- - (BenAhrdt) Add DewPointTemperature to assignhandler
46
-
47
47
  [Older changes can be found there](CHANGELOG_OLD.md)
48
48
 
49
49
  ## DISCLAIMER
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "1.22.32",
4
+ "version": "1.22.33",
5
5
  "news": {
6
+ "1.22.33": {
7
+ "en": "Add Home Assistant wind direction and angle measurement classification",
8
+ "de": "Klassifizierung der Windrichtungs- und Winkelmessung in Home Assistant hinzufügen",
9
+ "ru": "Добавить в Home Assistant классификацию измерения направления и угла ветра",
10
+ "pt": "Adicionar classificação de medição de direção e ângulo do vento ao Home Assistant",
11
+ "nl": "Voeg een classificatie voor windrichting en -hoekmeting toe aan Home Assistant.",
12
+ "fr": "Ajouter une classification aux mesures de direction et d'angle du vent dans Home Assistant",
13
+ "it": "Aggiungi la classificazione della misurazione della direzione e dell'angolo del vento in Home Assistant",
14
+ "es": "Agregar a Home Assistant la clasificación de medición de dirección y ángulo del viento",
15
+ "pl": "Dodaj klasyfikację pomiaru kierunku i kąta wiatru w Asystencie Domowym",
16
+ "uk": "Додайте класифікацію вимірювання напрямку та кута вітру для Home Assistant",
17
+ "zh-cn": "添加 Home Assistant 风向和风角测量分类"
18
+ },
6
19
  "1.22.32": {
7
20
  "en": "Align Home Assistant sensor device classes, state classes, and units with the current specification",
8
21
  "de": "Richten Sie die Sensorgeräteklassen, Statusklassen und Einheiten von Home Assistant an die aktuelle Spezifikation aus.",
@@ -80,19 +93,6 @@
80
93
  "pl": "Ostrzeżenie o naprawie błędu dotyczącego nieprawidłowego identyfikatora\nDodaj profil do downloadconfig",
81
94
  "uk": "Попередження про виправлення помилки для неправильного ідентифікатора\nДодати профіль до завантаженої конфігурації",
82
95
  "zh-cn": "修复错误 ID 警告\n将配置文件添加到 downloadconfig"
83
- },
84
- "1.22.26": {
85
- "en": "Add ststes into Lock entity for ToIob devices",
86
- "de": "Fügen Sie Statusmeldungen zur Sperrentität für ToIob-Geräte hinzu.",
87
- "ru": "Добавьте sttes в сущность Lock для устройств ToIob.",
88
- "pt": "Adicionar estados à entidade Lock para dispositivos ToIob",
89
- "nl": "Voeg statussen toe aan de Lock-entiteit voor ToIob-apparaten.",
90
- "fr": "Ajouter des ststes à l'entité Verrou pour les périphériques ToIob",
91
- "it": "Aggiungi stati all'entità Blocco per i dispositivi ToIob",
92
- "es": "Agregar estados a la entidad Bloqueo para dispositivos ToIob",
93
- "pl": "Dodaj stacje do encji blokady dla urządzeń ToIob",
94
- "uk": "Додати станції до сутності блокування для пристроїв ToIob",
95
- "zh-cn": "将状态添加到锁定实体中,用于 ToIob 设备"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -1646,6 +1646,10 @@ class bridgeClass extends EventEmiter {
1646
1646
  } else if (role.includes('illuminance') || role.includes('brightness')) {
1647
1647
  attributes.device_class = 'illuminance';
1648
1648
  attributes.unit_of_measurement = 'lx'; //normalizedUnit || 'lx';
1649
+ } else if (role.includes('direction.wind')) {
1650
+ attributes.device_class = 'wind_direction';
1651
+ attributes.state_class = 'measurement_angle';
1652
+ attributes.unit_of_measurement = normalizedUnit || '°';
1649
1653
  } else if (role.includes('battery')) {
1650
1654
  attributes.device_class = 'battery';
1651
1655
  attributes.entity_category = 'diagnostic';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "1.22.32",
3
+ "version": "1.22.33",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",