Open henrik-brodtkorb opened 1 day ago
Looking through the source code updating the parsing regex for the weighting is related. https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/blob/ffb8911dd0e6189f1573c5e5677b4a8b238f64af/custom_components/octopus_energy/const.py#L156C8-L156C9
e.g. REGEX_WEIGHTING_NUMBERS = r"([0-9]+(\.[0-9]{1,2})?)"
Describe the feature
First of off, thanks for building and maintaining the Octopus Energy HA integration.
This feature request is to allow decimal numbers for the weighting. This will allow for more accurate weighting.
Expected behaviour
Given the example in the docs:
Extending this, we have
1, 1, 1.2, 1
applies a weighting of 1 to the first, second and fourth slot and a weighting of 1.2 to the third slot. (spaces in the input added for clarity)1.2, *
applies a weighting of 1.2 to the first slot, and a weighting of 1 to the remaining slots (spaces in the input added for clarity)Use Case
The use for me personally is more accurate modelling of how my heat pump consumes energy. I have both under floor heating and DHW generated by the heat pump.
My DHW cycle takes around 1 hour to complete, meaning two slots. The second slot uses about 20% more energy than the first. I'd use a config of
1, 1.2
. I currently solve this by having weights5, 6
.My second use case is when the heat pump is running UFH. I typically have the heating on for 3-5 hours twice a day in winter. The heat pump is slightly less efficient when it starts (in the first period) than the later periods and consumes slightly more electricity. In this case I would want a config to say
1.1, *
. I don't see that this use case would be supported otherwise.Confirmation