iobroker.hass 1.3.0 → 2.0.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018-2022 bluefox <dogafox@gmail.com>
3
+ Copyright (c) 2018-2026 bluefox <dogafox@gmail.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -15,16 +15,26 @@
15
15
  This adapter allows the connecting of Home Assistant to ioBroker.
16
16
 
17
17
  ## Usage
18
- Create a long term token in HASS and use it as PW (copy it also in the repeat field).
18
+ Create a long-term token in HASS and use it as PW (copy it also in the repeat field).
19
19
 
20
- Then it should read out all attributes for all devices. Services might be controllable (e.g. "turn_on"). To control services you have two options:
21
- * Set the state with an ack=false value which is not a string (e.g. Boolean true) then it will be triggered also in HASS without additional service data
22
- * Set the state with an ack=false String value which is a stringified JSON object to call the service and use the JSON object as service data
20
+ Then it should read out all attributes for all devices. Services might be controllable (e.g. "turn_on"). To control services, you have two options:
23
21
 
24
- For the last option on a light.turn_off with e.g. `{"transition":10,"flash":"short"}` these two service data details are sent with the call to HASS. The available fields with their data definition can be seen in the JSON definition of the ioBroker object in the native.fields section and would look like the following in the above example:
22
+ ### Set a direct value
23
+ Set the state with an ack=false value which is not a string (e.g. Boolean true) then it will be triggered also in HASS without additional service data. This will only work if the service has one field to be sent - then the value is sent as this field! If the service has more than one field, you will find a warning in the log that provides more details about the fields that are possible to be sent, e.g.
25
24
 
