generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.ts
69 lines (57 loc) · 1.65 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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 = '@devwithimagination/homebridge-ebeco';
/**
* Enum defining the temperature sensors we can use
*/
export enum TemperatureSensor {
FLOOR,
ROOM
}
/**
* 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;
/**
* Boolean indicating if there should be an "off" option. If this is set
* to false, only temperature can be controlled.
*/
includeOffOption?: boolean;
/**
* 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;
/**
* The temperature sensor to use.
*
* This is optional as older versions of the plugin did not
* have this setting. If it is not configured a default will
* be set on startup.
*/
temperatureSensor?: TemperatureSensor;
}