forked from KraigM/homebridge-harmonyhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
22 lines (20 loc) · 963 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var Service, Characteristic, Accessory, uuid;
module.exports = function (homebridge) {
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.Characteristic;
Accessory = homebridge.hap.Accessory;
uuid = homebridge.hap.uuid;
var exportedTypes = {
Service: homebridge.hap.Service,
Characteristic: homebridge.hap.Characteristic,
Accessory: homebridge.hap.Accessory,
PlatformAccessory: homebridge.platformAccessory,
uuid: homebridge.hap.uuid
};
exportedTypes.AccessoryBase = require('./lib/accessory-base')(exportedTypes);
exportedTypes.HubAccessoryBase = require('./lib/hub-accessory-base')(exportedTypes);
exportedTypes.ActivityAccessory = require('./lib/activity-accessory')(exportedTypes);
exportedTypes.Hub = require('./lib/hub')(exportedTypes);
exportedTypes.HomePlatform = require('./lib/home-platform')(exportedTypes);
homebridge.registerPlatform("homebridge-harmonyhub", "HarmonyHub", exportedTypes.HomePlatform, true);
};