Sponsored

kemxns

Well-Known Member
Joined
Apr 18, 2022
Threads
49
Messages
144
Reaction score
64
Location
SoCal
Vehicles
2019 F150 Raptor
Rivian had some API hiccups at the beginning of September that caused some re-auth requirements within about a week of each other. (2nd and the 9th i think) but I haven't seen any others since then
Well, I had one this morning and I believe that’s the 4th in a 30day stretch.
Sponsored

 
OP
OP
fxstein

fxstein

Well-Known Member
First Name
Oliver
Joined
Sep 17, 2024
Threads
10
Messages
126
Reaction score
249
Location
California
Vehicles
2023 R1T Quad Adventure
Clubs
 
Well, I had one this morning and I believe that’s the 4th in a 30day stretch.
Same here. Had a few as of late, but all working well otherwise. Greeting from good old Austria!

Rivian R1T R1S Installing HomeAssistant to capture Rivian API data - DIY How-to Screenshot 2025-10-24 at 7.04.58 PM
 

kemxns

Well-Known Member
Joined
Apr 18, 2022
Threads
49
Messages
144
Reaction score
64
Location
SoCal
Vehicles
2019 F150 Raptor
Also, somewhat ironically, I'm constantly having a problem trying to figure out how to FORCE the authentication for the integration (where's the "log in" button?... where's the log out button for when I want to change the underlying credentials?).

Edit: my lamentation was half accurate, half not. It turns out the plugin was authenticated but my Rivian.com profile wasn't yet fully linked to my vehicle (I could swear I had "accepted the invitation" but while looking at logs I noticed the API was giving an empty array of vehicles, indicating the API was working but was getting an empty set). Anyway, I still think it would be reasonable to put a log out button somewhere!
 
Last edited:

Kelvn

Well-Known Member
Joined
Nov 1, 2023
Threads
15
Messages
308
Reaction score
501
Location
Irvine
Vehicles
R1S
Clubs
 
Can you set charge rate with Home Assist? Considering Integrating with solar to charge only on excess.
 

Supratachophobia

Well-Known Member
Joined
Apr 8, 2023
Threads
9
Messages
1,780
Reaction score
2,122
Location
Ohio
Vehicles
S
Clubs
 
Can you set charge rate with Home Assist? Considering Integrating with solar to charge only on excess.
you can, depends on a lot though. I'm ass-deep into a project for doing this with a raspberry pi, a Tesla hpwc gen2, and a custom entity in home assistant that totals solar excess in real time reading data off the modbus over tcp data stream.
 

Sponsored

Kelvn

Well-Known Member
Joined
Nov 1, 2023
Threads
15
Messages
308
Reaction score
501
Location
Irvine
Vehicles
R1S
Clubs
 
I’m looking to just set it based on solar rate -x, x being my typical home usage +20% so I can charge up my power wall but maybe flip it to x-20% when powerwall is above 95% or some cascading like that. Something less precise than yours should be good enough for my purpose as my powerwall can be my buffer.

I haven’t used HA but I am a controls system integrator so I have some background in this with PLC and SCADA platforms.

i was looking at the GitHub repo for the Rivian add on to HA but it didn’t list charge rate as a control. Was that added and not updated?
 
Last edited:

godfodder0901

Well-Known Member
First Name
Jared
Joined
Mar 12, 2019
Threads
27
Messages
5,748
Reaction score
10,138
Location
Washington
Vehicles
2022 Rivian R1T LE
I’m looking to just set it based on solar rate -x, x being my typical home usage +20% so I can charge up my power wall but maybe flip it to x-20% when powerwall is above 95% or some cascading like that. Something less precise than yours should be good enough for my purpose as my powerwall can be my buffer.

I haven’t used HA but I am a controls system integrator so I have some background in this with PLC and SCADA platforms.

i was looking at the GitHub repo for the Rivian add on to HA but it didn’t list charge rate as a control. Was that added and not updated?
It's there as an API endpoint.

Rivian R1T R1S Installing HomeAssistant to capture Rivian API data - DIY How-to 1768509181473-wj


Edit: Or are you asking if HA can set the desired rate? That I don't know. I don't allow HA to control the vehicle.
 
Last edited:

Kelvn

Well-Known Member
Joined
Nov 1, 2023
Threads
15
Messages
308
Reaction score
501
Location
Irvine
Vehicles
R1S
Clubs
 
Additional control narrative details in a brain dump format. This loses precisioin since i'm not doing calculation based on actual home use and actual vehicle charge rate, but these states should fulfill the purpose of not importing or exporting to grid with my powerwall as a buffer.

Sample:

Sunrise -1hr until sunrise
  1. Start charging at full rate if all below is met:
    1. Powerwall is above reserve (+5%?) [Powerwall_SP]
    2. Vehicle is home
    3. Vehicle is plugged in
    4. Grid import is <1kwh [GridImport_SP]
  2. Stop charging if aall below is met:
    1. Vehicle is Home
    2. Vehicle is plugged in
    3. Any of the below is Met
      1. Power wall is below set point
      2. Grid export is > 1kwh [GridExport_SP]
