Home Assistant Automations

To hopefully save some people some pain, don't update Home Assistant Core until the Lucid support gets updated. This core update breaks things again.
 
To hopefully save some people some pain, don't update Home Assistant Core until the Lucid support gets updated. This core update breaks things again.
Thanks for the heads up! Which core version breaks the integration? I'm on 2026.9.4 and still working fine.
 
Thanks for the heads up! Which core version breaks the integration? I'm on 2026.9.4 and still working fine.
Same. 2026.10.0 is the latest
 
Well a big fat skip for that version then.

To the HA topic. I built a small tool to quantify energy costs for both my Lucid and my wife’s R1S. Both APIs give the same value of ‘kWh added in this charge session’. Since it resets to 0 each charge, I have an accumulator, and add a small percentage increase to account for charging losses. This then multiplies rate costs and resets monthly, to give a clean cost of car vs electricity bill.

I’ve also geofenced them both, and can quantify the financial benefit of charging my own car at work 90% of the time.
 
Here’s the error:

Unable to install package lucidmotors==1.4.1: error: No solution found when resolving dependencies cause: Because lucidmotors>=1.4.1 depends on protobuf>=6.31.1,<7.0.0 and protobuf==7.36.0, we can conclude that lucidmotors>=1.4.1 cannot be used. And because you require lucidmotors==1.4.1, we can conclude that your requirements are unsatisfiable.
 
Here’s the error:

Unable to install package lucidmotors==1.4.1: error: No solution found when resolving dependencies cause: Because lucidmotors>=1.4.1 depends on protobuf>=6.31.1,<7.0.0 and protobuf==7.36.0, we can conclude that lucidmotors>=1.4.1 cannot be used. And because you require lucidmotors==1.4.1, we can conclude that your requirements are unsatisfiable.
@segbrk is currently enjoying an extended road trip in his Gravity, and @borski has a day job now. We may have to wait a bit :)
 
I opened an issue on the github repository yesterday too with the errors, I'm sure they'll get to it when they can.
 
Fix status:
Testing: I ran the fix using my account (read-only: login and vehicle fetch), and it worked on both. I didn't test write commands like lock or climate but I assume they're fine.

Nothing fixes this until Nick publishes 1.4.2 for python-lucidmotors. Once that's there, @borski can fix the Home Assistant integration. Until then, either hold off on HA 2026.10 or roll back to 2026.9.
 
And I can confirm that rolling back to 2026.9.4 got it working again with no issues for now.
 
Fix status:
Testing: I ran the fix using my account (read-only: login and vehicle fetch), and it worked on both. I didn't test write commands like lock or climate but I assume they're fine.

Nothing fixes this until Nick publishes 1.4.2 for python-lucidmotors. Once that's there, @borski can fix the Home Assistant integration. Until then, either hold off on HA 2026.10 or roll back to 2026.9.
Thanks everyone for your patience, and thanks especially @opdx and everyone else for your contributions.

Just released v1.4.2 of python-lucidmotors and v1.4.0 of the HA integration, and it works on HA 2026.10.
Update the Lucid integration in HACS first, restart, then update HA core. If you rolled back to 2026.9.4, you can go ahead and update now.

There's a bunch of new stuff in this release too, mostly from bdlcalvin on GitHub:
- Key fob battery and connectivity sensors
- Charge port power, scheduled charging, and charge cable lock
- Battery preconditioning, unavailable range, and keep climate status
- GPS heading and elevation (off by default)
- Software update release notes work again
- Gravity no longer gets polled every few seconds while it's parked

Full notes: https://github.com/borski/ha-lucidmotors/releases/tag/v1.4.0

If anything breaks, open an issue on GitHub or ping me here. <3
 
I have an HA automation that turns on charging at 10 am if the solar panel output is above a certain level, the car is plugged in (L2) and at home. It is turning battery preconditioning on and off as well. It is being reported triggered by the automation. Any thoughts.

FYI Scheduled Charging in the car is ON and scheduled for 12:01 AM with a limit of 74%. This routine adds an additional charging session during the day and it ran at the appointed time, but turned off because the car was at its limit.
 
you shouldn't need to turn on preconditioning as the home charging is low enough power that heat generation isn't a problem, and turning on preconditioning uses batter power so best to leave preconditioning off unless the preconditioning is needed
 
I didn't turn it on. It turned on by itself when the HA automation set the charging switch to on. Here is the automation YAML
-----------------------------------
YAML:
alias: Turn on Solar Charging 10 am to 2 pm sunny
description: ''
triggers:
- trigger: time
at: '10:01:00'
weekday:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
conditions:
- condition: power.is_value
target:
device_id: c5d431eb108eab13e19febaf705920b9 ;Solar panel
options:
threshold:
type: above
value:
active_choice: number
number: 100
unit_of_measurement: W
behavior: any
- condition: state
entity_id: binary_sensor.lucid_air_plug
state:
- 'on'
- condition: zone.in_zone
target:
entity_id: device_tracker.lucid_air
options:
for: '00:00:00'
zone: zone.home
actions:
- action: switch.turn_on
metadata: {}
data: {}
target:
device_id: 5a02137ad15f6ac2b9a0a308b74661f5
entity_id: switch.lucid_air_charging
mode: single
-----------------------------------------------------
Activity Log: Note that the battery preconditioning was left in the ON position at end routine.

entity_idstatecontext_event_type
sensor.lucid_air_power_stateSleep/Charge
switch.lucid_air_battery_preconditioningon
cover.lucid_air_all_windowsclosed
switch.lucid_air_battery_preconditioningoff
sensor.lucid_air_power_stateSleep
sensor.lucid_air_energy_typeUnknown
number.garage_lucid_air_ac_charge_current_limit
sensor.lucid_air_energy_typeAC
number.garage_lucid_air_ac_charge_current_limit
switch.lucid_air_chargingonautomation_triggered
switch.lucid_air_chargingoffautomation_triggered
switch.lucid_air_battery_preconditioningonautomation_triggered
switch.lucid_air_battery_preconditioningoffautomation_triggered
sensor.lucid_air_power_stateSleep/Charge
sensor.garage_lucid_air_scheduled_charge_statecharging_soon
switch.lucid_air_battery_preconditioningon
sensor.garage_lucid_air_scheduled_charge_stateidle
sensor.lucid_air_energy_typeUnknown
sensor.lucid_air_power_stateMonitor
binary_sensor.lucid_air_charge_port_dooroff
binary_sensor.lucid_air_plugoff
cover.lucid_air_charge_port_doorclosed
[td]
17​
[/td]​
[td]
40​
[/td]​
 
Back
Top