Skip to content

car status not updated after charging session started #342

@ari197

Description

@ari197

so I have a HA automation script that takes into account the current electricity price and the car's battery SoC and determine if it's beneficial to charge.

this morning at 11:07 the script got triggered and started charging, however if you looked in HA, the states didn't get updated, as such that on 12:07 the script got triggered again (because the status of the car is not charging)

here is the log from the GW for both event :

2025-06-10 09:06:33,434 [INFO]: Job "Check for new messages (trigger: interval[0:01:00], next run at: 2025-06-10 09:07:33 UTC)" executed successfully - apscheduler.executors.default
2025-06-10 09:07:00,816 [INFO]: Setting charging current limit to MAX - handlers.vehicle
2025-06-10 09:07:00,857 [INFO]: Charging will be started - handlers.vehicle
2025-06-10 09:07:10,509 [INFO]: Setting refresh mode to force due to after command execution on topic drivetrain/chargeCurrentLimit/set - vehicle
2025-06-10 09:07:10,566 [INFO]: Setting refresh mode to periodic due to restoring of previous refresh mode after a FORCE execution - vehicle
2025-06-10 09:07:10,567 [INFO]: Updating vehicle status - handlers.vehicle
2025-06-10 09:07:14,152 [INFO]: Updating charging status - handlers.vehicle
2025-06-10 09:07:17,510 [INFO]: Updating scheduled battery heating status - handlers.vehicle
2025-06-10 09:07:17,584 [INFO]: Refreshing vehicle status succeeded... - handlers.vehicle
2025-06-10 09:07:17,793 [INFO]: Refreshing ABRP status succeeded... - handlers.vehicle
2025-06-10 09:07:17,793 [INFO]: Sending HA discovery messages for LSJxxxxxxxxxxxxxx (Force: False) - handlers.vehicle
2025-06-10 09:07:33,037 [INFO]: Running job "Check for new messages (trigger: interval[0:01:00], next run at: 2025-06-10 09:08:33 UTC)" (scheduled at 2025-06-10 09:07:33.034700+00:00) - apscheduler.executors.defau
lt
2025-06-10 09:07:33,436 [INFO]: 2 messages received - handlers.message

... other non relevant logs ...

2025-06-10 10:06:33,416 [INFO]: 2 messages received - handlers.message
2025-06-10 10:06:33,417 [INFO]: Job "Check for new messages (trigger: interval[0:01:00], next run at: 2025-06-10 10:07:33 UTC)" executed successfully - apscheduler.executors.default
2025-06-10 10:07:00,802 [INFO]: Setting charging current limit to MAX - handlers.vehicle
2025-06-10 10:07:00,843 [INFO]: Charging will be started - handlers.vehicle
2025-06-10 10:07:07,417 [INFO]: Setting refresh mode to force due to after command execution on topic drivetrain/charging/set - vehicle
2025-06-10 10:07:07,621 [INFO]: Setting refresh mode to periodic due to restoring of previous refresh mode after a FORCE execution - vehicle
2025-06-10 10:07:07,622 [INFO]: Updating vehicle status - handlers.vehicle
2025-06-10 10:07:20,515 [INFO]: Updating charging status - handlers.vehicle
2025-06-10 10:07:27,077 [INFO]: Setting charging query interval in vehicle handler for VIN LSJxxxxxxxxxxxxxx to 0:09:42 - vehicle
2025-06-10 10:07:27,077 [INFO]: Updating scheduled battery heating status - handlers.vehicle
2025-06-10 10:07:27,154 [INFO]: Refreshing vehicle status succeeded... - handlers.vehicle
2025-06-10 10:07:27,379 [INFO]: Refreshing ABRP status succeeded... - handlers.vehicle
2025-06-10 10:07:27,380 [INFO]: Sending HA discovery messages for LSJxxxxxxxxxxxxxx (Force: False) - handlers.vehicle
2025-06-10 10:07:27,562 [INFO]: Charging will be stopped - handlers.vehicle
2025-06-10 10:07:27,574 [INFO]: Charging will be stopped - handlers.vehicle

here is the log from home-assistant GUI :

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions