forked from thexperiments/pimatic-harmonyhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice-config-schema.coffee
executable file
·79 lines (79 loc) · 2.09 KB
/
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
module.exports = {
title: "pimatic-harmonyhub device config schema"
HarmonyHubPowerSwitch: {
title: "HarmonyHubPowerSwitch config options"
type: "object"
properties:
HubIP:
description: "IP of the Harmony Hub"
type: "string"
commandType:
description: "Type of code to send (IRCommand etc.)"
type: "string"
default: "IRCommand"
onCommand:
description: "Code to send for ON state"
type: "string"
default: "PowerOn"
offCommand:
description: "Code to send for OFF state"
type: "string"
default: "PowerOff"
deviceId:
description: "ID of device to control"
type: "number"
},
HarmonyHubButtonsDevice: {
title: "HarmonyHubButtonsDevice config options"
type: "object"
properties:
hubIP:
description: "IP of the Harmony Hub"
type: "string"
deviceId:
description: "ID of device to control"
type: "number"
commandType:
description: "Type of code to send (IRCommand etc.)"
type: "string"
default: "IRCommand"
buttons:
description: "Buttons to display"
type: "array"
default: []
format: "table"
items:
type: "object"
properties:
id:
type: "string"
text:
type: "string"
command:
description: "Command to send"
type: "string"
},
HarmonyHubActivitiesButtonsDevice: {
title: "HarmonyHubActivitiesButtonsDevice config options"
type: "object"
properties:
hubIP:
description: "IP of the Harmony Hub"
type: "string"
buttons:
description: "Activitiy buttons to display"
type: "array"
default: []
format: "table"
items:
type: "object"
properties:
id:
type: "string"
text:
type: "string"
activityId:
description: "ID of the activity to trigger (-1 = off)"
type: "string"
}
}