Thanks again… Making some progress here…
So, firstly, using
mobile/api/v4/facilities/{serial_number}/emf/v1/devices/NoneGateway-LL_HMU00_0304_flexoTHERM_PR_EBUS?energyType=LIVE_DATA&function=CENTRAL_HEATING&timeRange=DAY&start=2019-05-16&offset=0
gives
{
"errorCode": "IllegalArgumentException"
}
I believe that the energyType=LIVE_DATA is the culprit here. Reason being that
mobile/api/v4/facilities/{serial-number}/emf/v1/devices/NoneGateway-LL_HMU00_0304_flexoTHERM_PR_EBUS?energyType=CONSUMED_ELECTRICAL_POWER&function=CENTRAL_HEATING&timeRange=DAY&start=2019-05-16&offset=2
works just fine with the following output…
{
"body": [
{
"key": "2019-05-14",
"summaryOfValues": 6000,
"dataset": [
{
"key": "2019-05-14 00",
"value": 0
},
{
"key": "2019-05-14 01",
"value": 0
},
{
"key": "2019-05-14 02",
"value": 1000
},
{
"key": "2019-05-14 03",
"value": 2000
},
{
"key": "2019-05-14 04",
"value": 1000
},
{
"key": "2019-05-14 05",
"value": 1000
},
{
"key": "2019-05-14 06",
"value": 0
},
{
"key": "2019-05-14 07",
"value": 0
},
{
"key": "2019-05-14 08",
"value": 0
},
{
"key": "2019-05-14 09",
"value": 0
},
{
"key": "2019-05-14 10",
"value": 0
},
{
"key": "2019-05-14 11",
"value": 0
},
{
"key": "2019-05-14 12",
"value": 0
},
{
"key": "2019-05-14 13",
"value": 0
},
{
"key": "2019-05-14 14",
"value": 0
},
{
"key": "2019-05-14 15",
"value": 0
},
{
"key": "2019-05-14 16",
"value": 0
},
{
"key": "2019-05-14 17",
"value": 0
},
{
"key": "2019-05-14 18",
"value": 0
},
{
"key": "2019-05-14 19",
"value": 0
},
{
"key": "2019-05-14 20",
"value": 1000
},
{
"key": "2019-05-14 21",
"value": 0
},
{
"key": "2019-05-14 22",
"value": 0
},
{
"key": "2019-05-14 23",
"value": 0
}
]
},
{
"key": "2019-05-15",
"summaryOfValues": 6000,
"dataset": [
{
"key": "2019-05-15 00",
"value": 1000
},
{
"key": "2019-05-15 01",
"value": 0
},
{
"key": "2019-05-15 02",
"value": 0
},
{
"key": "2019-05-15 03",
"value": 0
},
{
"key": "2019-05-15 04",
"value": 2000
},
{
"key": "2019-05-15 05",
"value": 1000
},
{
"key": "2019-05-15 06",
"value": 1000
},
{
"key": "2019-05-15 07",
"value": 0
},
{
"key": "2019-05-15 08",
"value": 0
},
{
"key": "2019-05-15 09",
"value": 0
},
{
"key": "2019-05-15 10",
"value": 0
},
{
"key": "2019-05-15 11",
"value": 0
},
{
"key": "2019-05-15 12",
"value": 0
},
{
"key": "2019-05-15 13",
"value": 0
},
{
"key": "2019-05-15 14",
"value": 0
},
{
"key": "2019-05-15 15",
"value": 0
},
{
"key": "2019-05-15 16",
"value": 0
},
{
"key": "2019-05-15 17",
"value": 0
},
{
"key": "2019-05-15 18",
"value": 0
},
{
"key": "2019-05-15 19",
"value": 1000
},
{
"key": "2019-05-15 20",
"value": 0
},
{
"key": "2019-05-15 21",
"value": 0
},
{
"key": "2019-05-15 22",
"value": 0
},
{
"key": "2019-05-15 23",
"value": 0
}
]
},
{
"key": "2019-05-16",
"summaryOfValues": 6000,
"dataset": [
{
"key": "2019-05-16 00",
"value": 1000
},
{
"key": "2019-05-16 01",
"value": 0
},
{
"key": "2019-05-16 02",
"value": 0
},
{
"key": "2019-05-16 03",
"value": 0
},
{
"key": "2019-05-16 04",
"value": 0
},
{
"key": "2019-05-16 05",
"value": 0
},
{
"key": "2019-05-16 06",
"value": 2000
},
{
"key": "2019-05-16 07",
"value": 1000
},
{
"key": "2019-05-16 08",
"value": 0
},
{
"key": "2019-05-16 09",
"value": 0
},
{
"key": "2019-05-16 10",
"value": 0
},
{
"key": "2019-05-16 11",
"value": 0
},
{
"key": "2019-05-16 12",
"value": 0
},
{
"key": "2019-05-16 13",
"value": 0
},
{
"key": "2019-05-16 14",
"value": 0
},
{
"key": "2019-05-16 15",
"value": 0
},
{
"key": "2019-05-16 16",
"value": 1000
},
{
"key": "2019-05-16 17",
"value": 0
},
{
"key": "2019-05-16 18",
"value": 0
},
{
"key": "2019-05-16 19",
"value": 0
},
{
"key": "2019-05-16 20",
"value": 0
},
{
"key": "2019-05-16 21",
"value": 0
},
{
"key": "2019-05-16 22",
"value": 1000
},
{
"key": "2019-05-16 23",
"value": 0
}
]
},
{
"key": "2019-05-17",
"summaryOfValues": 4000,
"dataset": [
{
"key": "2019-05-17 00",
"value": 0
},
{
"key": "2019-05-17 01",
"value": 0
},
{
"key": "2019-05-17 02",
"value": 0
},
{
"key": "2019-05-17 03",
"value": 0
},
{
"key": "2019-05-17 04",
"value": 0
},
{
"key": "2019-05-17 05",
"value": 1000
},
{
"key": "2019-05-17 06",
"value": 1000
},
{
"key": "2019-05-17 07",
"value": 1000
},
{
"key": "2019-05-17 08",
"value": 0
},
{
"key": "2019-05-17 09",
"value": 0
},
{
"key": "2019-05-17 10",
"value": 0
},
{
"key": "2019-05-17 11",
"value": 1000
},
{
"key": "2019-05-17 12",
"value": 0
},
{
"key": "2019-05-17 13",
"value": null
},
{
"key": "2019-05-17 14",
"value": null
},
{
"key": "2019-05-17 15",
"value": null
},
{
"key": "2019-05-17 16",
"value": null
},
{
"key": "2019-05-17 17",
"value": null
},
{
"key": "2019-05-17 18",
"value": null
},
{
"key": "2019-05-17 19",
"value": null
},
{
"key": "2019-05-17 20",
"value": null
},
{
"key": "2019-05-17 21",
"value": null
},
{
"key": "2019-05-17 22",
"value": null
},
{
"key": "2019-05-17 23",
"value": null
}
]
},
{
"key": "2019-05-18",
"summaryOfValues": null,
"dataset": [
{
"key": "2019-05-18 00",
"value": null
},
{
"key": "2019-05-18 01",
"value": null
},
{
"key": "2019-05-18 02",
"value": null
},
{
"key": "2019-05-18 03",
"value": null
},
{
"key": "2019-05-18 04",
"value": null
},
{
"key": "2019-05-18 05",
"value": null
},
{
"key": "2019-05-18 06",
"value": null
},
{
"key": "2019-05-18 07",
"value": null
},
{
"key": "2019-05-18 08",
"value": null
},
{
"key": "2019-05-18 09",
"value": null
},
{
"key": "2019-05-18 10",
"value": null
},
{
"key": "2019-05-18 11",
"value": null
},
{
"key": "2019-05-18 12",
"value": null
},
{
"key": "2019-05-18 13",
"value": null
},
{
"key": "2019-05-18 14",
"value": null
},
{
"key": "2019-05-18 15",
"value": null
},
{
"key": "2019-05-18 16",
"value": null
},
{
"key": "2019-05-18 17",
"value": null
},
{
"key": "2019-05-18 18",
"value": null
},
{
"key": "2019-05-18 19",
"value": null
},
{
"key": "2019-05-18 20",
"value": null
},
{
"key": "2019-05-18 21",
"value": null
},
{
"key": "2019-05-18 22",
"value": null
},
{
"key": "2019-05-18 23",
"value": null
}
]
}
],
"meta": {}
}
Note that the offset shows additional sets of data for the previous periods to that requested. So in my example, I requested a data set of DAY = 16th May 2019, with an offset of 0, I only get 1 set of data for the 16th of May 2019. With an offset of 2, I also get datasets for 15th and 14th May as per the results above. Note that 6 is the maximum allowed, 7 or greater will cause an
{
"errorCode": "INVALID_REPORT_PARAMETER"
}
I have also tried using the following energy types…
LIVE_DATA - Error
CONSUMED_PRIMARY_ENERGY, dataset returned but all values null, maybe correct for CENTRAL_HEATING?
ENVIRONMENTAL_YIELD (results below - using offset 0 to save space)
{
“body”: [
{
“key”: “2019-05-16”,
“summaryOfValues”: 18000,
“dataset”: [
{
“key”: “2019-05-16 00”,
“value”: 2000
},
{
“key”: “2019-05-16 01”,
“value”: 0
},
{
“key”: “2019-05-16 02”,
“value”: 0
},
{
“key”: “2019-05-16 03”,
“value”: 0
},
{
“key”: “2019-05-16 04”,
“value”: 0
},
{
“key”: “2019-05-16 05”,
“value”: 1000
},
{
“key”: “2019-05-16 06”,
“value”: 5000
},
{
“key”: “2019-05-16 07”,
“value”: 2000
},
{
“key”: “2019-05-16 08”,
“value”: 0
},
{
“key”: “2019-05-16 09”,
“value”: 0
},
{
“key”: “2019-05-16 10”,
“value”: 0
},
{
“key”: “2019-05-16 11”,
“value”: 0
},
{
“key”: “2019-05-16 12”,
“value”: 1000
},
{
“key”: “2019-05-16 13”,
“value”: 0
},
{
“key”: “2019-05-16 14”,
“value”: 0
},
{
“key”: “2019-05-16 15”,
“value”: 0
},
{
“key”: “2019-05-16 16”,
“value”: 3000
},
{
“key”: “2019-05-16 17”,
“value”: 0
},
{
“key”: “2019-05-16 18”,
“value”: 0
},
{
“key”: “2019-05-16 19”,
“value”: 2000
},
{
“key”: “2019-05-16 20”,
“value”: 0
},
{
“key”: “2019-05-16 21”,
“value”: 0
},
{
“key”: “2019-05-16 22”,
“value”: 2000
},
{
“key”: “2019-05-16 23”,
“value”: 0
}
]
}
],
“meta”: {}
}
SOLAR_YIELD / GRID_FEED_IN_ENERGY / SELF_CONSUMED_ENERGY / EARNED_PV_ENERGY
- all dataset returned but all values null, probably correct for CENTRAL_HEATING?
I need to verify if the numbers returned under CONSUMED_ELECTRICAL_POWER reflect what my device shows and I’d still like to find the numbers for LIVE_DATA if we only knew the correct paramter name.