-
-
Notifications
You must be signed in to change notification settings - Fork 670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grid type octpusenergy key is called "tariff" but only accepts "product" #13474
Comments
I think there are two options for a fix:
|
Is this similar to #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. |
…ct Octopus parlance Closes evcc-io#13474 - not a breaking change but deprecates 'tariff'
I have pushed a non-breaking change from (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
The text was updated successfully, but these errors were encountered: