@tplnet/homebridge-tahoma 2.3.10 → 2.4.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/CHANGELOG.md +19 -0
- package/README.md +47 -21
- package/config.schema.json +110 -45
- package/dist/Mapper.d.ts +6 -0
- package/dist/Mapper.js +32 -6
- package/dist/Mapper.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## 2.4.1 (2026-11-17)
|
|
2
|
+
|
|
3
|
+
### Changed
|
|
4
|
+
|
|
5
|
+
- Settings form, *Device specific config*: explains what it is for and which device name to enter (as shown in the log at startup: "Configure device <name>"). The options are grouped by device kind, each with a description of what it does and for which devices it is meant. New in the form: start delay for the movement duration, pedestrian opening for gates and the heating options
|
|
6
|
+
- README: section "Device specific configuration" rewritten accordingly
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
|
|
10
|
+
- A device specific entry now also matches the device name shown in Apple Home and in the log. Before, only the name from the TaHoma app worked, which can differ slightly (e.g. "Büro kl." in the TaHoma app, "Büro kl" in Apple Home)
|
|
11
|
+
- Removed the alarm option "occupancy sensor" from the settings and the README – it had no effect
|
|
12
|
+
- "Reverse direction" is no longer offered for garage doors – it only works for roller shutters and similar devices
|
|
13
|
+
|
|
14
|
+
## 2.4.0 (2026-11-16)
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Troubleshooting for a single device: with `"debug": true` in its device specific settings (settings form: *Device specific config* → *Troubleshooting*), the log shows at startup which commands and states the gateway offers for this device, plus the detailed log of its commands. Helps to find out why a device does not report changes (e.g. a garage door operated with its remote)
|
|
19
|
+
|
|
1
20
|
## 2.3.10 (2026-11-16)
|
|
2
21
|
|
|
3
22
|
### Fixed
|
package/README.md
CHANGED
|
@@ -143,52 +143,78 @@ More information: [Somfy TaHoma Developer Mode](https://github.com/Somfy-Develop
|
|
|
143
143
|
|
|
144
144
|
## Device specific configuration
|
|
145
145
|
|
|
146
|
-
`devicesConfig`
|
|
146
|
+
Most devices work without any extra settings. `devicesConfig` (settings form: *Device specific config*) is only needed to adapt single devices or device types – for example a roller shutter installed the wrong way round, or an RTS shutter without position feedback.
|
|
147
|
+
|
|
148
|
+
### Which name to enter (`key`)
|
|
149
|
+
|
|
150
|
+
Each entry applies to the devices matching its `key`:
|
|
151
|
+
|
|
152
|
+
- **A device name** – as shown in the Homebridge log at startup, or as named in the TaHoma app:
|
|
153
|
+
```
|
|
154
|
+
[TaHoma] Configure device Garage
|
|
155
|
+
[TaHoma] GarageDoor > PositionableGarageDoor
|
|
156
|
+
```
|
|
157
|
+
Here the name is `Garage`.
|
|
158
|
+
- **A device type** – the words in the line below the name: the first one (UI class, e.g. `RollerShutter`, `Awning`, `GarageDoor`) applies to all devices of this kind, the second one (widget, e.g. `PositionableGarageDoor`) to all devices of this model.
|
|
159
|
+
|
|
160
|
+
When several entries match a device, their settings are combined; the more specific one wins (device name over widget over UI class).
|
|
147
161
|
|
|
148
162
|
```json
|
|
149
163
|
"devicesConfig": [
|
|
150
164
|
{ "key": "Bedroom blind", "blindMode": true },
|
|
151
165
|
{ "key": "UpDownRollerShutter", "defaultPosition": 50 },
|
|
152
|
-
{ "key": "
|
|
166
|
+
{ "key": "Garage", "debug": true },
|
|
153
167
|
{ "key": "Alarm", "stayZones": "A,C" }
|
|
154
168
|
]
|
|
155
169
|
```
|
|
156
170
|
|
|
157
|
-
|
|
171
|
+
Only the settings of the section that matches the device have an effect; the others are ignored for it. In the settings form, the sections are named after the device kinds.
|
|
172
|
+
|
|
173
|
+
### Roller shutters, awnings, screens, windows, curtains (WindowCovering)
|
|
158
174
|
|
|
159
175
|
| Setting | Type | Default | Description |
|
|
160
176
|
|---|---|---|---|
|
|
161
|
-
| `
|
|
162
|
-
| `
|
|
163
|
-
| `
|
|
164
|
-
| `
|
|
165
|
-
| `
|
|
166
|
-
|
|
177
|
+
| `reverse` | boolean | `false` | Swap open and close (e.g. after a wrong installation) |
|
|
178
|
+
| `defaultPosition` | number | `0` | Only for devices without position feedback (RTS, up/down only): position shown after a command, e.g. `50` |
|
|
179
|
+
| `movementDuration` | number (s) | `0` | Only for devices without position feedback (RTS): time of a full movement from open to closed. Enables intermediate positions – the plugin stops the device after the calculated time (`0` = off) |
|
|
180
|
+
| `offsetMovementDuration` | number (s) | `0` | Used with `movementDuration`: extra time until the device actually starts moving |
|
|
181
|
+
| `lowSpeed` | boolean / string | `false` | Only for roller shutters with low speed (widget `PositionableRollerShutterWithLowSpeedManagement`): use the silent low speed. As string `"HH:MM-HH:MM"` only in that time slot (may span midnight, e.g. `"22:00-07:00"`; JSON config only) |
|
|
182
|
+
|
|
183
|
+
### Venetian and exterior blinds
|
|
184
|
+
|
|
185
|
+
| Setting | Type | Default | Description |
|
|
186
|
+
|---|---|---|---|
|
|
187
|
+
| `blindMode` | boolean | `false` | The main slider controls the slats: 100 % fully opens, 0 % fully closes, 1–99 % closes the blind and tilts the slats (99 % = horizontal, most light; 1 % = nearly closed) |
|
|
188
|
+
| `blindsOnRollerShutter` | boolean | `false` | Blinds driven by a roller shutter motor: at intermediate positions the blind moves a little further back so the slats stay open |
|
|
167
189
|
|
|
168
190
|
### Garage doors and gates (GarageDoorOpener)
|
|
169
191
|
|
|
170
192
|
| Setting | Type | Default | Description |
|
|
171
193
|
|---|---|---|---|
|
|
172
|
-
| `cyclic` | boolean | `false` | For
|
|
173
|
-
| `cycleDuration` | number (s) | `5` |
|
|
174
|
-
| `
|
|
175
|
-
| `pedestrianDuration` | number (s) | `0` | Duration of the pedestrian opening for RTS gates |
|
|
194
|
+
| `cyclic` | boolean | `false` | For doors without state feedback that close by themselves: show *closed* again after `cycleDuration` |
|
|
195
|
+
| `cycleDuration` | number (s) | `5` | Time until a cyclic door is shown as closed again |
|
|
196
|
+
| `pedestrianDuration` | number (s) | `0` | Gates without a pedestrian command (RTS): open for this time, then stop. Shown as an extra lock in Apple Home |
|
|
176
197
|
|
|
177
|
-
### Alarm
|
|
198
|
+
### Alarm systems
|
|
178
199
|
|
|
179
200
|
| Setting | Type | Default | Description |
|
|
180
201
|
|---|---|---|---|
|
|
181
|
-
| `stayZones` | string | `A` | Zones (A, B, C) armed in *
|
|
182
|
-
| `nightZones` | string | `B` | Zones (A, B, C) armed in *Night* mode |
|
|
183
|
-
| `occupancySensor` | boolean | `false` | Add an occupancy sensor linked to the alarm |
|
|
202
|
+
| `stayZones` | string | `A` | Zones (A, B, C) armed in Apple Home's *Home* mode, e.g. `"A,C"` |
|
|
203
|
+
| `nightZones` | string | `B` | Zones (A, B, C) armed in Apple Home's *Night* mode |
|
|
184
204
|
|
|
185
205
|
### Heating
|
|
186
206
|
|
|
187
207
|
| Setting | Type | Default | Description |
|
|
188
208
|
|---|---|---|---|
|
|
189
|
-
| `derogationDuration` | number (h) | `1` |
|
|
190
|
-
| `comfort` | number (°C) | `19` |
|
|
191
|
-
| `eco` | number (°C) | `17` |
|
|
209
|
+
| `derogationDuration` | number (h) | `1` | Atlantic / Thermor heating zones: duration of temporary temperature changes |
|
|
210
|
+
| `comfort` | number (°C) | `19` | Electrical heaters with pilot wire: temperature that stands for the comfort mode |
|
|
211
|
+
| `eco` | number (°C) | `17` | Electrical heaters with pilot wire: temperature that stands for the eco mode |
|
|
212
|
+
|
|
213
|
+
### All devices
|
|
214
|
+
|
|
215
|
+
| Setting | Type | Default | Description |
|
|
216
|
+
|---|---|---|---|
|
|
217
|
+
| `debug` | boolean | `false` | Troubleshooting: logs at startup which commands and states the gateway offers for this device, and more details about its commands (without changing the global `debug`) |
|
|
192
218
|
|
|
193
219
|
## Supported devices
|
|
194
220
|
|
|
@@ -207,7 +233,7 @@ A device type that is not supported shows up in the log as *"… not supported"*
|
|
|
207
233
|
| Changes made with a remote are not shown | RTS devices cannot report their state; keep `refreshPeriod` enabled |
|
|
208
234
|
| Accessories disappeared after installing this plugin | Both plugins were installed at the same time – restore your backup and follow [Migrating](#migrating-from-homebridge-tahoma) |
|
|
209
235
|
|
|
210
|
-
For a detailed log, set `"debug": true` and restart Homebridge.
|
|
236
|
+
For a detailed log, set `"debug": true` and restart Homebridge. For a single device, add `"debug": true` to its entry in `devicesConfig` – the log then also shows the commands and states the gateway offers for it.
|
|
211
237
|
|
|
212
238
|
## Compatibility and security
|
|
213
239
|
|
package/config.schema.json
CHANGED
|
@@ -115,67 +115,96 @@
|
|
|
115
115
|
"type": "object",
|
|
116
116
|
"properties": {
|
|
117
117
|
"key": {
|
|
118
|
-
"title": "Device name",
|
|
118
|
+
"title": "Device name or type",
|
|
119
119
|
"type": "string",
|
|
120
|
-
"description": "
|
|
121
|
-
},
|
|
122
|
-
"blindMode": {
|
|
123
|
-
"title": "Blind mode",
|
|
124
|
-
"type": "boolean",
|
|
125
|
-
"description": "Manage blind orientation with main slider"
|
|
126
|
-
},
|
|
127
|
-
"blindsOnRollerShutter": {
|
|
128
|
-
"title": "Blinds on roller shutter",
|
|
129
|
-
"type": "boolean",
|
|
130
|
-
"description": "Manage blinds installed on roller shutter motors"
|
|
120
|
+
"description": "Which device(s) the settings apply to: the device name as shown in the Homebridge log at startup (\"Configure device <name>\") or in the TaHoma app – or a device type from the line below it (e.g. \"RollerShutter\" for all roller shutters, \"PositionableGarageDoor\" for one model). Entries without a name are ignored."
|
|
131
121
|
},
|
|
132
122
|
"reverse": {
|
|
133
|
-
"title": "Reverse",
|
|
134
|
-
"type": "boolean",
|
|
135
|
-
"description": "Reverse behaviour for open/close commands"
|
|
136
|
-
},
|
|
137
|
-
"lowSpeed": {
|
|
138
|
-
"title": "Low speed mode",
|
|
123
|
+
"title": "Reverse direction",
|
|
139
124
|
"type": "boolean",
|
|
140
|
-
"description": "
|
|
125
|
+
"description": "Swap open and close, e.g. after a wrong installation."
|
|
141
126
|
},
|
|
142
127
|
"defaultPosition": {
|
|
143
|
-
"title": "
|
|
128
|
+
"title": "Position after a command",
|
|
144
129
|
"type": "number",
|
|
145
130
|
"minimum": 0,
|
|
146
131
|
"maximum": 100,
|
|
147
|
-
"description": "
|
|
132
|
+
"description": "Only for devices without position feedback (RTS, up/down only): position shown in Apple Home after a command, e.g. 50."
|
|
148
133
|
},
|
|
149
134
|
"movementDuration": {
|
|
150
|
-
"title": "Movement
|
|
135
|
+
"title": "Movement duration (s)",
|
|
136
|
+
"type": "integer",
|
|
137
|
+
"minimum": 0,
|
|
138
|
+
"description": "Only for devices without position feedback (RTS): time for a full movement from open to closed. Enables intermediate positions – the plugin stops the device after the calculated time. 0 = off."
|
|
139
|
+
},
|
|
140
|
+
"offsetMovementDuration": {
|
|
141
|
+
"title": "Start delay (s)",
|
|
151
142
|
"type": "integer",
|
|
152
143
|
"minimum": 0,
|
|
153
|
-
"description": "
|
|
144
|
+
"description": "Used with the movement duration: extra time until the device actually starts moving."
|
|
145
|
+
},
|
|
146
|
+
"lowSpeed": {
|
|
147
|
+
"title": "Low speed",
|
|
148
|
+
"type": "boolean",
|
|
149
|
+
"description": "Only for roller shutters with low speed (widget PositionableRollerShutterWithLowSpeedManagement): always move with the silent low speed. A time slot such as \"22:00-07:00\" can be set in the JSON config."
|
|
150
|
+
},
|
|
151
|
+
"blindMode": {
|
|
152
|
+
"title": "Blind mode",
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"description": "Only for venetian / exterior blinds: the main slider controls the slats – 100 % fully open, 0 % fully closed, 1–99 % closed with tilted slats."
|
|
155
|
+
},
|
|
156
|
+
"blindsOnRollerShutter": {
|
|
157
|
+
"title": "Blinds on roller shutter motor",
|
|
158
|
+
"type": "boolean",
|
|
159
|
+
"description": "Only for blinds driven by a roller shutter motor: at intermediate positions the blind moves a little further back to open the slats."
|
|
154
160
|
},
|
|
155
161
|
"cyclic": {
|
|
156
|
-
"title": "Cyclic",
|
|
162
|
+
"title": "Cyclic door",
|
|
157
163
|
"type": "boolean",
|
|
158
|
-
"description": "
|
|
164
|
+
"description": "Only for garage doors and gates without state feedback that close by themselves: show \"closed\" again after the cycle duration."
|
|
159
165
|
},
|
|
160
166
|
"cycleDuration": {
|
|
161
|
-
"title": "Cycle
|
|
167
|
+
"title": "Cycle duration (s)",
|
|
162
168
|
"type": "integer",
|
|
163
|
-
"
|
|
169
|
+
"minimum": 1,
|
|
170
|
+
"description": "Used with \"Cyclic door\": time until the door is shown as closed again. Default 5."
|
|
164
171
|
},
|
|
165
|
-
"
|
|
166
|
-
"title": "
|
|
167
|
-
"type": "
|
|
168
|
-
"
|
|
172
|
+
"pedestrianDuration": {
|
|
173
|
+
"title": "Pedestrian opening (s)",
|
|
174
|
+
"type": "integer",
|
|
175
|
+
"minimum": 0,
|
|
176
|
+
"description": "Only for gates without a pedestrian command (RTS): open for this time, then stop. Shown as an extra lock in Apple Home."
|
|
169
177
|
},
|
|
170
178
|
"stayZones": {
|
|
171
|
-
"title": "
|
|
179
|
+
"title": "Zones for \"Home\"",
|
|
172
180
|
"type": "string",
|
|
173
|
-
"description": "
|
|
181
|
+
"description": "Only for alarm systems: zones armed in Apple Home's \"Home\" mode, e.g. \"A\" or \"A,C\". Default A."
|
|
174
182
|
},
|
|
175
183
|
"nightZones": {
|
|
176
|
-
"title": "
|
|
184
|
+
"title": "Zones for \"Night\"",
|
|
177
185
|
"type": "string",
|
|
178
|
-
"description": "
|
|
186
|
+
"description": "Only for alarm systems: zones armed in Apple Home's \"Night\" mode. Default B."
|
|
187
|
+
},
|
|
188
|
+
"derogationDuration": {
|
|
189
|
+
"title": "Temporary order duration (h)",
|
|
190
|
+
"type": "number",
|
|
191
|
+
"minimum": 1,
|
|
192
|
+
"description": "Only for Atlantic / Thermor heating zones: duration of temporary temperature changes. Default 1."
|
|
193
|
+
},
|
|
194
|
+
"comfort": {
|
|
195
|
+
"title": "Comfort temperature (°C)",
|
|
196
|
+
"type": "number",
|
|
197
|
+
"description": "Only for electrical heaters with pilot wire: temperature that stands for the comfort mode. Default 19."
|
|
198
|
+
},
|
|
199
|
+
"eco": {
|
|
200
|
+
"title": "Eco temperature (°C)",
|
|
201
|
+
"type": "number",
|
|
202
|
+
"description": "Only for electrical heaters with pilot wire: temperature that stands for the eco mode. Default 17."
|
|
203
|
+
},
|
|
204
|
+
"debug": {
|
|
205
|
+
"title": "Debug log",
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"description": "For all devices: log at startup which commands and states the gateway offers for this device, and more details about its commands (for troubleshooting)."
|
|
179
208
|
}
|
|
180
209
|
}
|
|
181
210
|
}
|
|
@@ -210,7 +239,7 @@
|
|
|
210
239
|
{
|
|
211
240
|
"type": "fieldset",
|
|
212
241
|
"title": "Device specific config",
|
|
213
|
-
"description": "
|
|
242
|
+
"description": "Optional settings for single devices or device types. Most devices need none. Add an entry, enter the device name (as shown in the Homebridge log at startup: \"Configure device <name>\") or a device type, and set only the options of the section that matches the device – the other sections have no effect on it.",
|
|
214
243
|
"expandable": true,
|
|
215
244
|
"expanded": false,
|
|
216
245
|
"items": [
|
|
@@ -223,40 +252,76 @@
|
|
|
223
252
|
"items": [
|
|
224
253
|
"devicesConfig[].key",
|
|
225
254
|
{
|
|
226
|
-
"title": "
|
|
255
|
+
"title": "Roller shutters, awnings, screens, windows, curtains",
|
|
227
256
|
"type": "section",
|
|
228
257
|
"expandable": true,
|
|
229
258
|
"expanded": false,
|
|
230
259
|
"items": [
|
|
231
260
|
"devicesConfig[].reverse",
|
|
232
261
|
"devicesConfig[].defaultPosition",
|
|
262
|
+
"devicesConfig[].movementDuration",
|
|
263
|
+
"devicesConfig[].offsetMovementDuration"
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"title": "Roller shutters with low speed",
|
|
268
|
+
"type": "section",
|
|
269
|
+
"expandable": true,
|
|
270
|
+
"expanded": false,
|
|
271
|
+
"items": [
|
|
272
|
+
"devicesConfig[].lowSpeed"
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"title": "Venetian and exterior blinds",
|
|
277
|
+
"type": "section",
|
|
278
|
+
"expandable": true,
|
|
279
|
+
"expanded": false,
|
|
280
|
+
"items": [
|
|
233
281
|
"devicesConfig[].blindMode",
|
|
234
|
-
"devicesConfig[].
|
|
235
|
-
"devicesConfig[].blindsOnRollerShutter",
|
|
236
|
-
"devicesConfig[].movementDuration"
|
|
282
|
+
"devicesConfig[].blindsOnRollerShutter"
|
|
237
283
|
]
|
|
238
284
|
},
|
|
239
285
|
{
|
|
240
|
-
"title": "Garage
|
|
286
|
+
"title": "Garage doors and gates",
|
|
241
287
|
"type": "section",
|
|
242
288
|
"expandable": true,
|
|
243
289
|
"expanded": false,
|
|
244
290
|
"items": [
|
|
245
|
-
"devicesConfig[].reverse",
|
|
246
291
|
"devicesConfig[].cyclic",
|
|
247
|
-
"devicesConfig[].cycleDuration"
|
|
292
|
+
"devicesConfig[].cycleDuration",
|
|
293
|
+
"devicesConfig[].pedestrianDuration"
|
|
248
294
|
]
|
|
249
295
|
},
|
|
250
296
|
{
|
|
251
|
-
"title": "Alarm",
|
|
297
|
+
"title": "Alarm systems",
|
|
252
298
|
"type": "section",
|
|
253
299
|
"expandable": true,
|
|
254
300
|
"expanded": false,
|
|
255
301
|
"items": [
|
|
256
|
-
"devicesConfig[].occupancySensor",
|
|
257
302
|
"devicesConfig[].stayZones",
|
|
258
303
|
"devicesConfig[].nightZones"
|
|
259
304
|
]
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"title": "Heating",
|
|
308
|
+
"type": "section",
|
|
309
|
+
"expandable": true,
|
|
310
|
+
"expanded": false,
|
|
311
|
+
"items": [
|
|
312
|
+
"devicesConfig[].derogationDuration",
|
|
313
|
+
"devicesConfig[].comfort",
|
|
314
|
+
"devicesConfig[].eco"
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"title": "Troubleshooting (all devices)",
|
|
319
|
+
"type": "section",
|
|
320
|
+
"expandable": true,
|
|
321
|
+
"expanded": false,
|
|
322
|
+
"items": [
|
|
323
|
+
"devicesConfig[].debug"
|
|
324
|
+
]
|
|
260
325
|
}
|
|
261
326
|
]
|
|
262
327
|
}
|
package/dist/Mapper.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export default abstract class Mapper {
|
|
|
10
10
|
private postponeTimer;
|
|
11
11
|
private debounceTimer;
|
|
12
12
|
protected stateless: boolean;
|
|
13
|
+
protected deviceDebug: boolean;
|
|
13
14
|
private executionId;
|
|
14
15
|
private actionPromise;
|
|
15
16
|
private inFlight;
|
|
@@ -30,6 +31,11 @@ export default abstract class Mapper {
|
|
|
30
31
|
/**
|
|
31
32
|
* Logging methods
|
|
32
33
|
*/
|
|
34
|
+
/**
|
|
35
|
+
* Logs what the gateway knows about this device (enabled with `debug: true` in the device specific config):
|
|
36
|
+
* commands with their number of parameters, current states and attached sensors.
|
|
37
|
+
*/
|
|
38
|
+
private logDeviceDetails;
|
|
33
39
|
protected debug(...args: any[]): void;
|
|
34
40
|
protected info(...args: any[]): void;
|
|
35
41
|
protected warn(...args: any[]): void;
|
package/dist/Mapper.js
CHANGED
|
@@ -13,6 +13,7 @@ export default class Mapper {
|
|
|
13
13
|
postponeTimer;
|
|
14
14
|
debounceTimer;
|
|
15
15
|
stateless = false;
|
|
16
|
+
deviceDebug = false;
|
|
16
17
|
//protected config: Record<string, string | boolean | number> = {};
|
|
17
18
|
executionId;
|
|
18
19
|
actionPromise;
|
|
@@ -28,10 +29,16 @@ export default class Mapper {
|
|
|
28
29
|
this.log = this.platform.log;
|
|
29
30
|
}
|
|
30
31
|
build() {
|
|
31
|
-
const config = Object.assign({}, this.platform.devicesConfig[this.device.definition.uiClass], this.platform.devicesConfig[this.device.definition.widgetName], this.platform.devicesConfig[this.device.label],
|
|
32
|
+
const config = Object.assign({}, this.platform.devicesConfig[this.device.definition.uiClass], this.platform.devicesConfig[this.device.definition.widgetName], this.platform.devicesConfig[this.device.label],
|
|
33
|
+
// name shown in Apple Home and in the log ("Configure device ..."), may differ slightly from the TaHoma app
|
|
34
|
+
this.platform.devicesConfig[this.accessory.displayName], this.platform.devicesConfig[this.device.uuid]);
|
|
32
35
|
this.stateless = this.device.states.length === 0 ||
|
|
33
36
|
(this.expectedStates.length > 0 && !this.expectedStates.some((state) => this.device.hasState(state)));
|
|
37
|
+
this.deviceDebug = config.debug === true;
|
|
34
38
|
this.applyConfig(config);
|
|
39
|
+
if (this.deviceDebug) {
|
|
40
|
+
this.logDeviceDetails();
|
|
41
|
+
}
|
|
35
42
|
if (Object.keys(config).length > 0) {
|
|
36
43
|
delete config.key;
|
|
37
44
|
if (this.platform.config.debug) {
|
|
@@ -60,15 +67,15 @@ export default class Mapper {
|
|
|
60
67
|
// Init and register states changes
|
|
61
68
|
this.onStatesChanged(this.device.states, true);
|
|
62
69
|
this.device.on('states', states => this.onStatesChanged(states));
|
|
63
|
-
//
|
|
70
|
+
// Sensors attached to this device (temperature, energy consumption) are not exposed
|
|
71
|
+
// as accessories or services of their own: their states are forwarded to this mapper,
|
|
72
|
+
// which shows them on its main service (e.g. CurrentTemperature, TotalConsumption).
|
|
73
|
+
// A separate sensor mapper would duplicate these values in HomeKit.
|
|
64
74
|
this.device.sensors.forEach((sensor) => {
|
|
65
75
|
this.onStatesChanged(sensor.states, true);
|
|
66
76
|
sensor.on('states', states => this.onStatesChanged(states));
|
|
67
77
|
});
|
|
68
78
|
}
|
|
69
|
-
// TODO: instanciate mapper for device sensors
|
|
70
|
-
// Configure accessory sensors
|
|
71
|
-
// this.device.sensors.forEach((sensor) => new mapper(platform, accessory, sensor)))
|
|
72
79
|
}
|
|
73
80
|
/**
|
|
74
81
|
* Helper methods
|
|
@@ -221,8 +228,27 @@ export default class Mapper {
|
|
|
221
228
|
/**
|
|
222
229
|
* Logging methods
|
|
223
230
|
*/
|
|
231
|
+
/**
|
|
232
|
+
* Logs what the gateway knows about this device (enabled with `debug: true` in the device specific config):
|
|
233
|
+
* commands with their number of parameters, current states and attached sensors.
|
|
234
|
+
*/
|
|
235
|
+
logDeviceDetails() {
|
|
236
|
+
const commands = (this.device.definition.commands ?? [])
|
|
237
|
+
.map((command) => `${command.commandName}(${command.nparams ?? 0})`)
|
|
238
|
+
.join(', ');
|
|
239
|
+
const states = (this.device.states ?? [])
|
|
240
|
+
.map((state) => `${state.name}=${JSON.stringify(state.value)}`)
|
|
241
|
+
.join(', ');
|
|
242
|
+
this.info(`Device details: ${this.device.definition.uiClass} > ${this.device.definition.widgetName},`, `controllable ${this.device.controllableName}, protocol ${this.device.protocol}`);
|
|
243
|
+
this.info(`Commands: ${commands || 'none'}`);
|
|
244
|
+
this.info(`States: ${states || 'none'}`);
|
|
245
|
+
for (const sensor of this.device.sensors ?? []) {
|
|
246
|
+
const sensorStates = (sensor.states ?? []).map((state) => `${state.name}=${JSON.stringify(state.value)}`).join(', ');
|
|
247
|
+
this.info(`Sensor ${sensor.definition.widgetName}: ${sensorStates || 'no states'}`);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
224
250
|
debug(...args) {
|
|
225
|
-
if (this.platform.config.debug) {
|
|
251
|
+
if (this.platform.config.debug || this.deviceDebug) {
|
|
226
252
|
this.platform.log.info(`${GREY}[${this.device.label}]`, ...args);
|
|
227
253
|
}
|
|
228
254
|
else {
|
package/dist/Mapper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mapper.js","sourceRoot":"","sources":["../src/Mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,EAA0B,MAAM,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhF,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,CAAC,OAAO,OAAgB,MAAM;IAmBT;IACA;IACA;IApBf,MAAM,CAAU,eAAe,GAA0B;QAC7D,cAAc,CAAC,SAAS,EAAE,cAAc,CAAC,MAAM,EAAE,cAAc,CAAC,SAAS,EAAE,cAAc,CAAC,eAAe;KAC5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,OAAO,IAAI,CAAC,cAAc,KAAK,UAAU,EAAE,CAAC;gBAC5C,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;YACjD,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,QAAQ,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACvF,CAAC;IAED,KAAK,CAAC,eAAe;QACjB,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACjE,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tplnet/homebridge-tahoma",
|
|
3
3
|
"displayName": "Homebridge Somfy TaHoma (tplnet)",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.4.1",
|
|
6
6
|
"description": "Homebridge plugin for TaHoma and Cozytouch services (Somfy, Atlantic, Thermor, Sauter). Maintained fork of dubocr/homebridge-tahoma.",
|
|
7
7
|
"author": "Romain DUBOC <dubocr@gmail.com>",
|
|
8
8
|
"license": "Apache-2.0",
|