Sunrise - 12P
  1. Start charging if all below is met:
    1. Vehicle is plugged in
    2. Vehicle is Home
    3. Powerwall is above Powerwall_SP
    4. Grid Import is below GridImport_SP
  2. stop charging if all below is met:
    1. Vehicle is plugged in
    2. Vehicle is Home
    3. Any of the below
      1. Powerwall is below Powerwall_SP
      2. Grid export is above Gridexport_SP
  3. Set Charge rate to 18A if all below;
    1. Vehicle is plugged in
    2. Vehicle is home
    3. Solargeneration Between 5 and 6kw (18A should be around 4-4.2kW charging leaving leaving ~1-2kw for home use and charging PW up value to be determined with testing)
    4. Powerwall is < 90%
  4. Set Charge rate to 22A if all below;
    1. Solargeneration Between 6 and 7kw
    2. Powerwall is < 90%
  5. Repeat for other charge rates
  6. Set Charge rate to 32A (max at my house) if all below:
    1. Powerwall is >90%
12P - Sunset
Similar to above but stop charging updates condition if all:
  1. solar is below 4kwh
  2. powerwall is below 70% (70% easily gets me through the night with approximately 30-40% by morning for where we restart loop
This way i give the powerwall a chance to charge back up before night time..

NOTE:
this is sample psuedo code I havent and is missing some key conditions probably but thats the idea. Hard code charging rate stages

Also as mentioned above, I have never used HA and the Rivian API so i dont know what control is possible. but i believe all those points are accessible through Rivian API and Tesla API for the power wall and solar. and as far as using APIs and other things, also a bit foreign, i'm familiar with industrail PLC and SCADA terms but when it comes to this stuff i make assumptions since i havent gotten my hands on it.

I also stopped copy and pasting plugged in and home conditions but i would assume either that can be within each module or maybe a overarching container that enables solar charging only if i dont bypass solar charging and the vehicle is home and plugged in so i dont affect charging elsewhere and i have an override

first step for me is to see what im working with then polish and optimize the above in a more drawn out functional spec.
 
Last edited:

Supratachophobia

Well-Known Member
Joined
Apr 8, 2023
Threads
9
Messages
1,780
Reaction score
2,122
Location
Ohio
Vehicles
S
Clubs
 
I’m looking to just set it based on solar rate -x, x being my typical home usage +20% so I can charge up my power wall but maybe flip it to x-20% when powerwall is above 95% or some cascading like that. Something less precise than yours should be good enough for my purpose as my powerwall can be my buffer.

I haven’t used HA but I am a controls system integrator so I have some background in this with PLC and SCADA platforms.

i was looking at the GitHub repo for the Rivian add on to HA but it didn’t list charge rate as a control. Was that added and not updated?
Have you looked at the TWC manager integration and having an rs485 connector connected as a "master" for a Gen 2 wall charger?

I'm not done yet, but it seems that with the HA modbus over tcp data, you can have the charger adjust amperage in real time as solar production fluxuates throughout the day.
 

curtis-r

Member
First Name
Curtis
Joined
Jan 18, 2026
Threads
1
Messages
11
Reaction score
0
Location
Bay Area, CA
Vehicles
R1T
Been using Home Assistant for years and it's amazing. Also been loving your Integration for a few months but have one question:

I'm trying to get total charging kWh over a period of time, which means just taking the #'s (peaks) at the end of the charge and adding them. Is there a way to do this with the HA data? Even better would be a way to export the data. Edit: realized can download through the History page, but still have the issue of dozens of entries for each charging session.
 
Last edited:

Sponsored

bgg1

Well-Known Member
First Name
Ben
Joined
Nov 14, 2021
Threads
12
Messages
143
Reaction score
122
Location
USA
Vehicles
Honda Odyssey
I'm looking to get HA set up and running, and curious to know how far back I can pull data from, if at all, or is it only going forward. If the latter, is there any service that does allow for pulling historical data?
 

Supratachophobia

Well-Known Member
Joined
Apr 8, 2023
Threads
9
Messages
1,780
Reaction score
2,122
Location
Ohio
Vehicles
S
Clubs
 
I'm looking to get HA set up and running, and curious to know how far back I can pull data from, if at all, or is it only going forward. If the latter, is there any service that does allow for pulling historical data?
It's going to be going to be current variable state as of when you connect the API. Then Home Assistant will record everything that gets communicated to it.
 

FooF

Well-Known Member
First Name
FooF
Joined
Feb 24, 2023
Threads
9
Messages
950
Reaction score
1,348
Location
Mountain View CA
Website
foof.me
Vehicles
2022 R1S Launch Green
Occupation
DJ
Clubs
 
I'm looking to get HA set up and running, and curious to know how far back I can pull data from, if at all, or is it only going forward. If the latter, is there any service that does allow for pulling historical data?
No historical data it captures it on the fly. Rivian service department can look up logs but not sure how far back or how detailed they are.
Sponsored

 
 








Top