forked from dfischbach/pimatic-athome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
athome-device-config-schema.coffee
executable file
·116 lines (116 loc) · 2.77 KB
/
athome-device-config-schema.coffee
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
module.exports = {
title: "athome device config schemas"
AHSwitchFS20: {
title: "AHSwitchFS20 config options"
type: "object"
properties:
id:
description: "The id of a device"
type: "string"
default: "atHomeId"
name:
description: "The name of a device"
type: "string"
default: "atHomeName"
houseid:
description: "The house code"
type: "string"
default: "0000"
deviceid:
description: "The fs20 device id"
type: "string"
default: "00"
}
AHSwitchElro: {
title: "AHSwitchElro config options"
type: "object"
properties:
id:
description: "The id of a device"
type: "string"
default: "atHomeId"
name:
description: "The name of a device"
type: "string"
default: "atHomeName"
houseid:
description: "The house code"
type: "string"
default: "11111"
deviceid:
description: "The elro device id"
type: "string"
default: "10000"
}
AHRCSwitchElro: {
title: "AHRCSwitchElro config options"
type: "object"
properties:
id:
description: "The id of a device"
type: "string"
default: "atHomeId"
name:
description: "The name of a device"
type: "string"
default: "atHomeName"
houseid:
description: "The house code"
type: "string"
default: "11111"
deviceid:
description: "The elro device id"
type: "string"
default: "10000"
}
AHSensorValue: {
title: "AHSensorValue config options"
type: "object"
properties:
id:
description: "The id of a device"
type: "string"
default: "atHomeId"
name:
description: "The name of a device"
type: "string"
default: "atHomeName"
sensorid:
description: "The id of a sensor"
type: "string"
default: "0"
label:
description: "The display value of a value"
type: "string"
default: "Value"
unit:
description: "The unit of a value"
type: "string"
default: ""
scale:
description: "scale applied to the value"
type: "number"
default: 1
offset:
description: "offset applied to the value after scaling"
type: "number"
default: 0
}
AHKeypad: {
title: "AHKeypad config options"
type: "object"
properties:
buttons:
description: "Buttons of the keypad"
type: "array"
default: []
format: "table"
items:
type: "object"
properties:
id:
type: "string"
text:
type: "string"
}
}