Sponsored

fxstein

Well-Known Member
First Name
Oliver
Joined
Sep 17, 2024
Threads
9
Messages
107
Reaction score
202
Location
California
Vehicles
2023 R1T Quad Adventure
Clubs
 
Lots of things going on with Rivian vehicles under the cover. Also significant changes happening from firmware to firmware update. Seeing lots of discussions about phantom drain, charge rates, range.

As a data analytics person and former data scientist (and electrical engineer) I like data.

My moto has always been show me the data!

Individual observations or point in time snapshots can often be very misleading. Gut feel can lead to wrong conclusions.

Luckily there is a ton of data being collected by Rivian for their own App, their development and to integrate with 3rd parties.
We all can have access to a lot of that data and apply advanced analytics.

Here is a little initial how to, that explains one way to leverage AI to help you understand what is really going on with your Rivian.

First and foremost you need to collect your Rivian's data from Rivian. Without too much detail the easiest way to do that is to install Home Assistant on a small or tiny computer at home and add the Rivian API integration. Happy to answer specific questions, might even do a little demo first it down the road.
You have seen me post simple screenshots of dashboards and data from it in various threads.

For example the 2024.51.01 update on Phantom drain, SoC and battery capacity. Every single one of these charts allows you to download its data

Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI IMG_0468



Once downloaded, name and save that file so you can find it again and even tag it with Rivian or Home Assistant Tags:

Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI IMG_0470



Once saved head on over to ChatGPT and upload that file:

Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI IMG_0476



I like to tell it what it is that I sent it. ChatGPT is getting really good at reading these random files and a little extra info from you can help analyze that data quickly:

Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI IMG_0480



I the rename things (simply tell ChatGPT how you want to name them) for ease of use and simply plot the data

Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI IMG_0483


Now the fun starts after some filtering for bad data I let it plot just the core of the data (in this case I also told it to use a second Y axis so SoC % and kWh are both scale independently)

Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI IMG_0488


As I know there is something funky going on with SoC since firmware .51 I create a simple calculation to test a theory of mine: how about I use the SoC and capacity numbers Rivian reports to calculate the amount of Stored Energy in the battery pack at every point in time:

Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI IMG_0489


And the result:

Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI IMG_0493



Look at that. The amount of stored energy is pretty much a straight line (this is a parked vehicle draining away in Shipping Mode). So I would like to create a good average of that drain by asking for:

Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI IMG_0496



And the result:

Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI IMG_0497


Finally I want to know the formula of that linear regression:

Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI IMG_0498



After some further steps and dealing with a mistake (yes - ChatGPT and any AI will make horrendous mistakes at times - in this case its first attempt on the daily energy consumption came back with 25kWh per day! - Most of the time you simply call it our and tell it that that is wrong and it will go back and find its own mistake and fix it) by ChatGPT I end up getting the correct answer:

Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI IMG_0503



It’s a wrap:

Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI IMG_0504



Now this is just a super simple and primitive example. Skipped a few steps dealing with bad data and incorrect things, but was able to do all of it on my iPhone in less than 15 min.

With this setup I can analyze and compare any behavior, drain, charger sessions within minutes and know exactly what is going on.

Hope that gives some inspirations what is possible with data and AI these days.
Sponsored

 
Last edited:

Kryptonlogic

Well-Known Member
First Name
Jose
Joined
May 2, 2022
Threads
3
Messages
67
Reaction score
200
Location
Winter Garden, FL
Website
riviantrackr.com
Vehicles
2022 Rivian R1T
Occupation
IT Director
This is super awesome, thanks for sharing!
 

Sponsored

OP
OP
fxstein

fxstein

Well-Known Member
First Name
Oliver
Joined
Sep 17, 2024
Threads
9
Messages
107
Reaction score
202
Location
California
Vehicles
2023 R1T Quad Adventure
Clubs
 
Very cool and impressive. But the thing that really jumped out at me.... you thank your AI chatbot? Is that like an insurance policy against later hostile takeover?
That is me having a little fun for the demo. Shows how far theses systems have come. Not like Python, R or SAS that were super sterile data tools.
 
OP
OP
fxstein

fxstein

Well-Known Member
First Name
Oliver
Joined
Sep 17, 2024
Threads
9
Messages
107
Reaction score
202
Location
California
Vehicles
2023 R1T Quad Adventure
Clubs
 
