-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.json
More file actions
68 lines (68 loc) · 2.08 KB
/
module.json
File metadata and controls
68 lines (68 loc) · 2.08 KB
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
{
"singleton": false,
"dependencies": [],
"category": "automation_basic",
"author": "Jorge Rivera",
"homepage": "https://github.com/latchdevel/VirtualSwitch",
"icon": "icon.png",
"moduleName": "VirtualSwitch",
"version": "1.0.0",
"maturity": "stable",
"repository": {
"type": "git",
"source": "https://github.com/latchdevel/VirtualSwitch"
},
"defaults": {
"title": "__m_title__",
"description": "__m_descr__",
"deviceType": "Door Lock",
"toggleDeviceOn": {},
"toggleDeviceOff": {}
},
"schema": {
"type": "object",
"properties": {
"deviceType" : {
"type": "string",
"enum": ["Binary Switch", "Door Lock"],
"required": true
},
"toggleDeviceOn": {
"field": "enum",
"datasource": "namespaces",
"enum": "namespaces:devices_toggleButton:deviceId",
"required": true
},
"toggleDeviceOff": {
"field": "enum",
"datasource": "namespaces",
"enum": "namespaces:devices_toggleButton:deviceId",
"required": true
}
}
},
"options": {
"fields": {
"deviceType": {
"label": "__m_type__",
"type": "select"
},
"toggleDeviceOn": {
"fieldClass": "toggleDeviceOn",
"label": "__m_toggle_on__",
"type": "select",
"datasource": "namespaces",
"field": "optionLabels",
"optionLabels": "namespaces:devices_toggleButton:deviceName"
},
"toggleDeviceOff": {
"fieldClass": "toggleDeviceOff",
"label": "__m_toggle_off__",
"type": "select",
"datasource": "namespaces",
"field": "optionLabels",
"optionLabels": "namespaces:devices_toggleButton:deviceName"
}
}
}
}