-
Notifications
You must be signed in to change notification settings - Fork 2
/
device-config-schema.coffee
60 lines (60 loc) · 2.12 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
module.exports = {
title: "pimatic-edimax device config schemas"
EdimaxSmartPlugSimple: {
title: "Edimax Smart Plug"
description: "A WiFi Smart Plug which can be switched on and off."
type: "object"
extensions: ["xConfirm", "xOnLabel", "xOffLabel", "xLink"]
properties:
deviceName:
description: "The name of the Smart Plug as shown by the EdiPlug configuration app"
type: "string"
host:
description: "Hostname or IP Address of the Smart Plug"
type: "string"
username:
description: "Username for the REST API"
type: "string"
default: "admin"
password:
description: "Password for the REST API"
type: "string"
default: "1234"
interval:
description: "Polling interval for switch state in seconds, value range [10-86400] or 0 to use plugin setting"
type: "number"
recoverState:
description: "If true, recover switch state from database on startup and after failure"
type: "boolean"
default: false
}
EdimaxSmartPlug: {
title: "Edimax Smart Plug with Power Metering"
description: "A WiFi Smart Plug which can be switched on and off and provides power metering."
type: "object"
extensions: ["xConfirm", "xOnLabel", "xOffLabel", "xLink", "xAttributeOptions"]
properties:
deviceName:
description: "The name of the Smart Plug as shown by the EdiPlug configuration app"
type: "string"
host:
description: "Hostname or IP Address of the Smart Plug"
type: "string"
username:
description: "Username for the REST API"
type: "string"
default: "admin"
password:
description: "Password for the REST API"
type: "string"
default: "1234"
interval:
description: "Polling interval for switch state in seconds, value range [10-86400] or 0 to use plugin setting"
type: "number"
default: 0
recoverState:
description: "If true, recover switch state from database on startup and after failure"
type: "boolean"
default: false
}
}