-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelectricityLiveConsumption.raml
38 lines (33 loc) · 1.18 KB
/
electricityLiveConsumption.raml
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
#%RAML 0.8
title: OICElectricityConsumption
version: xxxxxxxxxxxxxxx
schemas:
- Consumption: !include oic.r.electricity.consumption.json
traits:
- interface:
queryParameters:
if:
enum: ["oic.if.s","oic.if.baseline"]
/ElectricityConsumptionResURI:
description: |
This resource describes the cumulative electrical energy measured by a measuring element of the device (the electricity value is in Watt Hours [Wh])
and the instantaneous power draw measured by a measuring element of the device (the power value is in Watts [W]) at the time the resource was queried.
The power value is in Watts [W].
The electrical energy value is in Watt Hours [Wh].
displayName: Electricity Consumption
is: [ interface ] # valid for all methods
get:
description: |
Provides the current power draw and cumulative electricity usage.
responses:
200:
body:
application/json:
schema: Consumption
example: |
{
"rt": ["oic.r.electricity.consumption"],
"id": "unique_example_id",
"power": 2000.1,
"electricity": 3500.4
}