-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling Preconditioning by using switch does not update switch state to ON in 3.0.0 Beta 3 #127
Comments
I think it is possibly looking at the wrong status attribute. Can you do a diag file when it is running preconditioning to see what is set. I thought it would be EV_PRECONDITION_OPERATING_STATUS but maybe not, or it is set to something other than "ON". It may also be that in PHEVs this is different again as Liam states in issue #125 that he has options for both Engine Climate and Electric Climate (depending on if charging or not) which I presume is both our Climate and Preconditioning switches. |
Diagnostic when precondition was disabled: Diagnostic when precondition just got enabled: Diagnostic when precondition was enabled for 9 mins: In v2 of this integration I created my custom binary_sensor for Precondition status and remaining time. This has been shared in the Recipes here.
Note that my car (I Pace Y21) does not support Climate switch, only Precondition (which I guess is the Electric Climate)? So I think Liam should help out with similar diagnostic file for his car for Engine and Electric Climate, so we can make logic supporting both? |
Basically logic should be:
|
Just tested with following changes to the code, and the switch got correct state. It even managed to turn the Preconditioning off as well 🥳 climate_deactivated = get_value_match(
vehicle.status_ev, "EV_PRECONDITION_OPERATING_STATUS", "OFF"
)
vehicle.tracked_status.climate_active = not climate_deactivated maybe not the most elegant way to express it, but if you are fine with this logic I can commit this to dev? |
Thinking about your point about difference between Engine Climate (Climate) and Electric Climate (Precondition) switches, both switches uses the same state attribute |
Fixed and verified for both climate switches! |
When switching
Preconditioning
switch fromOFF
toON
the climate starts running on the vehicle, and the state of theClimate
sensor is updated toHeating
, but thePreconditioning
switch has stateOFF
.I thought this was because of the state were not refreshed yet (polling interval) from the vehicle, but still after 9 minutes no state change of the switch.
The text was updated successfully, but these errors were encountered: