Monitoring results from a 5kW Ecodan heat pump

You can tell I was really happy with this code @abbbbbottttt:


def getEnergy(self):
    # TODO: Misses the last hour because of BST
    for i in [-2, -1, 0]:
        fromDay = datetime.date.today() + datetime.timedelta(days=i)

        fromDate = "{:%Y-%m-%dT%H:%M:%S}".format(fromDay)
        argh = {
            "DeviceId": 191113,
            "FromDate": fromDate,
            "ToDate": fromDate,
        }  # "UseCurrency":False
        energyJSON = self.getContent("EnergyCost/Report", argh)
2 Likes

@MyForest Thank you. Out of interest, how come the readings, if you’re just comparing current to previous?

Hey @abbbbbottttt

I was actually capturing these readings for some other purpose. It was only when the other ones vanished that I started using this one for working out the energy delta.

@MyForest Thank you. I’m really close to having everything up and running now but I seem to be getting all 0 values when I run the Energy Report for today:

{
    "DeviceId": 27496155,
    "FromDate": "2022-09-27T00:00:00",
    "ToDate": "2022-09-27T00:00:00"
}
    "TotalHeatingConsumed": 0.0,
    "TotalCoolingConsumed": 0.0,
    "TotalHotWaterConsumed": 0.0,
    "TotalHeatingProduced": 0.0,
    "TotalCoolingProduced": 0.0,
    "TotalHotWaterProduced": 0.0,
    "AverageInternalTemperature": 0.0,
    "AverageExternalTemperature": 0.0,

Hi @abbbbbottttt

That is odd.

You have averages in your list that I don’t have. Mine is an FTC5, I’m assuming yours is an FTC6.

Do you see the data you’d expect in MELCloud itself?

Here’s what I just received from mine:

{
    "CoP": [
        2.3514739229024944,
        1.9417523250122368,
        0.0,
        0.0,
        0.0,
        0.0,
        3.481743227326266,
        3.8357142857142854,
        3.0056777856635915,
        3.6079545454545454,
        0.0
    ],
    "DeviceName": "Ecodan",
    "FromDate": "2022-09-27T00:00:00",
    "Heating": [
        0.416,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.698,
        0.28,
        0.817,
        0.528,
        0.004
    ],
    "HotWater": [
        0.466,
        2.043,
        0.015,
        0.01,
        0.016,
        0.017,
        0.0,
        0.0,
        0.592,
        0.0,
        0.0
    ],
    "MissingMinutes": -660,
    "ProducedHeating": [
        1.247,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        5.912,
        1.074,
        2.967,
        1.905,
        0.0
    ],
    "ProducedHotWater": [
        0.827,
        3.967,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        0.0,
        1.268,
        0.0,
        0.0
    ],
    "Status": 0,
    "ToDate": "2022-09-27T00:00:00Z",
    "TotalHeatingConsumed": 3.7430000000000003,
    "TotalHeatingProduced": 13.105,
    "TotalHotWaterConsumed": 3.1590000000000003,
    "TotalHotWaterProduced": 6.062
}

@MyForest - Yes, FTC6. Unfortunately, I don’t seem to see the energy report for today either which is a bit disappointing. So it looks like I’m left without the capability to get up-to-date energy use at the moment. Thanks for all your help!