iobroker.lovelace 4.1.5 → 4.1.6
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 +4 -6
- package/io-package.json +14 -14
- package/lib/converters/light.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -473,6 +473,10 @@ After that checkout modified version in `./build` folder. Then.
|
|
|
473
473
|
PLACEHOLDER for the next version:
|
|
474
474
|
### **WORK IN PROGRESS**
|
|
475
475
|
-->
|
|
476
|
+
### 4.1.6 (2024-03-07)
|
|
477
|
+
* (Garfonso) remove exessive logging
|
|
478
|
+
* (Garfonso) improve fix for crash again.
|
|
479
|
+
|
|
476
480
|
### 4.1.5 (2024-03-05)
|
|
477
481
|
* (Garfonso) fixed: possible crashes during startup
|
|
478
482
|
|
|
@@ -487,12 +491,6 @@ After that checkout modified version in `./build` folder. Then.
|
|
|
487
491
|
### 4.1.2 (2024-01-09)
|
|
488
492
|
* (Garfonso) fix: time in timestamp display
|
|
489
493
|
|
|
490
|
-
### 4.1.1 (2024-01-02)
|
|
491
|
-
* (Garfonso) changed: determining user id
|
|
492
|
-
* (Garfosno) changed: history attributes handling
|
|
493
|
-
* (Garfonso) added: handle browser_mod/recall_id service call.
|
|
494
|
-
* (Garfonso) changed: all states are strings (fixes #483)
|
|
495
|
-
|
|
496
494
|
## License
|
|
497
495
|
|
|
498
496
|
Copyright 2019-2024, bluefox <dogafox@gmail.com>
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lovelace",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.6",
|
|
5
5
|
"news": {
|
|
6
|
+
"4.1.6": {
|
|
7
|
+
"en": "remove exessive logging\nimprove fix for crash again.",
|
|
8
|
+
"de": "exessive log ausgabe entfernen\nverbesserung der reparatur für crash.",
|
|
9
|
+
"ru": "удалить exessive logging\nулучшить исправление для аварии снова.",
|
|
10
|
+
"pt": "remover registro exessivo\nmelhorar a correção para acidente novamente.",
|
|
11
|
+
"nl": "exessieve logging verwijderen\nverbeteren fix voor crash opnieuw.",
|
|
12
|
+
"fr": "supprimer l'exploitation exessive\naméliorer la correction pour le crash à nouveau.",
|
|
13
|
+
"it": "rimuovere logging exessive\nmigliorare la correzione per crash di nuovo.",
|
|
14
|
+
"es": "remove exessive logging\nmejorar la solución para el accidente de nuevo.",
|
|
15
|
+
"pl": "usunięcie nadmiernego logowania\npoprawić naprawić ponownie awarii.",
|
|
16
|
+
"uk": "видалити есенціальний журнал\nзнову поліпшуйте фіксацію.",
|
|
17
|
+
"zh-cn": "删除 exessive 日志\n改善再次崩溃的修复."
|
|
18
|
+
},
|
|
6
19
|
"4.1.5": {
|
|
7
20
|
"en": "fixed: possible crashes during startup",
|
|
8
21
|
"de": "behoben: mögliche abstürzen beim start",
|
|
@@ -44,19 +57,6 @@
|
|
|
44
57
|
"4.1.0": {
|
|
45
58
|
"en": "add an option to show users on login screen (off by default)",
|
|
46
59
|
"de": "Neu Option um Benutzer auf dem Login-Bildschirm anzuzeigen"
|
|
47
|
-
},
|
|
48
|
-
"4.0.12": {
|
|
49
|
-
"en": "fix lint errors",
|
|
50
|
-
"de": "lint fehler beheben",
|
|
51
|
-
"ru": "исправить ошибки lint",
|
|
52
|
-
"pt": "corrigir erros de lint",
|
|
53
|
-
"nl": "lint fouten",
|
|
54
|
-
"fr": "corriger les erreurs lint",
|
|
55
|
-
"it": "correggere gli errori di lintuizione",
|
|
56
|
-
"es": "corregir errores lint",
|
|
57
|
-
"pl": "błędy lintowe",
|
|
58
|
-
"uk": "виправлено помилки в розмітці",
|
|
59
|
-
"zh-cn": "f 固定错误"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"title": "Visualization with Lovelace-UI",
|
package/lib/converters/light.js
CHANGED
|
@@ -51,7 +51,7 @@ function clearOrRestoreAttributes(entity) {
|
|
|
51
51
|
entity.attributes[attr] = entity.context.STATE.storedValues[attr];
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
adapterData.log.
|
|
54
|
+
//adapterData.log.debug(`Stored old values for next switch on: ${JSON.stringify(entity.context.STATE.storedValues)}`);
|
|
55
55
|
} else {
|
|
56
56
|
for (const attr of attributesToNullOnOff) {
|
|
57
57
|
if (entity.attributes[attr] !== undefined) {
|
|
@@ -59,7 +59,7 @@ function clearOrRestoreAttributes(entity) {
|
|
|
59
59
|
entity.attributes[attr] = null;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
adapterData.log.
|
|
62
|
+
//adapterData.log.debug(`Restored old values from previous switch off: ${JSON.stringify(entity.attributes)}`);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -208,6 +208,9 @@ function _lightAdvancedAddHueAndSat(states, objects, entity) {
|
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
state = state || {val: 0};
|
|
211
|
+
if (!targetAttributes.hs_color) {
|
|
212
|
+
targetAttributes.hs_color = [0, 100];
|
|
213
|
+
}
|
|
211
214
|
targetAttributes.hs_color[0] = state.val / attr.max * 360;
|
|
212
215
|
targetAttributes.color_mode = HS;
|
|
213
216
|
};
|