forked from jensweigele/ioBroker.yahka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
yahka.configuration.ts
63 lines (53 loc) · 1.55 KB
/
yahka.configuration.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
export module Configuration {
export type TConfigNodeType = 'bridge' | 'customdevice' | 'ipcamera' | undefined;
export interface ICharacteristicConfig {
name: string;
enabled: boolean;
[key: string]: any;
}
export interface IServiceConfig {
name: string;
type: string;
subType: string;
characteristics: (ICharacteristicConfig)[];
[key: string]: any;
}
export interface IBaseConfigNode {
configType: TConfigNodeType;
name: string;
}
export interface IBaseHomeKitDeviceConfig extends IBaseConfigNode {
manufacturer: string;
model: string;
serial: string;
}
export interface IDeviceConfig extends IBaseHomeKitDeviceConfig {
enabled: boolean;
category: number;
services: (IServiceConfig)[];
[key: string]: any;
}
export interface IBridgeConfig extends IBaseHomeKitDeviceConfig {
ident: string;
name: string;
username: string;
pincode: string;
port: number;
verboseLogging: boolean;
devices: (IDeviceConfig)[];
}
export interface ICameraFfmpegCommandLine {
stream: String[],
snapshot: String[]
}
export interface ICameraConfig extends IBridgeConfig {
enabled: boolean;
source: String;
codec: String;
numberOfStreams: number | undefined;
maxWidth: number;
maxHeight: number;
maxFPS: number;
ffmpegCommandLine: ICameraFfmpegCommandLine;
}
}