Remaining range shows 0km when car not in motion
bjoernkowarsch opened this issue · comments
I installed SAIC MQTT Gateway (Python) HA add-on Version 0.6.0 this morning and did some driving (office and back) today. I noticed the remaining range in my HA dashboard is only displayed when the car is actually moving. If it is parked, the range shows 0km. However, telegram notification which I set up which is giving me a trip summary after each drive is showing me the remaining range correctly.
Anyone else having this problem?
Hi @bjoernkowarsch what car are you driving?
Can you also show the chart of:
- "Range" sensor
- "Vehicle Running" sensor
- "Vehicle Speed" sensor
All on the same page, focusing just on the time around the range dropped to 0
The "Range" stats are now pulled straight from the BMS instead of the vehicle stats and indeed it allows a 0 mileage reading, altough I had never seen that.
if it happens consistently we can setup an in-depth diagnosis session
Hi @nanomad ,
I have a MG5 Long Range Luxury.
brand = MG
model = MG5 Electric
year = 2021
series = EP2DP3
color = FLARE RED
Funny thing is, in the moment I was trying to assemble the required info it seems to keep the values on the dashboard:
drivetrain
hvBatteryActive = False
running = False
charging = False
auxiliaryBatteryVoltage = 12.5
mileage = 6746.0
current = 0.0
voltage = 370.0
power = 0.0
socTarget = 100
soc = 63.8
hybrid_electrical_range = 351
mileageOfTheDay = 10.0
mileageSinceLastCharge = 113.0
soc_kwh = 39.02
chargingType = 1
chargerConnected = False
chargingSchedule = { "startTime": "22:00", "endTime": "06:00", "mode": "DISABLED" }
remainingChargingTime = 0
lastChargeEndingPower = 56.8
totalBatteryCapacity = 61.1
range = 213.0
batteryHeating = False
batteryHeatingSchedule = { "mode": "off", "startTime": "00:00" }
currentJourney = { "id": 1059, "distance": 2.0 }
powerUsageOfDay = 206.31
powerUsageSinceLastCharge = 17.87
chargingCableLock = False
So I guess we can close this for now. Maybe its been a browser / website cache thing ...
@bjoernkowarsch Just to be sure, if you plot the "Range" from the HA page, do you see any "0" values? If so, we may still have a bug lurking around.
This is the plot:
Red arrows mark the time when I was seeing 0km range left (like I said in my initial post, this morning when I installed the latest version), yellow arrows now show the remaining range.
So for some reason it seems to work now. Not sure what caused the zero range value over the course of the day ...
Hi @nanomad , unfortunately it happened again:
I also noticed that while charging I do not get indications for kW and A any longer (definitely worked with the previous version):
Will check if this is known / reported already - just fyi.
Bjoern
@bjoernkowarsch can you try with v0.6.1 as soon as it's released?
@nanomad so I installed version 0.6.1 this morning and monitored the drive to my office. So far, it seems to work. However, when I have entered an underground park deck, range again goes to "0". Maybe its because connection is blocked and the gateway does not receive a (final) message that the car is parked and no longer in motion? Not sure how this situation is supposed to be treated..
I have not checked for indications while charging as there hasn't been an opportunity to charge the car. Maybe within the next days ...
What I have forgot to mention (even in earlier posts), many thanks for providing the SAIC gateway! I absolutely appreciate the work and the efforts you are spending on it! Thumbs up!
Interesting, seems like the MG5 sets this data to 0 while parked. I wonder what else is set to 0 then... Can you please run the troubleshooting steps described here?
(as long as you can trigger this issue reliabily)
I can certainly blacklist 0 as a range value as temporary fix, but I'd rater make a proper one
@bjoernkowarsch you're looking inside the vehicle tree. It's at the top level under saic
Fix in 0.6.2-rc8, please try it out @bjoernkowarsch