forked from DheerajKhajuria/pimatic-mysensors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMySensors-config-schema.coffee
executable file
·40 lines (40 loc) · 1.06 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
# #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 diver to connect to the PiGateway"
type: "string"
enum: ["serialport"]
default: "serialport"
driverOptions:
description: "Options for the driver"
type: "object"
default: {
"serialDevice": '/dev/ttyUSB0', #"/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"
}