-
Notifications
You must be signed in to change notification settings - Fork 22
/
MySensors-config-schema.coffee
executable file
·67 lines (67 loc) · 1.95 KB
/
MySensors-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
# #my-plugin configuration options
# Declare your config option for your plugin here.
# # configuration options
module.exports = {
title: "MySensors config"
type: "object"
properties:
debug:
description: "Log information for debugging, including received messages"
type: "boolean"
default: true
driver:
description: "The driver to connect to the gateway"
type: "string"
enum: ["serialport", "ethernet"]
default: "serialport"
defines:
property: "driverOptions"
options:
serialport:
title: "serialport driver options"
type: "object"
properties:
serialDevice:
description: "The name of the serial device to use"
type: "string"
default: "/dev/ttyUSB0"
baudrate:
description: "The baudrate to use for serial communication"
type: "integer"
default: 115200
ethernet:
title: "ethernet driver options"
type: "object"
properties:
host:
description: "The IP address of the gateway"
type: "string"
default: "192.168.1.100"
port:
description: "The port of the gateway"
type: "integer"
default: 5003
driverOptions:
description: "Options for the driver"
type: "object"
default: {
"serialDevice": "/dev/ttyUSB0",
"baudrate": 115200
}
protocols:
description: "MySensors protrocol version"
type: "string"
default: "1.5.1"
metric:
description: "(M)etric or (I)mperal"
type: "string"
default: "M"
startingNodeId:
description: "Mysensors starting node id"
type: "number"
default: 1
time:
description: "use 'local' or 'utc' time"
type: "string"
default: "local"
}