iobroker.hass 1.0.0 → 1.1.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,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2018-2020 bluefox <dogafox@gmail.com>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018-2022 bluefox <dogafox@gmail.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,53 +1,137 @@
1
- ![Logo](admin/hass.png)
2
- # ioBroker.hass
3
-
4
- [![NPM version](http://img.shields.io/npm/v/iobroker.hass.svg)](https://www.npmjs.com/package/iobroker.hass)
5
- [![Downloads](https://img.shields.io/npm/dm/iobroker.hass.svg)](https://www.npmjs.com/package/iobroker.hass)
6
-
7
-
8
- This adapter allows the connecting of Home Assistant to ioBroker.
9
-
10
- ## Usage
11
- Create a long term token in HASS and use it as PW (copy it also in the repeat field).
12
-
13
- ## Configuration
14
- There is a good article about connection.
15
-
16
- Please check it https://www.smarthomejetzt.de/mit-iobroker-auf-eine-home-assistant-hass-io-installation-und-die-geraete-zugreifen/
17
-
18
- **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)**
19
-
20
- <!--
21
- Placeholder for the next version (at the beginning of the line):
22
- ### __WORK IN PROGRESS__
23
- -->
24
-
25
- ## Changelog
26
- ### 1.0.0 (2020-12-13)
27
- * (bluefox) added the support of compact mode
28
-
29
- ### 0.1.0
30
- * (bluefox) initial release
31
-
32
- ## License
33
- The MIT License (MIT)
34
-
35
- Copyright (c) 2018-2020 bluefox <dogafox@gmail.com>
36
-
37
- Permission is hereby granted, free of charge, to any person obtaining a copy
38
- of this software and associated documentation files (the "Software"), to deal
39
- in the Software without restriction, including without limitation the rights
40
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
41
- copies of the Software, and to permit persons to whom the Software is
42
- furnished to do so, subject to the following conditions:
43
-
44
- The above copyright notice and this permission notice shall be included in
45
- all copies or substantial portions of the Software.
46
-
47
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
51
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
52
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
53
- THE SOFTWARE.
1
+ ![Logo](admin/hass.png)
2
+ # ioBroker.hass
3
+
4
+ ![Number of Installations](http://iobroker.live/badges/hass-installed.svg)
5
+ ![Number of Installations](http://iobroker.live/badges/hass-stable.svg)
6
+ [![NPM version](http://img.shields.io/npm/v/iobroker.hass.svg)](https://www.npmjs.com/package/iobroker.hass)
7
+
8
+ ![Test and Release](https://github.com/ioBroker/ioBroker.hass/workflows/Test%20and%20Release/badge.svg)
9
+ [![Translation status](https://weblate.iobroker.net/widgets/adapters/-/hass/svg-badge.svg)](https://weblate.iobroker.net/engage/adapters/?utm_source=widget)
10
+ [![Downloads](https://img.shields.io/npm/dm/iobroker.hass.svg)](https://www.npmjs.com/package/iobroker.hass)
11
+
12
+ **This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.** For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)! Sentry reporting is used starting with js-controller 3.0.
13
+
14
+
15
+ This adapter allows the connecting of Home Assistant to ioBroker.
16
+
17
+ ## Usage
18
+ Create a long term token in HASS and use it as PW (copy it also in the repeat field).
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
23
+
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:
25
+
26
+ `
27
+ ...
28
+ native: {
29
+ "fields": {
30
+ "transition": {
31
+ "name": "Transition",
32
+ "description": "Duration it takes to get to next state.",
33
+ "selector": {
34
+ "number": {
35
+ "min": 0,
36
+ "max": 300,
37
+ "unit_of_measurement": "seconds"
38
+ }
39
+ }
40
+ },
41
+ "flash": {
42
+ "name": "Flash",
43
+ "description": "If the light should flash.",
44
+ "advanced": true,
45
+ "selector": {
46
+ "select": {
47
+ "options": [
48
+ "long",
49
+ "short"
50
+ ]
51
+ }
52
+ }
53
+ }
54
+ },
55
+ "entity_id": "light.mi_control_hub_light",
56
+ "attr": "turn_off",
57
+ "type": "light"
58
+ }
59
+ ...
60
+ `
61
+
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:
63
+
64
+ ```
65
+ ...
66
+ native: {
67
+ "fields": {
68
+ "speed": {
69
+ "name": "Speed",
70
+ "description": "Speed setting.",
71
+ "required": true,
72
+ "example": "low",
73
+ "selector": {
74
+ "text": null
75
+ }
76
+ }
77
+ }
78
+ ...
79
+ }
80
+ ...
81
+ ```
82
+
83
+ ## Configuration
84
+ There is a good article about connection.
85
+
86
+ Please check it https://www.smarthomejetzt.de/mit-iobroker-auf-eine-home-assistant-hass-io-installation-und-die-geraete-zugreifen/
87
+
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)**
89
+
90
+ <!--
91
+ Placeholder for the next version (at the beginning of the line):
92
+ ### __WORK IN PROGRESS__
93
+ -->
94
+
95
+ ## Changelog
96
+ ### 1.1.1 (2022-03-25)
97
+ * (Apollon77) Show password fields masked again in config
98
+
99
+ ### 1.1.0 (2022-03-24)
100
+ * IMPORTANT: You need to re-enter the password once after installing this version!
101
+ * (Apollon77) Implement Service triggers to use any value to trigger or stringified JSON to call with fields
102
+ * (Apollon77) Optimize unload handling
103
+ * (Apollon7) Add Sentry for crash reporting
104
+
105
+ ### 1.0.1 (2021-09-04)
106
+ * IMPORTANT: js-controller 2.0 is needed st least!
107
+ * (Apollon77) Fix start issue
108
+ * (Apollon77/Garfonso) Fix issue where value could not be set in hass
109
+
110
+ ### 1.0.0 (2020-12-13)
111
+ * (bluefox) added the support of compact mode
112
+
113
+ ### 0.1.0
114
+ * (bluefox) initial release
115
+
116
+ ## License
117
+ The MIT License (MIT)
118
+
119
+ Copyright (c) 2018-2022 bluefox <dogafox@gmail.com>
120
+
121
+ Permission is hereby granted, free of charge, to any person obtaining a copy
122
+ of this software and associated documentation files (the "Software"), to deal
123
+ in the Software without restriction, including without limitation the rights
124
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
125
+ copies of the Software, and to permit persons to whom the Software is
126
+ furnished to do so, subject to the following conditions:
127
+
128
+ The above copyright notice and this permission notice shall be included in
129
+ all copies or substantial portions of the Software.
130
+
131
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
132
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
133
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
134
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
135
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
136
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
137
+ THE SOFTWARE.
@@ -0,0 +1,8 @@
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
+ }
@@ -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
+ }
@@ -1,75 +1,108 @@
1
- <html>
2
- <head>
3
- <link rel="stylesheet" type="text/css" href="../../lib/css/themes/jquery-ui/redmond/jquery-ui.min.css"/>
4
- <link rel="stylesheet" type="text/css" href="../../css/adapter.css"/>
5
-
6
- <script type="text/javascript" src="../../lib/js/jquery-1.11.1.min.js"></script>
7
- <script type="text/javascript" src="../../socket.io/socket.io.js"></script>
8
- <script type="text/javascript" src="../../lib/js/jquery-ui-1.10.3.full.min.js"></script>
9
- <script type="text/javascript" src="../../js/translate.js"></script>
10
- <script type="text/javascript" src="../../js/adapter-settings.js"></script>
11
- <script type="text/javascript" src="words.js"></script>
12
-
13
- <script type="text/javascript">
14
-
15
- function load(settings, onChange) {
16
- if (!settings) return;
17
-
18
- if (settings.password === undefined) settings.password = '';
19
- if (settings.prompt === undefined) settings.prompt = 'hass>';
20
-
21
- $('.value').each(function () {
22
- var key = $(this).attr('id');
23
- var $value = $('#' + key + '.value');
24
- if ($value.attr('type') === 'checkbox') {
25
- $value.prop('checked', settings[key]).change(function() {
26
- onChange();
27
- });
28
- } else {
29
- $value.val(settings[key]).change(function() {
30
- onChange();
31
- }).keyup(function() {
32
- onChange();
33
- });
34
- }
35
- });
36
- // Signal to admin, that no changes yet
37
- onChange(false);
38
- }
39
-
40
- function save(callback) {
41
- var obj = {};
42
-
43
- if ($('#password').val() !== $('#passwordRepeat').val()) {
44
- showMessage(_('Passwords missmatch!'), _('Warning'), 'alert');
45
- return;
46
- }
47
-
48
- $('.value').each(function () {
49
- var $this = $(this);
50
- if ($this.attr('type') === 'checkbox') {
51
- obj[$this.attr('id')] = $this.prop('checked');
52
- } else {
53
- obj[$this.attr('id')] = $this.val();
54
- }
55
- });
56
- callback(obj);
57
- }
58
- </script>
59
- </head>
60
- <body>
61
- <div id="adapter-container">
62
- <table><tr>
63
- <td><img src="hass.png" alt="logo"/></td>
64
- <td><h3 class="translate">Home assistant adapter settings</h3></td>
65
- </tr></table>
66
- <table>
67
- <tr><td><label class="translate" for="host">Home assistant IP:</label></td><td class="admin-icon"></td><td><input class="value" id="host" /></td></tr>
68
- <tr><td><label class="translate" for="port">Home assistant WS Port:</label></td><td class="admin-icon"></td><td><input class="value" id="port" size="5" maxlength="5"/></td></tr>
69
- <tr><td><label class="translate" for="password">Password:</label></td><td class="admin-icon"></td><td><input class="value" id="password" type="password"/></td></tr>
70
- <tr><td><label class="translate" for="passwordRepeat">Password repeat:</label></td><td class="admin-icon"></td><td><input type="password" id="passwordRepeat"/></td></tr>
71
- <tr><td><label class="translate" for="secure">Secure:</label></td><td class="admin-icon"></td><td><input class="value" id="secure" type="checkbox"/></td></tr>
72
- </table>
73
- </div>
74
- </body>
75
- </html>
1
+ <html>
2
+ <head>
3
+ <!-- Materialze style -->
4
+ <link rel="stylesheet" type="text/css" href="../../css/adapter.css"/>
5
+ <link rel="stylesheet" type="text/css" href="../../lib/css/materialize.css">
6
+
7
+ <script type="text/javascript" src="../../lib/js/jquery-3.2.1.min.js"></script>
8
+ <script type="text/javascript" src="../../socket.io/socket.io.js"></script>
9
+
10
+ <script type="text/javascript" src="../../js/translate.js"></script>
11
+ <script type="text/javascript" src="../../lib/js/materialize.js"></script>
12
+ <script type="text/javascript" src="../../js/adapter-settings.js"></script>
13
+ <script type="text/javascript" src="words.js"></script>
14
+
15
+ <script type="text/javascript">
16
+
17
+ function load(settings, onChange) {
18
+ if (!settings) return;
19
+
20
+ if (settings.password === undefined) settings.password = '';
21
+ settings.passwordRepeat = settings.password;
22
+
23
+ $('.value').each(function () {
24
+ var key = $(this).attr('id');
25
+ var $value = $('#' + key + '.value');
26
+ if ($value.attr('type') === 'checkbox') {
27
+ $value.prop('checked', settings[key]).change(function() {
28
+ onChange();
29
+ });
30
+ } else {
31
+ $value.val(settings[key]).change(function() {
32
+ onChange();
33
+ }).keyup(function() {
34
+ onChange();
35
+ });
36
+ }
37
+ });
38
+ // Signal to admin, that no changes yet
39
+ onChange(false);
40
+ }
41
+
42
+ function save(callback) {
43
+ var obj = {};
44
+
45
+ if ($('#password').val() !== $('#passwordRepeat').val()) {
46
+ showMessage(_('Passwords missmatch!'), _('Warning'), 'alert');
47
+ return;
48
+ }
49
+
50
+ $('.value').each(function () {
51
+ var $this = $(this);
52
+ if ($this.attr('type') === 'checkbox') {
53
+ obj[$this.attr('id')] = $this.prop('checked');
54
+ } else {
55
+ obj[$this.attr('id')] = $this.val();
56
+ }
57
+ });
58
+ delete obj.passwordRepeat;
59
+
60
+ callback(obj);
61
+ }
62
+ </script>
63
+ </head>
64
+ <body>
65
+ <div class="m adapter-container">
66
+ <div class="row">
67
+ <div class="col s12 m4 l2">
68
+ <img src="hass.png" class="logo">
69
+ </div>
70
+ </div>
71
+
72
+ <div class="row">
73
+ <div class="col s12 m8 l8">
74
+ <div class="col s4 input-field">
75
+ <input type="text" class="value" id="host" />
76
+ <label for="host" class="translate">Home assistant IP:</label>
77
+ </div>
78
+ <div class="col s4 input-field">
79
+ <input type="text" class="value" id="port" size="5" maxlength="5"/>
80
+ <label for="port" class="translate">Home assistant WS Port:</label>
81
+ </div>
82
+ </div>
83
+ </div>
84
+
85
+ <div class="row">
86
+ <div class="col s12 m8 l8">
87
+ <div class="col s6 m4 input-field">
88
+ <input type="password" class="value" id="password" />
89
+ <label for="password" class="translate">Password:</label>
90
+ </div>
91
+ <div class="col s6 m4 input-field">
92
+ <input type="password" class="value" id="passwordRepeat" />
93
+ <label for="passwordRepeat" class="translate">Password repeat:</label>
94
+ </div>
95
+ </div>
96
+ </div>
97
+
98
+ <div class="row">
99
+ <div class="col s12 m8 l8">
100
+ <div class="col s6 m4 input-field">
101
+ <input id="secure" type="checkbox" class="value" />
102
+ <span for="secure" class="translate">Secure:</span>
103
+ </div>
104
+ </div>
105
+ </div>
106
+ </div>
107
+ </body>
108
+ </html>
package/admin/words.js CHANGED
@@ -1,19 +1,11 @@
1
- systemDictionary = {
2
- "FHEM adapter settings":{"de": "FHEM Adapter Einstellungen", "ru": "Настройки драйвера FHEM"},
3
- "FHEM Telnet IP:": {"de": "FHEM Telnet IP:", "ru": "FHEM Telnet IP:"},
4
- "FHEM Telnet Port:": {"en": "FHEM Telnet Port:", "de": "FHEM Telnet Port:", "ru": "FHEM Telnet порт:"},
5
- "Password:": {"en": "Password:", "de": "Kennwort:", "ru": "Пароль:"},
6
- "Password repeat:": {"en": "Password repeat:", "de": "Kennwort-Woederholung:", "ru": "Подтверждение пароля:"},
7
- "Passwords missmatch!": {"en": "Passwords missmatch!", "de": "Kennworte sind unterschiedlich!", "ru": "Пароли не совпадают!"},
8
- "Prompt:": {"en": "Prompt:", "de": "Prompt:", "ru": "Промпт:"},
9
- "tooltip_password": {
10
- "en": "Optional. Only if FHEM requires password.",
11
- "de": "Optional. Nur falls in FHEM konfiguriert",
12
- "ru": "Не обязательно. Только если настроено в FHEM"
13
- },
14
- "tooltip_prompt": {
15
- "en": "You can change standard prompt from 'hass>' to something else.",
16
- "de": "Man kann hier ein eigenes Prompt setzen. Default ist 'hass>'",
17
- "ru": "Можно задать собственный промпт. По умолчанию 'hass>'"
18
- }
19
- };
1
+ /*global systemDictionary:true */
2
+ 'use strict';
3
+
4
+ systemDictionary = {
5
+ "Home assistant IP:": { "en": "Home assistant IP:", "de": "IP-Adresse des Heimassistenten:", "ru": "Домашний помощник IP:", "pt": "IP do assistente doméstico:", "nl": "Thuisassistent IP:", "fr": "IP de l'assistant à domicile :", "it": "IP assistente domestico:", "es": "IP del asistente de hogar:", "pl": "Adres IP asystenta domowego:", "zh-cn": "家庭助理IP:"},
6
+ "Home assistant WS Port:": { "en": "Home assistant WS Port:", "de": "Home Assistant WS-Port:", "ru": "Домашний помощник WS Порт:", "pt": "Assistente doméstico Porta WS:", "nl": "Thuisassistent WS Poort:", "fr": "Port WS de l'assistant domestique :", "it": "Porta WS dell'assistente domestico:", "es": "Asistente doméstico Puerto WS:", "pl": "Asystent domowy Port WS:", "zh-cn": "家庭助理 WS 端口:"},
7
+ "Password repeat:": { "en": "Password repeat:", "de": "Passwort wiederholen:", "ru": "Повтор пароля:", "pt": "Repetição de senha:", "nl": "Wachtwoord herhalen:", "fr": "Répéter le mot de passe :", "it": "Ripeti password:", "es": "Repite la contraseña:", "pl": "Powtórz hasło:", "zh-cn": "密码重复:"},
8
+ "Password:": { "en": "Password:", "de": "Passwort:", "ru": "Пароль:", "pt": "Senha:", "nl": "Wachtwoord:", "fr": "Mot de passe:", "it": "Parola d'ordine:", "es": "Clave:", "pl": "Hasło:", "zh-cn": "密码:"},
9
+ "Passwords missmatch!": { "en": "Passwords missmatch!", "de": "Passwörter stimmen nicht überein!", "ru": "Пароли не совпадают!", "pt": "As senhas não correspondem!", "nl": "Wachtwoorden komen niet overeen!", "fr": "Les mots de passe ne correspondent pas !", "it": "Le password non corrispondono!", "es": "¡Las contraseñas no coinciden!", "pl": "Niezgodność haseł!", "zh-cn": "密码不匹配!"},
10
+ "Secure:": { "en": "HTTPS?", "de": "HTTPS?", "ru": "HTTPS?", "pt": "HTTPS?", "nl": "HTTPS?", "fr": "HTTPS ?", "it": "HTTPS?", "es": "¿HTTPS?", "pl": "HTTPS?", "zh-cn": "HTTPS?"},
11
+ };