-
Notifications
You must be signed in to change notification settings - Fork 26
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
Periodic updates are deferred when charging is in progress #608
Comments
Thank you very much for debugging this issue, this has been discussed in #484 and I have not had enough data to see what's going on. Your report looks actionable, and I will look into the details later this week. If you have suggestions for a fix, feel free to submit a PR in the mean time. |
It is by design from HomeAssistant that a regular poll gets deferred when there is a manual update. This is not something we are looking to change. We should make sure that the values in the update are not
|
I can have a look into ServiceEventData vs. ServiceEventChargingData since I have ben fixing these ones some time ago. |
its because _on_charging_event is blindly setting soc from event_data without checking if there is soc available or not I will fix it |
In any case, the ServiceEventData vs. ServiceEventChargingData in the myskoda library should be refactored somehow. I'll take a look on that also. |
I would like to report one misbehaviour. The scenario is following:
I noticed, that at some point I started to get regular "Unknown" state for the battery percentage, this mainly happens when the car in in charging state:

I checked the logs. So what happens is that while charging the car sends regular updates about charging by the event
charging-status-changed
, the event comes in about 9 minutes (less than polling interval). On this event the integration calls functionself.set_updated_vehicle(vehicle)
which is visible in the logs asManually updated myskoda data
. And it seems, that after this the periodic update is not called because the HA considers that vehicle received the manual update and periodic poll is not needed.So why then the state becomes "Unknown". This has started to happen after this update skodaconnect/myskoda#338. All charging events are now coming as
ServiceEventWithChargingData
where missing fields arenone
so for my car this means the charging state isnone
that turns to "Unknown" on battery sensors.I attach the logs from this night charging (periodic update responses payload are removed to simplify anonymizing, they are not relevant for the issue). The updates are coming regularly until
2025-02-04 04:02:00
, when script starts charging. After that the server sendscharging-status-changed
regularly and there is no periodic updates anymore until2025-02-04 06:15:49
just because when charge level is closer to 100%, the charging event updates are coming with slower rate from the car (longer than 9 minutes).I also inserted few debug prints for myself that start with
CHARGING DEBUG
.So, I think, there are couple of issues:
self.set_updated_vehicle(vehicle)
because even if it is called when we receive e.g. charging info update with data, it does not mean we updated all other sensors.Please, share your opinion.
charging.log
The text was updated successfully, but these errors were encountered: