iobroker.javascript 7.2.0 → 7.4.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.
Files changed (36) hide show
  1. package/README.md +13 -7
  2. package/admin/asset-manifest.json +15 -11
  3. package/admin/google-blockly/own/blocks_time.js +6 -5
  4. package/admin/google-blockly/own/blocks_words.js +2 -2
  5. package/admin/index_m.html +6 -4
  6. package/admin/static/css/{487.9934873c.chunk.css → 864.42bfc5f3.chunk.css} +1 -1
  7. package/admin/static/css/{487.9934873c.chunk.css.map → 864.42bfc5f3.chunk.css.map} +1 -1
  8. package/admin/static/js/238.c2010836.chunk.js.map +1 -1
  9. package/admin/static/js/360.01ffa94f.chunk.js +3 -0
  10. package/admin/static/js/360.01ffa94f.chunk.js.map +1 -0
  11. package/admin/static/js/694.9fd55578.chunk.js.map +1 -1
  12. package/admin/static/js/838.0ca9d95b.chunk.js +3 -0
  13. package/admin/static/js/838.0ca9d95b.chunk.js.map +1 -0
  14. package/admin/static/js/864.2929f700.chunk.js +2 -0
  15. package/admin/static/js/864.2929f700.chunk.js.map +1 -0
  16. package/admin/static/js/main.6bcb3d84.js +2 -0
  17. package/admin/static/js/main.6bcb3d84.js.map +1 -0
  18. package/admin/static/media/tileBlockly.42b0a9f0e66bc4e68f4b.png +0 -0
  19. package/admin/static/media/tileJS.8810e7b4835e61465c3a.png +0 -0
  20. package/admin/static/media/tileRules.7ed5885a66686cc288b1.png +0 -0
  21. package/admin/static/media/tileTS.446265dff5dc550d46a5.png +0 -0
  22. package/admin/tab.html +1 -1
  23. package/io-package.json +215 -52
  24. package/lib/sandbox.js +6 -6
  25. package/main.js +73 -37
  26. package/package.json +1 -1
  27. package/admin/static/js/360.8a86d051.chunk.js +0 -3
  28. package/admin/static/js/360.8a86d051.chunk.js.map +0 -1
  29. package/admin/static/js/487.08b3f5b3.chunk.js +0 -2
  30. package/admin/static/js/487.08b3f5b3.chunk.js.map +0 -1
  31. package/admin/static/js/838.7244f6d0.chunk.js +0 -3
  32. package/admin/static/js/838.7244f6d0.chunk.js.map +0 -1
  33. package/admin/static/js/main.23d47ef3.js +0 -2
  34. package/admin/static/js/main.23d47ef3.js.map +0 -1
  35. /package/admin/static/js/{360.8a86d051.chunk.js.LICENSE.txt → 360.01ffa94f.chunk.js.LICENSE.txt} +0 -0
  36. /package/admin/static/js/{838.7244f6d0.chunk.js.LICENSE.txt → 838.0ca9d95b.chunk.js.LICENSE.txt} +0 -0
package/io-package.json CHANGED
@@ -20,8 +20,34 @@
20
20
  "Apollon77 <iobroker@fischer-ka.de>",
21
21
  "AlCalzone"
22
22
  ],
23
- "version": "7.2.0",
23
+ "version": "7.4.0",
24
24
  "news": {
25
+ "7.4.0": {
26
+ "en": "Download script as xml file (export)\nImport script as file (upload)\nHide global folder if expert mode is disabled",
27
+ "de": "Skript als xml Datei herunterladen (Export)\nImportieren von Skript als Datei (Upload)\nVerstecken globaler Ordner, wenn der Expertenmodus deaktiviert ist",
28
+ "ru": "Скачать скрипт как xml файл (экспорт)\nИмпорт скрипт как файл (загрузка)\nСкрыть глобальную папку, если режим эксперта отключен",
29
+ "pt": "Baixar script como arquivo xml (export)\nImportar script como arquivo (upload)\nOcultar pasta global se o modo de especialista estiver desativado",
30
+ "nl": "Download script as xml file (export)\nImport script als bestand (upload)\nVerberg de wereldwijde map als deskundige modus is uitgeschakeld",
31
+ "fr": "Télécharger script en fichier xml (export)\nImporter script comme fichier (upload)\nMasquer le dossier mondial si le mode expert est désactivé",
32
+ "it": "Scarica lo script come file xml (esportare)\nImporta lo script come file (upload)\nNascondi cartella globale se la modalità esperta è disattivata",
33
+ "es": "Descargar script como archivo xml (exportación)\nImportar script como archivo (upload)\nOcultar carpeta global si el modo experto está deshabilitado",
34
+ "pl": "Download script jako plik xml (export)\nImport script jako plik (upload)\nOprogramowanie globalne, jeśli tryb ekspertów jest niepełnosprawny",
35
+ "uk": "Завантажити скрипт як файл xml (export)\nІмпортний скрипт як файл (завантажити)\nПриховати глобальну папку, якщо експертний режим вимкнено",
36
+ "zh-cn": "附录\n进口说明(续)\n如果专家模式残疾,那么全球舞台"
37
+ },
38
+ "7.3.0": {
39
+ "en": "Updated blockly logo\nAlways set variables like isDaylightSaving\nAdded astro times as states\nFixed copied time blocks",
40
+ "de": "Aktualisiertes Block-Logo\nImmer eingestellte Variablen wie isDaylightSaving\nAstro Zeiten als Staaten hinzugefügt\nFeste kopierte Zeitblöcke",
41
+ "ru": "Обновленный заблокированный логотип\nВсегда устанавливайте переменные, такие как isDaylightSaving\nДобавлены астро времена как государства\nИсправлены скопированные блоки времени",
42
+ "pt": "Logotipo bloqueado atualizado\nSempre definir variáveis como isDaylightSaving\nAdicionados tempos astro como estados\nBloqueios de tempo copiados fixos",
43
+ "nl": "Quality over Quantity (QoQ) Releases Vertaling:\nZe zetten altijd variabelen zoals isDaylightSaving\nAstro-tijden toegevoegd als staten\nQuality over Quantity (QoQ) Releases Vertaling:",
44
+ "fr": "Logo bloqué mis à jour\nToujours définir des variables comme estDaylightSaving\nAjout de astro times as states\nTemps corrigé copié blocs",
45
+ "it": "Logo blockly aggiornato\nImpostare sempre variabili come èDaylightSaving\nAggiunto tempi di astro come stati\nBlocchi di tempo copiati fissi",
46
+ "es": "Logo Actualizado bloqueado\nSiempre establecer variables como esDaylightSaving\nTiempos de astro agregados como estados\nBloques de tiempo fijos copiados",
47
+ "pl": "Logo blokady\nZawsze ułożone zmienne, jak np. DaylightSaving\nAdded astrotime jako stan\nFixed copied time block",
48
+ "uk": "Оновлений логотип\nЗавжди встановити змінні, такі як DaylightSaving\nДодані астро разів як стани\nФіксовані часові блоки",
49
+ "zh-cn": "A. 最新断体逻辑\nA. 铺设的变量\n增加国时\n固定配件的时间限制"
50
+ },
25
51
  "7.2.0": {
26
52
  "en": "NodeJS 16.x is required\n\n* Added function to format time difference `formatTimeDiff`\n* Added blockly blocks for `formatTimeDiff`\n* messageToAsync was not working without options\n* Added timeout and custom options for sendToAsync\n* Fixed valid switch statement expressions\n* Added text replacement, cound and reverse blocks\n* Added list reverse block",
27
53
  "de": "NodeJS 16.x ist erforderlich\n\n* Hinzugefügt Funktion zu Format Zeitdifferenz FormatTimeDiff\n* Hinzugefügt Blockblöcke für FormatTimeDiff\n* Nachricht ToAsync funktionierte nicht ohne Optionen\n* Hinzugefügt Timeout und benutzerdefinierte Optionen für sendToAsync\n* Feste gültige Schaltausdrücke\n* Hinzugefügt Textersatz, Kund und umgekehrt Blöcke\n* Hinzugefügt Liste Reverse Block",
@@ -86,32 +112,6 @@
86
112
  "pl": "zrekomendowano eksport skryptu",
87
113
  "uk": "виправлено експорт сценаріїв",
88
114
  "zh-cn": "修订的出口说明"
89
- },
90
- "7.1.0": {
91
- "en": "Added new blocks: new line, random number, value between min and max, if empty\nUpdated blockly core to v9.3.3\ncorrected blockly",
92
- "de": "Neue Blöcke hinzugefügt: neue Zeile, Zufallszahl, Wert zwischen min und max, wenn leer\nAktualisierter Block-Kern auf v9.3.3\nblockweise korrigiert",
93
- "ru": "Добавлены новые блоки: новая строка, случайный номер, значение между мином и макс, если пусто\nОбновлен блокно ядро для v9.3.3\nисправлено блокно",
94
- "pt": "Adicionado novos blocos: nova linha, número aleatório, valor entre min e max, se vazio\nNúcleo bloqueado atualizado para v9.3.3\ncorrigido em bloco",
95
- "nl": "Nieuwe blokken toegevoegd: nieuwe lijn, willekeurig nummer, waarde tussen min en max, als leeg\nQuality over Quantity (QoQ) Releases Vertaling:\nvertaling:",
96
- "fr": "Ajout de nouveaux blocs: nouvelle ligne, nombre aléatoire, valeur entre min et max, si vide\nMise à jour du noyau bloqué vers v9.3.3\ncorrigée",
97
- "it": "Aggiunto nuovi blocchi: nuova linea, numero casuale, valore tra min e max, se vuoto\nAggiornato core blockly a v9.3.3\ncorretto blocco",
98
- "es": "Nuevos bloques añadidos: nueva línea, número aleatorio, valor entre min y max, si vacío\nActualizado núcleo de bloque a v9.3.3\ncorregido bloqueado",
99
- "pl": "Dodać nowe bloki: nowa linia, liczba losowa, wartość pomiędzy minem a maxą, jeśli pusta linia\nZmniejszenie bloku do v9.3\npoprawiony blok",
100
- "uk": "Додано нові блоки: новий рядок, випадковий номер, значення між хв і макс, якщо порожні\nОновлено блочно ядро v9.3.3\nвиправлений блокнот",
101
- "zh-cn": "增加新的阻碍因素:如空洞,新线、随机编号、矿金和玉米之间价值。\n第9.3.3号核心内容\n更正"
102
- },
103
- "7.0.8": {
104
- "en": "Corrected trigger block\nCorrected typescript V5\ncoffescript was degraded to the previous version\ntried to correct vscode font\nreverted blockly to the previous version",
105
- "de": "Korrigierter Triggerblock\nKorrigierte Schrift V5\ncoffescript wurde auf die vorherige version degradiert\nversucht, vscode schrift zu korrigieren\nblockweise auf die vorherige version umgestellt",
106
- "ru": "Исправлен блок триггера\nИсправлена typescript В5\ncoffescript был деградирован до предыдущей версии\nпытался исправить vscode шрифт\nперевернутый блокно в предыдущую версию",
107
- "pt": "Bloco de gatilho correto\nTypescript corrigido V5\ncoffescript foi degradado para a versão anterior\ntentou corrigir a fonte vscode\nrevertida em bloco para a versão anterior",
108
- "nl": "Quality over Quantity (QoQ) Releases Vertaling:\nVertaling: V5\nde vorige versie is gedegradeerd\nprobeerde vscode font te corrigeren\nquality over quantity (qoq) releases vertaling:",
109
- "fr": "Bloc de déclenchement corrigé\nTypescriptif corrigé V5\ncoffescript was degraded to the previous version\nessayé de corriger la police vscode\nreversé de façon bloquée à la version précédente",
110
- "it": "Blocco di attivazione corretto\nNome corretto V\ncoffescript è stato degradato alla versione precedente\nprovato a correggere vscode font\nreindirizzato in blocco alla versione precedente",
111
- "es": "Bloque de activación corregido\nTiposcrito corregido V5\ncoffescript fue degradado a la versión anterior\ntrató de corregir la fuente vscode\nrevertido bloque a la versión anterior",
112
- "pl": "Poprawka\nPoprawne pisownie V5\nrękopis został zdegradowany do poprzedniej wersji\npróbował poprawić fonty vcode\nwrócił do poprzedniej wersji",
113
- "uk": "Виправлений блок запуску\nВиправлено помилку В5\ncoffescript було вилучено до попередньої версії\nспробував виправити шрифт проти коду\nперевернуті блокноти до попередньої версії",
114
- "zh-cn": "被更正的触发事件\n更正 V5\n前一版本的文字已经退化。\n试图纠正 vscode font\n对前一版本的强烈反应"
115
115
  }
116
116
  },
