forked from dhutchison/homebridge-ebeco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.ts
46 lines (37 loc) · 1.09 KB
/
settings.ts
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
import { PlatformConfig } from 'homebridge';
/**
* This is the name of the platform that users will use to register the plugin in the Homebridge config.json
*/
export const PLATFORM_NAME = 'Ebeco';
/**
* This must match the name of your plugin as defined the package.json
*/
export const PLUGIN_NAME = 'homebridge-ebeco';
/**
* Interface which defines the fields that can be expected in our Platform Config.
*/
export interface EbecoPlatformConfig extends PlatformConfig {
/**
* User's username for the Ebeco platform
*/
username?: string;
/**
* User's password for the Ebeco platform
*/
password?: string;
/**
* Frequency of API poll requests (in milliseconds)
*/
pollFrequency?: number;
/**
* Optional configuration value for the API host.
*
* This may be changed for development purposes.
*/
apiHost?: string;
/**
* Access token. This will not be directly configured by an end user,
* but will be updated by the plugin as a result of an authentication request.
*/
accessToken?: string;
}