Skip to content

Commit 8421d99

Browse files
committed
feat: Removed live input/output/cop again as expected API isn't providing live data
1 parent 45a61a9 commit 8421d99

File tree

9 files changed

+0
-429
lines changed

9 files changed

+0
-429
lines changed

_docs/entities/heat_pump.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -82,37 +82,6 @@ This represents the energy/power drawn by the heat pump since commissioning or l
8282

8383
This represents the energy/heat supplied by the heat pump since commissioning or last reset in kWh.
8484

85-
## Live Coefficient of Performance
86-
87-
`sensor.octopus_energy_heat_pump_{{HEAT_PUMP_ID}}_live_cop`
88-
89-
This represents the instantaneous efficiency of the heat pump.
90-
91-
!!! note
92-
As this integration uses cloud polling this will inherently have a delay.
93-
94-
!!! info
95-
96-
This sensor will report zero when the heat pump is not reporting input energy, otherwise the reported COP can be inaccurate.
97-
98-
## Live Energy Input
99-
100-
`sensor.octopus_energy_heat_pump_{{HEAT_PUMP_ID}}_live_energy_input`
101-
102-
This represents the instantaneous energy/power being drawn by the heat pump in kWh.
103-
104-
!!! note
105-
As this integration uses cloud polling this will inherently have a delay.
106-
107-
## Live Energy Output
108-
109-
`sensor.octopus_energy_heat_pump_{{HEAT_PUMP_ID}}_live_energy_output`
110-
111-
This represents the instantaneous energy/heat being supplied by heat pump in kWh.
112-
113-
!!! note
114-
As the integration uses cloud polling this will inherently have a delay.
115-
11685
## Live Outdoor Temperature
11786

11887
`sensor.octopus_energy_heat_pump_{{HEAT_PUMP_ID}}_live_outdoor_temperature`

custom_components/octopus_energy/api_client/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -449,14 +449,6 @@
449449
heatPumpTimeSeriesPerformance(accountNumber: "{account_id}", euid: "{euid}", startAt: "{start_at}", endAt: "{end_at}", performanceGrouping: LIVE) {{
450450
startAt
451451
endAt
452-
energyInput {{
453-
value
454-
unit
455-
}}
456-
energyOutput {{
457-
value
458-
unit
459-
}}
460452
outdoorTemperature {{
461453
value
462454
unit

custom_components/octopus_energy/api_client/heat_pump.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ class HeatPumpLifetimePerformance(BaseModel):
128128
readAt: str
129129

130130
class HeatPumpTimeSeriesPerformance(BaseModel):
131-
energyInput: ValueAndUnit
132-
energyOutput: ValueAndUnit
133131
outdoorTemperature: ValueAndUnit
134132
startAt: str
135133
endAt: str

custom_components/octopus_energy/heat_pump/__init__.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -357,36 +357,18 @@ def mock_heat_pump_status_and_configuration():
357357
},
358358
"heatPumpTimeSeriesPerformance": [
359359
{
360-
"energyInput": {
361-
"unit": "KILOWATT_HOUR",
362-
"value": str(0.5 + (random.randrange(1, 20) * 0.1))
363-
},
364-
"energyOutput": {
365-
"unit": "KILOWATT_HOUR",
366-
"value": str(2 + (random.randrange(1, 20) * 0.1))
367-
},
368360
"outdoorTemperature": {
369361
"unit": "DEGREES_CELSIUS",
370362
"value": str(10 + (random.randrange(1, 20) * 0.1))
371363
},
372-
"coefficientOfPerformance": str(3 + (random.randrange(1, 9) * 0.1)),
373364
"startAt": (now - timedelta(minutes=10)).strftime("%Y-%m-%dT%H:%M:%S.%f%z"),
374365
"endAt": (now - timedelta(minutes=5)).strftime("%Y-%m-%dT%H:%M:%S.%f%z")
375366
},
376367
{
377-
"energyInput": {
378-
"unit": "KILOWATT_HOUR",
379-
"value": str(0.5 + (random.randrange(1, 20) * 0.1))
380-
},
381-
"energyOutput": {
382-
"unit": "KILOWATT_HOUR",
383-
"value": str(2 + (random.randrange(1, 20) * 0.1))
384-
},
385368
"outdoorTemperature": {
386369
"unit": "DEGREES_CELSIUS",
387370
"value": str(10 + (random.randrange(1, 20) * 0.1))
388371
},
389-
"coefficientOfPerformance": str(3 + (random.randrange(1, 9) * 0.1)),
390372
"startAt": (now - timedelta(minutes=5)).strftime("%Y-%m-%dT%H:%M:%S.%f%z"),
391373
"endAt": now.strftime("%Y-%m-%dT%H:%M:%S.%f%z")
392374
}

custom_components/octopus_energy/heat_pump/live_cop.py

Lines changed: 0 additions & 100 deletions
This file was deleted.

custom_components/octopus_energy/heat_pump/live_energy_input.py

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)