117
117
  "desc": {
@@ -312,73 +312,176 @@
312
312
  },
313
313
  {
314
314
  "_id": "script.js",
315
+ "type": "device",
315
316
  "common": {
316
- "name": "js"
317
+ "name": {
318
+ "en": "JavaScript",
319
+ "de": "JavaScript",
320
+ "ru": "JavaScript",
321
+ "pt": "JavaScript",
322
+ "nl": "JavaScrift",
323
+ "fr": "JavaScript",
324
+ "it": "JavaScript",
325
+ "es": "JavaScript",
326
+ "pl": "JavaScript",
327
+ "uk": "Про нас",
328
+ "zh-cn": "瓦 兰"
329
+ }
317
330
  },
318
- "type": "device",
319
331
  "native": {}
320
332
  },
321
333
  {
322
334
  "_id": "script.js.common",
335
+ "type": "channel",
323
336
  "common": {
324
- "name": "common"
337
+ "name": {
338
+ "en": "Common scripts (common)",
339
+ "de": "Allgemeine Skripte (common)",
340
+ "ru": "Общие скрипты (common)",
341
+ "pt": "Scripts comuns (common)",
342
+ "nl": "Common scripts (common)",
343
+ "fr": "Scénarios communs (common)",
344
+ "it": "Scrittori comuni (common)",
345
+ "es": "Scripts comunes (common)",
346
+ "pl": "Common script (common)",
347
+ "uk": "Загальні сценарії (common)",
348
+ "zh-cn": "共同说明 (common)"
349
+ }
325
350
  },
326
- "type": "channel",
327
351
  "native": {}
328
352
  },
