iobroker.zigbee2mqtt 2.11.0 → 2.12.0

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
@@ -32,11 +32,17 @@ This adapter allows to control the data points of the devices of a Zigbee2MQTT i
32
32
  Placeholder for the next version (at the beginning of the line):
33
33
  ### **WORK IN PROGRESS**
34
34
  -->
35
+ ### 2.12.0 (2023-09-05)
36
+
37
+ - (o0shojo0o) added option `Size of the object icons in pixels`
38
+
35
39
  ### 2.11.0 (2023-08-24)
36
40
 
37
41
  - (o0shojo0o) added automatic download of device image from zigbee2mqtt to meta-storage
42
+ - (o0shojo0o) device images from Meta-Storage added to the object
43
+ - (o0shojo0o) device images from Meta-Storage auto resize to 28x28 pixel for smaller object
38
44
  - (o0shojo0o) added option `Download device images from Zigbee2Mqtt and use them as object icons.`
39
- - (o0shojo0o) fixed Hue_Move
45
+ - (o0shojo0o) fixed Hue_Move ([#223](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/223))
40
46
  - (o0shojo0o) added option `Generate simple 'Hold' and 'Release' states`
41
47
  - (o0shojo0o) added option `Generate simple 'Move' and 'Stop' states`
42
48
  - (o0shojo0o) added option `Generate simple 'Press' and 'Release' states`
@@ -37,5 +37,6 @@
37
37
  "When enabled, the 'Move' and 'Stop' states are combined and the 'Move' data point remains true until the 'Stop' event arrives.": "Bei Aktivierung werden die Datenpunkte „Move“ und „Stop“ kombiniert und der Datenpunkt „Move“ bleibt true, bis das Ereignis „Stop“ eintrifft.",
38
38
  "State configurations": "State konfigurationen",
39
39
  "Generate simple 'Press' and 'Release' states": "Generieren einfache „Press“ und „Release“ States",
40
- "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Wenn diese Option aktiviert ist, werden die Zustände „Press“ und „Release“ kombiniert und der Datenpunkt „Press“ bleibt true, bis das Ereignis „Release“ eintrifft."
40
+ "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Wenn diese Option aktiviert ist, werden die Zustände „Press“ und „Release“ kombiniert und der Datenpunkt „Press“ bleibt true, bis das Ereignis „Release“ eintrifft.",
41
+ "If the size is later changed to a larger value, the images already downloaded must be deleted. <br> Please note that icons are stored in the object and should therefore not be unnecessarily large!": "Wird die Größe später auf einen größeren Wert geändert, müssen die bereits heruntergeladenen Bilder gelöscht werden. <br> Bitte beachten Sie, dass Icons im Objekt gespeichert werden und daher nicht unnötig groß sein sollten!"
41
42
  }
@@ -37,5 +37,6 @@
37
37
  "When enabled, the 'Move' and 'Stop' states are combined and the 'Move' data point remains true until the 'Stop' event arrives.": "When enabled, the 'Move' and 'Stop' states are combined and the 'Move' data point remains true until the 'Stop' event arrives.",
38
38
  "State configurations": "State configurations",
39
39
  "Generate simple 'Press' and 'Release' states": "Generate simple 'Press' and 'Release' states",
40
- "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives."
40
+ "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.",
41
+ "If the size is later changed to a larger value, the images already downloaded must be deleted. <br> Please note that icons are stored in the object and should therefore not be unnecessarily large!": "If the size is later changed to a larger value, the images already downloaded must be deleted. <br> Please note that icons are stored in the object and should therefore not be unnecessarily large!"
41
42
  }
@@ -37,5 +37,6 @@
37
37
  "When enabled, the 'Move' and 'Stop' states are combined and the 'Move' data point remains true until the 'Stop' event arrives.": "Cuando está habilitado, los estados 'Mover' y 'Detener' se combinan y el punto de datos 'Mover' permanece verdadero hasta que llega el evento 'Detener'.",
38
38
  "State configurations": "Configuraciones de estado",
39
39
  "Generate simple 'Press' and 'Release' states": "Genere estados simples de \"Presionar\" y \"Liberar\"",
40
- "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Cuando está habilitado, los estados \"Presionar\" y \"Liberar\" se combinan y el punto de datos \"Presionar\" permanece verdadero hasta que llega el evento \"Liberar\"."
40
+ "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Cuando está habilitado, los estados \"Presionar\" y \"Liberar\" se combinan y el punto de datos \"Presionar\" permanece verdadero hasta que llega el evento \"Liberar\".",
41
+ "If the size is later changed to a larger value, the images already downloaded must be deleted. <br> Please note that icons are stored in the object and should therefore not be unnecessarily large!": "Si posteriormente se cambia el tamaño a un valor mayor, se deben eliminar las imágenes ya descargadas. <br> ¡Tenga en cuenta que los iconos se almacenan en el objeto y, por lo tanto, no deben ser innecesariamente grandes!"
41
42
  }
@@ -37,5 +37,6 @@
37
37
  "When enabled, the 'Move' and 'Stop' states are combined and the 'Move' data point remains true until the 'Stop' event arrives.": "Lorsqu'il est activé, les états 'Move' et 'Stop' sont combinés et le point de données 'Move' reste vrai jusqu'à ce que l'événement 'Stop' arrive.",
38
38
  "State configurations": "Configurations d'état",
39
39
  "Generate simple 'Press' and 'Release' states": "Générer des états simples « Presser » et « Relâcher »",
40
- "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Lorsqu'ils sont activés, les états « Press » et « Release » sont combinés et le point de données « Press » reste vrai jusqu'à ce que l'événement « Release » arrive."
40
+ "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Lorsqu'ils sont activés, les états « Press » et « Release » sont combinés et le point de données « Press » reste vrai jusqu'à ce que l'événement « Release » arrive.",
41
+ "If the size is later changed to a larger value, the images already downloaded must be deleted. <br> Please note that icons are stored in the object and should therefore not be unnecessarily large!": "Si la taille est ultérieurement modifiée pour une valeur plus grande, les images déjà téléchargées doivent être supprimées. <br> Veuillez noter que les icônes sont stockées dans l'objet et ne doivent donc pas être inutilement grandes !"
41
42
  }
@@ -37,5 +37,6 @@
37
37
  "When enabled, the 'Move' and 'Stop' states are combined and the 'Move' data point remains true until the 'Stop' event arrives.": "Se abilitato, gli stati 'Move' e 'Stop' vengono combinati e il punto dati 'Move' rimane vero fino all'arrivo dell'evento 'Stop'.",
38
38
  "State configurations": "Configurazioni di stato",
39
39
  "Generate simple 'Press' and 'Release' states": "Genera semplici stati \"Stampa\" e \"Rilascio\".",
40
- "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Se abilitati, gli stati \"Press\" e \"Rilascio\" vengono combinati e il punto dati \"Press\" rimane vero fino all'arrivo dell'evento \"Rilascio\"."
40
+ "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Se abilitati, gli stati \"Press\" e \"Rilascio\" vengono combinati e il punto dati \"Press\" rimane vero fino all'arrivo dell'evento \"Rilascio\".",
41
+ "If the size is later changed to a larger value, the images already downloaded must be deleted. <br> Please note that icons are stored in the object and should therefore not be unnecessarily large!": "Se la dimensione viene successivamente modificata con un valore maggiore, le immagini già scaricate dovranno essere cancellate. <br> Tieni presente che le icone sono memorizzate nell'oggetto e quindi non dovrebbero essere inutilmente grandi!"
41
42
  }
@@ -37,5 +37,6 @@
37
37
  "When enabled, the 'Move' and 'Stop' states are combined and the 'Move' data point remains true until the 'Stop' event arrives.": "Indien ingeschakeld, worden de toestanden 'Verplaatsen' en 'Stop' gecombineerd en blijft het gegevenspunt 'Verplaatsen' waar totdat de gebeurtenis 'Stop' arriveert.",
38
38
  "State configurations": "Staat configuraties",
39
39
  "Generate simple 'Press' and 'Release' states": "Genereer eenvoudige 'Druk'- en 'loslaat'-statussen",
