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 +21 -21
- package/README.md +137 -53
- package/admin/i18n/de/translations.json +8 -0
- package/admin/i18n/en/translations.json +8 -0
- package/admin/i18n/es/translations.json +8 -0
- package/admin/i18n/fr/translations.json +8 -0
- package/admin/i18n/it/translations.json +8 -0
- package/admin/i18n/nl/translations.json +8 -0
- package/admin/i18n/pl/translations.json +8 -0
- package/admin/i18n/pt/translations.json +8 -0
- package/admin/i18n/ru/translations.json +8 -0
- package/admin/i18n/zh-cn/translations.json +8 -0
- package/admin/index_m.html +108 -75
- package/admin/words.js +11 -19
- package/io-package.json +215 -102
- package/lib/hass.js +270 -257
- package/lib/tools.js +92 -0
- package/main.js +457 -400
- package/package.json +53 -48
- package/admin/index.html +0 -76
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2018-
|
|
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
|
-

|
|
2
|
-
# ioBroker.hass
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+

|
|
2
|
+
# ioBroker.hass
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
[](https://www.npmjs.com/package/iobroker.hass)
|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
[](https://weblate.iobroker.net/engage/adapters/?utm_source=widget)
|
|
10
|
+
[](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:": "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:": "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
|
+
}
|
package/admin/index_m.html
CHANGED
|
@@ -1,75 +1,108 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
|
|
4
|
-
<link rel="stylesheet" type="text/css" href="../../css/adapter.css"/>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<script type="text/javascript" src="../../
|
|
8
|
-
<script type="text/javascript" src="../../
|
|
9
|
-
|
|
10
|
-
<script type="text/javascript" src="../../js/
|
|
11
|
-
<script type="text/javascript" src="
|
|
12
|
-
|
|
13
|
-
<script type="text/javascript">
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (settings
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
onChange();
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
obj[$this.attr('id')] = $this.
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
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
|
+
};
|