329
353
  {
330
354
  "_id": "script.js.global",
355
+ "type": "channel",
331
356
  "common": {
332
- "name": "global"
357
+ "name": {
358
+ "en": "Global scripts (global)",
359
+ "de": "Globale Skripte (global)",
360
+ "ru": "Глобальные скрипты (global)",
361
+ "pt": "Scripts globais (global)",
362
+ "nl": "Global scripts (global)",
363
+ "fr": "Scénarios mondiaux (global)",
364
+ "it": "Scrittori globali (global)",
365
+ "es": "Guiones globales (global)",
366
+ "pl": "Globalny scenariusz (global)",
367
+ "uk": "Глобальні сценарії (global)",
368
+ "zh-cn": "全球说明 (global)"
369
+ }
333
370
  },
334
- "type": "channel",
335
371
  "native": {}
336
372
  }
337
373
  ],
338
374
  "instanceObjects": [
339
375
  {
340
376
  "_id": "variables",
377
+ "type": "channel",
341
378
  "common": {
342
- "name": "Useful variables"
379
+ "name": {
380
+ "en": "Useful variables",
381
+ "de": "Nützliche Variablen",
382
+ "ru": "Полезные переменные",
383
+ "pt": "Variáveis úteis",
384
+ "nl": "Gebruikelijke variabelen",
385
+ "fr": "Variables utiles",
386
+ "it": "Variazioni utili",
387
+ "es": "Variables útiles",
388
+ "pl": "Zmienny",
389
+ "uk": "Корисні зміни",
390
+ "zh-cn": "使用变量"
391
+ }
392
+ },
393
+ "native": {}
394
+ },
395
+ {
396
+ "_id": "variables.astro",
397
+ "type": "folder",
398
+ "common": {
399
+ "name": {
400
+ "en": "Sun movement",
401
+ "de": "Sonnenbewegung",
402
+ "ru": "Солнце движение",
403
+ "pt": "Movimento do sol",
404
+ "nl": "Sun beweging",
405
+ "fr": "Mouvement solaire",
406
+ "it": "Movimento solare",
407
+ "es": "Movimiento solar",
408
+ "pl": "Słońce",
409
+ "uk": "Сонячний рух",
410
+ "zh-cn": "A. 太阳运动"
411
+ }
343
412
  },
344
- "type": "channel",
345
413
  "native": {}
346
414
  },
347
415
  {
348
416
  "_id": "variables.isDayTime",
417
+ "type": "state",
349
418
  "common": {
350
- "name": "Is day time",
419
+ "name": {
420
+ "en": "Is day time",
421
+ "de": "Ist Tageszeit",
422
+ "ru": "Дневное время",
423
+ "pt": "É hora do dia",
424
+ "nl": "Is de dag",
425
+ "fr": "Le jour",
426
+ "it": "È l'ora del giorno",
427
+ "es": "Es hora del día",
428
+ "pl": "Czasem",
429
+ "uk": "В день",
430
+ "zh-cn": "日 日"
431
+ },
351
432
  "type": "boolean",
352
433
  "read": true,
353
434
  "write": false,
354
435
  "role": "indicator"
355
436
  },
356
- "type": "state",
357
437
  "native": {}
358
438
  },
359
439
  {
360
440
  "_id": "variables.isDaylightSaving",
441
+ "type": "state",
361
442
  "common": {
362
- "name": "Is daylight saving time active",
443
+ "name": {
444
+ "en": "Is daylight saving time active",
445
+ "de": "Ist Sommerzeit aktiv",
446
+ "ru": "Является дневным светом экономия время активным",
447
+ "pt": "É hora de salvar a luz do dia ativo",
448
+ "nl": "Is daglichtbesparing",
449
+ "fr": "Temps d'été actif",
450
+ "it": "È tempo di risparmio di luce del giorno attivo",
451
+ "es": "Es tiempo de ahorro de la luz del día activo",
452
+ "pl": "Czas wolny",
453
+ "uk": "Чи активна економія денного світла",
454
+ "zh-cn": "导 言"
455
+ },
363
456
  "type": "boolean",
364
457
  "read": true,
365
458
  "write": false,
366
459
  "role": "indicator"
367
460
  },
368
- "type": "state",
369
461
  "native": {}
370
462
  },
371
463
  {
372
464
  "_id": "variables.dayTime",
465
+ "type": "state",
373
466
  "common": {
374
- "name": "Actual day time",
375
- "desc": "Like 13:34, you can set native.format12 to true to have 1:32",
467
+ "name": {
468
+ "en": "Current time",
469
+ "de": "Aktuelle Zeit",
470
+ "ru": "Текущее время",
471
+ "pt": "Tempo atual",
472
+ "nl": "Tijd om",
473
+ "fr": "Heure actuelle",
474
+ "it": "Ora attuale",
475
+ "es": "Hora actual",
476
+ "pl": "Czas bieżący",
477
+ "uk": "Поточний час",
478
+ "zh-cn": "目前时间"
479
+ },
376
480
  "type": "string",
377
481
  "read": true,
378
482
  "write": false,
379
483
  "role": "state"
380
484
  },
381
- "type": "state",
382
485
  "native": {
383
486
  "format12": false,
384
487
  "leadingZeros": true
@@ -386,58 +489,118 @@
386
489
  },
387
490
  {
388
491
  "_id": "variables.rulesTour",
492
+ "type": "state",
389
493
  "common": {
390
- "name": "Is tour done",
494
+ "name": {
495
+ "en": "Tour completed",
496
+ "de": "Tour abgeschlossen",
497
+ "ru": "Тур завершен",
498
+ "pt": "Excursão concluída",
499
+ "nl": "Tour voltooid",
500
+ "fr": "Tour terminé",
501
+ "it": "Tour completato",
502
+ "es": "Tour completado",
503
+ "pl": "Tour",
504
+ "uk": "Тур завершено",
505
+ "zh-cn": "完成的工作"
506
+ },
391
507
  "type": "boolean",
392
508
  "read": true,
393
509
  "write": false,
394
510
  "role": "state"
395
511
  },
396
- "type": "state",
397
512
  "native": {}
398
513
  },
399
514
  {
400
515
  "_id": "debug",
516
+ "type": "channel",
401
517
  "common": {
402
- "name": "Debug variables"
518
+ "name": {
519
+ "en": "Debug variables",
520
+ "de": "Debug-Variablen",
521
+ "ru": "Переменные Debug",
522
+ "pt": "Variáveis de depuração",
523
+ "nl": "Debug variabelen",
524
+ "fr": "Débug variables",
525
+ "it": "Variabili del debito",
526
+ "es": "Variables de depuración",
527
+ "pl": "Zmienna debugowa",
528
+ "uk": "Debug змінні",
529
+ "zh-cn": "变量"
530
+ }
403
531
  },
404
- "type": "channel",
405
532
  "native": {}
406
533
  },
407
534
  {
408
535
  "_id": "debug.to",
536
+ "type": "state",
409
537
  "common": {
410
- "name": "Send data to debugger",
538
+ "name": {
539
+ "en": "Send data to debugger",
540
+ "de": "Daten an debugger senden",
541
+ "ru": "Отправить данные для отладки",
542
+ "pt": "Enviar dados para depurador",
543
+ "nl": "Stuur gegevens naar debugger",
544
+ "fr": "Envoyer des données à debugger",
545
+ "it": "Invia i dati a debugger",
546
+ "es": "Enviar datos a depurador",
547
+ "pl": "Dane dotyczące debuggera",
548
+ "uk": "Надсилання даних на дебугер",
549
+ "zh-cn": "黑暗数据"
550
+ },
411
551
  "type": "string",
412
552
  "read": false,
413
553
  "write": true,
414
554
  "role": "json"
415
555
  },
416
- "type": "state",
417
556
  "native": {}
418
557
  },
419
558
  {
420
559
  "_id": "debug.from",
560
+ "type": "state",
421
561
  "common": {
422
- "name": "Data from debugger",
562
+ "name": {
563
+ "en": "Data from debugger",
564
+ "de": "Daten von debugger",
565
+ "ru": "Данные от debugger",
566
+ "pt": "Dados do depurador",
567
+ "nl": "Data van debugger",
568
+ "fr": "Data from debugger",
569
+ "it": "Dati dal debugger",
570
+ "es": "Datos del depurador",
571
+ "pl": "Dane z debuggera",
572
+ "uk": "Дані з debugger",
573
+ "zh-cn": "A. 黑暗取的数据"
574
+ },
423
575
  "type": "string",
424
576
  "read": true,
425
577
  "write": false,
426
578
  "role": "json"
427
579
  },
428
- "type": "state",
429
580
  "native": {}
430
581
  },
431
582
  {
432
583
  "_id": "debug.rules",
584
+ "type": "state",
433
585
  "common": {
434
- "name": "Data from engine to rules",
586
+ "name": {
587
+ "en": "Data from rules logic",
588
+ "de": "Daten aus der Regellogik",
589
+ "ru": "Данные из логики правил",
590
+ "pt": "Dados da lógica de regras",
591
+ "nl": "Data van regels logica",
592
+ "fr": "Données de la logique des règles",
593
+ "it": "Dati dalla logica delle regole",
594
+ "es": "Datos de la lógica de las reglas",
595
+ "pl": "Dane z zakresu logiki",
596
+ "uk": "Дані з логіки правил",
597
+ "zh-cn": "从规则逻辑数据"
598
+ },
435
599
  "type": "string",
436
600
  "read": true,
437
601
  "write": false,
438
602
  "role": "json"
439
603
  },
440
- "type": "state",
441
604
  "native": {}
442
605
  }
443
606
  ]
package/lib/sandbox.js CHANGED
@@ -53,7 +53,7 @@ function sandBox(script, name, verbose, debug, context) {
53
53
  const debugMode = context.debugMode;
54
54
 
55
55
  function errorInCallback(e) {
56
- adapter.setState(`scriptProblem.${name.substring('script.js.'.length)}`, true, true);
56
+ adapter.setState(`scriptProblem.${name.substring('script.js.'.length)}`, { val: true, ack: true, c: 'errorInCallback' });
57
57
  context.logError('Error in callback', e);
58
58
  context.debugMode && console.log(`error$$${name}$$Exception in callback: ${e}`, Date.now());
59
59
  }
@@ -528,7 +528,7 @@ function sandBox(script, name, verbose, debug, context) {
528
528
  mods[md] = require(md);
529
529
  return mods[md];
530
530
  } catch (e) {
531
- adapter.setState(`scriptProblem.${name.substring('script.js.'.length)}`, true, true);
531
+ adapter.setState(`scriptProblem.${name.substring('script.js.'.length)}`, { val: true, ack: true, c: 'require' });
532
532
  context.logError(name, e, 6);
533
533
  }
534
534
  }
@@ -2031,7 +2031,7 @@ function sandBox(script, name, verbose, debug, context) {
2031
2031
  try {
2032
2032
  result = JSON.parse(JSON.stringify(objects[id]));
2033
2033
  } catch (err) {
2034
- adapter.setState(`scriptProblem.${name.substring('script.js.'.length)}`, true, true);
2034
+ adapter.setState(`scriptProblem.${name.substring('script.js.'.length)}`, { val: true, ack: true, c: 'getObject' });
2035
2035
  sandbox.log(`Object "${id}" can't be copied: ${JSON.stringify(err)}`, 'error');
2036
2036
  return cb();
2037
2037
  }
@@ -2065,7 +2065,7 @@ function sandBox(script, name, verbose, debug, context) {
2065
2065
  try {
2066
2066
  result = JSON.parse(JSON.stringify(objects[id]));
2067
2067
  } catch (err) {
2068
- adapter.setState(`scriptProblem.${name.substring('script.js.'.length)}`, true, true);
2068
+ adapter.setState(`scriptProblem.${name.substring('script.js.'.length)}`, { val: true, ack: true, c: 'getObject' });
2069
2069
  sandbox.log(`Object "${id}" can't be copied: ${JSON.stringify(err)}`, 'error');
2070
2070
  return null;
2071
2071
  }
@@ -3537,7 +3537,7 @@ function sandBox(script, name, verbose, debug, context) {
3537
3537
  try {
3538
3538
  obj = JSON.parse(obj);
3539
3539
  } catch (e) {
3540
- adapter.setState(`scriptProblem.${name.substring('script.js.'.length)}`, true, true);
3540
+ adapter.setState(`scriptProblem.${name.substring('script.js.'.length)}`, { val: true, ack: true, c: 'getAttr' });
3541
3541
  sandbox.log(`Cannot parse "${obj.substring(0, 30)}"${e}`, 'error');
3542
3542
  return null;
3543
3543
  }
@@ -3547,7 +3547,7 @@ function sandBox(script, name, verbose, debug, context) {
3547
3547
  try {
3548
3548
  obj = obj[attr];
3549
3549
  } catch (e) {
3550
- adapter.setState(`scriptProblem.${name.substring('script.js.'.length)}`, true, true);
3550
+ adapter.setState(`scriptProblem.${name.substring('script.js.'.length)}`, { val: true, ack: true, c: 'getAttr' });
3551
3551
  sandbox.log(`Cannot get ${attr} of ${JSON.stringify(obj)}`, 'error');
3552
3552
  return null;
3553
3553
  }