Very cool but beyond me. Can you share your major discoveries?
In this simple example and in another thread already explained: Since firmware .51 the State of Charge (SoC) % can no longer be trusted in the first 2-4 days of parking a Rivian. It will say you gained charge or the truck did not discharge at all until day 3 when it starts catching up with reality. For real it is discharging at about 1kWh per day, every day when doing nothing but sitting there (even in shipping mode)
 

Dark Helmet

Member
First Name
Mike
Joined
Dec 12, 2024
Threads
0
Messages
7
Reaction score
38
Location
Iowa
Vehicles
2025 R1T DM Performance
Occupation
IT
Very cool and impressive. But the thing that really jumped out at me.... you thank your AI chatbot? Is that like an insurance policy against later hostile takeover?
You can never be too careful....

This is an awesome use for ChatGPT/AI! Thank you for sharing. Opens my mind up to a lot of ideas!
 

KHopf

New Member
First Name
Kurtis
Joined
Aug 5, 2024
Threads
3
Messages
4
Reaction score
11
Location
Merritt Island
Vehicles
R1S (2nd Gen)
Occupation
Chief Operating Officer
Very impressive. I'd seen some of your previous posts and was curious where you were getting the data. I'd definitely appreciate a quick tutorial on the installation / setup though - at first glance it seems to be a bit beyond me!
 

Kidentist

Well-Known Member
First Name
Carlitos way
Joined
Oct 28, 2021
Threads
1
Messages
262
Reaction score
312
Location
PNW
Vehicles
Audi A3, Cayenne E-Hybrid, R1T DM Std.+
Occupation
Mouth Janitor
Wayyy above my paygrade.
 

Sponsored

logan

Well-Known Member
First Name
logan
Joined
May 29, 2023
Threads
2
Messages
139
Reaction score
133
Location
Northern California
Vehicles
Rivian R1T
Rivian R1T R1S Analyze your Rivian's data with ChatGPT AI 1738688053060-sy


Very cool. You probably know this already but you can also configure chatgpt or ollama server as chat / voice assistants in Home Assistant as well. You can also edit the prompt provided to them. Although they don't get the full historical state from HA nor do they have good multimedia support like through chatgpt or openwebui's UIs. (Probably should be a tool for retrieving historical data.) It does allow you to chat with your HA instance using chatgpt, deepseek, llama, and so on though.

It might be interesting to add an HA tool to openwebui then you could use it directly with openai and ollama hosted models without having to upload each sensor file. Then it might be possible to do the more sophisticated things that you want to do without uploading files.
 

Woo

Active Member
First Name
Fred
Joined
Oct 24, 2024
Threads
0
Messages
31
Reaction score
33
Location
AZ
Vehicles
Cybertruck reserved and two ICE vehicles
Very cool and impressive. But the thing that really jumped out at me.... you thank your AI chatbot? Is that like an insurance policy against later hostile takeover?
100%. I'm constantly establishing a history of being decent and polite to AI.
 
OP
OP
fxstein

fxstein

Well-Known Member
First Name
Oliver
Joined
Sep 17, 2024
Threads
9
Messages
107
Reaction score
202
Location
California
Vehicles
2023 R1T Quad Adventure
Clubs
 
1738688053060-sy.jpg


Very cool. You probably know this already but you can also configure chatgpt or ollama server as chat / voice assistants in Home Assistant as well. You can also edit the prompt provided to them. Although they don't get the full historical state from HA nor do they have good multimedia support like through chatgpt or openwebui's UIs. (Probably should be a tool for retrieving historical data.) It does allow you to chat with your HA instance using chatgpt, deepseek, llama, and so on though.

It might be interesting to add an HA tool to openwebui then you could use it directly with openai and ollama hosted models without having to upload each sensor file. Then it might be possible to do the more sophisticated things that you want to do without uploading files.
Yes fully aware of that integration. Right now it is limited to simple interactions and not advanced data analysis. Over time this could (probably will) change. But given the privacy focus of HA, developers are hesitant to open up your personal HA data store to AI in general.
 
OP
OP
fxstein

fxstein

Well-Known Member
First Name
Oliver
Joined
Sep 17, 2024
Threads
9
Messages
107
Reaction score
202
Location
California
Vehicles
2023 R1T Quad Adventure
Clubs
 
 





Top