Closed teun95 closed 6 months ago
I think there are two options for a fix:
tariff
in the case of Octopus Energy refers to the product code. I think this is undesirable as it is more of a workaround.tariffcode
or productcode
and update /tariff/octopus/api.go to reflect this. Tariff can then be deprecated in time. I do not have enough knowledge of the octopus energy api to know whether it makes most sense to ask for the tariffcode or productcode.Is this similar to https://github.com/evcc-io/evcc/pull/11555?
/cc @duckfullstop
It is - #11555 provides option 3
Tariff and product codes are mightily confusing to pick apart because they're referred to by similar phrases in different places - sorry for any confusion!
I'd suggest we could catch this during parsing of the code (and act appropriately), but option 2 is probably a better move for long term codebase tidiness (alongside option 3)
@duckfullstop would you want to follow up with the PR? Otherwise I'd close here as wontfix.
I'm happy to provide a fix (life permitting), but I'm not sure whether it makes more sense to add it as part of #11555, or as a separate thing?
As you prefer, no strong opinion here.
I have pushed a non-breaking change from tariff
to productcode
to the branch, ready for review once it's unstaled (unless I broke #11555?)
(my IDE of choice has self-combusted and I'm away from home so the PR may be horribly broken as I'm only able to test with a really old version (which isn't Go 1.22 compliant), I might be able to spend some time on it next week but I'm 99.9% confident that branch works)
Describe the bug
The grid type
octopusenergy
has the keytariff
, but when the tariff code is used an error is displayed in the log. When the product code is used, the configuration works without issues.Octopus Energy has tariff codes and product codes, which conflicts with how the terminology is used in EVCC. If Octopus Energy would not have had tariff codes, users would not have been confused and would use product codes as value for
tariff
. However, given that looking up a Octopus Energy product code will also expose the user to the tariff code, the error is the result of expected configuration changes.For clarification, this is from the API reference of Octopus Energy.
As you can see, the tariff code is made up of the product code with some additional stuff. I believe that EVCC actually obtains the tariff code using the product code.
Steps to reproduce
E-1R-COSY-22-12-08-A
as value fortariff
Configuration details
Log details