OK. I guess that will be me then.
Diagnostic EAST plane:
{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2022.7.6",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.10.5",
"docker": true,
"arch": "aarch64",
"timezone": "Europe/London",
"os_name": "Linux",
"os_version": "5.15.45",
"supervisor": "2022.07.0",
"host_os": "Home Assistant OS 8.2",
"docker_version": "20.10.14",
"chassis": "embedded",
"run_as_root": true
},
"custom_components": {
"nodered": {
"version": "1.0.4",
"requirements": []
},
"octopus_energy": {
"version": "4.1.3",
"requirements": []
}
},
"integration_manifest": {
"domain": "forecast_solar",
"name": "Forecast.Solar",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/forecast_solar",
"requirements": [
"forecast_solar==2.2.0"
],
"codeowners": [
"@klaasnicolaas",
"@frenck"
],
"quality_scale": "platinum",
"iot_class": "cloud_polling",
"is_built_in": true
},
"data": {
"entry": {
"title": "WH East",
"data": {
"latitude": "**REDACTED**",
"longitude": "**REDACTED**"
},
"options": {
"declination": 35,
"azimuth": 73,
"modules power": 2150,
"damping": 0.0
}
},
"data": {
"energy_production_today": 14783,
"energy_production_tomorrow": 2716,
"energy_current_hour": 277,
"power_production_now": 215,
"watts": {
"2022-07-21T05:15:00+01:00": 0,
"2022-07-21T06:00:00+01:00": 617,
"2022-07-21T07:00:00+01:00": 1098,
"2022-07-21T08:00:00+01:00": 1462,
"2022-07-21T09:00:00+01:00": 1685,
"2022-07-21T10:00:00+01:00": 1757,
"2022-07-21T11:00:00+01:00": 1725,
"2022-07-21T12:00:00+01:00": 1595,
"2022-07-21T13:00:00+01:00": 1372,
"2022-07-21T14:00:00+01:00": 1136,
"2022-07-21T15:00:00+01:00": 806,
"2022-07-21T16:00:00+01:00": 523,
"2022-07-21T17:00:00+01:00": 425,
"2022-07-21T18:00:00+01:00": 340,
"2022-07-21T19:00:00+01:00": 215,
"2022-07-21T20:00:00+01:00": 93,
"2022-07-21T21:00:00+01:00": 17,
"2022-07-21T21:17:00+01:00": 0,
"2022-07-22T05:17:00+01:00": 0,
"2022-07-22T06:00:00+01:00": 6,
"2022-07-22T07:00:00+01:00": 35,
"2022-07-22T08:00:00+01:00": 49,
"2022-07-22T09:00:00+01:00": 24,
"2022-07-22T10:00:00+01:00": 27,
"2022-07-22T11:00:00+01:00": 29,
"2022-07-22T12:00:00+01:00": 188,
"2022-07-22T13:00:00+01:00": 323,
"2022-07-22T14:00:00+01:00": 367,
"2022-07-22T15:00:00+01:00": 404,
"2022-07-22T16:00:00+01:00": 323,
"2022-07-22T17:00:00+01:00": 343,
"2022-07-22T18:00:00+01:00": 277,
"2022-07-22T19:00:00+01:00": 207,
"2022-07-22T20:00:00+01:00": 102,
"2022-07-22T21:00:00+01:00": 20,
"2022-07-22T21:15:00+01:00": 0
},
"wh_days": {
"2022-07-21T00:00:00": 14783,
"2022-07-22T00:00:00": 2716
},
"wh_hours": {
"2022-07-21T05:15:00+01:00": 0,
"2022-07-21T06:00:00+01:00": 231,
"2022-07-21T07:00:00+01:00": 858,
"2022-07-21T08:00:00+01:00": 1280,
"2022-07-21T09:00:00+01:00": 1573,
"2022-07-21T10:00:00+01:00": 1721,
"2022-07-21T11:00:00+01:00": 1741,
"2022-07-21T12:00:00+01:00": 1660,
"2022-07-21T13:00:00+01:00": 1484,
"2022-07-21T14:00:00+01:00": 1254,
"2022-07-21T15:00:00+01:00": 971,
"2022-07-21T16:00:00+01:00": 664,
"2022-07-21T17:00:00+01:00": 474,
"2022-07-21T18:00:00+01:00": 383,
"2022-07-21T19:00:00+01:00": 277,
"2022-07-21T20:00:00+01:00": 154,
"2022-07-21T21:00:00+01:00": 55,
"2022-07-21T21:17:00+01:00": 3,
"2022-07-22T05:17:00+01:00": 0,
"2022-07-22T06:00:00+01:00": 2,
"2022-07-22T07:00:00+01:00": 21,
"2022-07-22T08:00:00+01:00": 42,
"2022-07-22T09:00:00+01:00": 36,
"2022-07-22T10:00:00+01:00": 26,
"2022-07-22T11:00:00+01:00": 28,
"2022-07-22T12:00:00+01:00": 108,
"2022-07-22T13:00:00+01:00": 256,
"2022-07-22T14:00:00+01:00": 345,
"2022-07-22T15:00:00+01:00": 385,
"2022-07-22T16:00:00+01:00": 364,
"2022-07-22T17:00:00+01:00": 333,
"2022-07-22T18:00:00+01:00": 310,
"2022-07-22T19:00:00+01:00": 242,
"2022-07-22T20:00:00+01:00": 154,
"2022-07-22T21:00:00+01:00": 61,
"2022-07-22T21:15:00+01:00": 3
}
},
"account": {
"type": "public",
"rate_limit": 12,
"timezone": "Europe/London"
}
}
}
API direct call
{
"watts":{
"2022-07-21 05:15:00":0,
"2022-07-21 06:00:00":617,
"2022-07-21 07:00:00":1098,
"2022-07-21 08:00:00":1462,
"2022-07-21 09:00:00":1688,
"2022-07-21 10:00:00":1769,
"2022-07-21 11:00:00":1735,
"2022-07-21 12:00:00":1601,
"2022-07-21 13:00:00":1370,
"2022-07-21 14:00:00":1135,
"2022-07-21 15:00:00":834,
"2022-07-21 16:00:00":552,
"2022-07-21 17:00:00":424,
"2022-07-21 18:00:00":339,
"2022-07-21 19:00:00":225,
"2022-07-21 20:00:00":92,
"2022-07-21 21:00:00":16,
"2022-07-21 21:17:00":0,
"2022-07-22 05:17:00":0,
"2022-07-22 06:00:00":38,
"2022-07-22 07:00:00":51,
"2022-07-22 08:00:00":19,
"2022-07-22 09:00:00":115,
"2022-07-22 10:00:00":222,
"2022-07-22 11:00:00":185,
"2022-07-22 12:00:00":324,
"2022-07-22 13:00:00":331,
"2022-07-22 14:00:00":392,
"2022-07-22 15:00:00":422,
"2022-07-22 16:00:00":385,
"2022-07-22 17:00:00":298,
"2022-07-22 18:00:00":274,
"2022-07-22 19:00:00":200,
"2022-07-22 20:00:00":101,
"2022-07-22 21:00:00":20,
"2022-07-22 21:15:00":0
},
"watt_hours":{
"2022-07-21 05:15:00":0,
"2022-07-21 06:00:00":231,
"2022-07-21 07:00:00":1089,
"2022-07-21 08:00:00":2369,
"2022-07-21 09:00:00":3944,
"2022-07-21 10:00:00":5672,
"2022-07-21 11:00:00":7424,
"2022-07-21 12:00:00":9092,
"2022-07-21 13:00:00":10578,
"2022-07-21 14:00:00":11830,
"2022-07-21 15:00:00":12815,
"2022-07-21 16:00:00":13508,
"2022-07-21 17:00:00":13996,
"2022-07-21 18:00:00":14377,
"2022-07-21 19:00:00":14659,
"2022-07-21 20:00:00":14818,
"2022-07-21 21:00:00":14872,
"2022-07-21 21:17:00":14874,
"2022-07-22 05:17:00":0,
"2022-07-22 06:00:00":14,
"2022-07-22 07:00:00":58,
"2022-07-22 08:00:00":93,
"2022-07-22 09:00:00":160,
"2022-07-22 10:00:00":329,
"2022-07-22 11:00:00":532,
"2022-07-22 12:00:00":787,
"2022-07-22 13:00:00":1114,
"2022-07-22 14:00:00":1476,
"2022-07-22 15:00:00":1883,
"2022-07-22 16:00:00":2286,
"2022-07-22 17:00:00":2628,
"2022-07-22 18:00:00":2914,
"2022-07-22 19:00:00":3151,
"2022-07-22 20:00:00":3301,
"2022-07-22 21:00:00":3362,
"2022-07-22 21:15:00":3364
},
"watt_hours_day":{
"2022-07-21":14874,
"2022-07-22":3364
}
}
Diagnostic WEST plane
{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2022.7.6",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.10.5",
"docker": true,
"arch": "aarch64",
"timezone": "Europe/London",
"os_name": "Linux",
"os_version": "5.15.45",
"supervisor": "2022.07.0",
"host_os": "Home Assistant OS 8.2",
"docker_version": "20.10.14",
"chassis": "embedded",
"run_as_root": true
},
"custom_components": {
"nodered": {
"version": "1.0.4",
"requirements": []
},
"octopus_energy": {
"version": "4.1.3",
"requirements": []
}
},
"integration_manifest": {
"domain": "forecast_solar",
"name": "Forecast.Solar",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/forecast_solar",
"requirements": [
"forecast_solar==2.2.0"
],
"codeowners": [
"@klaasnicolaas",
"@frenck"
],
"quality_scale": "platinum",
"iot_class": "cloud_polling",
"is_built_in": true
},
"data": {
"entry": {
"title": "WH West",
"data": {
"latitude": "**REDACTED**",
"longitude": "**REDACTED**"
},
"options": {
"declination": 35,
"azimuth": 253,
"modules power": 2150,
"damping": 0.0
}
},
"data": {
"energy_production_today": 15465,
"energy_production_tomorrow": 5601,
"energy_current_hour": 780,
"power_production_now": 565,
"watts": {
"2022-07-21T05:15:00+01:00": 0,
"2022-07-21T06:00:00+01:00": 127,
"2022-07-21T07:00:00+01:00": 237,
"2022-07-21T08:00:00+01:00": 343,
"2022-07-21T09:00:00+01:00": 554,
"2022-07-21T10:00:00+01:00": 917,
"2022-07-21T11:00:00+01:00": 1298,
"2022-07-21T12:00:00+01:00": 1620,
"2022-07-21T13:00:00+01:00": 1823,
"2022-07-21T14:00:00+01:00": 1990,
"2022-07-21T15:00:00+01:00": 1846,
"2022-07-21T16:00:00+01:00": 1576,
"2022-07-21T17:00:00+01:00": 1335,
"2022-07-21T18:00:00+01:00": 995,
"2022-07-21T19:00:00+01:00": 565,
"2022-07-21T20:00:00+01:00": 222,
"2022-07-21T21:00:00+01:00": 51,
"2022-07-21T21:17:00+01:00": 0,
"2022-07-22T05:17:00+01:00": 0,
"2022-07-22T06:00:00+01:00": 2,
"2022-07-22T07:00:00+01:00": 12,
"2022-07-22T08:00:00+01:00": 19,
"2022-07-22T09:00:00+01:00": 14,
"2022-07-22T10:00:00+01:00": 19,
"2022-07-22T11:00:00+01:00": 24,
"2022-07-22T12:00:00+01:00": 189,
"2022-07-22T13:00:00+01:00": 412,
"2022-07-22T14:00:00+01:00": 590,
"2022-07-22T15:00:00+01:00": 849,
"2022-07-22T16:00:00+01:00": 882,
"2022-07-22T17:00:00+01:00": 1002,
"2022-07-22T18:00:00+01:00": 764,
"2022-07-22T19:00:00+01:00": 539,
"2022-07-22T20:00:00+01:00": 247,
"2022-07-22T21:00:00+01:00": 60,
"2022-07-22T21:15:00+01:00": 0
},
"wh_days": {
"2022-07-21T00:00:00": 15465,
"2022-07-22T00:00:00": 5601
},
"wh_hours": {
"2022-07-21T05:15:00+01:00": 0,
"2022-07-21T06:00:00+01:00": 48,
"2022-07-21T07:00:00+01:00": 182,
"2022-07-21T08:00:00+01:00": 290,
"2022-07-21T09:00:00+01:00": 448,
"2022-07-21T10:00:00+01:00": 736,
"2022-07-21T11:00:00+01:00": 1107,
"2022-07-21T12:00:00+01:00": 1459,
"2022-07-21T13:00:00+01:00": 1722,
"2022-07-21T14:00:00+01:00": 1906,
"2022-07-21T15:00:00+01:00": 1918,
"2022-07-21T16:00:00+01:00": 1711,
"2022-07-21T17:00:00+01:00": 1456,
"2022-07-21T18:00:00+01:00": 1165,
"2022-07-21T19:00:00+01:00": 780,
"2022-07-21T20:00:00+01:00": 393,
"2022-07-21T21:00:00+01:00": 137,
"2022-07-21T21:17:00+01:00": 7,
"2022-07-22T05:17:00+01:00": 0,
"2022-07-22T06:00:00+01:00": 1,
"2022-07-22T07:00:00+01:00": 7,
"2022-07-22T08:00:00+01:00": 15,
"2022-07-22T09:00:00+01:00": 17,
"2022-07-22T10:00:00+01:00": 16,
"2022-07-22T11:00:00+01:00": 22,
"2022-07-22T12:00:00+01:00": 106,
"2022-07-22T13:00:00+01:00": 301,
"2022-07-22T14:00:00+01:00": 501,
"2022-07-22T15:00:00+01:00": 719,
"2022-07-22T16:00:00+01:00": 866,
"2022-07-22T17:00:00+01:00": 942,
"2022-07-22T18:00:00+01:00": 883,
"2022-07-22T19:00:00+01:00": 651,
"2022-07-22T20:00:00+01:00": 393,
"2022-07-22T21:00:00+01:00": 154,
"2022-07-22T21:15:00+01:00": 7
}
},
"account": {
"type": "public",
"rate_limit": 12,
"timezone": "Europe/London"
}
}
}
API direct call (West)
{
"watts":{
"2022-07-21 05:15:00":0,
"2022-07-21 06:00:00":127,
"2022-07-21 07:00:00":237,
"2022-07-21 08:00:00":343,
"2022-07-21 09:00:00":553,
"2022-07-21 10:00:00":916,
"2022-07-21 11:00:00":1301,
"2022-07-21 12:00:00":1626,
"2022-07-21 13:00:00":1818,
"2022-07-21 14:00:00":1998,
"2022-07-21 15:00:00":1934,
"2022-07-21 16:00:00":1681,
"2022-07-21 17:00:00":1331,
"2022-07-21 18:00:00":995,
"2022-07-21 19:00:00":603,
"2022-07-21 20:00:00":220,
"2022-07-21 21:00:00":49,
"2022-07-21 21:17:00":0,
"2022-07-22 05:17:00":0,
"2022-07-22 06:00:00":10,
"2022-07-22 07:00:00":16,
"2022-07-22 08:00:00":10,
"2022-07-22 09:00:00":49,
"2022-07-22 10:00:00":128,
"2022-07-22 11:00:00":145,
"2022-07-22 12:00:00":326,
"2022-07-22 13:00:00":422,
"2022-07-22 14:00:00":633,
"2022-07-22 15:00:00":887,
"2022-07-22 16:00:00":1066,
"2022-07-22 17:00:00":856,
"2022-07-22 18:00:00":753,
"2022-07-22 19:00:00":516,
"2022-07-22 20:00:00":245,
"2022-07-22 21:00:00":60,
"2022-07-22 21:15:00":0
},
"watt_hours":{
"2022-07-21 05:15:00":0,
"2022-07-21 06:00:00":48,
"2022-07-21 07:00:00":230,
"2022-07-21 08:00:00":520,
"2022-07-21 09:00:00":968,
"2022-07-21 10:00:00":1702,
"2022-07-21 11:00:00":2811,
"2022-07-21 12:00:00":4274,
"2022-07-21 13:00:00":5996,
"2022-07-21 14:00:00":7904,
"2022-07-21 15:00:00":9870,
"2022-07-21 16:00:00":11678,
"2022-07-21 17:00:00":13184,
"2022-07-21 18:00:00":14347,
"2022-07-21 19:00:00":15146,
"2022-07-21 20:00:00":15557,
"2022-07-21 21:00:00":15692,
"2022-07-21 21:17:00":15699,
"2022-07-22 05:17:00":0,
"2022-07-22 06:00:00":4,
"2022-07-22 07:00:00":17,
"2022-07-22 08:00:00":30,
"2022-07-22 09:00:00":59,
"2022-07-22 10:00:00":148,
"2022-07-22 11:00:00":284,
"2022-07-22 12:00:00":520,
"2022-07-22 13:00:00":894,
"2022-07-22 14:00:00":1421,
"2022-07-22 15:00:00":2181,
"2022-07-22 16:00:00":3158,
"2022-07-22 17:00:00":4119,
"2022-07-22 18:00:00":4923,
"2022-07-22 19:00:00":5558,
"2022-07-22 20:00:00":5938,
"2022-07-22 21:00:00":6091,
"2022-07-22 21:15:00":6098
},
"watt_hours_day":{
"2022-07-21":15699,
"2022-07-22":6098
}
}
Current energy graph (screen shot)
Calculations:
API calls and diagnostics appear to align (within slight tolerance - both updated at around the same time)
Watts - East and West. Sunrise is correct at 5:15
5:15 - 0 & 0 (sunrise)
6:00 - 617 & 127
7:00 -1098 & 237
8:00 - 1462 & 343
I assume that this is the POWER at the hour.
The watt-hour will be the average of the two powers at the hours
ie for 6:00 to 7:00 = (617+1098)/2 = 858 (east) and 182 (west)
Compare to the API/diagnostic…
Watt-hours (for East & West)
API call (cumulative watt-hours)
6:00 = 231 / 48
7:00 = 1089 / 230
Diagnostic (which shows the difference not the cumulative)
7:00 = 858 / 182
which is indeed 1089-231 and 230-48
So for the hour 6:00 to 7:00 the watt-hours are clearly 858 and 182 (ie at 5:15 nothing, at 6:00 231, at 7:00 1089, increase of 858 during that hour)
The energy graph, being the sum of the two, is showing for 7:00 to 8:00 as 1.04 kWh or 1040
858+182 = 1040
Therefore the calculations are correct. API agrees with diagnostic agrees with watts to watt-hour calculation agrees with cumulative to difference.
Here is the bit that I have the problem with.
If the cumulative energy (east plane only) at 7:00 is 1089, and at 6:00 231, then the difference 858 applies between 6:00 and 7:00, but this is being shown on the graph for 7:00 to 8:00
Or have I completely lost the plot here?