/
pv-system.td.jsonld
59 lines (59 loc) · 1.26 KB
/
pv-system.td.jsonld
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
{
"title": "PV-System",
"id": "urn:dev:wot:example:pv-system",
"description": "Solar power system",
"events": {
"status": {
"title": "Operating status",
"description": "Possible operating status (powerOn, powerOff, error)",
"data": {
"type": "string",
"enum": [
"powerOn",
"powerOff",
"error"
]
},
"forms": [
{
"href": "mqtt://127.0.0.1:1883/PV-System/events/status",
"contentType": "application/json",
"op": [
"subscribeevent",
"unsubscribeevent"
]
}
]
},
"power": {
"title": "Current power",
"description": "Power in Watt",
"data": {
"type": "number",
"minimum": 0,
"maximum": 7500,
"unit": "W"
},
"forms": [
{
"href": "mqtt://127.0.0.1:1883/PV-System/events/power",
"contentType": "application/json",
"op": [
"subscribeevent",
"unsubscribeevent"
]
}
]
}
},
"@context": "https://www.w3.org/2019/wot/td/v1",
"@type": "Thing",
"security": [
"nosec_sc"
],
"securityDefinitions": {
"nosec_sc": {
"scheme": "nosec"
}
}
}