ah I see. ok, then I misunderstood
Thanks for clarification
Im guessing youre thinking along the lines of a dropdown on login to the tesla dev site (within homey) where one could choose the URL?
Or, I think I saw a region check you could do via API - in theory I guess you could check the accounts region, and then get the correct URL and further the process
either way, thanks for checking it out
Incidentally, as I dont know which region to choose in my settings (I tried United States) because I dont know which region my car is in - that method didnt work, or, entirely p[ossible I missed something
Are you using the same account for car and developer? If you are using a second account for dev access, make sure you are using the car account for oAuth login.
And yes, I thought about a region selection in car dehice settings, so the apo can use a fixed region (optional) instead of account region.
It doesn’t make a difference whether a car is shared. It depends on the contry where the car is registered (I think) - and which Tesla region the car uses to communicate.
When exactly do you get the error? OAuth is ok and car is found? And after adding on first data reading, the device gets unavailable with this error?
Polling is done in intervals only and costs a lot of API credit. Telemetry is realtime and much cheaper. With a 5min interval your 10€ (or 10£, don’t know the exact amount fir UK) are used and you won’t have much free for commands. Using Telemetry, you only need a fraction of the costs. And you get realtime updates (e.g. coming home, start charging). Just try
Added flow actions and capability for battery reserve.
Capability is shown in Energy Site Battery.
Flow actions are available for Energy Site or Energy Site Battery.
This works a treat, I was able to stop the car sucking all the battery power in energy peak times. ie, the car should only charge off peak
One caveat. you cannot set battery reserve to more than 80%. the flow just fails
I think this is by design as I remember seeing this somewhere
Additional:
Would it be possible to put the ‘Battery becomes (less than/greater than) %’ in the ‘AND’ cards so that I can base some flows logic on battery %??
For example, car should only charge off peak, OR if battery is 80% AND time is 6pm
I think theres some metrics missing also, but I havent had a play with that yet. It could be a setting I havent enabled
Particularly, solar, energy produced today
battery dicharged/charged today
Like already said, the history API I used (an undocumented one) is broken since some months. I opened a ticked at Tesla support, but nothing got fixed. So currently, the app only has current/live data for energy site.