40
- "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Indien ingeschakeld, worden de statussen 'Press' en 'Release' gecombineerd en blijft het datapunt 'Press' waar totdat de gebeurtenis 'Release' arriveert."
40
+ "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Indien ingeschakeld, worden de statussen 'Press' en 'Release' gecombineerd en blijft het datapunt 'Press' waar totdat de gebeurtenis 'Release' arriveert.",
41
+ "If the size is later changed to a larger value, the images already downloaded must be deleted. <br> Please note that icons are stored in the object and should therefore not be unnecessarily large!": "Als de grootte later wordt gewijzigd naar een grotere waarde, moeten de reeds gedownloade afbeeldingen worden verwijderd. <br> Let op: iconen worden in het object opgeslagen en mogen dus niet onnodig groot zijn!"
41
42
  }
@@ -37,5 +37,6 @@
37
37
  "When enabled, the 'Move' and 'Stop' states are combined and the 'Move' data point remains true until the 'Stop' event arrives.": "Po włączeniu stany „Przenieś” i „Zatrzymaj” są łączone, a punkt danych „Przenieś” pozostaje prawdziwy do momentu nadejścia zdarzenia „Zatrzymaj”.",
38
38
  "State configurations": "Konfiguracje stanów",
39
39
  "Generate simple 'Press' and 'Release' states": "Generuj proste stany „Naciśnij” i „Zwolnij”.",
40
- "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Po włączeniu stany „Naciśnij” i „Zwolnij” są łączone, a punkt danych „Naciśnij” pozostaje prawdziwy do momentu pojawienia się zdarzenia „Zwolnij”."
40
+ "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Po włączeniu stany „Naciśnij” i „Zwolnij” są łączone, a punkt danych „Naciśnij” pozostaje prawdziwy do momentu pojawienia się zdarzenia „Zwolnij”.",
41
+ "If the size is later changed to a larger value, the images already downloaded must be deleted. <br> Please note that icons are stored in the object and should therefore not be unnecessarily large!": "Jeśli rozmiar zostanie później zmieniony na większy, już pobrane obrazy muszą zostać usunięte. <br> Należy pamiętać, że ikony są przechowywane w obiekcie i dlatego nie powinny być niepotrzebnie duże!"
41
42
  }
@@ -37,5 +37,6 @@
37
37
  "When enabled, the 'Move' and 'Stop' states are combined and the 'Move' data point remains true until the 'Stop' event arrives.": "Quando ativado, os estados 'Mover' e 'Parar' são combinados e o ponto de dados 'Mover' permanece verdadeiro até que o evento 'Parar' chegue.",
38
38
  "State configurations": "configurações de estado",
39
39
  "Generate simple 'Press' and 'Release' states": "Gere estados simples de 'Pressionar' e 'Liberar'",
40
- "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Quando ativado, os estados 'Press' e 'Release' são combinados e o ponto de dados 'Press' permanece verdadeiro até que o evento 'Release' chegue."
40
+ "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Quando ativado, os estados 'Press' e 'Release' são combinados e o ponto de dados 'Press' permanece verdadeiro até que o evento 'Release' chegue.",
41
+ "If the size is later changed to a larger value, the images already downloaded must be deleted. <br> Please note that icons are stored in the object and should therefore not be unnecessarily large!": "Se o tamanho for alterado posteriormente para um valor maior, as imagens já baixadas deverão ser excluídas. <br> Observe que os ícones são armazenados no objeto e, portanto, não devem ser desnecessariamente grandes!"
41
42
  }
@@ -37,5 +37,6 @@
37
37
  "When enabled, the 'Move' and 'Stop' states are combined and the 'Move' data point remains true until the 'Stop' event arrives.": "Когда эта функция включена, состояния «Перемещение» и «Стоп» объединяются, и точка данных «Перемещение» остается истинной до тех пор, пока не наступит событие «Стоп».",
38
38
  "State configurations": "Конфигурации состояния",
39
39
  "Generate simple 'Press' and 'Release' states": "Создавайте простые состояния «Нажмите» и «Отпустите».",
