iobroker.sonoff 2.5.7 → 3.1.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.
- package/LICENSE +1 -1
- package/README.md +12 -1
- package/admin/i18n/de/translations.json +53 -53
- package/admin/i18n/en/translations.json +53 -53
- package/admin/i18n/es/translations.json +53 -53
- package/admin/i18n/fr/translations.json +53 -53
- package/admin/i18n/it/translations.json +53 -53
- package/admin/i18n/nl/translations.json +53 -53
- package/admin/i18n/pl/translations.json +53 -53
- package/admin/i18n/pt/translations.json +53 -53
- package/admin/i18n/ru/translations.json +53 -53
- package/admin/i18n/uk/translations.json +54 -0
- package/admin/i18n/zh-cn/translations.json +53 -53
- package/admin/jsonConfig.json +1 -1
- package/admin/sonoff.png +0 -0
- package/admin/words.js +58 -50
- package/io-package.json +49 -33
- package/lib/datapoints.js +20 -4
- package/lib/server.js +47 -39
- package/main.js +26 -13
- package/package.json +13 -13
- package/lib/tools.js +0 -99
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014-
|
|
3
|
+
Copyright (c) 2014-2024 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
|
@@ -122,6 +122,17 @@ States:
|
|
|
122
122
|
### **WORK IN PROGRESS**
|
|
123
123
|
-->
|
|
124
124
|
## Changelog
|
|
125
|
+
### 3.1.0 (2024-05-25)
|
|
126
|
+
* Important: Node.js 18.x and js-controller 5.0.19+ is needed at minimum
|
|
127
|
+
* (mattreim) upgraded states for Tasmota 13.4.0.3 20240402
|
|
128
|
+
* (mattreim) enhanced some log messages
|
|
129
|
+
* (mattreim) Added PWM Items
|
|
130
|
+
* (Apollon77) Fixed QoS handling to prevent invalid resubmissions
|
|
131
|
+
* (Apollon77) Prevent creation of storeMap property in common and cleanup
|
|
132
|
+
|
|
133
|
+
### 3.0.3 (2023-09-25)
|
|
134
|
+
* (bluefox/Bettman66) Added migration of password on JSON Config
|
|
135
|
+
|
|
125
136
|
### 2.5.7 (2023-07-07)
|
|
126
137
|
* (mcm1957) Disabled the logging of username and password during connection errors
|
|
127
138
|
* (bluefox) added json config
|
|
@@ -253,7 +264,7 @@ States:
|
|
|
253
264
|
|
|
254
265
|
The MIT License (MIT)
|
|
255
266
|
|
|
256
|
-
Copyright (c) 2017-
|
|
267
|
+
Copyright (c) 2017-2024, bluefox <dogafox@gmail.com>
|
|
257
268
|
|
|
258
269
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
259
270
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
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
|
-
|
|
54
|
-
}
|
|
2
|
+
"Adapter settings": "Sonoff Einstellungen",
|
|
3
|
+
"Authentication settings": "Authentifizierungseinstellungen",
|
|
4
|
+
"Auto creation of states": "Automatische Erstellung von Zuständen",
|
|
5
|
+
"Chained certificate:": "Verkettetes Zertifikat",
|
|
6
|
+
"Client": "Client/subscriber",
|
|
7
|
+
"Client ID:": "Client ID",
|
|
8
|
+
"Client timeout": "Client-Timeout",
|
|
9
|
+
"Connection": "Verbindung",
|
|
10
|
+
"Connection settings": "Verbindungseinstellungen",
|
|
11
|
+
"Create object tree": "Objektbaum erstellen",
|
|
12
|
+
"Divided by comma": "Mit Komma getrennt, z.B 'mqtt/0/#,javascript/#'",
|
|
13
|
+
"For stat/RESULT": "Für stat/RESULT",
|
|
14
|
+
"For tele/SENSOR": "Für tele/SENSOR",
|
|
15
|
+
"For tele/STATE": "Für tele/STATE",
|
|
16
|
+
"IP": "IP-Adresse",
|
|
17
|
+
"Ignore warnings with pingreq": "Warnungen mit pingreq ignorieren",
|
|
18
|
+
"Interval before send topics by connection:": "Interval vom Senden von allen Topics bei der Verbindung",
|
|
19
|
+
"Main settings": "Haupteinstellungen",
|
|
20
|
+
"Mask to publish": "z.B 'mqtt.0.*,javascript.*'",
|
|
21
|
+
"Mask to publish own states:": "Maske für Bekanntgeben von eigenen States",
|
|
22
|
+
"Max topic length:": "Maximale Topicnamelänge",
|
|
23
|
+
"Other settings": "Andere Einstellungen",
|
|
24
|
+
"Password confirmation:": "Passwort-Wiederholung",
|
|
25
|
+
"Password:": "Passwort",
|
|
26
|
+
"Patterns:": "Subscribe patterns",
|
|
27
|
+
"Port:": "Port",
|
|
28
|
+
"Prefix for topics:": "Prefix für alle Topics",
|
|
29
|
+
"Private certificate:": "Privates Zertifikat",
|
|
30
|
+
"Public certificate:": "Publikzertifikat",
|
|
31
|
+
"Publish all states at start:": "Bekanntgeben eigene States beim Verbinden",
|
|
32
|
+
"Publish states on subscribe:": "Bekanntgeben von States bei Subscribe",
|
|
33
|
+
"Result: ": "Ergebnis ",
|
|
34
|
+
"Secure:": "SSL",
|
|
35
|
+
"Send interval:": "Sendeintervall",
|
|
36
|
+
"Send states (ack=true) too:": "Sende auch Zustände (ack=true)",
|
|
37
|
+
"Server": "Server/broker",
|
|
38
|
+
"Set certificates or load it first in the system settings (right top).": "Setze Zertificate oder lade die erst unter System/Einstellungen (oben rechts).",
|
|
39
|
+
"Sonoff Settings": "Sonoff Einstellungen",
|
|
40
|
+
"Sonoff adapter settings": "Sonoff Adapter-Einstellungen",
|
|
41
|
+
"Store only on change:": "Publizieren/Aktualisieren nur im Falle einer Änderung",
|
|
42
|
+
"Test connection": "Teste Verbindung zum Server",
|
|
43
|
+
"Trace output for every message:": "Trace Ausgabe für jede Meldung",
|
|
44
|
+
"Type:": "Typ",
|
|
45
|
+
"URL:": "URL",
|
|
46
|
+
"Use WebSockets:": "Benutze auch WebSockets",
|
|
47
|
+
"Use chunk patch:": "Benutze Patch für Chunking",
|
|
48
|
+
"Use different topic names for set and get:": "Unterschiedliche Namen für setzten und lesen",
|
|
49
|
+
"User:": "Benutzer",
|
|
50
|
+
"WARNING! Check README.md!": "WARNUNG! Überprüfen Sie README.md!",
|
|
51
|
+
"chars": "Symbolen",
|
|
52
|
+
"connected": "verbunden",
|
|
53
|
+
"ms": "ms"
|
|
54
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
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
|
-
|
|
54
|
-
}
|
|
2
|
+
"Adapter settings": "Sonoff settings",
|
|
3
|
+
"Authentication settings": "Authentication settings",
|
|
4
|
+
"Auto creation of states": "Auto creation of states",
|
|
5
|
+
"Chained certificate:": "Chained certificate",
|
|
6
|
+
"Client": "Client/subscriber",
|
|
7
|
+
"Client ID:": "Client ID",
|
|
8
|
+
"Client timeout": "Client timeout",
|
|
9
|
+
"Connection": "Connection",
|
|
10
|
+
"Connection settings": "Connection settings",
|
|
11
|
+
"Create object tree": "Create object tree",
|
|
12
|
+
"Divided by comma": "Divided by comma, e.g. 'mqtt/0/#,javascript/#'",
|
|
13
|
+
"For stat/RESULT": "For stat/RESULT",
|
|
14
|
+
"For tele/SENSOR": "For tele/SENSOR",
|
|
15
|
+
"For tele/STATE": "For tele/STATE",
|
|
16
|
+
"IP": "IP",
|
|
17
|
+
"Ignore warnings with pingreq": "Ignore warnings with pingreq",
|
|
18
|
+
"Interval before send topics by connection:": "Interval before send topics by connection",
|
|
19
|
+
"Main settings": "Main settings",
|
|
20
|
+
"Mask to publish": "e.g. 'mqtt.0.*,javascript.*'",
|
|
21
|
+
"Mask to publish own states:": "Mask to publish own states",
|
|
22
|
+
"Max topic length:": "Max topic name length",
|
|
23
|
+
"Other settings": "Other settings",
|
|
24
|
+
"Password confirmation:": "Password confirmation",
|
|
25
|
+
"Password:": "Password",
|
|
26
|
+
"Patterns:": "Subscribe patterns",
|
|
27
|
+
"Port:": "Port",
|
|
28
|
+
"Prefix for topics:": "Prefix for all topics",
|
|
29
|
+
"Private certificate:": "Private certificate",
|
|
30
|
+
"Public certificate:": "Public certificate",
|
|
31
|
+
"Publish all states at start:": "Publish own states on connect",
|
|
32
|
+
"Publish states on subscribe:": "Publish states on subscribe",
|
|
33
|
+
"Result: ": "Result ",
|
|
34
|
+
"Secure:": "Secure",
|
|
35
|
+
"Send interval:": "Send interval",
|
|
36
|
+
"Send states (ack=true) too:": "Send states (ack=true) too",
|
|
37
|
+
"Server": "Server/broker",
|
|
38
|
+
"Set certificates or load it first in the system settings (right top).": "Set certificates or load it first in the system settings (right top).",
|
|
39
|
+
"Sonoff Settings": "Sonoff Settings",
|
|
40
|
+
"Sonoff adapter settings": "Sonoff adapter settings",
|
|
41
|
+
"Store only on change:": "Publish/update only in case of change",
|
|
42
|
+
"Test connection": "Test connection with Server",
|
|
43
|
+
"Trace output for every message:": "Trace output for every message",
|
|
44
|
+
"Type:": "Type",
|
|
45
|
+
"URL:": "URL",
|
|
46
|
+
"Use WebSockets:": "Use WebSockets too",
|
|
47
|
+
"Use chunk patch:": "Use chunk patch",
|
|
48
|
+
"Use different topic names for set and get:": "Use different topic names for set and get",
|
|
49
|
+
"User:": "User",
|
|
50
|
+
"WARNING! Check README.md!": "WARNING! Check README.md!",
|
|
51
|
+
"chars": "chars",
|
|
52
|
+
"connected": "connected",
|
|
53
|
+
"ms": "ms"
|
|
54
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
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
|
-
|
|
54
|
-
}
|
|
2
|
+
"Adapter settings": "Configuraciones Sonoff",
|
|
3
|
+
"Authentication settings": "Configuraciones de autenticación",
|
|
4
|
+
"Auto creation of states": "Creación automática de estados",
|
|
5
|
+
"Chained certificate:": "Certificado encadenado",
|
|
6
|
+
"Client": "Cliente/suscriptor",
|
|
7
|
+
"Client ID:": "Identificación del cliente",
|
|
8
|
+
"Client timeout": "tiempo de espera del cliente",
|
|
9
|
+
"Connection": "Conexión",
|
|
10
|
+
"Connection settings": "Configuración de conexión",
|
|
11
|
+
"Create object tree": "Crear árbol de objetos",
|
|
12
|
+
"Divided by comma": "Dividido por coma, p. 'mqtt/0/#, javascript/#'",
|
|
13
|
+
"For stat/RESULT": "Por stat/RESULT",
|
|
14
|
+
"For tele/SENSOR": "Por tele/SENSOR",
|
|
15
|
+
"For tele/STATE": "Por tele/STATE",
|
|
16
|
+
"IP": "IP",
|
|
17
|
+
"Ignore warnings with pingreq": "Ignore las advertencias con pingreq",
|
|
18
|
+
"Interval before send topics by connection:": "Intervalo antes de enviar temas por conexión",
|
|
19
|
+
"Main settings": "Ajustes principales",
|
|
20
|
+
"Mask to publish": "p.ej. 'mqtt.0.*, javascript.*'",
|
|
21
|
+
"Mask to publish own states:": "Máscara para publicar estados propios",
|
|
22
|
+
"Max topic length:": "Longitud máxima del nombre del tema",
|
|
23
|
+
"Other settings": "Otros ajustes",
|
|
24
|
+
"Password confirmation:": "confirmación de contraseña",
|
|
25
|
+
"Password:": "Contraseña",
|
|
26
|
+
"Patterns:": "Suscribir patrones",
|
|
27
|
+
"Port:": "Puerto",
|
|
28
|
+
"Prefix for topics:": "Prefijo para todos los temas",
|
|
29
|
+
"Private certificate:": "Certificado privado",
|
|
30
|
+
"Public certificate:": "Certificado público",
|
|
31
|
+
"Publish all states at start:": "Publicar estados propios al conectar",
|
|
32
|
+
"Publish states on subscribe:": "Publicar estados al suscribirse",
|
|
33
|
+
"Result: ": "Resultado",
|
|
34
|
+
"Secure:": "Seguro",
|
|
35
|
+
"Send interval:": "Intervalo de envío",
|
|
36
|
+
"Send states (ack=true) too:": "Enviar estados (ack = true) también",
|
|
37
|
+
"Server": "Servidor/intermediario",
|
|
38
|
+
"Set certificates or load it first in the system settings (right top).": "Establezca certificados o cárguelos primero en la configuración del sistema (arriba a la derecha).",
|
|
39
|
+
"Sonoff Settings": "Configuraciones Sonoff",
|
|
40
|
+
"Sonoff adapter settings": "Configuraciones del adaptador Sonoff",
|
|
41
|
+
"Store only on change:": "Publicar solo en el cambio",
|
|
42
|
+
"Test connection": "Prueba de conexión con el servidor",
|
|
43
|
+
"Trace output for every message:": "Salida de seguimiento para cada mensaje",
|
|
44
|
+
"Type:": "Tipo",
|
|
45
|
+
"URL:": "URL",
|
|
46
|
+
"Use WebSockets:": "Use WebSockets también",
|
|
47
|
+
"Use chunk patch:": "Use el fragmento de fragmento",
|
|
48
|
+
"Use different topic names for set and get:": "Use diferentes nombres de tema para establecer y obtener",
|
|
49
|
+
"User:": "Usuario",
|
|
50
|
+
"WARNING! Check README.md!": "¡ADVERTENCIA! ¡Compruebe README.md!",
|
|
51
|
+
"chars": "caracteres",
|
|
52
|
+
"connected": "conectado",
|
|
53
|
+
"ms": "Sra"
|
|
54
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
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
|
-
|
|
54
|
-
}
|
|
2
|
+
"Adapter settings": "Paramètres Sonoff",
|
|
3
|
+
"Authentication settings": "Paramètres d'authentification",
|
|
4
|
+
"Auto creation of states": "Création automatique d'états",
|
|
5
|
+
"Chained certificate:": "Certificat chaîné",
|
|
6
|
+
"Client": "Client/abonné",
|
|
7
|
+
"Client ID:": "identité du client",
|
|
8
|
+
"Client timeout": "Délai d'expiration du client",
|
|
9
|
+
"Connection": "Connexion",
|
|
10
|
+
"Connection settings": "Paramètres de connexion",
|
|
11
|
+
"Create object tree": "Créer une arborescence d'objets",
|
|
12
|
+
"Divided by comma": "Divisé par une virgule, par ex. 'mqtt/0/#, javascript/#'",
|
|
13
|
+
"For stat/RESULT": "Pour stat/RESULT",
|
|
14
|
+
"For tele/SENSOR": "Pour tele/SENSOR",
|
|
15
|
+
"For tele/STATE": "Pour tele/STATE",
|
|
16
|
+
"IP": "IP",
|
|
17
|
+
"Ignore warnings with pingreq": "Ignorer les avertissements avec pingreq",
|
|
18
|
+
"Interval before send topics by connection:": "Intervalle avant d'envoyer des sujets par connexion",
|
|
19
|
+
"Main settings": "Réglages principaux",
|
|
20
|
+
"Mask to publish": "par exemple. 'mqtt.0.*, javascript.*'",
|
|
21
|
+
"Mask to publish own states:": "Masque pour publier ses propres états",
|
|
22
|
+
"Max topic length:": "Longueur maximale du nom de la rubrique",
|
|
23
|
+
"Other settings": "Autres réglages",
|
|
24
|
+
"Password confirmation:": "Confirmation mot de passe",
|
|
25
|
+
"Password:": "Mot de passe",
|
|
26
|
+
"Patterns:": "Modèles de souscription",
|
|
27
|
+
"Port:": "Port",
|
|
28
|
+
"Prefix for topics:": "Préfixe pour tous les sujets",
|
|
29
|
+
"Private certificate:": "Certificat privé",
|
|
30
|
+
"Public certificate:": "Certificat public",
|
|
31
|
+
"Publish all states at start:": "Publier ses propres états sur se connecter",
|
|
32
|
+
"Publish states on subscribe:": "Publier les états sur l'abonnement",
|
|
33
|
+
"Result: ": "Résultat",
|
|
34
|
+
"Secure:": "Garantir",
|
|
35
|
+
"Send interval:": "Envoyer un intervalle",
|
|
36
|
+
"Send states (ack=true) too:": "Envoyer des états (ack = true) aussi",
|
|
37
|
+
"Server": "Serveur/courtier",
|
|
38
|
+
"Set certificates or load it first in the system settings (right top).": "Définissez des certificats ou chargez-les d'abord dans les paramètres du système (en haut à droite).",
|
|
39
|
+
"Sonoff Settings": "Paramètres Sonoff",
|
|
40
|
+
"Sonoff adapter settings": "Paramètres de l'adaptateur Sonoff",
|
|
41
|
+
"Store only on change:": "Publier uniquement en cas de modification",
|
|
42
|
+
"Test connection": "Tester la connexion avec le serveur",
|
|
43
|
+
"Trace output for every message:": "Trace de sortie pour chaque message",
|
|
44
|
+
"Type:": "Type",
|
|
45
|
+
"URL:": "URL",
|
|
46
|
+
"Use WebSockets:": "Utilisez aussi WebSockets",
|
|
47
|
+
"Use chunk patch:": "Utiliser un patch de morceau",
|
|
48
|
+
"Use different topic names for set and get:": "Utilisez différents noms de sujet pour définir et obtenir",
|
|
49
|
+
"User:": "Utilisateur",
|
|
50
|
+
"WARNING! Check README.md!": "AVERTISSEMENT! Vérifiez README.md!",
|
|
51
|
+
"chars": "chars",
|
|
52
|
+
"connected": "connecté",
|
|
53
|
+
"ms": "Mme"
|
|
54
|
+
}
|