EcoPhi API: Accessing data
All about which values you can retrieve and how to do it.
List all devices
Headers:
Example response:
Content type: application/json
device_ids
: all available device ids
List all resources of a device
$DEVICE-ID
: one of the device ids returned by the previous method
Example request: GET https://api.ecophi.de/m156495/resources
Headers:
Example response:
Content type: application/json
device_id
: the requested device idresource_ids
: all available resource ids of that device (for most users, only the resourceall_data
is available)
List all values of a resource
$DEVICE-ID
: one of the available device ids$RESOURCE-ID
: one of the resources returned by the previous method
Example request: GET https://api.ecophi.de/m156495/all_data/values
Headers:
Example response:
Content type: application/json
device_id
: the requested device idresource_id
: the requested resource idvalues
: all available value ids of that resource
Available values
Which values are available largely depends on what is monitored with your EcoPhi system: for example which sensors are connected (temperature, humidity, irradiation, etc.) or what the make of your inverter is. The possible values are just as versatile as the EcoPhi monitoring.
However, there are values that are present for each device:
Meta
values_id
: Most often the Modbus ID; identifier for a specific readout on device level (can be used to filter for the values of one specific readout, values of other readouts will beNULL
in that row)protocol_id
: The id of the selected readout protocol
Alerts
alarm_index
: Unique - on device level - ID of a triggered alertalarm_name
: Name of the triggered alert
Energy
-
e_03_07_04_000_total_solar_energy
: All energy from solar inverters combined (in kWh) -
e_03_07_04_000_total_load_energy
: All energy which goes to the load combined (in kWh) -
e_03_07_04_000_total_battery_energy
: All energy from battery inverters combined (in kWh) -
e_03_07_04_000_genset_energy
: All energy from gensets combined (in kWh) -
e_03_07_04_000_total_export_energy
: All energy which has been exported (in kWh) -
e_03_07_04_000_total_other_energy
: All energy from other sources - which will mainly be the grid - combined (in kWh)
Power
-
e_03_01_00_000_total_solar_power
: All power from solar inverters combined (in kW) -
e_03_01_00_000_total_load_power
: All power which goes to the load combined (in kW) -
e_03_01_00_000_total_battery_power
: All power from battery inverters combined (in kW) -
e_03_01_00_000_genset_power
: All power from gensets combined (in kW) -
e_03_01_00_000_total_other_power
: All power from other sources - which will mainly be the grid - combined (in kW)
Calculated savings
-
e_00_00_04_000_money_saved
: Money saved according to total solar energy and the set multiplier (changing the multiplier will only affect future values) -
e_00_00_04_000_revenue_created
: Revenue created according to total solar energy and the selected multiplier (changing the multiplier will only affect future values) -
e_03_23_04_000_CO2_saved
: CO2 saved according to total solar energy and the selected multiplier (changing the multiplier will only affect future values) -
e_00_00_04_000_trees_saved
: Trees saved according to total solar energy and the selected multiplier (changing the multiplier will only affect future values)
Calculation parameters
-
e_00_00_00_000_money_per_kWh
: the set multiplier for money saved at that time -
e_00_00_00_000_revenue_per_kWh
: the set multiplier for revenue created at that time -
e_00_00_00_000_CO2_saved_per_kWh
: the set multiplier for CO2 saved at that time -
e_00_00_00_000_trees_saved_per_kWh
: the set multiplier for trees saved at that time
Audit Box only
e_00_00_00_000_days_remaining
: Remaining credit of days for monitoring
Value name explanation
The value names contain codes that describe the value behind it.
Example: e_03_02_00_001_AC_activepower_L1
Unit Prefix | Unit | Value Type | Values ID | Name | |
---|---|---|---|---|---|
e | 03 | 02 | 00 | 001 | AC_activepower_L1 |
Unit prefix
Code | Meaning |
---|---|
00 | none |
01 | m |
02 | M |
03 | k |
Unit
Code | Meaning |
---|---|
00 | none |
01 | W |
02 | V |
03 | A |
04 | °C |
05 | % |
06 | Hz |
07 | Wh |
08 | Varh |
09 | VA |
10 | pH |
11 | bar |
12 | W/m² |
13 | RPM |
14 | m³/h |
15 | var |
16 | h |
17 | Degree |
18 | m/Min |
19 | liter |
20 | m |
21 | Ohm |
22 | Pa |
23 | g |
24 | min |
25 | day |
26 | month |
27 | Ah |
28 | byte |
29 | m/s |
30 | Vah |
Value Type
Code | Meaning |
---|---|
00 | continous |
01 | pulse |
02 | digital |
03 | text |
04 | cumulative |
05 | cumulative with reset every day |
06 | status |
Values ID
This is most often the Modbus ID. It can also be present as a value itself (values_id
; see above under Available values).
Get data
$DEVICE-ID
: one of the available device ids$RESOURCE-ID
: one of the available resource ids
Query parameters:
$VALUE-LIST
: one value or several values separated by commas (important: no spaces)$FROM
: start of the time interval from which the data should be retrieved in the formatYYYYMMDDTHHMMSS
in UTC$to
: end of the time interval from which the data should be retrieved in the formatYYYYMMDDTHHMMSS
in UTC
Example request:
Limits per request:
- maximum number of values: 20
- maximum time interval: 7 days
Headers:
Example response:
Content type: application/json
timestamp
: UTC timestampvalues_id
: always provided in response, DO NOT request it in the$VALUE-LIST