Replies: 6 comments 18 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.
-
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