26
- `
27
- ...
25
+ ```
26
+ Please make sure to provide a stringified JSON as value to set relevant fields! Please refer to the Readme for details!
27
+ Allowed field keys are: temperature, target_temp_high, target_temp_low, hvac_mode
28
+ ```
29
+
30
+ ### Set a stringified JSON to provide one or multiple fields
31
+ Set the state with an ack=false String value which is a stringified JSON object to call the service and use the JSON object as service data
32
+
33
+ For the last option on a light.turn_off with e.g. `{"transition":10,"flash":"short"}` these two service data details are sent with the call to HASS. The available fields with their exact data definition can be seen in the JSON definition of the ioBroker object in the `native` fields section and would look like the following in the above example:
34
+
35
+ ```json5
36
+ {
37
+ // ...
28
38
  native: {
29
39
  "fields": {
30
40
  "transition": {
@@ -56,13 +66,15 @@ For the last option on a light.turn_off with e.g. `{"transition":10,"flash":"sho
56
66
  "attr": "turn_off",
57
67
  "type": "light"
58
68
  }
59
- ...
60
- `
69
+ //...
70
+ }
71
+ ```
61
72
 
62
- For some services like set_speed it is required to call with a JSON object like `{speed: "high"}` in general to provide required values. In this case the field definition look e.g. like:
73
+ For some services like set_speed it is required to call with a JSON object like `{speed: "high"}` in general to provide required values. In this case the field definition looks e.g. like:
63
74
 
64
- ```
65
- ...
75
+ ```json5
76
+ {
77
+ //...
66
78
  native: {
67
79
  "fields": {
68
80
  "speed": {
@@ -75,9 +87,10 @@ For some services like set_speed it is required to call with a JSON object like
75
87
  }
76
88
  }
77
89
  }
78
- ...
90
+ // ...
79
91
  }
80
- ...
92
+ // ...
93
+ }
81
94
  ```
82
95
 
83
96
  ## Configuration
@@ -85,16 +98,24 @@ There is a good article about connection.
85
98
 
86
99
  Please check it https://www.smarthomejetzt.de/mit-iobroker-auf-eine-home-assistant-hass-io-installation-und-die-geraete-zugreifen/
87
100
 
88
- **Unfortunately only in german, but the [google translate works rather good](https://translate.google.com/translate?hl=en&sl=de&tl=en&u=https%3A%2F%2Fwww.smarthomejetzt.de%2Fmit-iobroker-auf-eine-home-assistant-hass-io-installation-und-die-geraete-zugreifen%2F)**
101
+ **Unfortunately only in German, but the [Google Translate works rather good](https://translate.google.com/translate?hl=en&sl=de&tl=en&u=https%3A%2F%2Fwww.smarthomejetzt.de%2Fmit-iobroker-auf-eine-home-assistant-hass-io-installation-und-die-geraete-zugreifen%2F)**
89
102
 
90
103
  <!--
91
104
  Placeholder for the next version (at the beginning of the line):
92
- ### __WORK IN PROGRESS__
105
+ ### **WORK IN PROGRESS**
93
106
  -->
94
107
 
95
108
  ## Changelog
109
+ ### 2.0.1 (2026-03-31)
110
+ * (@GermanBluefox) Adapter was updated and migrated to TypeScript
111
+
112
+ ### 1.4.0 (2023-01-03)
113
+ * (Apollon77) Added more guidance logging when setting services incorrectly
114
+ * (Apollon77) Prevent crashes when attributes contain "." at the end of their names
115
+ * (Apollon77) Added logging for state updates for unknown objects
116
+
96
117
  ### 1.3.0 (2022-07-01)
97
- * (Apollon77) Further optimize sending data to HASS and allow to set values like numbers as normal states if the service has one attribute and it can be mapped
118
+ * (Apollon77) Further optimize sending data to HASS and allow setting values like numbers as normal states if the service has one attribute and it can be mapped
98
119
 
99
120
  ### 1.2.0 (2022-06-17)
100
121
  * (Apollon77) IMPORTANT: Replace special characters in entity attribute names with an underscore! Object IDs might change!
@@ -113,7 +134,7 @@ Please check it https://www.smarthomejetzt.de/mit-iobroker-auf-eine-home-assista
113
134
  * (Apollon7) Add Sentry for crash reporting
114
135
 
115
136
  ### 1.0.1 (2021-09-04)
116
- * IMPORTANT: js-controller 2.0 is needed st least!
137
+ * IMPORTANT: js-controller 2.0 is needed at least!
117
138
  * (Apollon77) Fix start issue
118
139
  * (Apollon77/Garfonso) Fix issue where value could not be set in hass
119
140
 
@@ -126,7 +147,7 @@ Please check it https://www.smarthomejetzt.de/mit-iobroker-auf-eine-home-assista
126
147
  ## License
127
148
  The MIT License (MIT)
128
149
 
129
- Copyright (c) 2018-2022 bluefox <dogafox@gmail.com>
150
+ Copyright (c) 2018-2026 bluefox <dogafox@gmail.com>
130
151
 
131
152
  Permission is hereby granted, free of charge, to any person obtaining a copy
132
153
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,8 @@
1
+ {
2
+ "Home assistant IP": "IP-Adresse von Home Assistant",
3
+ "Home assistant WS Port": "Home Assistant WebSocket-Port",
4
+ "Password repeat": "Passwort wiederholen",
5
+ "Password": "Passwort",
6
+ "Passwords missmatch!": "Passwörter stimmen nicht überein!",
7
+ "Secure": "HTTPS?"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "Home assistant IP": "Home assistant IP",
3
+ "Home assistant WS Port": "Home assistant WS Port",
4
+ "Password repeat": "Password repeat",
5
+ "Password": "Password",
6
+ "Passwords missmatch!": "Passwords missmatch!",
7
+ "Secure": "HTTPS?"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "Home assistant IP": "IP del asistente de hogar",
3
+ "Home assistant WS Port": "Asistente doméstico Puerto WS",
4
+ "Password repeat": "Repite la contraseña",
5
+ "Password": "Clave",
6
+ "Passwords missmatch!": "¡Las contraseñas no coinciden!",
7
+ "Secure": "¿HTTPS?"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "Home assistant IP": "IP de l'assistant à domicile ",
3
+ "Home assistant WS Port": "Port WS de l'assistant domestique ",
4
+ "Password repeat": "Répéter le mot de passe ",
5
+ "Password": "Mot de passe",
6
+ "Passwords missmatch!": "Les mots de passe ne correspondent pas !",
7
+ "Secure": "HTTPS ?"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "Home assistant IP": "IP assistente domestico",
3
+ "Home assistant WS Port": "Porta WS dell'assistente domestico",
4
+ "Password repeat": "Ripeti password",
5
+ "Password": "Parola d'ordine",
6
+ "Passwords missmatch!": "Le password non corrispondono!",
7
+ "Secure": "HTTPS?"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "Home assistant IP": "Thuisassistent IP",
3
+ "Home assistant WS Port": "Thuisassistent WS Poort",
4
+ "Password repeat": "Wachtwoord herhalen",
5
+ "Password": "Wachtwoord",
6
+ "Passwords missmatch!": "Wachtwoorden komen niet overeen!",
7
+ "Secure": "HTTPS?"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "Home assistant IP": "Adres IP asystenta domowego",
3
+ "Home assistant WS Port": "Asystent domowy Port WS",
4
+ "Password repeat": "Powtórz hasło",
5
+ "Password": "Hasło",
6
+ "Passwords missmatch!": "Niezgodność haseł!",
7
+ "Secure": "HTTPS?"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "Home assistant IP": "IP do assistente doméstico",
3
+ "Home assistant WS Port": "Assistente doméstico Porta WS",
4
+ "Password repeat": "Repetição de senha",
5
+ "Password": "Senha",
6
+ "Passwords missmatch!": "As senhas não correspondem!",
7
+ "Secure": "HTTPS?"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "Home assistant IP": "Домашний помощник IP",
3
+ "Home assistant WS Port": "Домашний помощник WS Порт",
4
+ "Password repeat": "Повтор пароля",
5
+ "Password": "Пароль",
6
+ "Passwords missmatch!": "Пароли не совпадают!",
7
+ "Secure": "HTTPS?"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "Home assistant IP": "Домашній помічник IP",
3
+ "Home assistant WS Port": "Домашній помічник WS Порт",
4
+ "Password repeat": "Повторення пароля",
5
+ "Password": "Пароль",
6
+ "Passwords missmatch!": "Паролі не збігаються!",
7
+ "Secure": "HTTPS?"
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "Home assistant IP": "家庭助理IP:",
3
+ "Home assistant WS Port": "家庭助理 WS 端口:",
4
+ "Password repeat": "密码重复:",
5
+ "Password": "密码:",
6
+ "Passwords missmatch!": "密码不匹配!",
7
+ "Secure": "HTTPS?"
8
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "i18n": true,
3
+ "type": "panel",
4
+ "items": {
5
+ "host": {
6
+ "type": "text",
7
+ "label": "Home assistant IP",
8
+ "sm": 12,
9
+ "md": 6,
10
+ "lg": 4
11
+ },
12
+ "port": {
13
+ "type": "number",
14
+ "label": "Home assistant WS Port",
15
+ "min": 1,
16
+ "max": 65535,
17
+ "sm": 12,
18
+ "md": 6,
19
+ "lg": 4
20
+ },
21
+ "_divider1": {
22
+ "type": "divider"
23
+ },
24
+ "password": {
25
+ "type": "password",
26
+ "label": "Password",
27
+ "repeat": true,
28
+ "visible": true,
29
+ "sm": 12,
30
+ "md": 6,
31
+ "lg": 4
32
+ },
33
+ "_divider2": {
34
+ "type": "divider"
35
+ },
36
+ "secure": {
37
+ "type": "checkbox",
38
+ "label": "Secure",
39
+ "sm": 12,
40
+ "md": 6,
41
+ "lg": 4
42
+ }
43
+ }
44
+ }
package/io-package.json CHANGED
@@ -1,19 +1,20 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "hass",
4
- "version": "1.3.0",
4
+ "version": "2.0.1",
5
5
  "title": "Home Assistant",
6
6
  "titleLang": {
7
7
  "en": "Home Assistant",
8
- "de": "Home-Assistent",
9
- "ru": "Домашний помощник",
8
+ "de": "Home Assistant",
9
+ "ru": "Home Assistant",
10
10
  "pt": "Home Assistant",
11
- "nl": "Thuisassistent",
12
- "fr": "Assistante à domicile",
13
- "it": "Assistente domiciliare",
14
- "es": "Asistente de hogar",
15
- "pl": "Asystent domowy",
16
- "zh-cn": "家庭助理"
11
+ "nl": "Home Assistant",
12
+ "fr": "Home Assistant",
13
+ "it": "Home Assistant",
14
+ "es": "Home Assistant",
15
+ "pl": "Home Assistant",
16
+ "zh-cn": "Home Assistant",
17
+ "uk": "Home Assistant"
17
18
  },
18
19
  "desc": {
19
20
  "en": "Home Assistant connection for ioBroker",
@@ -25,9 +26,36 @@
25
26
  "it": "Connessione Home Assistant per ioBroker",
26
27
  "es": "Conexión de Home Assistant para ioBroker",
27
28
  "pl": "Połączenie Home Assistant dla ioBroker",
28
- "zh-cn": "ioBroker 的家庭助理连接"
29
+ "zh-cn": "ioBroker 的家庭助理连接",
30
+ "uk": "Підключення Home Assistant для ioBroker"
29
31
  },
30
32
  "news": {
33
+ "2.0.1": {
34
+ "en": "Adapter was updated and migrated to TypeScript",
35
+ "de": "Adapter wurde aktualisiert und auf TypeScript migriert",
36
+ "ru": "Адаптер был обновлен и перенесен на TypeScript",
37
+ "pt": "O adaptador foi atualizado e migrado para TypeScript",
38
+ "nl": "Adapter is bijgewerkt en gemigreerd naar TypeScript",
39
+ "fr": "Adaptateur a été mis à jour et migré vers TypeScript",
40
+ "it": "L'adattatore è stato aggiornato e migrato a TypeScript",
41
+ "es": "Adaptador fue actualizado y migrado a TipoScript",
42
+ "pl": "Adapter został zaktualizowany i przeniesiony do TypeScript",
43
+ "uk": "Адаптер був оновлений і мігрований до TypeScript",
44
+ "zh-cn": "适应器被更新并迁移到 TypeScript"
45
+ },
46
+ "1.4.0": {
47
+ "en": "Added more guidance logging when setting services incorrectly\nPrevent crashes when attributes contain \".\" at the end of their names\nAdded logging for state updates for unknown objects",
48
+ "de": "Mehr Anleitungsprotokollierung hinzugefügt, wenn Dienste falsch eingestellt werden\nVerhindern Sie Abstürzen, wenn Attribute \" enthalten.\" am Ende ihrer Namen\nHinzugefügt Protokollierung für Zustandsaktualisierungen für unbekannte Objekte",
49
+ "ru": "Добавили больше руководства, когда установка услуг неправильно\nПредотвратить сбои, когда атрибуты содержат \".\" в конце их имен\nДобавлен вход для государственных обновлений для неизвестных объектов",
50
+ "pt": "Adicionado mais registro de orientação ao definir serviços incorretamente\nImpedir falhas quando os atributos contêm \". no final de seus nomes\nRegisto adicionado para atualizações de estado para objetos desconhecidos",
51
+ "nl": "Voeg meer begeleiding toe als ze onjuiste diensten indienen\nVertaling:\nVermeld inloggen op staatsinformatie voor onbekende objecten",
52
+ "fr": "Ajout d'autres lignes directrices lorsqu'on établit des services incorrectement\nPrévenir les crashes lorsque les attributs contiennent \".\" à la fin de leurs noms\nAjout de logging pour les mises à jour de l'état des objets inconnus",
53
+ "it": "Aggiunto più guida logging quando imposta i servizi in modo errato\nPrevenire crash quando gli attributi contengono \". alla fine dei loro nomi\nAggiunto logging per aggiornamenti di stato per oggetti sconosciuti",
54
+ "es": "Se agregó más registro de guía cuando se establecen los servicios incorrectamente\nEvitar fallos cuando los atributos contienen \".\" al final de sus nombres\nRegistro añadido para actualizaciones estatales para objetos desconocidos",
55
+ "pl": "Wprowadzone są bardziej wytyczne, gdy ustawienie usług nieprawidłowo błędnie\nPrevent rozbija się, gdy atrybuty zawierają „”\nWprowadzone logowanie dla aktualizacji stanów nieznanych obiektów",
56
+ "uk": "Додайте більше звітів при установці послуг неправильно\nПрофілактика аварійних випадків, коли атрибути містять \".\" в кінці їх імен\nДодана записка для державних оновлень для невідомих об'єктів",
57
+ "zh-cn": "在不正确地建立服务时增加指导标志\n在名称末尾含有“第2款”的预防事故\n增加用于不明物品的国家更新的伐木"
58
+ },
31
59
  "1.3.0": {
32
60
  "en": "Further optimize sending data to HASS and allow to set values like numbers as normal states if the service has one attribute and it can be mapped",
33
61
  "de": "Weitere optimieren Sie das Senden von Daten an HASS und ermöglichen es, Werte wie Zahlen als normale Zustände festzulegen, wenn der Dienst ein Attribut hat und es abgebildet werden kann",
@@ -38,7 +66,8 @@
38
66
  "it": "Ottimizzare ulteriormente l'invio di dati a HASS e consentire di impostare valori come numeri come stati normali se il servizio ha un attributo e può essere mappato",
39
67
  "es": "Optimizar aún más el envío de datos a HASS y permitir establecer valores como números como estados normales si el servicio tiene un atributo y puede ser mapeado",
40
68
  "pl": "Dalsze optymalizowanie danych do HASS i umożliwienie ustalenie wartości takich jak stany normalne, jeśli usługa ma jeden atrybut i może być zmapowana",
41
- "zh-cn": "进一步优化向人道协调厅系统传送数据,如果该服务具有属性,它可以绘制图表,从而能够将数字象正常国家一样。"
69
+ "zh-cn": "进一步优化向人道协调厅系统传送数据,如果该服务具有属性,它可以绘制图表,从而能够将数字象正常国家一样。",
70
+ "uk": "Додатково оптимізуйте надсилання даних до HASS і дозвольте встановлювати такі значення, як числа, як звичайні стани, якщо служба має один атрибут і його можна зіставити"
42
71
  },
43
72
  "1.2.0": {
44
73
  "en": "IMPORTANT: Replace special characters in entity attribute names with an underscore! Object IDs might change!\nmake sure a \"null\" value in state changes is not crashing",
@@ -50,7 +79,8 @@
50
79
  "it": "IMPORTANTE: Sostituisci caratteri speciali in nomi attributo entità con un underscore! Gli ID degli Oggetti potrebbero cambiare!\nassicurarsi che un valore nullo nei cambiamenti di stato non è crash",
51
80
  "es": "IMPORTANTE: Reemplazar caracteres especiales en nombres de atributos de entidad con un subrayado! ¡Las identificaciones de objetos pueden cambiar!\nasegúrese de que un valor nulo en los cambios estatales no se estrella",
52
81
  "pl": "IMPORTANT: Replace special characters in identity attribution names with an underscore! (ang.). Zmiany obiektów mogą się zmieniać!\nniewątpliwą wartością w zmianach stanowych nie jest rozbicie się",
53
- "zh-cn": "IMPORTANT:将实体的特色性改为强调的! 目标国际组织可能改变!\n确保在国家变化中确保无效不失"
82
+ "zh-cn": "IMPORTANT:将实体的特色性改为强调的! 目标国际组织可能改变!\n确保在国家变化中确保无效不失",
83
+ "uk": "ВАЖЛИВО: Замініть спеціальні символи в іменах атрибутів сутності на підкреслення! Ідентифікатори об'єктів можуть змінитися!\nпереконайтеся, що \"нульове\" значення в змінах стану не аварійно завершує роботу"
54
84
  },
55
85
  "1.1.2": {
56
86
  "en": "Fix crash cases reported by Sentry",
@@ -62,7 +92,8 @@
62
92
  "it": "Risolvi i casi di crash segnalati da Sentry",
63
93
  "es": "Solucionar casos de fallas informados por Sentry",
64
94
  "pl": "Napraw przypadki awarii zgłoszone przez Sentry",
65
- "zh-cn": "修复 Sentry 报告的崩溃案例"
95
+ "zh-cn": "修复 Sentry 报告的崩溃案例",
96
+ "uk": "Виправте випадки збоїв, про які повідомляє Sentry"
66
97
  },
67
98
  "1.1.1": {
68
99
  "en": "Show password fields masked again in config",
@@ -74,7 +105,8 @@
74
105
  "it": "Mostra i campi password mascherati di nuovo in config",
75
106
  "es": "Mostrar campos de contraseña enmascarados nuevamente en la configuración",
76
107
  "pl": "Pokaż ponownie zamaskowane pola haseł w konfiguracji",
77
- "zh-cn": "在配置中再次显示被屏蔽的密码字段"
108
+ "zh-cn": "在配置中再次显示被屏蔽的密码字段",
109
+ "uk": "Знову показати замасковані поля пароля в конфігурації"
78
110
  },
79
111
  "1.1.0": {
80
112
  "en": "IMPORTANT: You need to re-enter the password once after installing this version!\nImplement Service triggers to use any value to trigger or stringified JSON to call with fields\nOptimize unload handling\nAdd Sentry for crash reporting",
@@ -86,31 +118,8 @@
86
118
  "it": "IMPORTANTE: è necessario reinserire la password una volta dopo aver installato questa versione!\nImplementa i trigger del servizio per utilizzare qualsiasi valore per attivare o JSON in formato stringa per chiamare con i campi\nOttimizza la gestione dello scarico\nAggiungi Sentinella per la segnalazione degli arresti anomali",
87
119
  "es": "IMPORTANTE: ¡Debe volver a ingresar la contraseña una vez después de instalar esta versión!\nImplementar disparadores de servicio para usar cualquier valor para disparar o JSON en cadena para llamar con campos\nOptimizar el manejo de descarga\nAgregar Sentry para informes de fallas",
88
120
  "pl": "WAŻNE: Po zainstalowaniu tej wersji należy raz ponownie wprowadzić hasło!\nZaimplementuj wyzwalacze usługi, aby używać dowolnej wartości do wyzwalania lub skróconego JSON do wywołania z polami\nZoptymalizuj obsługę rozładunku\nDodaj Sentry do zgłaszania awarii",
89
- "zh-cn": "重要提示:安装此版本后需要重新输入一次密码!\n实现服务触发器以使用任何值触发或字符串化 JSON 以使用字段调用\n优化卸载处理\n添加 Sentry 以进行崩溃报告"
90
- },
91
- "1.0.1": {
92
- "en": "IMPORTANT: js-controller 2.0 is needed st least!\nFix start issue\n(Apollon77/Garfonso) Fix issue where value could not be set in hass",
93
- "de": "WICHTIG: js-controller 2.0 wird am wenigsten benötigt!\nStartproblem beheben\n(Apollon77/Garfonso) Problem behoben, bei dem der Wert nicht in Hass festgelegt werden konnte",
94
- "ru": "ВАЖНО: js-controller 2.0 нужен как минимум!\nИсправить проблему с запуском\n(Apollon77 / Garfonso) Исправлена ошибка, из-за которой значение не могло быть установлено в hass.",
95
- "pt": "IMPORTANTE: o js-controller 2.0 é o mínimo necessário!\nCorrigir problema inicial\n(Apollon77 / Garfonso) Correção do problema em que o valor não podia ser definido em hass",
96
- "nl": "BELANGRIJK: js-controller 2.0 is minimaal nodig!\nStartprobleem oplossen\n(Apollon77/Garfonso) Probleem opgelost waarbij de waarde niet kon worden ingesteld in hass",
97
- "fr": "IMPORTANT : js-controller 2.0 est au moins nécessaire !\nRésoudre le problème de démarrage\n(Apollon77/Garfonso) Correction d'un problème où la valeur ne pouvait pas être définie dans hass",
98
- "it": "IMPORTANTE: come minimo è necessario js-controller 2.0!\nRisolvi il problema di avvio\n(Apollon77/Garfonso) Risolto il problema per cui il valore non poteva essere impostato in hass",
99
- "es": "IMPORTANTE: ¡js-controller 2.0 es lo menos necesario!\nSolucionar problema de inicio\n(Apollon77 / Garfonso) Se solucionó el problema por el cual no se podía establecer el valor en hass",
100
- "pl": "WAŻNE: js-controller 2.0 jest potrzebny przynajmniej!\nNapraw problem z uruchomieniem\n(Apollon77/Garfonso) Napraw problem, w którym nie można było ustawić wartości w hass",
101
- "zh-cn": "重要提示:至少需要 js-controller 2.0!\n修复启动问题\n(Apollon77/Garfonso) 修复无法在 hass 中设置值的问题"
102
- },
103
- "1.0.0": {
104
- "en": "added the support of compact mode",
105
- "de": "fügte die Unterstützung des Kompaktmodus hinzu",
106
- "ru": "добавлена поддержка компактного режима",
107
- "pt": "adicionado o suporte do modo compacto",
108
- "nl": "de ondersteuning van de compacte modus toegevoegd",
109
- "fr": "ajouté le support du mode compact",
110
- "it": "aggiunto il supporto della modalità compatta",
111
- "es": "agregó el soporte del modo compacto",
112
- "pl": "dodano obsługę trybu kompaktowego",
113
- "zh-cn": "增加了对紧凑模式的支持"
121
+ "zh-cn": "重要提示:安装此版本后需要重新输入一次密码!\n实现服务触发器以使用任何值触发或字符串化 JSON 以使用字段调用\n优化卸载处理\n添加 Sentry 以进行崩溃报告",
122
+ "uk": "ВАЖЛИВО: після встановлення цієї версії потрібно повторно ввести пароль!\nРеалізуйте тригери служби, щоб використовувати будь-яке значення для запуску або рядковий JSON для виклику з полями\nОптимізуйте роботу з розвантаженням\nДодайте Sentry для звітування про збої"
114
123
  }
115
124
  },
116
125
  "localLink": "http://%host%:8123",
@@ -119,7 +128,9 @@
119
128
  "icon": "hass.png",
120
129
  "enabled": true,
121
130
  "compact": true,
122
- "materialize": true,
131
+ "adminUI": {
132
+ "config": "json"
133
+ },
123
134
  "license": "MIT",
124
135
  "extIcon": "https://raw.githubusercontent.com/ioBroker/ioBroker.hass/master/admin/hass.png",
125
136
  "keywords": [
@@ -135,12 +146,12 @@
135
146
  ],
136
147
  "dependencies": [
137
148
  {
138
- "js-controller": ">=3.0.0"
149
+ "js-controller": ">=6.0.11"
139
150
  }
140
151
  ],
141
152
  "globalDependencies": [
142
153
  {
143
- "admin": ">=5.1.28"
154
+ "admin": ">=6.0.0"
144
155
  }
145
156
  ],
146
157
  "plugins": {
@@ -170,7 +181,8 @@
170
181
  "it": "Reinserire la password dopo l'aggiornamento!",
171
182
  "es": "Vuelva a ingresar la contraseña después de ¡Actualizar!",
172
183
  "pl": "Wprowadź hasło ponownie po aktualizacji!",
173
- "zh-cn": "更新后重新输入密码!"
184
+ "zh-cn": "更新后重新输入密码!",
185
+ "uk": "Повторно введіть пароль після оновлення!"
174
186
  },
175
187
  "text": {
176
188
  "en": "After installing this update the password/token used to access the HASS installation needs to be re-entered in the Instance-Settings!",
@@ -182,7 +194,8 @@
182
194
  "it": "Dopo aver installato questo aggiornamento, la password/token utilizzato per accedere all'installazione HASS deve essere reinserito nelle impostazioni dell'istanza!",
183
195
  "es": "¡Después de instalar esta actualización, la contraseña/token utilizada para acceder a la instalación de HASS debe volver a ingresarse en la configuración de la instancia!",
184
196
  "pl": "Po zainstalowaniu tej aktualizacji hasło/token używane do uzyskania dostępu do instalacji HASS należy ponownie wprowadzić w ustawieniach instancji!",
185
- "zh-cn": "安装此更新后,用于访问 HASS 安装的密码/令牌需要在实例设置中重新输入!"
197
+ "zh-cn": "安装此更新后,用于访问 HASS 安装的密码/令牌需要在实例设置中重新输入!",
198
+ "uk": "Після встановлення цього оновлення пароль/токен, який використовується для доступу до встановлення HASS, потрібно повторно ввести в налаштуваннях екземпляра!"
186
199
  },
187
200
  "level": "warn",
188
201
  "buttons": [
@@ -208,7 +221,8 @@
208
221
  "it": "Avviso IMPORTANTE!",
209
222
  "es": "Noticia importante!",
210
223
  "pl": "Ważna uwaga!",
211
- "zh-cn": "重要通知!"
224
+ "zh-cn": "重要通知!",
225
+ "uk": "Важливе повідомлення!"
212
226
  },
213
227
  "text": {
214
228
  "en": "The new version 1.2.x will potentially change the Names of Objects when special characters like \".\", \"-\" or spaces were used in entity attributes! Please delete the old objects manually if needed.",
@@ -220,7 +234,8 @@
220
234
  "it": "La nuova versione 1.2.x cambierà potenzialmente i nomi degli oggetti quando caratteri speciali come \".\", \"-\" o spazi sono stati utilizzati negli attributi dell'entità! Si prega di eliminare i vecchi oggetti manualmente se necessario.",
221
235
  "es": "La nueva versión 1.2.x potencialmente cambiará los Nombres de Objetos cuando caracteres especiales como \"., \"-\" o espacios fueron utilizados en atributos de entidad! Por favor, borre los viejos objetos manualmente si es necesario.",
222
236
  "pl": "Nowa wersja 1.2.x będzie potencjalnie zmieniać nazwy obiektów, kiedy szczególne postacie takie jak „.”, „-” lub przestrzenie były używane w atrybutach. Okazuje się, że stare obiekty ręcznie będą potrzebne.",
223
- "zh-cn": "新版本1.2.x将可能改变物体的名称,如“......”、“-”或空间在实体的属性中使用。 请在必要时删除旧物体。."
237
+ "zh-cn": "新版本1.2.x将可能改变物体的名称,如“......”、“-”或空间在实体的属性中使用。 请在必要时删除旧物体。.",
238
+ "uk": "Нова версія 1.2.x потенційно змінить назви об’єктів, якщо в атрибутах об’єктів використовувалися спеціальні символи, такі як «.», «-» або пробіли! За потреби видаліть старі об’єкти вручну."
224
239
  },
225
240
  "level": "warn",
226
241
  "buttons": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.hass",
3
- "version": "1.3.0",
3
+ "version": "2.0.1",
4
4
  "description": "Home Assistant",
5
5
  "author": {
6
6
  "name": "bluefox",
@@ -25,26 +25,41 @@
25
25
  "url": "https://github.com/ioBroker/ioBroker.hass"
26
26
  },
27
27
  "dependencies": {
28
- "websocket": "^1.0.34",
29
- "ws": "^8.8.0",
30
- "@iobroker/adapter-core": "^2.6.0"
28
+ "ws": "^8.20.0",
29
+ "@iobroker/adapter-core": "^3.3.2"
31
30
  },
32
31
  "devDependencies": {
33
- "@alcalzone/release-script": "^3.5.9",
34
- "@alcalzone/release-script-plugin-iobroker": "^3.5.9",
35
- "@alcalzone/release-script-plugin-license": "^3.5.9",
36
- "axios": "^0.27.2",
37
- "gulp": "^4.0.2",
38
- "mocha": "^10.0.0",
39
- "chai": "^4.3.6"
32
+ "@alcalzone/release-script": "^5.1.1",
33
+ "@alcalzone/release-script-plugin-iobroker": "^5.1.2",
34
+ "@alcalzone/release-script-plugin-license": "^5.1.1",
35
+ "@iobroker/adapter-dev": "^1.5.0",
36
+ "@iobroker/build-tools": "^3.0.1",
37
+ "@iobroker/eslint-config": "^2.2.0",
38
+ "@iobroker/legacy-testing": "^2.0.2",
39
+ "@iobroker/testing": "^5.2.2",
40
+ "@types/ws": "^8.18.1",
41
+ "mocha": "^11.7.5"
40
42
  },
41
- "main": "main.js",
43
+ "main": "build/main.js",
44
+ "files": [
45
+ "admin{,/!(src)/**}/!(tsconfig|tsconfig.*|.eslintrc).{json,json5}",
46
+ "admin{,/!(src)/**}/*.{html,css,png,svg,jpg,js}",
47
+ "build/",
48
+ "io-package.json",
49
+ "LICENSE"
50
+ ],
42
51
  "scripts": {
43
- "test": "node node_modules/mocha/bin/mocha --exit",
52
+ "test:integration": "mocha --exit",
53
+ "test:package": "mocha test/testPackageFiles.js --exit",
54
+ "test": "npm run test:integration",
55
+ "build:tsc": "tsc -p tsconfig.build.json",
56
+ "build": "npm run build:tsc",
57
+ "lint": "eslint -c eslint.config.mjs",
44
58
  "release": "release-script",
45
59
  "release-patch": "release-script patch --yes",
46
60
  "release-minor": "release-script minor --yes",
47
- "release-major": "release-script major --yes"
61
+ "release-major": "release-script major --yes",
62
+ "translate": "translate-adapter"
48
63
  },
49
64
  "bugs": {
50
65
  "url": "https://github.com/ioBroker/ioBroker.hass/issues"
@@ -1,8 +0,0 @@
1
- {
2
- "Home assistant IP:": "IP-Adresse des Heimassistenten:",
3
- "Home assistant WS Port:": "Home Assistant WS-Port:",
4
- "Password repeat:": "Passwort wiederholen:",
5
- "Password:": "Passwort:",
6
- "Passwords missmatch!": "Passwörter stimmen nicht überein!",
7
- "Secure:": "HTTPS?"
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "Home assistant IP:": "Home assistant IP:",
3
- "Home assistant WS Port:": "Home assistant WS Port:",
4
- "Password repeat:": "Password repeat:",
5
- "Password:": "Password:",
6
- "Passwords missmatch!": "Passwords missmatch!",
7
- "Secure:": "HTTPS?"
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "Home assistant IP:": "IP del asistente de hogar:",
3
- "Home assistant WS Port:": "Asistente doméstico Puerto WS:",
4
- "Password repeat:": "Repite la contraseña:",
5
- "Password:": "Clave:",
6
- "Passwords missmatch!": "¡Las contraseñas no coinciden!",
7
- "Secure:": "¿HTTPS?:"
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "Home assistant IP:": "IP de l'assistant à domicile :",
3
- "Home assistant WS Port:": "Port WS de l'assistant domestique :",
4
- "Password repeat:": "Répéter le mot de passe :",
5
- "Password:": "Mot de passe:",
6
- "Passwords missmatch!": "Les mots de passe ne correspondent pas !",
7
- "Secure:": "HTTPS ?"
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "Home assistant IP:": "IP assistente domestico:",
3
- "Home assistant WS Port:": "Porta WS dell'assistente domestico:",
4
- "Password repeat:": "Ripeti password:",
5
- "Password:": "Parola d'ordine:",
6
- "Passwords missmatch!": "Le password non corrispondono!",
7
- "Secure:": "HTTPS?"
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "Home assistant IP:": "Thuisassistent IP:",
3
- "Home assistant WS Port:": "Thuisassistent WS Poort:",
4
- "Password repeat:": "Wachtwoord herhalen:",
5
- "Password:": "Wachtwoord:",
6
- "Passwords missmatch!": "Wachtwoorden komen niet overeen!",
7
- "Secure:": "HTTPS?"
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "Home assistant IP:": "Adres IP asystenta domowego:",
3
- "Home assistant WS Port:": "Asystent domowy Port WS:",
4
- "Password repeat:": "Powtórz hasło:",
5
- "Password:": "Hasło:",
6
- "Passwords missmatch!": "Niezgodność haseł!",
7
- "Secure:": "HTTPS?"
8
- }
@@ -1,8 +0,0 @@
1
- {
2
- "Home assistant IP:": "IP do assistente doméstico:",
3
- "Home assistant WS Port:": "Assistente doméstico Porta WS:",
4
- "Password repeat:": "Repetição de senha:",
5
- "Password:": "Senha:",
6
- "Passwords missmatch!": "As senhas não correspondem!",
7
- "Secure:": "HTTPS?"
8
- }