-
Notifications
You must be signed in to change notification settings - Fork 2
/
device-config-schema.coffee
112 lines (112 loc) · 4.07 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
module.exports = {
title: "pimatic-websolarlog device config schemas"
FroniusInverterRealtimeData: {
title: "Fronius Realtime Data Device"
description: "Provides access to real-time data of a Fronius Inverter supporting Solar API 1.1"
type: "object"
extensions: ["xLink", "xAttributeOptions"]
properties:
deviceId:
description: "The id of the Inverter Device"
type: "number"
host:
description: "IP address or hostname of the device providing the Solar REST Service"
type: "string"
apiVersion:
description: "The API Version supported by the data logger device"
enum: [0, 1]
default: 1
port:
description: "Port of the device providing the Solar REST Service"
type: "number"
default: 80
username:
description: "Username used to obtain access. Omitted, if authentication has been disabled."
type: "string"
required: false
password:
description: "Password used to obtain access. Omitted, if authentication has been disabled."
type: "string"
required: false
interval:
description: "Polling interval in seconds, value range [10-86400]"
type: "number"
default: 60
threshold:
description: "Threshold for PowerSaveMode of Inverter Device"
type: "number"
default: 0
}
FroniusComponentsData: {
title: "Fronius GetComponentsData Device (using an undocumented API call of the PV data logger)"
description: "Provides access to data of a Fronius Inverter supporting Solar API 1.1"
type: "object"
extensions: ["xLink", "xAttributeOptions"]
properties:
attributes:
type: "array"
default: ["powerGenerate", "powerLoad", "powerGrid", "powerAkkuSum", "powerPvSum", "relativeSelfConsumption", "relativeAutonomy", "powerSelfConsumption"]
format: "table"
items:
type: "string"
host:
description: "IP address or hostname of the device providing the Solar REST Service"
type: "string"
port:
description: "Port of the device providing the Solar REST Service"
type: "number"
default: 80
username:
description: "Username used to obtain access. Omitted, if authentication has been disabled."
type: "string"
required: false
password:
description: "Password used to obtain access. Omitted, if authentication has been disabled."
type: "string"
required: false
interval:
description: "Polling interval in seconds, value range [10-86400]"
type: "number"
default: 60
threshold:
description: "Threshold for PowerSaveMode of Inverter Device"
type: "number"
default: 0
}
FroniusPowerFlowRealtimeData: {
title: "Fronius GetPowerFlowRealtimeData Device "
description: "Provides access to data of a Fronius Inverter supporting Solar API 1.1"
type: "object"
extensions: ["xLink", "xAttributeOptions"]
properties:
attributes:
type: "array"
default: ["mode", "powerGrid", "powerLoad", "powerAkku", "powerGenerate", "energyDay", "energyYear", "energyTotal"]
format: "table"
items:
type: "string"
host:
description: "IP address or hostname of the device providing the Solar REST Service"
type: "string"
port:
description: "Port of the device providing the Solar REST Service"
type: "number"
default: 80
username:
description: "Username used to obtain access. Omitted, if authentication has been disabled."
type: "string"
required: false
password:
description: "Password used to obtain access. Omitted, if authentication has been disabled."
type: "string"
required: false
interval:
description: "Polling interval in seconds, value range [10-86400]"
type: "number"
default: 60
threshold:
description: "Threshold for PowerSaveMode of Inverter Device"
type: "number"
default: 0
}
}