Retrieves the aggregate energy consumption in watt-hour for all fixtures and plugloads in the building for the last 15 minutes managed by Enlighted Manage (EM). The response is a JSON element with energy-lighting and energy-plugload parameters.
For example, if the request has been sent between 10:05:00 and 10:19:59 am, energy data is sent for the period from 9:45 to 10:00 am. Likewise, if the request is between 10:20:00 and 10:34:59, data is sent for the period from 10:00 to 10:15 am. The data is aggregated at 5-minute intervals and is rounded to the nearest last 15 minutes interval set.
Request
GET https: //{em_ip_address_or_hostname}/ems/api/org/em/v1/energy/
Parameters
Request | |
em_ip_address or hostname: | The Manage’s IP address or hostname |
Response | |
energy-lighting: | Reports aggregate energy consumption in watt-hour (Wh) for the last 15 minutes for all lighting fixtures managed by the EM |
energy-plugload: | Reports aggregate energy consumption in watt-hour (Wh) for the last 15 minutes for all plugloads managed by the EM |
Sample Code
Using the EM IP address, obtain the aggregate energy consumption for all lighting fixtures and plugloads in the building.
Get https://{192.80.3.2}/ems/api/org/em/v1/energy/ |
Comments
Article is closed for comments.