-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support for Tibber #12
Comments
Looking forward to this! =D |
This has been implemented in You'll need to either pull the latest tag or explicitly use the version above on docker. Let me know how it goes 😄 If it's all looking good, I'll promote it to a stable build and push this out as |
Hi @MattJeanes, Awesome! Just pulled the code (with latest) and looks like it's working, even thou there are some warnings did show up:
It would be nice to see the rate, that it used when calculating the pricing for each charging process. One thing that I can note is that Tibber itself calculated my charge of the car to be 190 SEK. Based on TeslaMate data and your calculation of historical data, it came together to 196.78 SEK. I don't know if it's worth checking into this :) Regards, |
My addition to the docker-compose.yml file was this:
Nice to have config params based on the .env file instead.. where I added my TIBBER_TOKEN as well. |
There will always be some discrepancies on the readings as they'll be calculated completely differently between TeslaMate and your energy provider but it should be pretty close. That said, I have found a bug which will result in lost charge data when calculating the cost. I've fixed this and added extra checks and debug logging in To enable debug logging, add an environment variable: - Logging__LogLevel__Default=Debug You will see logging like this, should help diagnose any issues Do you know how to reset your costs to Hopefully there won't be any errors and the calculated values should be more accurate now, let me know! |
Hi @MattJeanes, Added the debug parameter and pulled latest image. Did also reset the costs to NULL and it made a recalculation of my 180 charges. Thanks man! |
Perfect! I've now released this as part of |
Tibber is an energy provider much like Octopus Energy with a dynamic tariff and a public API to get pricing - this issue is to track the addition of Tibber support to TeslaMateAgile and more generally support for multiple energy providers.
They use a GraphQL API documented here: https://developer.tibber.com/explorer
I have discovered that we can request price info for arbitrary date ranges by using the start and end cursors on the range, which is a base64 encoded ISO 8601 string. For example, the following gets the last 24 hours from before 6am (+1 UTC) on the 1st January 2020:
The ISO 8601 date (
2020-01-01T06:00:00+01:00
) base64 encoded isMjAyMC0wMS0wMVQwNjowMDowMCswMTowMA==
The text was updated successfully, but these errors were encountered: