-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice-config-schema.coffee
71 lines (71 loc) · 1.99 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
module.exports ={
title: "pimatic-luftdaten device config schemas"
LuftdatenDevice: {
title: "LuftdatenDevice"
type: "object"
extensions: ["xLink", "xAttributeOptions"]
properties:
sensorId:
description: "Luftdaten sensor ID or local IP address of Luftdaten sensor"
type: "string"
required: false
latitude:
description: "Latitude of the location you want luftdaten info for"
type: "number"
required: false
longitude:
description: "Longitude of the location you want luftdaten info for"
type: "number"
required: false
radius:
description: "The radius in km for detecting a luftdaten sensor, default is 1 km"
type: "number"
default: 1
required: false
attributes:
description: "Attributes which shall be exposed by the device"
type: "array"
default: [
{
name: "SENSOR_ID"
},
{
name: "PM10"
},
{
name: "PM25"
}
]
format: "table"
items:
type: "object"
properties:
name:
enum: [
"SENSOR_ID", "DISTANCE", "PM10", "PM25",
"TEMP", "HUM", "BAR", "BAR_SEA",
"WIFI", "NOISE_LEVEL", "NOISE_LEQ",
"NOISE_LMIN", "NOISE_LMAX", "AQI",
"AQI_CODE", "AQI_AIR_QUALITY"
]
description: "Air quality related attributes"
interval:
description: "Minutes for updating data"
type: "integer"
default: 60
},
LuftdatenHomeDevice: {
title: "LuftdatenHomeDevice"
type: "object"
extensions: ["xLink", "xAttributeOptions"]
properties:
sensorIp:
description: "Local IP address of Luftdaten sensor"
type: "string"
required: true
interval:
description: "Minutes for updating data"
type: "integer"
default: 60
}
}