Sponsored

Using Home Assistant Data to calculate efficiency as a function of speed (normalize for altitude)

kemxns

Well-Known Member
Joined
Apr 18, 2022
Threads
49
Messages
144
Reaction score
64
Location
SoCal
Vehicles
2019 F150 Raptor
Anyone tried to do this yet? Basically I figure change in altitude is just about the only factor that practically matters other than speed, so if I can use the altitude to baseline I could then figure out very precisely what my efficiency is over time for like 1hr chunks of highway driving.

e: I should add that my goal is to be able to take specific ranges of time where there were different driving styles and see how they impacted range ("impacted" very precisely, not just "better or worse")
Sponsored

 
  • Like
Reactions: Woo

ElGuano

Well-Known Member
Joined
Oct 9, 2024
Threads
49
Messages
868
Reaction score
1,239
Location
Cali
Vehicles
R1T Trimax - Storm Blue, Driftwood, Sport Dark
I'm not sure how accurate it would be compared to the actual software in the car calculating your efficiency, but I imagine you can create a template sensor that gives you some efficiency calculation based on some combination of "In Use State," "Odometer," battery state of charge," "Drive mode," etc.
 

Zoidz

Well-Known Member
First Name
Gil
Joined
Feb 28, 2021
Threads
226
Messages
5,204
Reaction score
11,705
Location
PA
Vehicles
23 R1S Adv, Avalanche, BMWs-X3,330cic,K1200RS bike
Occupation
Engineer
Anyone tried to do this yet? Basically I figure change in altitude is just about the only factor that practically matters other than speed, so if I can use the altitude to baseline I could then figure out very precisely what my efficiency is over time for like 1hr chunks of highway driving.

e: I should add that my goal is to be able to take specific ranges of time where there were different driving styles and see how they impacted range ("impacted" very precisely, not just "better or worse")
There are other factors that influence efficiency and will make “very precisely” a challenge - air temperature (heating/cooling demand and air density), battery temperature (electrical efficiency) headwind/tailwind, rain. All combined they can change efficiency by as much as 30% to. 50%.
 

2kwik4u

Well-Known Member
First Name
Michael
Joined
Jan 8, 2025
Threads
11
Messages
841
Reaction score
1,097
Location
Western NY State
Vehicles
2024 Rivian R1T ; 2018 Nissan Rogue
Anyone tried to do this yet? Basically I figure change in altitude is just about the only factor that practically matters other than speed, so if I can use the altitude to baseline I could then figure out very precisely what my efficiency is over time for like 1hr chunks of highway driving.

e: I should add that my goal is to be able to take specific ranges of time where there were different driving styles and see how they impacted range ("impacted" very precisely, not just "better or worse")
ElectraFi does something similar......although doesn't account for elevation.

Mine looks like this......
Rivian R1T R1S Using Home Assistant Data to calculate efficiency as a function of speed (normalize for altitude) 1766419096754-m9


Density is relatively linear with altitude. Should be able to scale linearly if you really wanted to. It will only vary by a small percentage as compared to velocity. It's also susceptible to other environmental changes such as temperature and humidity, so it's not ONLY altitude that messes with that part of the equation. Likely not worth the effort IMO.
 
Last edited:

Bob R1T

Well-Known Member
First Name
Bob
Joined
Feb 16, 2023
Threads
2
Messages
64
Reaction score
48
Location
Virginia
Vehicles
R1T, Model S
Occupation
architect
Clubs
 
There are other factors that influence efficiency and will make “very precisely” a challenge - air temperature (heating/cooling demand and air density), battery temperature (electrical efficiency) headwind/tailwind, rain. All combined they can change efficiency by as much as 30% to. 50%.
And don't forget grade, up or down...and launch vs an egg under your foot. then there is pre-conditioning for fast charging.
 

Sponsored

Singletracker

Well-Known Member
Joined
Mar 10, 2022
Threads
39
Messages
1,310
Reaction score
1,279
Location
NV
Vehicles
2023 R1T QM w/20” A/T’s
Anyone tried to do this yet? Basically I figure change in altitude is just about the only factor that practically matters other than speed, so if I can use the altitude to baseline I could then figure out very precisely what my efficiency is over time for like 1hr chunks of highway driving.

e: I should add that my goal is to be able to take specific ranges of time where there were different driving styles and see how they impacted range ("impacted" very precisely, not just "better or worse")
Good luck with that. I have tracked virtually every drive since 1/1/25. It’s all on a spreadsheet. I have endeavored to discover what really affects my efficiency. While there are some obvious impacts such as speed, wind, and elevation change, there were many, many times when aberrations were pretty inexplicable, as far as I could tell - same drive, same conditions, and much different efficiency results 🤔 Things that I figured would affect efficiency (notably HVB temp) seemed to be, at times, a non-factor. Now and then, there will be a stretch of days where efficiency tanks, for no apparent reason, then rebounds days later. I’ve pretty much accepted that my R1T has a mind of its own and it is not willing to share it with me 😟 I honestly think that Rivian messes with this stuff behind the scenes. As evidence of this theory, my overall efficiency has vastly improved over time. As well, my vampire drain has notably decreased. On a daily basis, speed (over 65 mph), wind (head, tail, AND side winds), and even slight elevation gains, seem to have the most negative impact.
 

VSG

Well-Known Member
Joined
Oct 3, 2022
Threads
4
Messages
3,267
Reaction score
6,120
Location
WA
Vehicles
R1T LE/RB/OC/20
"Using Home Assistant Data to calculate efficiency as a function of speed (normalize for altitude)"

What's the goal here? What's the question you're trying to answer?
 
OP
OP

kemxns

Well-Known Member
Joined
Apr 18, 2022
Threads
49
Messages
144
Reaction score
64
Location
SoCal
Vehicles
2019 F150 Raptor
"Using Home Assistant Data to calculate efficiency as a function of speed (normalize for altitude)"

What's the goal here? What's the question you're trying to answer?
In this case while road-tripping I ran across what prima facie seems like a very good apples-to-apples session of driving where I did cruise control and non-cruise control for long stretches. I want to see how that impacted efficiency.
 

beatle

Well-Known Member
Joined
Jun 20, 2024
Threads
17
Messages
1,149
Reaction score
1,565
Location
Springfield, VA
Vehicles
'23 R1T PDM Max, '97/'25 Miatas
Occupation
IT
Clubs
 
I think it'd be more useful for towing where aero (and thus speed) plays a much bigger part in energy consumption. Going slow to go fast can be the ticket.
Sponsored

 
 








Top