Vehicle via MQTT SoC in main dashboard not up-to-date
Describe the bug
With the new BMW / Mini CarData Stream I decided to use iobroker as Source - working fine. And distribute the needed data via MQTT ( Mosquito ) to other applications ( EVCC / HomeAssistant ) - also working fine.
I setup the vehicle in evcc.yaml and it is in general working:
But after a few out I saw that the minimum charging was not working. Then I saw that the SoC form the Mini in the configuration GUI was different to the SoC in the main page.
After an restart of fcc is working again, but then after a few hours I have the same topic again.
The SoC will be delivered from the BMW / Mini CarData API every 30 mins. the MQTT is done on a 5 sec base.
EVCC is running on a Proxmox LXC container ( 2 cpu, disk 8 GB, RAM 1 GB )
Steps to reproduce
- setup CarData Stream / API
- MQTT setup
- create MQTT vehicle
- run vehicle without error ...
Configuration details
`
mqtt:
broker: 192.168.178.43:1883
user: [myuser]
password: [myPassword]
vehicles:
# Mini Countryman SE all4 (Daten via ioBroker/MQTT)
- name: ev1
type: custom
title: Mini Countryman SE all4
capacity: 10.0 # Speicherkapazität in kWh
soc:
source: mqtt
topic: "javascript/0/WBH_Datenpunkte/Mini/SoC"
odometer:
source: mqtt
topic: "javascript/0/WBH_Datenpunkte/Mini/Odometer"
range:
source: mqtt
topic: "javascript/0/WBH_Datenpunkte/Mini/eReichweite"`
Log details
[mqtt ] TRACE 2025/10/13 08:16:15 recv javascript/0/WBH_Datenpunkte/Mini/SoC: '36'
[mqtt ] TRACE 2025/10/13 08:16:15 recv javascript/0/WBH_Datenpunkte/Mini/Odometer: '51318'
[mqtt ] TRACE 2025/10/13 08:16:15 recv javascript/0/WBH_Datenpunkte/Mini/eReichweite: '10'
[mqtt ] TRACE 2025/10/13 08:16:20 recv javascript/0/WBH_Datenpunkte/Mini/SoC: '36'
[mqtt ] TRACE 2025/10/13 08:16:20 recv javascript/0/WBH_Datenpunkte/Mini/Odometer: '51318'
[mqtt ] TRACE 2025/10/13 08:16:20 recv javascript/0/WBH_Datenpunkte/Mini/eReichweite: '10'
[mqtt ] TRACE 2025/10/13 08:16:25 recv javascript/0/WBH_Datenpunkte/Mini/SoC: '36'
[mqtt ] TRACE 2025/10/13 08:16:25 recv javascript/0/WBH_Datenpunkte/Mini/Odometer: '51318'
[mqtt ] TRACE 2025/10/13 08:16:25 recv javascript/0/WBH_Datenpunkte/Mini/eReichweite: '10'
[mqtt ] TRACE 2025/10/13 08:16:30 recv javascript/0/WBH_Datenpunkte/Mini/SoC: '36'
[mqtt ] TRACE 2025/10/13 08:16:30 recv javascript/0/WBH_Datenpunkte/Mini/Odometer: '51318'
[mqtt ] TRACE 2025/10/13 08:16:30 recv javascript/0/WBH_Datenpunkte/Mini/eReichweite: '10'
What type of operating system or environment does evcc run on?
other
External automation
- [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.
Nightly build
- [x] I have verified that the issue is reproducible with the latest nightly build
Version
v.0.209.1
Evcc will only update soc every 15min for charging purposes. Config UI/validate may show different values due to different update times. This is by design.
/cc @naltatis
this 15 will be ok but, the mismatch between SoC in Configuration Menu ( correct value from MQTT ) and SoC main page ( frozen ) stay until you restart evcc.
Still try to find a workaround to restart from iobroker, but my programming skills are not enough to overcome to run exec on another Container.
same here - and it is not about 15 minutes. If I push 'validate' I get latest info - but the SoC in dashboard is still old. I use BMW Cardata Plugin
Evcc will only update soc every 15min for charging purposes. Config UI/validate may show different values due to different update times. This is by design.
OK you closed the ticket, but when the SoC on the mainpage freeze, and is also not update after 15 Min - this also stay on the next day, how should evcc work with Min-SoC and other processes.
I'm not complaining that it's too long for me. The SoC on the mainpage ist stopping to be updated! Independent you wait 15 Mins or 3 Days.
Only an manual restart is solve this behavior for a few Minutes ( 30 Min - 2h )
I have the same problem: vehicle SoC is not represented correctly in the frontend. I stopped EVCC and did a run on the console using 'evcc -l debug vehicle':
Soc: 100% 3.251s
Capacity: 0.0kWh
Charge status: B
Range: xxxkm
Odometer: xxxkm
Finish time: 2025-10-14 14:11:00 +0000 UTC
Climate active: false
Limit Soc: 100%
But in the frontend it did not show the correct value but it showed 30% (sorry, no screenshot). It also charged the vehicle to 100% which is not according to the plan, which is 85%.
Only a 'systemctl restart evcc' fixes the problem of not being synchronized. Is there any logging I can enable to show this while EVCC is running?
Please open new issue with log file...