homebridge-tydom 0.23.7 → 0.23.8
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/README.md +3 -2
- package/lib/helpers/accessory.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -213,8 +213,9 @@ You can override categories of devices (eg. some light switch used to manage a f
|
|
|
213
213
|
}
|
|
214
214
|
```
|
|
215
215
|
|
|
216
|
-
> `3` being the `
|
|
217
|
-
|
|
216
|
+
> `3` being the `Categories.FAN` number.
|
|
217
|
+
|
|
218
|
+
You can find the [global list here](https://github.com/homebridge/HAP-NodeJS/blob/v0.11.0/src/lib/Accessory.ts#L87)
|
|
218
219
|
|
|
219
220
|
### Supported hardware
|
|
220
221
|
|
package/lib/helpers/accessory.js
CHANGED
|
@@ -65,7 +65,7 @@ const getTydomAccessorySetup = (accessory, context) => {
|
|
|
65
65
|
case 4 /* Categories.GARAGE_DOOR_OPENER */:
|
|
66
66
|
return garageDoorOpener_1.setupGarageDoorOpener;
|
|
67
67
|
case 8 /* Categories.SWITCH */:
|
|
68
|
-
return ((_a = context.settings) === null || _a === void 0 ? void 0 : _a.trigger) ?
|
|
68
|
+
return ((_a = context.settings) === null || _a === void 0 ? void 0 : _a.trigger) ? triggerSwitch_1.setupTriggerSwitch : switch_1.setupSwitch;
|
|
69
69
|
case 14 /* Categories.WINDOW_COVERING */:
|
|
70
70
|
return windowCovering_1.setupWindowCovering;
|
|
71
71
|
case 11 /* Categories.SECURITY_SYSTEM */:
|
|
@@ -97,7 +97,7 @@ const getTydomAccessoryDataUpdate = (accessory, context) => {
|
|
|
97
97
|
case 4 /* Categories.GARAGE_DOOR_OPENER */:
|
|
98
98
|
return garageDoorOpener_1.updateGarageDoorOpener;
|
|
99
99
|
case 8 /* Categories.SWITCH */:
|
|
100
|
-
return ((_a = context.settings) === null || _a === void 0 ? void 0 : _a.trigger) ?
|
|
100
|
+
return ((_a = context.settings) === null || _a === void 0 ? void 0 : _a.trigger) ? triggerSwitch_1.updateTriggerSwitch : switch_1.updateSwitch;
|
|
101
101
|
case 14 /* Categories.WINDOW_COVERING */:
|
|
102
102
|
return windowCovering_1.updateWindowCovering;
|
|
103
103
|
case 11 /* Categories.SECURITY_SYSTEM */:
|