borski / ha-lucidmotors Goto Github PK
View Code? Open in Web Editor NEWLucid Motors integration for Home Assistant through HACS
License: MIT License
Lucid Motors integration for Home Assistant through HACS
License: MIT License
I'm seeing warnings like the following in the logs:
2024-02-19 14:30:48.211 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.lucidmotors.climate.LucidClimate'>) implements HVACMode(s): off, heat_cool and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/borski/ha-lucidmotors/issues
It says to report this as a bug, so that's what I'm doing. Thanks in advance for your continued help.
The salesforce service returns service appointments with dates.
"Charge Limit" slider allows setting of any integer value 0-100%. Setting it to anything <50% (not allowed on vehicle) generates error "Failed to call service number/set_value. StatusCode.INVALID_ARGUMENT: Key: 'SetChargeLimitRequest.ChargeLimit' Error:Field validation for 'ChargeLimit' failed on the 'min' tag"
Should be restricted to valid values for the vehicle, which is 50-100%.
Make it similar to the HA Tesla integration, which limits the slider to 50-100% only. (see screenshot)
Maybe an AlarmControlPanel entity if that's not too overkill
When I woke up this morning, I was surprised to find that the garage door was open. It turns out that at 4:12:15 AM my car's device location changed to "home", but it never left the garage. The location change fired off my automation to open the garage door, leaving it open. I got push notifications after 30 minutes (a separate automation), but didn't see them till I got up.
Checking the log book I see that the car was first reported as "not_home" at 12:12:15 AM, then at "home" almost exactly 4 hours later. Also just after the "home" event I see this one:
Lucid AIR Power state changed to Cloud 2
Just in case I checked for other log events and none of the other doors or windows were opened. Also there were no camera event around these times.
Maybe what happened was a reset of some kind on the Lucid service side that generated the spurious not_home /home events?
I can work around this by making my automation smarter. I'm reporting the issue here in case there's something that could be done at the integration level to deal with Lucid service availability issues.
Note that I can't prove that there was a Lucid service issue. In the log file the only Lucid entry is this unrelated problem:
2024-02-19 14:30:48.211 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.lucidmotors.climate.LucidClimate'>) implements HVACMode(s): off, heat_cool and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/borski/ha-lucidmotors/issues
I can report the climate issue separately, if that helps.
trip_service.ShareTripRequests
takes a list of waypoints and sends a route to the car. Not sure how this would look in HA land.
I'm assuming a "charge" switch would work for that. Otherwise a pair of buttons? Uses charging_service.StartSession
and StopSession
I think.
Would be nice to stick the release notes link somewhere as well.
I updated the HA Core today to version 2024.6.0, and now get:
Logger: homeassistant.util.package
Source: util/package.py:123
First occurred: 5:13:03 PM (3 occurrences)
Last logged: 5:13:34 PM
Unable to install package lucidmotors==1.1.2: ERROR: Cannot install lucidmotors==1.1.2 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Hello this integration is not working for non-US accounts...is there a way to make it work?
Thanks.
TPMS sensors report "unknown" when car is not in use. Would be helpful to cache most recent values and keep them persistent while car is off.
PI 4
Core
2023.11.2
Supervisor
2023.11.3
Operating System
11.1
Frontend
20231030.2
Could not configer in Intergrations tried rebooting installing uninstall and install again no go
Error
Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble
Unable to install package lucidmotors @ git+https://github.com/nshp/python-lucidmotors: ERROR: Cannot install lucidmotors==0.1.0 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Number entity supports displaying as a slider, that would probably look best
I've run across a problem that manifests as my garage mysteriously opens sometimes while I am home. I finally tracked it down to an automation script I got from Borski that basically says if my car enters the home zone, open the garage. The problem is that sometimes when this integration tries to get the current status from Lucid, it gets an error. When that happens, every sensor attached to the car goes to status "Unavailable", including the location. The next time it polls, it gets the current status, and the location goes back to "Home", which causes the garage to open. I haven't figured out how to modify the automation to track if the previous location was "Unavailable" to avoid opening the garage in this case, but perhaps a better solution is for the integration to not mark everything as Unavailable until some number of consecutive polls have failed.
Not a huge deal, but I think the frunk and trunk should be Cover entities of type Door rather than Locks. This would mainly just make the buttons correct - you're not unlocking the trunk, you're opening it.
I updated ha-lucidmotors to 1.0.6 and HA to 2024.5.5 today. After HA came back up, I noticed Watchman errors with Lucid entities.
Looking at the log, I see this:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 584, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/lucidmotors/__init__.py", line 41, in async_setup_entry
region = region_by_name(entry.data["region"])
~~~~~~~~~~^^^^^^^^^^
KeyError: 'region'
Not sure this is relevant, but after I updated ha-lucidmotors I did not reboot HA at that point. I knew that the update of HA would also reboot, so I figured I'd save a reboot. Since then I've rebooted again and get the same error.
Sensor "sensor.{vehiclename}_charge_session_time_remaining" reports back an oddly formatted value... not something very human readable like other sensors. Mine reports '1092:15:00', however this is when there's no charge session running, so not sure if the formatting is odd only for the case of no charging in process, or always. Haven't checked it during a charge session
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.