Replies: 9 comments 25 replies
-
Thanks opening the discussion. I wonder if Streaming can be simplified. If understood correctly it makes sense to add the official tesla fleet-telemetry container (https://developer.tesla.com/docs/fleet-api/fleet-telemetry) to the docker compose stack. this one needs to be publicly available. As it's recommended to use kafka I would vote for adding kafka to the docker compose stack as well and fetch data from kafka within the teslamate container instead of using google pubsub (making the whole stack no longer self-contained and depending on google as cloud provider). |
Beta Was this translation helpful? Give feedback.
-
tl;dr I have a completely working Docker integrated solution that consumes data via Fleet Telemetry and sends it to clients via WebSocket. Is working hosted and on premises. I don't think it would get any simpler for TeslaMate users to set everything up. Long version:
|
Beta Was this translation helpful? Give feedback.
-
Not sure I understand the "... for two vehicles part". But I gather these limits have to be shared across all your cars. That seems pretty terrible. Only 100 commands across all your cars per month? That is around 3 commands a day. Only two wakes per day? Consider that wakes often succeed, but the car still isn't actually awake. Do all these failed wake attempts count? Maybe these limits won't affect Teslamate using the newer API, as Teslamate never sends wake up requests, and maybe doesn't send commands (not sure if polling counts here or not). But it certainly affects my code to turn on/off charging based on amber prices. And I can't agree to the developer terms and conditions while I am using the legacy API for that. On the topic of switching to the new streaming API, AFAIK that still doesn't work with older cars, even older case with the upgraded MCU. I may have missed something, don't understand how kafka is going to help us in anyway. We still need to get the data from Tesla, and I don't think we can use kafka for that. |
Beta Was this translation helpful? Give feedback.
-
I see that the holiday update will bring a bunch of fields which are currently filled using the vehicle_data I think indeed that teslamate should shift towards consuming / subscribing to an MQTT and less rely on the vehicle_data |
Beta Was this translation helpful? Give feedback.
-
I just want to throw in a possibility that I think is worth considering: the fleet-telemetry server is a "reference implementation for Tesla's telemetry protocol", there is no need to run exactly that piece of software. TeslaMate could become a protocol-compatible fleet telemetry server written in elixir, and the protocol honestly does not look very complicated. Of course you would need to expose it to the internet then, in a way that works with mTLS. Still sounds much easier to run self-hosted, and less compatability issues and just less stuff outside of TeslaMates control. Receive data directly from vehicle on a websocket, read the interesting fields, write it to postgres. We could also add some nice helpers regarding developer account setup, key creation, partner registration and setting the telemetry config. |
Beta Was this translation helpful? Give feedback.
-
https://developer.tesla.com/docs/fleet-api/fleet-telemetry#system-behavior Looks like streaming of whole car data every second is intended behavior. |
Beta Was this translation helpful? Give feedback.
-
So on the main page
Does this mean when i'm not using a developer account, so i don't change anything and keep using Teslamate the same way as i'm using now, will be billed based on what Teslamate is requesting? I see there is a rate limit:
I can offcourse first just try and see what happens and if i even exceed this $10, but what are your thoughts on this? |
Beta Was this translation helpful? Give feedback.
-
Question - has Tesla indicated the owners API is going away? I see posts from April here: #3792 and it seems we can just carry on using Owners and Streaming API. Is that the current plan? Or is the Fleet API something we'll need to do? |
Beta Was this translation helpful? Give feedback.
-
I put this in a bad place, going to copy it here: Unfortunately, other car brands aren't any better. I see that there has been work to reverse engineer the MG protocols. But not officially supported, so it could stop working. BYD seems to be getting nowhere. Maybe installing our own logger might be a better approach. Google shows me links like https://docs.openvehicles.com/en/latest/introduction.html https://github.com/bassmaster187/TeslaLogger - I seem to remember this being discussed here previously, with a reference to a good OVMS adapter that I can't find right now. But now Tesla is talking about locking down the API more and more - particularly for older cars which have limited support with the newer APIs this might be worth revisiting. Having a charger that supports OCPP might be a better bet for turning on/off charging. Although I have no idea what OCPP is like to program, and what data - if any - it gives you. There is rumors that Tesla Wall chargers might get OCPP in the future, but I won't believe it until it happens. I suspect the reversed engineered API is not going away anytime soon. I think Tesla doesn't really care enough. They just want another excuse to charge large fleet owners $$$ on a subscription basis, and they have got that. But the fact it could disappear without warning and break my systems that rely on streaming, and there is no newer streaming API that works with the older cars, kind of reduces my enthusiasm for developing this code. |
Beta Was this translation helpful? Give feedback.
-
On 11/27, Tesla finally published the Fleet API pricing: https://developer.tesla.com
So, I think this is potentially great news for Teslamate... let me explain:
When we are given $10 per month we have to know how to take advantage of it : I'm simplified the process to create your own Tesla API Application and then be able to use it directly between Teslamate and Tesla (or via a third party).
Here is an easy way to register your own Tesla API Application
Finally, there is still the point of streaming for which we'll need a new container for Telemetry and succeed in producing an output similar to legacy streaming, I plan to work on the subject later.
There you go, I wanted to share these impressions with you and I'm curious to have yours.
PS1: I noticed that they had previously introduced a version for open-source applications but it was removed. The lifespan of this feature must have been very short!
PS2: I obviously have a thought for all the third-party solution publishers who now pay for the billions of calls from their thousands of Teslas. Good luck!
Beta Was this translation helpful? Give feedback.
All reactions