40
- "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Если этот параметр включен, состояния «Нажатие» и «Отпуск» объединяются, и точка данных «Нажатие» остается истинной до тех пор, пока не произойдет событие «Отпуск»."
40
+ "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Если этот параметр включен, состояния «Нажатие» и «Отпуск» объединяются, и точка данных «Нажатие» остается истинной до тех пор, пока не произойдет событие «Отпуск».",
41
+ "If the size is later changed to a larger value, the images already downloaded must be deleted. <br> Please note that icons are stored in the object and should therefore not be unnecessarily large!": "Если размер позже будет изменен на большее значение, уже загруженные изображения необходимо удалить. <br> Обратите внимание, что значки хранятся в объекте и поэтому не должны быть излишне большими!"
41
42
  }
@@ -37,5 +37,6 @@
37
37
  "When enabled, the 'Move' and 'Stop' states are combined and the 'Move' data point remains true until the 'Stop' event arrives.": "Якщо ввімкнено, стани «Переміщення» та «Зупинити» поєднуються, а точка даних «Переміщення» залишається істинною, доки не надійде подія «Зупинити».",
38
38
  "State configurations": "Конфігурації стану",
39
39
  "Generate simple 'Press' and 'Release' states": "Створення простих станів «Натиснути» та «Випустити».",
40
- "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Якщо ввімкнено, стани «Натиснути» та «Випустити» поєднуються, а точка даних «Натиснути» залишається істинною, доки не надійде подія «Випуск»."
40
+ "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "Якщо ввімкнено, стани «Натиснути» та «Випустити» поєднуються, а точка даних «Натиснути» залишається істинною, доки не надійде подія «Випуск».",
41
+ "If the size is later changed to a larger value, the images already downloaded must be deleted. <br> Please note that icons are stored in the object and should therefore not be unnecessarily large!": "Якщо пізніше розмір буде змінено на більше, уже завантажені зображення необхідно видалити. <br> Зверніть увагу, що піктограми зберігаються в об'єкті, тому вони не повинні бути надмірно великими!"
41
42
  }
@@ -37,5 +37,6 @@
37
37
  "When enabled, the 'Move' and 'Stop' states are combined and the 'Move' data point remains true until the 'Stop' event arrives.": "启用后,“移动”和“停止”状态将组合在一起,并且“移动”数据点保持为真,直到“停止”事件到达。",
38
38
  "State configurations": "状态配置",
39
39
  "Generate simple 'Press' and 'Release' states": "生成简单的“按下”和“释放”状态",
40
- "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "启用后,“按下”和“释放”状态将组合在一起,并且“按下”数据点保持为真,直到“释放”事件到达。"
40
+ "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.": "启用后,“按下”和“释放”状态将组合在一起,并且“按下”数据点保持为真,直到“释放”事件到达。",
41
+ "If the size is later changed to a larger value, the images already downloaded must be deleted. <br> Please note that icons are stored in the object and should therefore not be unnecessarily large!": "如果稍后将大小更改为更大的值,则必须删除已下载的图像。 <br> 请注意,图标存储在对象中,因此不应过大!"
41
42
  }
@@ -210,12 +210,6 @@
210
210
  "help": "When enabled, the 'Press' and 'Release' states are combined and the 'Press' data point remains true until the 'Release' event arrives.",
211
211
  "newLine": true
212
212
  },
213
- "otherHeader": {
214
- "type": "header",
215
- "text": "Other configurations",
216
- "size": 2,
217
- "newLine": true
218
- },
219
213
  "brightnessMoveOnOff": {
220
214
  "type": "checkbox",
221
215
  "label": "Brightness move should also turn the light on or off",
@@ -226,6 +220,30 @@
226
220
  "label": "Brightness step should also turn the light on or off",
227
221
  "newLine": true
228
222
  },
223
+ "imageHeader": {
224
+ "type": "header",
225
+ "text": "Device image configurations",
226
+ "size": 2,
227
+ "newLine": true
228
+ },
229
+ "useDeviceIcons": {
230
+ "type": "checkbox",
231
+ "label": "Download device images from Zigbee2Mqtt and use them as object icons.",
232
+ "help": "If the size is later changed to a larger value, the images already downloaded must be deleted. <br> Please note that icons are stored in the object and should therefore not be unnecessarily large!",
233
+ "newLine": true
234
+ },
235
+ "deviceIconsSize": {
236
+ "type": "number",
237
+ "label": "Size of the object icons in pixels",
238
+ "min": 8,
239
+ "newLine": true
240
+ },
241
+ "otherHeader": {
242
+ "type": "header",
243
+ "text": "Other configurations",
244
+ "size": 2,
245
+ "newLine": true
246
+ },
229
247
  "proxyZ2MLogs": {
230
248
  "type": "checkbox",
231
249
  "label": "Proxy Zigbee2MQTT logs to ioBroker logs",
@@ -235,11 +253,6 @@
235
253
  "type": "checkbox",
236
254
  "label": "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.",
237
255
  "newLine": true
238
- },
239
- "useDeviceIcons": {
240
- "type": "checkbox",
241
- "label": "Download device images from Zigbee2Mqtt and use them as object icons.",
242
- "newLine": true
243
256
  }
244
257
  }
245
258
  }
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "zigbee2mqtt",
4
- "version": "2.11.0",
4
+ "version": "2.12.0",
5
5
  "news": {
6
+ "2.12.0": {
7
+ "en": "added option `Size of the object icons in pixels`",
8
+ "de": "zusätzliche Option ` Größe der Objektsymbole in Pixeln`",
9
+ "ru": "добавлена опция `Размер иконок объекта в пикселях`",
10
+ "pt": "opção adicionada `Tamanho dos ícones do objeto em pixels`",
11
+ "nl": "voegde optie van het object in pixels",
12
+ "fr": "option ajoutée ` Taille de l'objet icônes en pixels`",
13
+ "it": "opzione aggiunta `Size delle icone dell'oggetto in pixel`",
14
+ "es": "opción agregada `Tamaño de los iconos objeto en pixels`",
15
+ "pl": "dodano opcję `Size of the object icons in pixels'",
16
+ "uk": "додано опцію `Size іконок об’єкта у пікселях`",
17
+ "zh-cn": "添加了“白盔”的选项。"
18
+ },
6
19
  "2.11.0": {
7
20
  "en": "added automatic download of device image from zigbee2mqtt to meta-storage\nadded option `Download device images from Zigbee2Mqtt and use them as object icons.`\nfixed Hue_Move \nadded option `Generate simple 'Hold' and 'Release' states`\nadded option `Generate simple 'Move' and 'Stop' states`\nadded option `Generate simple 'Press' and 'Release' states`",
8
21
  "de": "automatischer download des gerätebildes von zigbee2mqtt zu meta-storage\n` Gerätebilder von Zigbee2Mqtt herunterladen und als Objektsymbole verwenden. `\nhue_Move\nzusatzoption `Generieren Sie einfache Halte- und Freigabezustände `\nzusätzliche Option `Generieren Sie einfache Verschiebe- und Stopp-Zustände `\nzusätzliche Option `Generieren Sie einfache Presse- und Freigabezustände `",
@@ -80,19 +93,6 @@
80
93
  "pl": "dodano stan ostatni_seen:/time of last Zigbee message #131(https:/github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/131)",
81
94
  "uk": "додано стан last_seen містить дату/час останнього повідомлення Zigbee [#131](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/131)",
82
95
  "zh-cn": "添加国家:见最后Zigbee信息的日期/时间[第131号](http://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/131)"
83
- },
84
- "2.7.4": {
85
- "en": "fix for Aqara presence detector FP1 `reset_nopresence_status`",
86
- "de": "fix für Aqara Präsenzmelder FP1 reset_nopresence_status",
87
- "ru": "фикс для Aqara детектор присутствия FP1 reset_nopresence_status",
88
- "pt": "correção para o detector de presença de Aqara FP1 reset_nopresence_status",
89
- "nl": "vertaling:",
90
- "fr": "fix pour détecteur de présence Aqara FP1 reset_nopresence_status",
91
- "it": "correzione per rilevatore di presenza Aqara FP1 reset_nopresence_status",
92
- "es": "fijado para el detector de presencia Aqara FP1 reset_nopresence_status",
93
- "pl": "reset_nopresence_status (ang.)",
94
- "uk": "фіксація для датчика присутності Aqara FP1 скидання_nopresence_status",
95
- "zh-cn": "fix Aqara存在探测器FP1 重新定位_nopreence_status"
96
96
  }
97
97
  },
98
98
  "messages": [
@@ -249,6 +249,7 @@
249
249
  "brightnessStepOnOff": false,
250
250
  "useEventInDesc": true,
251
251
  "useDeviceIcons": false,
252
+ "deviceIconsSize": 28,
252
253
  "simpleHoldReleaseState": true,
253
254
  "simpleMoveStopState": false,
254
255
  "simplePressReleaseState": false
@@ -27,11 +27,12 @@ class ImageController {
27
27
  }
28
28
 
29
29
  async getDeviceIcon(device) {
30
-
31
30
  if (this.adapter.config.useDeviceIcons == false) {
32
31
  return '';
33
32
  }
34
33
 
34
+ const imageSize = this.adapter.config.deviceIconsSize;
35
+
35
36
  const z2mIconFileName = `${this.sanitizeZ2MDeviceName(device.definition.model)}.jpg`;
36
37
  const slsIconFileName = `${this.sanitizeModelIDForImageUrl(device.model_id)}.png`;
37
38
 
@@ -67,13 +68,13 @@ class ImageController {
67
68
  // Load Image Metadata
68
69
  const origIconMeta = await sharp(icon.file).metadata();
69
70
  // Check whether the image needs to be resized
70
- if ((origIconMeta.height && origIconMeta.height > 28) || (origIconMeta.width && origIconMeta.width > 28)) {
71
+ if ((origIconMeta.height && origIconMeta.height > imageSize) || (origIconMeta.width && origIconMeta.width > imageSize)) {
71
72
  // Resize image to 28x28 pixel
72
- this.adapter.log.info(`Resize image for device model ${device.definition.model} from: ${origIconMeta.width}x${origIconMeta.height} to 28x28`);
73
+ this.adapter.log.info(`Resize image for device model ${device.definition.model} from: ${origIconMeta.width}x${origIconMeta.height} to ${imageSize}x${imageSize}`);
73
74
  icon.file = await sharp(icon.file)
74
75
  .resize({
75
- width: 28,
76
- height: 28,
76
+ width: imageSize,
77
+ height: imageSize,
77
78
  fit: sharp.fit.cover,
78
79
  position: sharp.strategy.entropy
79
80
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.zigbee2mqtt",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "description": "Zigbee2MQTT adapter for ioBroker",
5
5
  "author": {
6
6
  "name": "Dennis Rathjen",
@@ -22,7 +22,7 @@
22
22
  "@iobroker/adapter-core": "^3.0.3",
23
23
  "aedes": "^0.50.0",
24
24
  "aedes-persistence-nedb": "^2.0.3",
25
- "mqtt": "^5.0.3",
25
+ "mqtt": "^5.0.4",
26
26
  "net": "^1.0.2",
27
27
  "sharp": "^0.32.5",
28
28
  "ws": "^8.13.0"
@@ -38,17 +38,17 @@
38
38
  "@types/chai": "^4.3.5",
39
39
  "@types/chai-as-promised": "^7.1.5",
40
40
  "@types/mocha": "^10.0.1",
41
- "@types/node": "^20.5.4",
41
+ "@types/node": "^20.5.7",
42
42
  "@types/proxyquire": "^1.3.28",
43
43
  "@types/sinon": "^10.0.16",
44
44
  "@types/sinon-chai": "^3.2.9",
45
45
  "chai": "^4.3.8",
46
46
  "chai-as-promised": "^7.1.1",
47
- "eslint": "^8.47.0",
47
+ "eslint": "^8.48.0",
48
48
  "eslint-config-prettier": "^9.0.0",
49
49
  "eslint-plugin-prettier": "^5.0.0",
50
50
  "mocha": "^10.2.0",
51
- "prettier": "^3.0.2",
51
+ "prettier": "^3.0.3",
52
52
  "proxyquire": "^2.1.3",
53
53
  "sinon": "^15.2.0",
54
54
  "sinon-chai": "^3.7.0",