iobroker.lovelace 4.1.2 → 4.1.5
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 +46 -44
- package/io-package.json +76 -22
- package/lib/converters/genericConverter.js +1 -1
- package/lib/converters/light.js +125 -35
- package/lib/dataSingleton.js +1 -0
- package/lib/modules/browser_mod.js +1 -1
- package/lib/modules/logbook.js +10 -8
- package/lib/server.js +149 -146
- package/main.js +21 -19
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -11,16 +11,16 @@
|
|
|
11
11
|
|
|
12
12
|
## lovelace adapter for ioBroker
|
|
13
13
|
|
|
14
|
-
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI.
|
|
14
|
+
With this adapter, you can build visualization for ioBroker with Home Assistant Lovelace UI.
|
|
15
15
|
|
|
16
16
|
[Deutsche Dokumentation](docs/de/README.md)
|
|
17
17
|
|
|
18
18
|
## Instance objects
|
|
19
|
-
In the folder instances there are some objects that can be used to control the UI. For every browser a new subfolder will
|
|
20
|
-
be created with a random ID. This ID is stored in the client browser's web storage. If you delete the web storage a new
|
|
19
|
+
In the folder instances, there are some objects that can be used to control the UI. For every browser, a new subfolder will
|
|
20
|
+
be created with a random ID. This ID is stored in the client browser's web storage. If you delete the web storage, a new
|
|
21
21
|
instance will be created. If you use Fully Kiosk Browser make sure the function `Delete webstorage on reload` is **disabled**.
|
|
22
22
|
|
|
23
|
-
This functionality uses browser_mod, which is installed and updated by the adapter. Do not add your own version of browser_mod as custom card.
|
|
23
|
+
This functionality uses browser_mod, which is installed and updated by the adapter. Do not add your own version of browser_mod as a custom card.
|
|
24
24
|
|
|
25
25
|
## Configuration
|
|
26
26
|
There are two ways how the entities could be configured:
|
|
@@ -35,7 +35,7 @@ In auto mode the similar process will be applied like for `google home` or `mate
|
|
|
35
35
|
You can define friendly names and this will be used in entities.
|
|
36
36
|
|
|
37
37
|
### Manual
|
|
38
|
-
The objects can be defined manually in object tree like sql or histroy. The type of entity must be provided and optionally the name of object.
|
|
38
|
+
The objects can be defined manually in an object tree like sql or histroy. The type of entity must be provided and optionally the name of object.
|
|
39
39
|
With this method only simple entities, like input_number, input_text or input_boolean could be created. It may not have more than one state or attribute.
|
|
40
40
|
|
|
41
41
|
## Panels
|
|
@@ -96,8 +96,8 @@ common: {
|
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
### Select input
|
|
99
|
-
This can be done manually if input_select entity type in custom dialog is selected.
|
|
100
|
-
The list of options to select from should be
|
|
99
|
+
This can be done manually if `input_select` entity type in custom dialog is selected.
|
|
100
|
+
The list of options to select from should be provided in a standard `common.states` object:
|
|
101
101
|
|
|
102
102
|
```
|
|
103
103
|
"common": {
|
|
@@ -115,10 +115,10 @@ The list of options to select from should be provide in standard commom.states o
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
```
|
|
118
|
-
in other words
|
|
118
|
+
in other words, there should also be select input in IoB.
|
|
119
119
|
|
|
120
120
|
### Timer
|
|
121
|
-
Timer could be simulated by following script:
|
|
121
|
+
Timer could be simulated by the following script:
|
|
122
122
|
|
|
123
123
|
```
|
|
124
124
|
createState(
|
|
@@ -202,11 +202,11 @@ createState(
|
|
|
202
202
|
```
|
|
203
203
|
|
|
204
204
|
### Weather
|
|
205
|
-
Tested with yr and daswetter
|
|
206
|
-
- daswetter.0.NextDays.Location_1
|
|
207
|
-
- yr.0.forecast
|
|
205
|
+
Tested with `yr` and `daswetter`. One or more of the following objects must have `Function=Weather` and `Room=Any` set to be available in configuration:
|
|
206
|
+
- `daswetter.0.NextDays.Location_1`
|
|
207
|
+
- `yr.0.forecast`
|
|
208
208
|
|
|
209
|
-
Tested with AccuWeather driver v1.1.0 https://github.com/iobroker-community-adapters/ioBroker.accuweather.
|
|
209
|
+
Tested with `AccuWeather` driver v1.1.0 https://github.com/iobroker-community-adapters/ioBroker.accuweather.
|
|
210
210
|
Custom Lovelace card created in support of accuweather forecast - https://github.com/algar42/IoB.lovelace.accuweather-card
|
|
211
211
|
|
|
212
212
|
### Shopping list
|
|
@@ -235,7 +235,7 @@ createState('location', '39.5681295;2.6432632', false, {
|
|
|
235
235
|
});
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
-
or
|
|
238
|
+
or these two objects:
|
|
239
239
|
|
|
240
240
|
```
|
|
241
241
|
createState('location.longitude', 2.6432632, false, {
|
|
@@ -257,7 +257,7 @@ createState('location.latitude', 39.5681295, false, {
|
|
|
257
257
|
```
|
|
258
258
|
|
|
259
259
|
### Picture entity
|
|
260
|
-
You can use static picture for it or use any state that delivers URL as state.
|
|
260
|
+
You can use static picture for it or use any state that delivers URL as a state.
|
|
261
261
|
E.g.:
|
|
262
262
|
|
|
263
263
|
```
|
|
@@ -275,34 +275,34 @@ E.g.:
|
|
|
275
275
|
}
|
|
276
276
|
```
|
|
277
277
|
|
|
278
|
-
or just set
|
|
278
|
+
or just manually set the entity type to `camera` and write URL into it.
|
|
279
279
|
|
|
280
280
|
### Markdown
|
|
281
281
|
You can use bindings in markdown like in [iobroker.vis](https://github.com/ioBroker/ioBroker.vis#bindings-of-objects).
|
|
282
282
|
|
|
283
|
-
E.g
|
|
283
|
+
E.g., Text `Admin adapter is {a:system.adapter.admin.0.alive;a === true || a === 'true' ? ' ' : 'not '} *alive*.` will produce text `Admin adapter is alive` in a markdown panel.
|
|
284
284
|
|
|
285
285
|
## Custom cards
|
|
286
286
|
### Upload of custom cards
|
|
287
|
-
To upload the custom card write following:
|
|
287
|
+
To upload the custom card, write the following:
|
|
288
288
|
|
|
289
289
|
```iobroker file write PATH_TO_FILE\bignumber-card.js /lovelace.0/cards/```
|
|
290
290
|
|
|
291
291
|
After restart of lovelace adapter it will include all files from the `cards` directory automatically.
|
|
292
292
|
|
|
293
|
-
|
|
294
|
-
- bignumber-card
|
|
295
|
-
- simple-thermostat
|
|
296
|
-
- thermostat
|
|
293
|
+
The following custom cards could be tested successfully:
|
|
294
|
+
- `bignumber-card`: https://github.com/custom-cards/bignumber-card/blob/master/bignumber-card.js
|
|
295
|
+
- `simple-thermostat`: https://github.com/nervetattoo/simple-thermostat/releases (take the latest release)
|
|
296
|
+
- `thermostat`: https://github.com/ciotlosm/custom-lovelace/tree/master/thermostat-card (both files .js and .lib.js are required)
|
|
297
297
|
|
|
298
298
|
I found this link https://github.com/jimz011/homeassistant as an interesting resource for custom cards.
|
|
299
299
|
|
|
300
|
-
Often the custom cards are stored on
|
|
301
|
-
You should check the `Releases` menu on
|
|
300
|
+
Often the custom cards are stored on GitHub as sources and must be compiled before use.
|
|
301
|
+
You should check the `Releases` menu on GitHub and try to find compiled files there.
|
|
302
302
|
Like this one: [https://github.com/kalkih/mini-graph-card/releases](https://github.com/kalkih/mini-graph-card/releases) (Look for the file `mini-graph-card-bundle.js`)
|
|
303
303
|
|
|
304
304
|
## Own images
|
|
305
|
-
The custom images (e.g
|
|
305
|
+
The custom images (e.g., for a background) could be loaded via the same configuration dialog like the custom cards. And use it like this:
|
|
306
306
|
|
|
307
307
|
`background: center / cover no-repeat url("/cards/background.jpg") fixed`
|
|
308
308
|
|
|
@@ -310,10 +310,10 @@ or
|
|
|
310
310
|
|
|
311
311
|
`background: center / cover no-repeat url("/local/custom_ui/background.jpg") fixed`
|
|
312
312
|
|
|
313
|
-
in lovelace configuration file. Read more about background in lovelace [here](https://www.home-assistant.io/lovelace/views/#background).
|
|
313
|
+
in lovelace configuration file. Read more about the background in lovelace [here](https://www.home-assistant.io/lovelace/views/#background).
|
|
314
314
|
|
|
315
315
|
## Themes
|
|
316
|
-
The themes can be defined in configuration dialog of ioBroker.
|
|
316
|
+
The themes can be defined in the configuration dialog of ioBroker.
|
|
317
317
|
Paste something like:
|
|
318
318
|
```
|
|
319
319
|
midnight:
|
|
@@ -386,7 +386,7 @@ midnight:
|
|
|
386
386
|
taken from [here](https://community.home-assistant.io/t/midnight-theme/28598/2).
|
|
387
387
|
|
|
388
388
|
## Icons
|
|
389
|
-
Use icons in form `mdi:NAME`, like
|
|
389
|
+
Use icons in form `mdi:NAME`, like `mdi:play-network`. Names can be taken from here: https://materialdesignicons.com/
|
|
390
390
|
|
|
391
391
|
## Notifications
|
|
392
392
|
You can add notifications via `sendTo` functionality or by writing the state into `lovelace.X.notifications.add`:
|
|
@@ -419,14 +419,14 @@ on({id: 'lovelace.0.conversation', ack: false, change: 'any'}, obj => {
|
|
|
419
419
|
|
|
420
420
|
## Trouble Shooting
|
|
421
421
|
If you messed up the YAML Code and see a blank page but still have the top menu, you can enable edit mode (if not already enabled) from the menu and then open the menu again to access the "RAW Yaml Editor" in which you see the complete YAML code and can clean it up.
|
|
422
|
-
If that does not help, you can open the object lovelace.*.configuration in raw-editor in ioBroker and have a look there.
|
|
422
|
+
If that does not help, you can open the object `lovelace.*.configuration` in raw-editor in ioBroker and have a look there.
|
|
423
423
|
You can also restore that object from a backup. It contains the complete configuration of your visualization.
|
|
424
424
|
|
|
425
425
|
## Original sources for lovelace
|
|
426
426
|
Used sources are here https://github.com/GermanBluefox/home-assistant-polymer .
|
|
427
427
|
|
|
428
428
|
## Todo
|
|
429
|
-
Security must be taken from current user and not from default_user
|
|
429
|
+
Security must be taken from the current user and not from default_user
|
|
430
430
|
|
|
431
431
|
## Development
|
|
432
432
|
### Version
|
|
@@ -434,7 +434,7 @@ Used version of home-assistant-frontend@20231208.2
|
|
|
434
434
|
Version of Browser Mod: 2.3.0
|
|
435
435
|
|
|
436
436
|
### How to build the new Lovelace version
|
|
437
|
-
First of all the actual https://github.com/home-assistant/frontend (dev branch) must be **manually** merged into https://github.com/GermanBluefox/home-assistant-polymer.git (***iob*** branch!).
|
|
437
|
+
First of all, the actual https://github.com/home-assistant/frontend (dev branch) must be **manually** merged into https://github.com/GermanBluefox/home-assistant-polymer.git (***iob*** branch!).
|
|
438
438
|
|
|
439
439
|
All changes for ioBroker are marked with comment `// IoB`.
|
|
440
440
|
For now (20231208.2) following files were modified:
|
|
@@ -443,14 +443,14 @@ For now (20231208.2) following files were modified:
|
|
|
443
443
|
- `src/data/weather.ts` - add support to display weather icon from url.
|
|
444
444
|
- `src/dialogs/more-info/const.ts` - remove weather state & history
|
|
445
445
|
- `src/dialogs/more-info/ha-more-info-dialog.ts` - remove entity settings button and tab
|
|
446
|
-
- `src/dialogs/more-info/ha-more-info-history.ts` - remove
|
|
446
|
+
- `src/dialogs/more-info/ha-more-info-history.ts` - remove `show more` link in history
|
|
447
447
|
- `src/dialogs/more-info/controls/more-info-weather.ts` - add support to display weather icon from url.
|
|
448
448
|
- `src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts` - disable configuration of voice assistants
|
|
449
449
|
- `src/entrypoints/core.ts` - modified authentication process
|
|
450
450
|
- `src/panels/lovelace/cards/hui-weather-forecast-card.ts` - add support to display weather icon from url.
|
|
451
451
|
- `src/panels/lovelace/entity-rows/hui-weather-entity-row.ts` - add support to display weather icon from url with auth.
|
|
452
452
|
- `src/panels/lovelace/hui-root.ts` - added notifications and voice control
|
|
453
|
-
- `src/util/documentation-url.ts` - for link to iobroker help instead of
|
|
453
|
+
- `src/util/documentation-url.ts` - for link to iobroker help instead of home assistant.
|
|
454
454
|
- `.gitignore` - add `.idea` ignore
|
|
455
455
|
- `.husky/pre-commit` - remove git commit hooks.
|
|
456
456
|
- `package.json` - remove husky commit hook
|
|
@@ -465,14 +465,25 @@ After that checkout modified version in `./build` folder. Then.
|
|
|
465
465
|
6. `gulp build-app` for release or `gulp develop-iob` for the debugging version. To build web after changes you can call `webpack-dev-app` for faster build, but you need to call `build-app` anyway after the version is ready for use.
|
|
466
466
|
7. copy all files from `./build/home-assistant-polymer/hass_frontend` into `./hass_frontend` in this repo
|
|
467
467
|
8. Run `gulp rename` task multiple times (until no changes happen).
|
|
468
|
-
9. Update
|
|
468
|
+
9. Update version in `README.md` and also in `server.js` the `VERSION` constant.
|
|
469
469
|
|
|
470
470
|
## Changelog
|
|
471
471
|
|
|
472
472
|
<!--
|
|
473
|
-
PLACEHOLDER for next version:
|
|
473
|
+
PLACEHOLDER for the next version:
|
|
474
474
|
### **WORK IN PROGRESS**
|
|
475
475
|
-->
|
|
476
|
+
### 4.1.5 (2024-03-05)
|
|
477
|
+
* (Garfonso) fixed: possible crashes during startup
|
|
478
|
+
|
|
479
|
+
### 4.1.4 (2024-02-10)
|
|
480
|
+
* (Garfonso) improved fix: lamp icons now turn gray on switch off.
|
|
481
|
+
|
|
482
|
+
### 4.1.3 (2024-02-10)
|
|
483
|
+
* (Garfonso) prevent warning for browser_mod/recall_id service call
|
|
484
|
+
* (Garfonso) fix: lamp icons now turn gray on switch off.
|
|
485
|
+
* (Garfonso) fix: notifications via sendTo work again.
|
|
486
|
+
|
|
476
487
|
### 4.1.2 (2024-01-09)
|
|
477
488
|
* (Garfonso) fix: time in timestamp display
|
|
478
489
|
|
|
@@ -482,15 +493,6 @@ After that checkout modified version in `./build` folder. Then.
|
|
|
482
493
|
* (Garfonso) added: handle browser_mod/recall_id service call.
|
|
483
494
|
* (Garfonso) changed: all states are strings (fixes #483)
|
|
484
495
|
|
|
485
|
-
### 4.1.0 (2023-12-18)
|
|
486
|
-
* (Garfons) add an option to show users on login screen (off by default)
|
|
487
|
-
|
|
488
|
-
### 4.0.12 (2023-12-15)
|
|
489
|
-
* (Garfonso) fix lint errors
|
|
490
|
-
|
|
491
|
-
### 4.0.11 (2023-12-15)
|
|
492
|
-
* (Garfonso) updated dependencies
|
|
493
|
-
|
|
494
496
|
## License
|
|
495
497
|
|
|
496
498
|
Copyright 2019-2024, bluefox <dogafox@gmail.com>
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lovelace",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.5",
|
|
5
5
|
"news": {
|
|
6
|
+
"4.1.5": {
|
|
7
|
+
"en": "fixed: possible crashes during startup",
|
|
8
|
+
"de": "behoben: mögliche abstürzen beim start",
|
|
9
|
+
"ru": "фиксированный: возможные аварии во время запуска",
|
|
10
|
+
"pt": "corrigido: possíveis falhas durante a inicialização",
|
|
11
|
+
"nl": "vast: mogelijke crashes tijdens opstarten",
|
|
12
|
+
"fr": "corrigé: crashs possibles pendant le démarrage",
|
|
13
|
+
"it": "fisso: possibili crash durante l'avvio",
|
|
14
|
+
"es": "fijo: posibles fallos durante la puesta en marcha",
|
|
15
|
+
"pl": "stałe: możliwe awarie podczas uruchamiania",
|
|
16
|
+
"uk": "виправлено: можливі аварії під час запуску",
|
|
17
|
+
"zh-cn": "固定: 启动时可能发生的崩溃"
|
|
18
|
+
},
|
|
19
|
+
"4.1.4": {
|
|
20
|
+
"en": "improved fix: lamp icons now turn gray on switch off.",
|
|
21
|
+
"de": "verbesserter fix: lampensymbole werden nun grau beim ausschalten."
|
|
22
|
+
},
|
|
23
|
+
"4.1.3": {
|
|
24
|
+
"en": "prevent warning for browser_mod/recall_id service call\nfix: lamp icons now turn gray on switch off.\nfix: notifications via sendTo work again.",
|
|
25
|
+
"de": "Verhindere warnung für browser_mod/recall_id service call\nfix: Lampensymbole werden nun grau beim ausschalten.\nfix: Benachrichtigung mittels sendTo funktionieren wieder."
|
|
26
|
+
},
|
|
6
27
|
"4.1.2": {
|
|
7
28
|
"en": "fix: time in timestamp display",
|
|
8
29
|
"de": "fix: zeit im zeitstempel-display",
|
|
@@ -36,27 +57,6 @@
|
|
|
36
57
|
"pl": "błędy lintowe",
|
|
37
58
|
"uk": "виправлено помилки в розмітці",
|
|
38
59
|
"zh-cn": "f 固定错误"
|
|
39
|
-
},
|
|
40
|
-
"4.0.11": {
|
|
41
|
-
"en": "updated dependencies",
|
|
42
|
-
"de": "aktualisierte abhängigkeiten",
|
|
43
|
-
"ru": "обновленные зависимости",
|
|
44
|
-
"pt": "dependências atualizadas",
|
|
45
|
-
"nl": "vertaling:",
|
|
46
|
-
"fr": "dépendances actualisées",
|
|
47
|
-
"it": "dipendenze aggiornate",
|
|
48
|
-
"es": "dependencias actualizadas",
|
|
49
|
-
"pl": "zależności aktualizacji",
|
|
50
|
-
"uk": "оновлені залежності",
|
|
51
|
-
"zh-cn": "二. 最新依赖"
|
|
52
|
-
},
|
|
53
|
-
"4.0.10": {
|
|
54
|
-
"en": "brought back shopping list. Now also supports shopping/todo lists from manual entities.\nfix: browser console errors\nfix: login & authorization\nadded: user images & names on login screen",
|
|
55
|
-
"de": "Einkaufsliste funktioniert wieder. Zusätzliche Shopping/Todo-Listen können als manuellen Entities angelegt werden.\nfix: browser fehler\nfix: anmeldung & autorisierung\nhinzugefügt: benutzerbilder & namen auf login-bildschirm"
|
|
56
|
-
},
|
|
57
|
-
"4.0.9": {
|
|
58
|
-
"en": "fixed: timestamp in legacy history data",
|
|
59
|
-
"de": "fixed: zeitstempel in alten History daten"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"title": "Visualization with Lovelace-UI",
|
|
@@ -175,6 +175,60 @@
|
|
|
175
175
|
"agree",
|
|
176
176
|
"cancel"
|
|
177
177
|
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"condition": {
|
|
181
|
+
"operand": "and",
|
|
182
|
+
"rules": [
|
|
183
|
+
"oldVersion<=3.0.0",
|
|
184
|
+
"newVersion>=4.0.0"
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
"title": {
|
|
188
|
+
"en": "Visualisation Update",
|
|
189
|
+
"de": "Aktualisierung der Visualisierung",
|
|
190
|
+
"ru": "Обновление визуализации",
|
|
191
|
+
"pt": "Atualização da visualização",
|
|
192
|
+
"nl": "Visualisatie Update",
|
|
193
|
+
"fr": "Mise à jour de la visualisation",
|
|
194
|
+
"it": "Aggiornamento della visualizzazione",
|
|
195
|
+
"es": "Actualización de Visualización",
|
|
196
|
+
"pl": "Visualizacja",
|
|
197
|
+
"uk": "Оновлення візуалізації",
|
|
198
|
+
"zh-cn": "更新"
|
|
199
|
+
},
|
|
200
|
+
"text": {
|
|
201
|
+
"en": "The update to version 4.x will change the frontend version from 20221026.0 to 20231208.2. This implies many months of Lovelace development in a single update. You will likely need to update or fix your themes and custom cards. Make sure to review your visualization after this update. Seek help in the forum or Discord if needed.",
|
|
202
|
+
"de": "Das Update auf Version 4.x wird die Frontend Version von 20221026.0 auf 20231208.2 ändern. Dies bedeutet 10 Monate Entwicklung von Lovelace in einem Update. Sie müssen wahrscheinlich Ihre Themen und benutzerdefinierten Karten aktualisieren oder reparieren. Achten Sie darauf, Ihre Visualisierung nach diesem Update zu überprüfen. Fragen Sie im Forum oder Discord nach Hilfe.",
|
|
203
|
+
"ru": "Обновление до версии 4.x изменит версию интерфейса с 20221026.0 на 20231208.2. Это означает многомесячную разработку Lovelace в рамках одного обновления. Вам, вероятно, придется обновить или исправить свои темы и пользовательские карты. Обязательно проверьте свою визуализацию после этого обновления. Задавайте вопросы на форуме или в Discord, если вам нужна помощь.",
|
|
204
|
+
"pt": "A atualização para a versão 4.x irá alterar a versão do frontend de 20221026.0 para 20231208.2. Isso significa muitos meses de desenvolvimento do Lovelace em uma única atualização. Você provavelmente precisará atualizar ou corrigir seus temas e cartões personalizados. Certifique-se de verificar sua visualização após esta atualização. Procure ajuda no fórum ou no Discord, se necessário.",
|
|
205
|
+
"nl": "De update naar versie 4.x zal de frontend-versie veranderen van 20221026.0 naar 20231208.2. Dit betekent vele maanden ontwikkeling van Lovelace in één update. Waarschijnlijk moet u uw thema's en aangepaste kaarten bijwerken of herstellen. Controleer na deze update uw visualisatie. Vraag om hulp op het forum of Discord indien nodig.",
|
|
206
|
+
"fr": "La mise à jour vers la version 4.x changera la version du frontend de 20221026.0 à 20231208.2. Cela signifie plusieurs mois de développement de Lovelace en une seule mise à jour. Vous devrez probablement mettre à jour ou réparer vos thèmes et cartes personnalisées. Assurez-vous de vérifier votre visualisation après cette mise à jour. Demandez de l'aide sur le forum ou sur Discord si nécessaire.",
|
|
207
|
+
"it": "L'aggiornamento alla versione 4.x cambierà la versione del frontend da 20221026.0 a 20231208.2. Ciò significa molti mesi di sviluppo di Lovelace in un singolo aggiornamento. Probabilmente sarà necessario aggiornare o correggere i temi e le carte personalizzate. Assicurati di controllare la tua visualizzazione dopo questo aggiornamento. Chiedi aiuto sul forum o su Discord se necessario.",
|
|
208
|
+
"es": "La actualización a la versión 4.x cambiará la versión del frontend de 20221026.0 a 20231208.2. Esto significa muchos meses de desarrollo de Lovelace en una sola actualización. Probablemente necesitarás actualizar o corregir tus temas y tarjetas personalizadas. Asegúrate de revisar tu visualización después de esta actualización. Busca ayuda en el foro o en Discord si es necesario.",
|
|
209
|
+
"pl": "Aktualizacja do wersji 4.x zmieni wersję frontendu z 20221026.0 na 20231208.2. Oznacza to wiele miesięcy rozwoju Lovelace w jednej aktualizacji. Prawdopodobnie będziesz musiał zaktualizować lub naprawić swoje motywy i niestandardowe karty. Upewnij się, że sprawdzisz swoją wizualizację po tej aktualizacji. Szukaj pomocy na forum lub Discord, jeśli to konieczne.",
|
|
210
|
+
"uk": "Оновлення до версії 4.x змінить версію фронтенду з 20221026.0 на 20231208.2. Це означає багато місяців розробки Lovelace у одному оновленні. Ймовірно, вам доведеться оновити або виправити свої теми та власні картки. Переконайтеся, що після цього оновлення ви переглянете свою візуалізацію. Звертайтеся за допомогою на форумі або в Discord, якщо потрібно.",
|
|
211
|
+
"zh-cn": "升级到4.x版本将把前端版本从20221026.0更改为20231208.2。这意味着在一个更新中进行了数月的Lovelace开发。您可能需要更新或修复您的主题和自定义卡片。请确保在此更新后检查您的可视化。如有需要,请在论坛或Discord上寻求帮助。"
|
|
212
|
+
},
|
|
213
|
+
"link": "https://forum.iobroker.net/topic/59435/test-lovelace-4-x/408?_=1705695186248",
|
|
214
|
+
"level": "warn",
|
|
215
|
+
"linkText": {
|
|
216
|
+
"en": "A few issues with themes were already discussed here.",
|
|
217
|
+
"de": "Hier wurden bereits einige Themen diskutiert.",
|
|
218
|
+
"ru": "Здесь уже обсуждались несколько вопросов с темами.",
|
|
219
|
+
"pt": "Algumas questões com temas já foram discutidas aqui.",
|
|
220
|
+
"nl": "Een paar problemen met ze werden hier al besproken.",
|
|
221
|
+
"fr": "Quelques questions avec des thèmes ont déjà été discutées ici.",
|
|
222
|
+
"it": "Sono già state discusse alcune questioni con temi.",
|
|
223
|
+
"es": "Algunos temas con temas ya se discutieron aquí.",
|
|
224
|
+
"pl": "Omawiano tam kilka tematów.",
|
|
225
|
+
"uk": "Тут вже обговорювалися кілька питань з темами.",
|
|
226
|
+
"zh-cn": "这里已经讨论了几个专题的问题。."
|
|
227
|
+
},
|
|
228
|
+
"buttons": [
|
|
229
|
+
"agree",
|
|
230
|
+
"cancel"
|
|
231
|
+
]
|
|
178
232
|
}
|
|
179
233
|
],
|
|
180
234
|
"dependencies": [
|
|
@@ -59,7 +59,7 @@ exports.iobState2EntityState = function (entity, val, attribute) {
|
|
|
59
59
|
return val ? 'on' : 'off';
|
|
60
60
|
} else if (type === 'binary_sensor') {
|
|
61
61
|
return val ? 'on' : 'off';
|
|
62
|
-
}else if (typeof val === 'number' && entity.attributes && ['date', 'timestamp'].includes(entity.attributes.device_class)) {
|
|
62
|
+
} else if (typeof val === 'number' && entity.attributes && ['date', 'timestamp'].includes(entity.attributes.device_class)) {
|
|
63
63
|
//convert to date string
|
|
64
64
|
const date = new Date(val);
|
|
65
65
|
let dateStr = date.toDateString();
|