-
-
Notifications
You must be signed in to change notification settings - Fork 720
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
Tariffs: make timestamp available for formulas #17414
Conversation
@andig , testing this branch and got following error:
Configs:
If I remove formula, it works. |
See https://github.com/evcc-io/evcc/pull/17414/files#diff-34973a15082498aae9145173918172786bbd9f17991a8cb38f8009a57339d666R143 and make sure to use the same for ENTSO-E! |
Oh I see, since you've changed in tariff.go I imagined it would be global some how. Sorry, not familiar at all with this framework. |
What do you need to merge this? |
Follow-up to #17002, fix #12371.
This PR adds a
ts
variable of typetime.Time
that contains the start of the current slot. The timestamp is in local timezone to allow immediate use ofts.Hour()
for comparisons.Could be nicer with traefik/yaegi#1542.