Skip to content
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

No data available if multiple homes exist #53

Closed
matze19999 opened this issue Apr 4, 2024 · 10 comments
Closed

No data available if multiple homes exist #53

matze19999 opened this issue Apr 4, 2024 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@matze19999
Copy link

I've added another home last week because I will move in 2 months, but now no data is available anymore for the current home, because TeslaMateAgile always takes the first home which the API gives, but I need so select the second home now.

Is there a easy way to do that?

@MattJeanes
Copy link
Owner

Hi!

I believe the setting you're looking for is TeslaMate__GeofenceId, if you have set up another home or location there should be a new ID for that one. Check the readme for more info on how to find this number.

Hope that helps! 🙂

@MattJeanes
Copy link
Owner

Also keep in mind TeslaMateAgile can only track one location at a time so you'll need to run multiple instances of it with different settings if you want to run it with multiple locations

@matze19999
Copy link
Author

matze19999 commented Apr 4, 2024

No, I mean I have setup a new home in Tibber, not in TeslaMate. Have a look here:

image

I need the price data of the second one, because the first one is not active yet. But TeslaMateAgile always uses the data of the first home.

@MattJeanes
Copy link
Owner

Interesting! We don't appear to have support for that, but it should be easy to add.

I'm currently on holiday this week so I'll see if I can do that next week for you 🙂

@matze19999
Copy link
Author

Thank you, this would be amazing!

Reach out to me if I can help you somehow😊

@MattJeanes
Copy link
Owner

Might need some help to test it so I certainly will!

@MattJeanes MattJeanes added the enhancement New feature or request label Apr 9, 2024
@MattJeanes MattJeanes self-assigned this Apr 9, 2024
@MattJeanes
Copy link
Owner

Hi again! This functionality is now available in the latest version v1.14.0 🙂

Check the readme for information about Tibber__HomeId and let me know how it goes!

@matze19999
Copy link
Author

It works great, thank you for this update! 😊

@MattJeanes
Copy link
Owner

Awesome! No problem 🙂

@matze19999
Copy link
Author

matze19999 commented Apr 11, 2024

I now get this error, but I don't know if it has something to do with the change? @MattJeanes


info: TeslaMateAgile.PriceHelper[0]
      Calculating cost for charges 04/11/2024 10:20:44 UTC - 04/11/2024 11:51:28 UTC
fail: TeslaMateAgile.PriceHelper[0]
      Failed to calculate charging cost / energy for charging process 811
      System.Exception: Mismatch of requested price info from Tibber API (expected: 3, actual: 2)
         at TeslaMateAgile.Services.TibberService.GetPriceData(DateTimeOffset from, DateTimeOffset to) in /src/TeslaMateAgile/Services/TibberService.cs:line 122
         at TeslaMateAgile.PriceHelper.CalculateChargeCost(IEnumerable`1 charges) in /src/TeslaMateAgile/Helpers/PriceHelper.cs:line 96
         at TeslaMateAgile.PriceHelper.Update() in /src/TeslaMateAgile/Helpers/PriceHelper.cs:line 74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants