iobroker.sonoff 3.2.1 → 4.0.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 +95 -149
- package/admin/i18n/de.json +89 -0
- package/admin/i18n/en.json +89 -0
- package/admin/i18n/es.json +89 -0
- package/admin/i18n/fr.json +89 -0
- package/admin/i18n/it.json +89 -0
- package/admin/i18n/nl.json +89 -0
- package/admin/i18n/pl.json +89 -0
- package/admin/i18n/pt.json +89 -0
- package/admin/i18n/ru.json +89 -0
- package/admin/i18n/uk.json +89 -0
- package/admin/i18n/zh-cn.json +89 -0
- package/admin/jsonConfig.json +394 -125
- package/build/lib/bridge.js +512 -0
- package/build/lib/bridge.js.map +1 -0
- package/build/lib/checkStates.js +68 -0
- package/build/lib/checkStates.js.map +1 -0
- package/build/lib/datapoints.js +430 -0
- package/build/lib/datapoints.js.map +1 -0
- package/build/lib/mqttBase.js +1280 -0
- package/build/lib/mqttBase.js.map +1 -0
- package/build/lib/server.js +485 -0
- package/build/lib/server.js.map +1 -0
- package/build/main.js +103 -0
- package/build/main.js.map +1 -0
- package/io-package.json +64 -43
- package/package.json +23 -19
- package/admin/i18n/de/translations.json +0 -54
- package/admin/i18n/en/translations.json +0 -54
- package/admin/i18n/es/translations.json +0 -54
- package/admin/i18n/fr/translations.json +0 -54
- package/admin/i18n/it/translations.json +0 -54
- package/admin/i18n/nl/translations.json +0 -54
- package/admin/i18n/pl/translations.json +0 -54
- package/admin/i18n/pt/translations.json +0 -54
- package/admin/i18n/ru/translations.json +0 -54
- package/admin/i18n/uk/translations.json +0 -54
- package/admin/i18n/zh-cn/translations.json +0 -54
- package/admin/index.html +0 -177
- package/admin/index_m.html +0 -218
- package/admin/words.js +0 -63
- package/lib/datapoints.js +0 -216
- package/lib/server.js +0 -1810
- package/main.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-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,14 +15,14 @@
|
|
|
15
15
|
If you only have Tasmotas speaking MQTT protocol go for `ioBroker.sonoff`.
|
|
16
16
|
For other scenarios, consider the different options:
|
|
17
17
|
|
|
18
|
-
| Feature | ioBroker.sonoff
|
|
19
|
-
|
|
20
|
-
| Has a built-in MQTT broker | yes
|
|
21
|
-
| Relays messages to other MQTT subscribers | NO!!!
|
|
22
|
-
| External MQTT broker |
|
|
23
|
-
| Tasmota MQTT messages to ioBroker Objects | smart processing
|
|
24
|
-
| non-Tasmota MQTT messages to ioBroker Objects | no processing
|
|
25
|
-
| publish ioBroker values as MQTT messages | none
|
|
18
|
+
| Feature | ioBroker.sonoff | [ioBroker.mqtt](https://github.com/ioBroker/ioBroker.mqtt/) (in broker mode) | [ioBroker.mqtt](https://github.com/ioBroker/ioBroker.mqtt/) (in client mode) | [ioBroker.mqtt-client](https://github.com/Pmant/ioBroker.mqtt-client/) |
|
|
19
|
+
|-----------------------------------------------|------------------------|--------------------------------------------------------------------------------|------------------------------------------------------------------------------|------------------------------------------------------------------------|
|
|
20
|
+
| Has a built-in MQTT broker | yes | yes | no | no |
|
|
21
|
+
| Relays messages to other MQTT subscribers | NO!!! | yes | not applicable | not applicable |
|
|
22
|
+
| External MQTT broker | optional (bridge mode) | unsupported | required | required |
|
|
23
|
+
| Tasmota MQTT messages to ioBroker Objects | smart processing | 1:1 processing of all messages | 1:1 processing of subscribed messages | 1:1 processing of subscribed messages |
|
|
24
|
+
| non-Tasmota MQTT messages to ioBroker Objects | no processing | 1:1 processing of all messages | 1:1 processing of subscribed messages | 1:1 processing of subscribed messages |
|
|
25
|
+
| publish ioBroker values as MQTT messages | none | configured subtrees | configured subtrees | individually configured values |
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
28
28
|
|
|
@@ -92,6 +92,51 @@ The following topics are expected:
|
|
|
92
92
|
|
|
93
93
|
**Note**: The list could be easily extended. Please send `Pull Requests` or *debug data* for unknown states to the developer (via issue).
|
|
94
94
|
|
|
95
|
+
## Bridge mode
|
|
96
|
+
|
|
97
|
+
By default the adapter runs a built-in TCP broker that Tasmota devices connect to directly. If you already run a dedicated MQTT broker (e.g. Mosquitto) you can use bridge mode instead — the adapter connects to your existing broker as a client.
|
|
98
|
+
|
|
99
|
+
### Configuration
|
|
100
|
+
|
|
101
|
+
In the adapter settings, activate **Use external MQTT broker** and set **External broker URL** to your broker address, e.g. `mqtt://192.168.1.10:1883` or just `192.168.1.10:1883`. Optionally set username and password. If the option is deactivated (or no URL is entered), the built-in broker is started as before.
|
|
102
|
+
|
|
103
|
+
**Topics to subscribe** defines which topics the adapter listens to, by default `tele/#, stat/#, +/tele/+, +/stat/+`. Extend this list if your devices use other topics, e.g. OpenBeken devices, which publish to `<devicename>/...`, or a global prefix in the full topic (`myPrefix/tele/#`).
|
|
104
|
+
|
|
105
|
+
Optionally you can set the **Client ID** used at the broker (default `iobroker_sonoff_<instance>`), the **Keepalive** interval and **Clean session**. Deactivate the clean session if the broker should store the messages of the devices while the adapter is not running.
|
|
106
|
+
|
|
107
|
+
### Full topic structures
|
|
108
|
+
|
|
109
|
+
The usual Tasmota `FullTopic` settings are supported and detected automatically per device, commands are sent back in the same structure:
|
|
110
|
+
|
|
111
|
+
| FullTopic | Example | Command |
|
|
112
|
+
|---|---|---|
|
|
113
|
+
| `%prefix%/%topic%/` (default) | `tele/lamp/STATE` | `cmnd/lamp/POWER` |
|
|
114
|
+
| `%topic%/%prefix%/` | `lamp/tele/STATE` | `lamp/cmnd/POWER` |
|
|
115
|
+
| `gateway/%prefix%/%topic%/` | `gateway/tele/lamp/STATE` | `gateway/cmnd/lamp/POWER` |
|
|
116
|
+
| `gateway/%topic%/%prefix%/` | `gateway/lamp/tele/STATE` | `gateway/lamp/cmnd/POWER` |
|
|
117
|
+
|
|
118
|
+
Nested topics like `tele/house/floor1/lamp/STATE` work as well. A fix prefix in front of the full topic (last two lines, e.g. for several gateways on one broker) is only recognized if the subscriptions cover it, so add e.g. `gateway/tele/#, gateway/stat/#` to **Topics to subscribe**. The same is true for the `%topic%/%prefix%/` structure, which is covered by `+/tele/+, +/stat/+` by default.
|
|
119
|
+
|
|
120
|
+
### Encrypted connections
|
|
121
|
+
|
|
122
|
+
Use `mqtts://broker:8883` (or `wss://`) as URL. For self-signed certificates deactivate **Check the certificate of the broker**, or enter the path to your **CA certificate**. If the broker requires client certificates, the paths to the **client certificate** and the **client key** can be entered too. The files are read from the file system of the ioBroker host.
|
|
123
|
+
|
|
124
|
+
### Device naming
|
|
125
|
+
|
|
126
|
+
In bridge mode the adapter cannot see the MQTT CONNECT packets of the devices (MQTT protocol limitation), so the name of a device is taken from its messages:
|
|
127
|
+
|
|
128
|
+
1. `MqttClient` from `stat/<topic>/STATUS6` - this is the MQTT client ID, so the devices get the same names as with the built-in broker. The adapter requests this information (`cmnd/<topic>/Status 6`) as soon as an unknown device appears.
|
|
129
|
+
2. `Hostname` from `tele/<topic>/STATE`, `tele/<topic>/INFO2` or `stat/<topic>/STATUS5`, if the device does not answer the status request.
|
|
130
|
+
3. The topic itself, if nothing arrives within 30 seconds (e.g. devices with custom firmware).
|
|
131
|
+
|
|
132
|
+
A device is only renamed if the new name comes from the same or a better source, so the objects do not change back and forth. If a device is renamed in Tasmota, the adapter renames the corresponding ioBroker objects, but references in other adapters (history, VIS, ...) must be adjusted manually.
|
|
133
|
+
|
|
134
|
+
Because the external broker keeps running while the adapter restarts, the devices do not repeat their boot messages. To fill `INFO.Hostname`, `INFO.IPAddress` and `INFO.Version`, the adapter requests them (`cmnd/<topic>/Status 5` and `cmnd/<topic>/Status 2`) when a device is seen the first time. `Module` (from INFO1) cannot be requested and stays empty.
|
|
135
|
+
|
|
136
|
+
### Availability
|
|
137
|
+
|
|
138
|
+
With the built-in broker the `alive` state follows the TCP connection of the device. In bridge mode the last will topic (`tele/<topic>/LWT`) is used instead: `Online` sets `alive` to true, `Offline` to false.
|
|
139
|
+
|
|
95
140
|
## Auto-creation of objects
|
|
96
141
|
In the web config, you can determine which MQTT telegrams create the new objects not in default data points:
|
|
97
142
|
|
|
@@ -122,6 +167,46 @@ States:
|
|
|
122
167
|
### **WORK IN PROGRESS**
|
|
123
168
|
-->
|
|
124
169
|
## Changelog
|
|
170
|
+
### 4.0.0 (2026-08-13)
|
|
171
|
+
* (ioBroker-Bot) Adapter requires js-controller >= 6.0.11 now.
|
|
172
|
+
* (stony2k) Add bridge mode to connect to an external MQTT broker instead of running a built-in broker
|
|
173
|
+
* (stony2k) Fix alive state object not being created (warning "has no existing object")
|
|
174
|
+
* (bluefox/GreatSUN) Fixed the names of data points inside a group: since 3.3.0 e.g. `SML_Total_in` was created as `SML_in` (#489)
|
|
175
|
+
* (bluefox/baetzst) The MAC address and the other network and firmware information of a device are stored as data points (`INFO.Mac`, `INFO.Gateway`, `INFO.Hardware`, ...) (#513)
|
|
176
|
+
* (bluefox) Server mode: the adapter requests `Status 5` and `Status 2` from a device with its first message, so the INFO states are filled even if the device did not reboot
|
|
177
|
+
* (bluefox) The states which were created with a shortened name by 3.3.x are listed in the log on start, so they can be deleted (#489)
|
|
178
|
+
* (bluefox) Bridge mode: the topics to subscribe are configurable now and nested full topics as well as OpenBeken topics are supported
|
|
179
|
+
* (bluefox) Bridge mode: devices are named after their MQTT client ID like with the built-in broker and are no longer renamed by less reliable sources
|
|
180
|
+
* (bluefox) Bridge mode: the `alive` state is set from the last will topic (LWT), so devices are recognized as offline
|
|
181
|
+
* (bluefox) Commands for auto-created states are sent to `cmnd/...` again, also for nested full topics
|
|
182
|
+
* (bluefox) `info.connection` contains the list of the connected clients again (server mode), in bridge mode the URL of the broker
|
|
183
|
+
* (bluefox/patricknitsch) Bridge mode: support for the full topic structure `%topic%/%prefix%/` (device first), detected automatically per device
|
|
184
|
+
* (bluefox/patricknitsch) Bridge mode: encrypted connections with CA/client certificates and optional certificate check, configurable client ID, keepalive and clean session
|
|
185
|
+
* (bluefox/patricknitsch) Bridge mode: a fix prefix in front of the full topic (e.g. `gateway/tele/device/STATE`) is recognized and used for the commands
|
|
186
|
+
* (@Apollon77/@copilot) Add support for OpenBeken LED datapoints (led_enableAll, led_dimmer, led_temperature, led_basecolor_rgb, led_finalcolor_rgbcw, led_basecolor_rgbcw, led_hue, led_saturation) - enables control of OpenBeken LED devices with automatic topic mapping for /get and /set suffixes
|
|
187
|
+
* (@Apollon77/@copilot) Add PulseTime1-PulseTime16 datapoint support - users can now read and set PulseTime values directly from ioBroker to control relay auto-off timers
|
|
188
|
+
* (@GermanBluefox) Breaking: minimal supported Node.js version is now 22
|
|
189
|
+
|
|
190
|
+
### 3.3.0 (2025-09-20)
|
|
191
|
+
* (@Apollon77/@copilot) **IMPORTANT**: Commands now correctly use cmnd/ prefix instead of tele/ prefix
|
|
192
|
+
* (@Apollon77/@copilot) Added configuration for advanced MQTT settings
|
|
193
|
+
* (@Apollon77/@copilot) Fix shutter command mapping to use correct Tasmota format - Transforms Shutter1_Position to ShutterPosition1 for proper device control
|
|
194
|
+
* (@Apollon77/@copilot) Fix IRHVAC Power, Light and Mode fields showing NULL instead of actual string values
|
|
195
|
+
* (@Apollon77/@copilot) Add Zigbee device control support for Tasmota coordinators - users can now control Zigbee devices (Power/Dimmer) through ioBroker states via automatic ZbSend command generation
|
|
196
|
+
* (@Apollon77/@copilot) Add support for Tasmota tele/MARGINS messages enabling integration of PowerLow, PowerHigh, and PowerDelta limits
|
|
197
|
+
* (@Apollon77/@copilot) Fix POW R2 energy datapoints not being created by enabling TELE_STATE by default
|
|
198
|
+
* (@Apollon77/@copilot) Fix pressure and temperature unit display to respect PressureUnit and TempUnit from Tasmota MQTT messages
|
|
199
|
+
* (@Apollon77/@copilot) Add support for decoupled button actions in Tasmota devices - creates Button1-Button8 datapoints for button events
|
|
200
|
+
* (@Apollon77/@copilot) Fix RESULT message processing bug where tele/*/RESULT messages were incorrectly processed as WAKEUP instead of RESULT
|
|
201
|
+
* (@Apollon77/@copilot) Fix deprecated value.power.consumption role for ENERGY_Power datapoint to improve device detection
|
|
202
|
+
* (@Apollon77/@copilot) Add support for SHUTTER5-SHUTTER16 datapoints for ESP32 shutter32 devices
|
|
203
|
+
* (@Apollon77/@copilot) Update admin UI responsive design to use ioBroker standard values for mobile compatibility
|
|
204
|
+
* (@Apollon77/@copilot) Add support for Sonoff B1 (RGB LED) and Sonoff SC (Environmental Sensor) devices with proper value ranges
|
|
205
|
+
* (@Apollon77/@copilot) Add meaningful state labels for Scheme datapoint (color animation schemes)
|
|
206
|
+
* (@Apollon77/@copilot) Add configuration option to suppress "not connected" warnings for temporarily offline devices
|
|
207
|
+
* (@Apollon77/@copilot) Add Switch5-Switch28 datapoint definitions for consistent boolean mapping
|
|
208
|
+
* (@Apollon77/@copilot) Fix write flag for all Switch datapoints to enable proper control from ioBroker
|
|
209
|
+
|
|
125
210
|
### 3.2.1 (2024-10-07)
|
|
126
211
|
|
|
127
212
|
* (bluefox) Sanitize the IDs of the clients
|
|
@@ -132,152 +217,13 @@ States:
|
|
|
132
217
|
### 3.1.2 (2024-08-17)
|
|
133
218
|
* (mattreim) updated packages
|
|
134
219
|
|
|
135
|
-
|
|
136
|
-
* (mattreim) updated packages
|
|
137
|
-
|
|
138
|
-
### 3.1.0 (2024-05-25)
|
|
139
|
-
* Important: Node.js 18.x and js-controller 5.0.19+ are necessary at minimum
|
|
140
|
-
* (mattreim) upgraded states for Tasmota 13.4.0.3 20240402
|
|
141
|
-
* (mattreim) enhanced some log messages
|
|
142
|
-
* (mattreim) Added PWM Items
|
|
143
|
-
* (Apollon77) Fixed QoS handling to prevent invalid resubmissions
|
|
144
|
-
* (Apollon77) Prevent creation of storeMap property in common and cleanup
|
|
145
|
-
|
|
146
|
-
### 3.0.3 (2023-09-25)
|
|
147
|
-
* (bluefox/Bettman66) Added migration of password on JSON Config
|
|
148
|
-
|
|
149
|
-
### 2.5.7 (2023-07-07)
|
|
150
|
-
* (mcm1957) Disabled the logging of username and password during connection errors
|
|
151
|
-
* (bluefox) added json config
|
|
152
|
-
|
|
153
|
-
### 2.5.3 (2023-03-30)
|
|
154
|
-
* (GreatSUN) Implemented potential `.STATE.POWER` update
|
|
155
|
-
|
|
156
|
-
### 2.5.1 (2022-04-23)
|
|
157
|
-
* (Apollon77) Fixed the crash case reported by Sentry
|
|
158
|
-
|
|
159
|
-
### 2.5.0 (2022-03-21)
|
|
160
|
-
* (GreatSUN) Implement writing of NSPanel Widget changes
|
|
161
|
-
* (Apollon77) Fixed the crash case reported by Sentry
|
|
162
|
-
|
|
163
|
-
### 2.4.7 (2021-11-14)
|
|
164
|
-
* (Apollon77) Fix crash case (Sentry IOBROKER-SONOFF-1S)
|
|
165
|
-
|
|
166
|
-
### 2.4.6 (2021-11-13)
|
|
167
|
-
* (Apollon77) Fix some crash cases reported by Sentry (IOBROKER-SONOFF-B, IOBROKER-SONOFF-R, IOBROKER-SONOFF-4, IOBROKER-SONOFF-1, IOBROKER-SONOFF-13, IOBROKER-SONOFF-1J, IOBROKER-SONOFF-16, IOBROKER-SONOFF-3, IOBROKER-SONOFF-H)
|
|
168
|
-
* (Apollon77) Adjust Uptime to mixed because it seems that it can be number or string
|
|
169
|
-
|
|
170
|
-
### 2.4.5 (2021-07-21)
|
|
171
|
-
* (Apollon77) Fix some crash cases reported by Sentry
|
|
172
|
-
|
|
173
|
-
### 2.4.4 (2021-07-19)
|
|
174
|
-
* (bluefox) Added UvaIntensity and UvbIntensity
|
|
175
|
-
|
|
176
|
-
### 2.4.3 (2021-07-18)
|
|
177
|
-
* (bluefox) Better type detection for non-described states
|
|
178
|
-
|
|
179
|
-
### 2.4.2 (2021-07-17)
|
|
180
|
-
* (bluefox) Optimize for js-controller 3.3
|
|
181
|
-
|
|
182
|
-
### 2.4.1 (2021-07-17)
|
|
183
|
-
* (Apollon77/bluefox) Optimize for js-controller 3.3
|
|
184
|
-
* (Apollon77) Add Sentry for error reporting with js-controller 3.x+
|
|
185
|
-
|
|
186
|
-
### 2.4.0 (2021-02-04)
|
|
187
|
-
* (anwa) add several data points
|
|
188
|
-
* (anwa) Fix translation for 'ignorePings'
|
|
189
|
-
* (anwa) Fixed the wrong unit for humidity
|
|
190
|
-
* (anwa) Config option to create a complete object tree instead of a flat structure
|
|
191
|
-
* (anwa) Change Action type to string
|
|
192
|
-
* (Apollon77) js-controller 2.0 is required at least
|
|
193
|
-
|
|
194
|
-
### 2.3.3 (2019-11-27)
|
|
195
|
-
* (bluefox) Error with the empty packet was caught
|
|
196
|
-
|
|
197
|
-
### 2.3.2 (2019-10-23)
|
|
198
|
-
* (bluefox) Fixed the password input in the configuration
|
|
199
|
-
* (bluefox) Allowed setting the IP interface for server
|
|
200
|
-
* (bluefox) Fixed tests for js-controller 2.0
|
|
201
|
-
* (bluefox) Fixed the monitoring of the client connection
|
|
202
|
-
* (bluefox) Changed "indicator.connected" to "indicator.reachable" for clients
|
|
203
|
-
* (bluefox) Supported `{POWERn: "true"}`
|
|
204
|
-
* (bluefox) Correct processing of `{temp: nan}`
|
|
205
|
-
|
|
206
|
-
### 2.2.3 (2019-01-10)
|
|
207
|
-
* (simatec) Support for compact mode
|
|
208
|
-
|
|
209
|
-
### 2.2.2 (2018-06-22)
|
|
210
|
-
* (bluefox) Configuration was fixed
|
|
211
|
-
|
|
212
|
-
### 2.2.1 (2018-06-20)
|
|
213
|
-
* (bluefox) '-' in names was allowed again
|
|
214
|
-
|
|
215
|
-
### 2.2.0 (2018-05-22)
|
|
216
|
-
* (gemu2015) auto generate objects, support for arrays (channel), led-controllers improved
|
|
217
|
-
|
|
218
|
-
### 2.1.3 (2018-05-08)
|
|
219
|
-
* (bluefox) Added HC-SR04 Ultrasonic Sensor
|
|
220
|
-
|
|
221
|
-
### 2.1.2 (2018-04-23)
|
|
222
|
-
* (bluefox) Added support of UvLight, Longitude and Latitude
|
|
223
|
-
|
|
224
|
-
### 2.1.1 (2018-04-13)
|
|
225
|
-
* (bluefox) Support of the particle concentration sensor
|
|
226
|
-
|
|
227
|
-
### 2.1.0 (2018-03-30)
|
|
228
|
-
* (gemu2015) Support of the devices control (many thanks :)
|
|
229
|
-
* (gemu2015) Support of many new values
|
|
230
|
-
* (modmax) Update alive status of the clients
|
|
231
|
-
* (modmax) Added POWER5-8 and Switch3-4
|
|
232
|
-
|
|
233
|
-
### 2.0.2 (2018-03-19)
|
|
234
|
-
* (modmax) Fixing reconnection of clients
|
|
235
|
-
* (bluefox) Add SeaPressure
|
|
236
|
-
|
|
237
|
-
### 2.0.1 (2018-03-17)
|
|
238
|
-
* (bluefox) Replace stream handler
|
|
239
|
-
* (bluefox) Add timeout for clients
|
|
240
|
-
* (bluefox) Add Light/Noise/AirQuality
|
|
241
|
-
* (bluefox) Do not send pingresp for invalid clients
|
|
242
|
-
|
|
243
|
-
### 1.0.3 (2018-03-03)
|
|
244
|
-
* (bluefox) Add Analog0/1/2/3 sensor
|
|
245
|
-
|
|
246
|
-
### 1.0.2 (2018-02-17)
|
|
247
|
-
* (Apollon77) Add Illuminance sensor
|
|
248
|
-
|
|
249
|
-
### 1.0.1 (2018-02-05)
|
|
250
|
-
* (bluefox) Ready for admin3
|
|
251
|
-
* (bluefox) Added CO2 sensor
|
|
252
|
-
|
|
253
|
-
### 1.0.0 (2017-11-27)
|
|
254
|
-
* (AlZiBa) typo @ alive
|
|
255
|
-
* (AlZiBa) add Today's power consumption for Sonoff POW
|
|
256
|
-
* (AlZiBa) unit of power consumption is kWh
|
|
257
|
-
|
|
258
|
-
### 0.3.3 (2017-11-03)
|
|
259
|
-
* (bluefox) Add counters
|
|
260
|
-
|
|
261
|
-
### 0.3.2 (2017-10-22)
|
|
262
|
-
* (Tan-DE) Small change for Switch1. Switch2 and additional IPaddress added.
|
|
263
|
-
|
|
264
|
-
### 0.3.1 (2017-10-12)
|
|
265
|
-
* (bluefox) Fix tests and LWT
|
|
266
|
-
|
|
267
|
-
### 0.3.0 (2017-10-06)
|
|
268
|
-
* (bluefox) Add INFO and ESP
|
|
269
|
-
|
|
270
|
-
### 0.2.0 (2017-10-05)
|
|
271
|
-
* (bluefox) Add ENERGY and DS18x20
|
|
272
|
-
|
|
273
|
-
### 0.1.0 (2017-10-01)
|
|
274
|
-
* (bluefox) initial commit
|
|
220
|
+
[Older changelogs can be found there](CHANGELOG_OLD.md)
|
|
275
221
|
|
|
276
222
|
## License
|
|
277
223
|
|
|
278
224
|
The MIT License (MIT)
|
|
279
225
|
|
|
280
|
-
Copyright (c) 2017-
|
|
226
|
+
Copyright (c) 2017-2026, bluefox <dogafox@gmail.com>
|
|
281
227
|
|
|
282
228
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
283
229
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Adapter settings": "Sonoff Einstellungen",
|
|
3
|
+
"Advanced MQTT settings": "Erweiterte MQTT -Einstellungen",
|
|
4
|
+
"Authentication settings": "Authentifizierungseinstellungen",
|
|
5
|
+
"Auto creation of states": "Automatische Erstellung von Zuständen",
|
|
6
|
+
"Chained certificate:": "Verkettetes Zertifikat",
|
|
7
|
+
"Client": "Client/Subscriber",
|
|
8
|
+
"Client ID:": "Client ID",
|
|
9
|
+
"Client timeout": "Client-Timeout",
|
|
10
|
+
"Connection": "Verbindung",
|
|
11
|
+
"Connection settings": "Verbindungseinstellungen",
|
|
12
|
+
"Create object tree": "Objektbaum erstellen",
|
|
13
|
+
"Default QoS": "Standard QoS",
|
|
14
|
+
"Default Quality of Service level (0, 1, or 2)": "Standardqualität der Serviceebene (0, 1 oder 2)",
|
|
15
|
+
"Divided by comma": "Mit Kommata getrennt, z.B 'mqtt/0/#,javascript/#'",
|
|
16
|
+
"For stat/RESULT": "Für stat/RESULT",
|
|
17
|
+
"For tele/MARGINS": "Für tele/MARGINS",
|
|
18
|
+
"For tele/SENSOR": "Für tele/SENSOR",
|
|
19
|
+
"For tele/STATE": "Für tele/STATE",
|
|
20
|
+
"IP": "IP",
|
|
21
|
+
"Ignore 'not connected' warnings": "'Nicht verbunden' Warnungen ignorieren",
|
|
22
|
+
"Ignore warnings with pingreq": "Warnungen mit pingreq ignorieren",
|
|
23
|
+
"Interval before send topics by connection:": "Interval vom Senden von allen Topics bei der Verbindung",
|
|
24
|
+
"Interval in milliseconds for message retransmission": "Intervall in Millisekunden für die Neuübertragung zur Nachricht",
|
|
25
|
+
"Main settings": "Allgemeine Einstellungen",
|
|
26
|
+
"Mask to publish": "z.B 'mqtt.0.*,javascript.*'",
|
|
27
|
+
"Mask to publish own states:": "Maske zur Bekanntgabe eigener States",
|
|
28
|
+
"Max topic length:": "Maximale Länge eines Topicnamens",
|
|
29
|
+
"Maximum number of retransmission attempts": "Maximale Anzahl von Wiedervermietungsversuchen",
|
|
30
|
+
"Other settings": "Andere Einstellungen",
|
|
31
|
+
"Password confirmation:": "Passwort-Bestätigung",
|
|
32
|
+
"Password:": "Passwort",
|
|
33
|
+
"Patterns:": "Subscribe Pattern",
|
|
34
|
+
"Port:": "Port",
|
|
35
|
+
"Prefix for topics:": "Prefix für alle Topics",
|
|
36
|
+
"Private certificate:": "Privates Zertifikat",
|
|
37
|
+
"Public certificate:": "Öffentliches Zertifikat",
|
|
38
|
+
"Publish all states at start:": "Eigene States beim Verbinden publizieren",
|
|
39
|
+
"Publish states on subscribe:": "States bei subscribe publizieren",
|
|
40
|
+
"Result: ": "Ergebnis",
|
|
41
|
+
"Retransmit count": "Zählen neu",
|
|
42
|
+
"Retransmit interval": "Intervall übernehmen",
|
|
43
|
+
"Secure:": "Secure",
|
|
44
|
+
"Send interval:": "Sendeintervall",
|
|
45
|
+
"Send states (ack=true) too:": "Sende auch Zustände (ack=true)",
|
|
46
|
+
"Server": "Server/Broker",
|
|
47
|
+
"Set certificates or load it first in the system settings (right top).": "Setze Zertifikate oder lade sie zuerst unter System/Einstellungen (oben rechts).",
|
|
48
|
+
"Sonoff Settings": "Sonoff Einstellungen",
|
|
49
|
+
"Sonoff adapter settings": "Sonoff-Adapter-Einstellungen",
|
|
50
|
+
"Store clients time": "Lagern Sie Kunden Zeit",
|
|
51
|
+
"Store only on change:": "Publizieren/Aktualisieren nur im Falle einer Änderung",
|
|
52
|
+
"Suppress warnings when commands are sent to offline devices": "Warnungen unterdrücken, wenn Befehle an Offline -Geräte gesendet werden",
|
|
53
|
+
"Test connection": "Die Verbindung zum Server testen",
|
|
54
|
+
"Time in minutes to store client information": "Zeit in Minuten, um Kundeninformationen zu speichern",
|
|
55
|
+
"Trace output for every message:": "Ausgabe jeder Nachricht loggen (debug)",
|
|
56
|
+
"Type:": "Typ",
|
|
57
|
+
"URL:": "URL",
|
|
58
|
+
"Use WebSockets:": "Benutze auch WebSockets",
|
|
59
|
+
"Use chunk patch:": "Benutze Patch für Chunking",
|
|
60
|
+
"Use different topic names for set and get:": "Unterschiedliche Topic-Namen für setzen und lesen nutzen",
|
|
61
|
+
"User:": "Benutzer",
|
|
62
|
+
"WARNING! Check README.md!": "WARNUNG! Überprüfen Sie README.md!",
|
|
63
|
+
"External MQTT broker": "Externer MQTT-Broker",
|
|
64
|
+
"Use external MQTT broker": "Externen MQTT-Broker verwenden",
|
|
65
|
+
"Disables the built-in MQTT server and connects as client to an external broker": "Deaktiviert den integrierten MQTT-Server und verbindet sich als Client mit einem externen Broker",
|
|
66
|
+
"External broker URL": "URL des externen Brokers",
|
|
67
|
+
"e.g. mqtt://192.168.1.100:1883 or mqtts://broker:8883": "z.B. mqtt://192.168.1.100:1883 oder mqtts://broker:8883",
|
|
68
|
+
"External broker user": "Externer Broker-Benutzer",
|
|
69
|
+
"External broker password": "Externer Broker-Passwort",
|
|
70
|
+
"Topics to subscribe": "Zu abonnierende Topics",
|
|
71
|
+
"Comma separated list. Standard full topic: tele/#, stat/# - device first: +/tele/+, +/stat/+": "Kommagetrennte Liste. Standard-FullTopic: tele/#, stat/# - Gerät zuerst: +/tele/+, +/stat/+",
|
|
72
|
+
"Client ID": "Client-ID",
|
|
73
|
+
"Empty: iobroker_sonoff_<instance>": "Leer: iobroker_sonoff_<Instanz>",
|
|
74
|
+
"Keepalive": "Keepalive",
|
|
75
|
+
"sec": "Sek.",
|
|
76
|
+
"Clean session": "Clean Session",
|
|
77
|
+
"Deactivate it, so the broker stores the messages while the adapter is not running": "Deaktivieren, damit der Broker die Nachrichten speichert, während der Adapter nicht läuft",
|
|
78
|
+
"Check the certificate of the broker": "Zertifikat des Brokers prüfen",
|
|
79
|
+
"Deactivate it for self-signed certificates": "Für selbstsignierte Zertifikate deaktivieren",
|
|
80
|
+
"Path to the CA certificate": "Pfad zum CA-Zertifikat",
|
|
81
|
+
"Optional, e.g. /opt/iobroker/certs/ca.crt": "Optional, z.B. /opt/iobroker/certs/ca.crt",
|
|
82
|
+
"Path to the client certificate": "Pfad zum Client-Zertifikat",
|
|
83
|
+
"Optional, only for client certificate authentication": "Optional, nur für die Authentifizierung mit Client-Zertifikat",
|
|
84
|
+
"Path to the client key": "Pfad zum Client-Schlüssel",
|
|
85
|
+
"Without URL the built-in MQTT server will be started": "Ohne URL wird der integrierte MQTT-Server gestartet",
|
|
86
|
+
"chars": "Zeichen",
|
|
87
|
+
"connected": "verbunden",
|
|
88
|
+
"ms": "ms"
|
|
89
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Adapter settings": "Sonoff settings",
|
|
3
|
+
"Advanced MQTT settings": "Advanced MQTT settings",
|
|
4
|
+
"Authentication settings": "Authentication settings",
|
|
5
|
+
"Auto creation of states": "Auto creation of states",
|
|
6
|
+
"Chained certificate:": "Chained certificate",
|
|
7
|
+
"Client": "Client/subscriber",
|
|
8
|
+
"Client ID:": "Client ID",
|
|
9
|
+
"Client timeout": "Client timeout",
|
|
10
|
+
"Connection": "Connection",
|
|
11
|
+
"Connection settings": "Connection settings",
|
|
12
|
+
"Create object tree": "Create object tree",
|
|
13
|
+
"Default QoS": "Default QoS",
|
|
14
|
+
"Default Quality of Service level (0, 1, or 2)": "Default Quality of Service level (0, 1, or 2)",
|
|
15
|
+
"Divided by comma": "Divided by comma, e.g. 'mqtt/0/#,javascript/#'",
|
|
16
|
+
"For stat/RESULT": "For stat/RESULT",
|
|
17
|
+
"For tele/MARGINS": "For tele/MARGINS",
|
|
18
|
+
"For tele/SENSOR": "For tele/SENSOR",
|
|
19
|
+
"For tele/STATE": "For tele/STATE",
|
|
20
|
+
"IP": "IP",
|
|
21
|
+
"Ignore 'not connected' warnings": "Ignore 'not connected' warnings",
|
|
22
|
+
"Ignore warnings with pingreq": "Ignore warnings with pingreq",
|
|
23
|
+
"Interval before send topics by connection:": "Interval before send topics by connection",
|
|
24
|
+
"Interval in milliseconds for message retransmission": "Interval in milliseconds for message retransmission",
|
|
25
|
+
"Main settings": "Main settings",
|
|
26
|
+
"Mask to publish": "e.g. 'mqtt.0.*,javascript.*'",
|
|
27
|
+
"Mask to publish own states:": "Mask to publish own states",
|
|
28
|
+
"Max topic length:": "Max topic name length",
|
|
29
|
+
"Maximum number of retransmission attempts": "Maximum number of retransmission attempts",
|
|
30
|
+
"Other settings": "Other settings",
|
|
31
|
+
"Password confirmation:": "Password confirmation",
|
|
32
|
+
"Password:": "Password",
|
|
33
|
+
"Patterns:": "Subscribe patterns",
|
|
34
|
+
"Port:": "Port",
|
|
35
|
+
"Prefix for topics:": "Prefix for all topics",
|
|
36
|
+
"Private certificate:": "Private certificate",
|
|
37
|
+
"Public certificate:": "Public certificate",
|
|
38
|
+
"Publish all states at start:": "Publish own states on connect",
|
|
39
|
+
"Publish states on subscribe:": "Publish states on subscribe",
|
|
40
|
+
"Result: ": "Result",
|
|
41
|
+
"Retransmit count": "Retransmit count",
|
|
42
|
+
"Retransmit interval": "Retransmit interval",
|
|
43
|
+
"Secure:": "Secure",
|
|
44
|
+
"Send interval:": "Send interval",
|
|
45
|
+
"Send states (ack=true) too:": "Send states (ack=true) too",
|
|
46
|
+
"Server": "Server/broker",
|
|
47
|
+
"Set certificates or load it first in the system settings (right top).": "Set certificates or load it first in the system settings (right top).",
|
|
48
|
+
"Sonoff Settings": "Sonoff Settings",
|
|
49
|
+
"Sonoff adapter settings": "Sonoff adapter settings",
|
|
50
|
+
"Store clients time": "Store clients time",
|
|
51
|
+
"Store only on change:": "Publish/update only in case of change",
|
|
52
|
+
"Suppress warnings when commands are sent to offline devices": "Suppress warnings when commands are sent to offline devices",
|
|
53
|
+
"Test connection": "Test connection with Server",
|
|
54
|
+
"Time in minutes to store client information": "Time in minutes to store client information",
|
|
55
|
+
"Trace output for every message:": "Trace output for every message",
|
|
56
|
+
"Type:": "Type",
|
|
57
|
+
"URL:": "URL",
|
|
58
|
+
"Use WebSockets:": "Use WebSockets too",
|
|
59
|
+
"Use chunk patch:": "Use chunk patch",
|
|
60
|
+
"Use different topic names for set and get:": "Use different topic names for set and get",
|
|
61
|
+
"User:": "User",
|
|
62
|
+
"WARNING! Check README.md!": "WARNING! Check README.md!",
|
|
63
|
+
"External MQTT broker": "External MQTT broker",
|
|
64
|
+
"Use external MQTT broker": "Use external MQTT broker",
|
|
65
|
+
"Disables the built-in MQTT server and connects as client to an external broker": "Disables the built-in MQTT server and connects as client to an external broker",
|
|
66
|
+
"External broker URL": "External broker URL",
|
|
67
|
+
"e.g. mqtt://192.168.1.100:1883 or mqtts://broker:8883": "e.g. mqtt://192.168.1.100:1883 or mqtts://broker:8883",
|
|
68
|
+
"External broker user": "External broker user",
|
|
69
|
+
"External broker password": "External broker password",
|
|
70
|
+
"Topics to subscribe": "Topics to subscribe",
|
|
71
|
+
"Comma separated list. Standard full topic: tele/#, stat/# - device first: +/tele/+, +/stat/+": "Comma separated list. Standard full topic: tele/#, stat/# - device first: +/tele/+, +/stat/+",
|
|
72
|
+
"Client ID": "Client ID",
|
|
73
|
+
"Empty: iobroker_sonoff_<instance>": "Empty: iobroker_sonoff_<instance>",
|
|
74
|
+
"Keepalive": "Keepalive",
|
|
75
|
+
"sec": "sec",
|
|
76
|
+
"Clean session": "Clean session",
|
|
77
|
+
"Deactivate it, so the broker stores the messages while the adapter is not running": "Deactivate it, so the broker stores the messages while the adapter is not running",
|
|
78
|
+
"Check the certificate of the broker": "Check the certificate of the broker",
|
|
79
|
+
"Deactivate it for self-signed certificates": "Deactivate it for self-signed certificates",
|
|
80
|
+
"Path to the CA certificate": "Path to the CA certificate",
|
|
81
|
+
"Optional, e.g. /opt/iobroker/certs/ca.crt": "Optional, e.g. /opt/iobroker/certs/ca.crt",
|
|
82
|
+
"Path to the client certificate": "Path to the client certificate",
|
|
83
|
+
"Optional, only for client certificate authentication": "Optional, only for client certificate authentication",
|
|
84
|
+
"Path to the client key": "Path to the client key",
|
|
85
|
+
"Without URL the built-in MQTT server will be started": "Without URL the built-in MQTT server will be started",
|
|
86
|
+
"chars": "chars",
|
|
87
|
+
"connected": "connected",
|
|
88
|
+
"ms": "ms"
|
|
89
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Adapter settings": "Configuraciones Sonoff",
|
|
3
|
+
"Advanced MQTT settings": "Configuración avanzada de MQTT",
|
|
4
|
+
"Authentication settings": "Configuraciones de autenticación",
|
|
5
|
+
"Auto creation of states": "Creación automática de estados",
|
|
6
|
+
"Chained certificate:": "Certificado encadenado",
|
|
7
|
+
"Client": "Cliente/suscriptor",
|
|
8
|
+
"Client ID:": "Identificación del cliente",
|
|
9
|
+
"Client timeout": "tiempo de espera del cliente",
|
|
10
|
+
"Connection": "Conexión",
|
|
11
|
+
"Connection settings": "Configuración de conexión",
|
|
12
|
+
"Create object tree": "Crear árbol de objetos",
|
|
13
|
+
"Default QoS": "QoS predeterminado",
|
|
14
|
+
"Default Quality of Service level (0, 1, or 2)": "Calidad predeterminada del nivel de servicio (0, 1 o 2)",
|
|
15
|
+
"Divided by comma": "Dividido por coma, p. 'mqtt/0/#, javascript/#'",
|
|
16
|
+
"For stat/RESULT": "Por stat/RESULT",
|
|
17
|
+
"For tele/MARGINS": "Para tele/MARGINS",
|
|
18
|
+
"For tele/SENSOR": "Por tele/SENSOR",
|
|
19
|
+
"For tele/STATE": "Por tele/STATE",
|
|
20
|
+
"IP": "IP",
|
|
21
|
+
"Ignore 'not connected' warnings": "Ignorar advertencias 'no conectadas'",
|
|
22
|
+
"Ignore warnings with pingreq": "Ignore las advertencias con pingreq",
|
|
23
|
+
"Interval before send topics by connection:": "Intervalo antes de enviar temas por conexión",
|
|
24
|
+
"Interval in milliseconds for message retransmission": "Intervalo en milisegundos para la retransmisión de mensajes",
|
|
25
|
+
"Main settings": "Ajustes principales",
|
|
26
|
+
"Mask to publish": "p.ej. 'mqtt.0.*, javascript.*'",
|
|
27
|
+
"Mask to publish own states:": "Máscara para publicar estados propios",
|
|
28
|
+
"Max topic length:": "Longitud máxima del nombre del tema",
|
|
29
|
+
"Maximum number of retransmission attempts": "Número máximo de intentos de retransmisión",
|
|
30
|
+
"Other settings": "Otros ajustes",
|
|
31
|
+
"Password confirmation:": "confirmación de contraseña",
|
|
32
|
+
"Password:": "Contraseña",
|
|
33
|
+
"Patterns:": "Suscribir patrones",
|
|
34
|
+
"Port:": "Puerto",
|
|
35
|
+
"Prefix for topics:": "Prefijo para todos los temas",
|
|
36
|
+
"Private certificate:": "Certificado privado",
|
|
37
|
+
"Public certificate:": "Certificado público",
|
|
38
|
+
"Publish all states at start:": "Publicar estados propios al conectar",
|
|
39
|
+
"Publish states on subscribe:": "Publicar estados al suscribirse",
|
|
40
|
+
"Result: ": "Resultado",
|
|
41
|
+
"Retransmit count": "Recuento de retransmit",
|
|
42
|
+
"Retransmit interval": "Intervalo de retransmisión",
|
|
43
|
+
"Secure:": "Seguro",
|
|
44
|
+
"Send interval:": "Intervalo de envío",
|
|
45
|
+
"Send states (ack=true) too:": "Enviar estados (ack = true) también",
|
|
46
|
+
"Server": "Servidor/intermediario",
|
|
47
|
+
"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).",
|
|
48
|
+
"Sonoff Settings": "Configuraciones Sonoff",
|
|
49
|
+
"Sonoff adapter settings": "Configuraciones del adaptador Sonoff",
|
|
50
|
+
"Store clients time": "Tiempo de los clientes de almacenamiento",
|
|
51
|
+
"Store only on change:": "Publicar solo en el cambio",
|
|
52
|
+
"Suppress warnings when commands are sent to offline devices": "Suprima las advertencias cuando los comandos se envían a dispositivos fuera de línea",
|
|
53
|
+
"Test connection": "Prueba de conexión con el servidor",
|
|
54
|
+
"Time in minutes to store client information": "Tiempo en minutos para almacenar la información del cliente",
|
|
55
|
+
"Trace output for every message:": "Salida de seguimiento para cada mensaje",
|
|
56
|
+
"Type:": "Tipo",
|
|
57
|
+
"URL:": "URL",
|
|
58
|
+
"Use WebSockets:": "Use WebSockets también",
|
|
59
|
+
"Use chunk patch:": "Use el fragmento de fragmento",
|
|
60
|
+
"Use different topic names for set and get:": "Use diferentes nombres de tema para establecer y obtener",
|
|
61
|
+
"User:": "Usuario",
|
|
62
|
+
"WARNING! Check README.md!": "¡ADVERTENCIA! ¡Compruebe README.md!",
|
|
63
|
+
"External MQTT broker": "Broker MQTT externo",
|
|
64
|
+
"Use external MQTT broker": "Usar broker MQTT externo",
|
|
65
|
+
"Disables the built-in MQTT server and connects as client to an external broker": "Desactiva el servidor MQTT integrado y se conecta como cliente a un broker externo",
|
|
66
|
+
"External broker URL": "URL del broker externo",
|
|
67
|
+
"e.g. mqtt://192.168.1.100:1883 or mqtts://broker:8883": "ej. mqtt://192.168.1.100:1883 o mqtts://broker:8883",
|
|
68
|
+
"External broker user": "Usuario del broker externo",
|
|
69
|
+
"External broker password": "Contraseña del broker externo",
|
|
70
|
+
"Topics to subscribe": "Topics a suscribir",
|
|
71
|
+
"Comma separated list. Standard full topic: tele/#, stat/# - device first: +/tele/+, +/stat/+": "Lista separada por comas. FullTopic estándar: tele/#, stat/# - dispositivo primero: +/tele/+, +/stat/+",
|
|
72
|
+
"Client ID": "ID de cliente",
|
|
73
|
+
"Empty: iobroker_sonoff_<instance>": "Vacío: iobroker_sonoff_<instancia>",
|
|
74
|
+
"Keepalive": "Keepalive",
|
|
75
|
+
"sec": "s",
|
|
76
|
+
"Clean session": "Sesión limpia",
|
|
77
|
+
"Deactivate it, so the broker stores the messages while the adapter is not running": "Desactívelo para que el broker almacene los mensajes mientras el adaptador no se está ejecutando",
|
|
78
|
+
"Check the certificate of the broker": "Comprobar el certificado del broker",
|
|
79
|
+
"Deactivate it for self-signed certificates": "Desactívelo para certificados autofirmados",
|
|
80
|
+
"Path to the CA certificate": "Ruta al certificado CA",
|
|
81
|
+
"Optional, e.g. /opt/iobroker/certs/ca.crt": "Opcional, p. ej. /opt/iobroker/certs/ca.crt",
|
|
82
|
+
"Path to the client certificate": "Ruta al certificado de cliente",
|
|
83
|
+
"Optional, only for client certificate authentication": "Opcional, solo para la autenticación con certificado de cliente",
|
|
84
|
+
"Path to the client key": "Ruta a la clave de cliente",
|
|
85
|
+
"Without URL the built-in MQTT server will be started": "Sin URL se iniciará el servidor MQTT integrado",
|
|
86
|
+
"chars": "caracteres",
|
|
87
|
+
"connected": "conectado",
|
|
88
|
+
"ms": "Sra"
|
|
89
|
+
}
|