Some sensitive data replaced with xxx
cat /data/homeassistant/home-assistant.log | grep mg_saic
2024-09-04 15:34:51.771 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration mg_saic which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-09-04 15:35:34.478 DEBUG (MainThread) [custom_components.mg_saic] Logging in with region-based endpoint for region: EU
2024-09-04 15:35:35.911 DEBUG (MainThread) [custom_components.mg_saic] Login successful, initializing vehicle APIs.
2024-09-04 15:35:49.714 DEBUG (MainThread) [custom_components.mg_saic] Fetched data successfully
2024-09-04 15:35:49.715 DEBUG (MainThread) [custom_components.mg_saic] Vehicle Type: BEV
2024-09-04 15:35:49.715 DEBUG (MainThread) [custom_components.mg_saic] Vehicle Info: [VinInfo(bindTime=xxx, brandName='MG', colorName='BLACK PEARL', isActivate=False, isCurrentVehicle=True, isSubaccount=False, modelName='ZS EV', modelYear='2021', name=None, series='ZS EV S', vin='xxx', subAccountList=[], vehicleModelConfiguration=[VehicleModelConfiguration(itemCode='J17', itemName='Tire', itemValue='1'), VehicleModelConfiguration(itemCode='Q00', itemName='Airbag', itemValue='1'), VehicleModelConfiguration(itemCode='Q01', itemName='FAirbag', itemValue='0'), VehicleModelConfiguration(itemCode='Q09', itemName='AirbagS', itemValue='0'), VehicleModelConfiguration(itemCode='S35', itemName='Sunroof', itemValue='3'), VehicleModelConfiguration(itemCode='S61', itemName='Remote control', itemValue='1'), VehicleModelConfiguration(itemCode='T11', itemName='AC', itemValue='1'), VehicleModelConfiguration(itemCode='EPS', itemName='EPS', itemValue='1'), VehicleModelConfiguration(itemCode='SA64', itemName='SA64', itemValue='0111110000000000001000000100101000000010100000000000000000000110'), VehicleModelConfiguration(itemCode='BONNUT', itemName='BONNUT', itemValue='1'), VehicleModelConfiguration(itemCode='DOOR', itemName='DOOR', itemValue='1111'), VehicleModelConfiguration(itemCode='BOOT', itemName='BOOT', itemValue='1'), VehicleModelConfiguration(itemCode='ENGINE', itemName='ENGINE', itemValue='1'), VehicleModelConfiguration(itemCode='EV', itemName='EV', itemValue='0'), VehicleModelConfiguration(itemCode='HeatedSeat', itemName='HeatedSeat', itemValue='0'), VehicleModelConfiguration(itemCode='KEYPOS', itemName='KEYPOS', itemValue='1'), VehicleModelConfiguration(itemCode='ENERGY', itemName='ENERGY', itemValue='1'), VehicleModelConfiguration(itemCode='BATTERY', itemName='BATTERY', itemValue='1'), VehicleModelConfiguration(itemCode='INTEMP', itemName='INTEMP', itemValue='1'), VehicleModelConfiguration(itemCode='EXTEMP', itemName='EXTEMP', itemValue='1'), VehicleModelConfiguration(itemCode='WINDOW', itemName='WINDOW', itemValue='0000'), VehicleModelConfiguration(itemCode='LRD', itemName='LRD', itemValue='0'), VehicleModelConfiguration(itemCode='BTKEY', itemName='BTKEY', itemValue='1'), VehicleModelConfiguration(itemCode='BType', itemName='Battery', itemValue='1'), VehicleModelConfiguration(itemCode='SBH', itemName='SBH', itemValue='1'), VehicleModelConfiguration(itemCode='BHI', itemName='BHI', itemValue='0'), VehicleModelConfiguration(itemCode='ROV', itemName='ROV', itemValue='25857')])]
2024-09-04 15:35:49.716 DEBUG (MainThread) [custom_components.mg_saic] Vehicle Status: VehicleStatusResp(basicVehicleStatus=BasicVehicleStatus(batteryVoltage=133, bonnetStatus=0, bootStatus=0, canBusActive=1, clstrDspdFuelLvlSgmt=0, currentJourneyId=2430, currentJourneyDistance=30, dippedBeamStatus=0, driverDoor=0, driverWindow=0, engineStatus=0, extendedData1=60, extendedData2=0, exteriorTemperature=22, frontLeftSeatHeatLevel=0, frontLeftTyrePressure=70, frontRightSeatHeatLevel=0, frontRightTyrePressure=69, fuelLevelPrc=0, fuelRange=0, fuelRangeElec=0, handBrake=0, interiorTemperature=-128, lastKeySeen=23907, lockStatus=1, mainBeamStatus=0, mileage=206180, passengerDoor=0, passengerWindow=0, powerMode=0, rearLeftDoor=0, rearLeftTyrePressure=68, rearLeftWindow=0, rearRightDoor=0, rearRightTyrePressure=68, rearRightWindow=0, remoteClimateStatus=0, rmtHtdRrWndSt=0, sideLightStatus=0, steeringHeatLevel=None, steeringWheelHeatFailureReason=None, sunroofStatus=1, timeOfLastCANBUSActivity=None, vehElecRngDsp=0, vehicleAlarmStatus=2, wheelTyreMonitorStatus=0), extendedVehicleStatus=ExtendedVehicleStatus(alertDataSum=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), gpsPosition=GpsPosition(gpsStatus=2, timeStamp=1725456939, wayPoint=GpsPosition.WayPoint(hdop=6, heading=0, position=GpsPosition.WayPoint.Position(altitude=-7, latitude=xxx, longitude=xxx), satellites=10, speed=0)), statusTime=1725456939)
2024-09-04 15:35:49.725 DEBUG (MainThread) [custom_components.mg_saic] Vehicle Charging Data: ChrgMgmtDataResp(chrgMgmtData=ChrgMgmtData(bmsAdpPubChrgSttnDspCmd=2, bmsAltngChrgCrntDspCmd=0, bmsChrgCtrlDspCmd=2, bmsChrgOtptCrntReq=1023, bmsChrgOtptCrntReqV=None, bmsChrgSpRsn=0, bmsChrgSts=0, bmsDsChrgSpRsn=None, bmsEstdElecRng=453, bmsOnBdChrgTrgtSOCDspCmd=7, bmsPackCrnt=20000, bmsPackCrntV=None, bmsPackSOCDsp=604, bmsPackVol=1460, bmsPTCHeatReqDspCmd=0, bmsPTCHeatResp=None, bmsPTCHeatSpRsn=0, bmsReserCtrlDspCmd=2, bmsReserSpHourDspCmd=6, bmsReserSpMintueDspCmd=0, bmsReserStHourDspCmd=22, bmsReserStMintueDspCmd=0, ccuEleccLckCtrlDspCmd=None, ccuOffBdChrgrPlugOn=None, ccuOnbdChrgrPlugOn=None, chrgngAddedElecRng=None, chrgngAddedElecRngV=None, chrgngDoorOpenCnd=None, chrgngDoorPosSts=None, chrgngRmnngTime=1023, chrgngRmnngTimeV=1, chrgngSpdngTime=None, chrgngSpdngTimeV=None, clstrElecRngToEPT=260, disChrgngRmnngTime=None, disChrgngRmnngTimeV=None, imcuChrgngEstdElecRng=None, imcuChrgngEstdElecRngV=None, imcuDschrgngEstdElecRng=None, imcuDschrgngEstdElecRngV=None, imcuVehElecRng=None, imcuVehElecRngV=None, onBdChrgrAltrCrntInptCrnt=None, onBdChrgrAltrCrntInptVol=None), rvsChargeStatus=RvsChargeStatus(chargingDuration=0, chargingElectricityPhase=None, chargingGunState=0, chargingPileID=None, chargingPileSupplier=None, chargingType=1, endTime=1725434536, extendedData1=None, extendedData2=None, extendedData3=None, extendedData4=None, fotaLowestVoltage=None, fuelRangeElec=2600, lastChargeEndingPower=560, mileage=206180, mileageOfDay=780, mileageSinceLastCharge=780, powerUsageOfDay=431, powerUsageSinceLastCharge=123, realtimePower=438, startTime=0, staticEnergyConsumption=None, totalBatteryCapacity=725, workingCurrent=20000, workingVoltage=1460))
2024-09-04 15:35:49.734 DEBUG (MainThread) [custom_components.mg_saic] Finished fetching MG SAIC data update coordinator data in 13.822 seconds (success: True)
2024-09-04 15:35:49.880 ERROR (MainThread) [custom_components.mg_saic] Error updating sensor Battery Voltage: No entity id specified for entity MG ZS EV Battery Voltage
2024-09-04 15:35:49.883 ERROR (MainThread) [custom_components.mg_saic] Error updating sensor Interior Temperature: No entity id specified for entity MG ZS EV Interior Temperature
2024-09-04 15:35:49.885 ERROR (MainThread) [custom_components.mg_saic] Error updating sensor Exterior Temperature: No entity id specified for entity MG ZS EV Exterior Temperature
2024-09-04 15:35:49.889 ERROR (MainThread) [custom_components.mg_saic] Error updating sensor Tyre Pressure Front Left: No entity id specified for entity MG ZS EV Tyre Pressure Front Left
2024-09-04 15:35:49.892 ERROR (MainThread) [custom_components.mg_saic] Error updating sensor Tyre Pressure Front Right: No entity id specified for entity MG ZS EV Tyre Pressure Front Right
2024-09-04 15:35:49.894 ERROR (MainThread) [custom_components.mg_saic] Error updating sensor Tyre Pressure Rear Left: No entity id specified for entity MG ZS EV Tyre Pressure Rear Left
2024-09-04 15:35:49.897 ERROR (MainThread) [custom_components.mg_saic] Error updating sensor Tyre Pressure Rear Right: No entity id specified for entity MG ZS EV Tyre Pressure Rear Right
2024-09-04 15:35:49.901 ERROR (MainThread) [custom_components.mg_saic] Error updating sensor Mileage: No entity id specified for entity MG ZS EV Mileage
2024-09-04 15:35:49.903 ERROR (MainThread) [custom_components.mg_saic] Error updating vehicle detail sensor Model Year: No entity id specified for entity MG ZS EV Model Year
2024-09-04 15:35:49.906 ERROR (MainThread) [custom_components.mg_saic] Error updating vehicle detail sensor Brand: No entity id specified for entity MG ZS EV Brand
2024-09-04 15:35:49.908 ERROR (MainThread) [custom_components.mg_saic] Error updating vehicle detail sensor Model: No entity id specified for entity MG ZS EV Model
2024-09-04 15:35:49.912 ERROR (MainThread) [custom_components.mg_saic] Error updating sensor Electric Range: No entity id specified for entity MG ZS EV Electric Range
2024-09-04 15:35:49.915 ERROR (MainThread) [custom_components.mg_saic] Error updating sensor State of Charge: No entity id specified for entity MG ZS EV State of Charge
2024-09-04 15:35:49.920 WARNING (MainThread) [custom_components.mg_saic] Field bmsPackVol returned None in charging data.
2024-09-04 15:35:49.922 ERROR (MainThread) [custom_components.mg_saic] Error updating charging sensor Charging Voltage: No entity id specified for entity MG ZS EV Charging Voltage
2024-09-04 15:35:49.925 WARNING (MainThread) [custom_components.mg_saic] Field bmsPackCrnt returned None in charging data.
2024-09-04 15:35:49.926 ERROR (MainThread) [custom_components.mg_saic] Error updating charging sensor Charging Current: No entity id specified for entity MG ZS EV Charging Current
2024-09-04 15:35:49.929 ERROR (MainThread) [custom_components.mg_saic] Error updating charging sensor Charging Power: No entity id specified for entity MG ZS EV Charging Power
2024-09-04 15:35:49.931 ERROR (MainThread) [custom_components.mg_saic] Error updating charging sensor Estimated Range After Charging: No entity id specified for entity MG ZS EV Estimated Range After Charging
2024-09-04 15:35:49.935 WARNING (MainThread) [custom_components.mg_saic] Field bmsChrgOtptCrntReq returned None in charging data.
2024-09-04 15:35:49.936 ERROR (MainThread) [custom_components.mg_saic] Error updating charging sensor Charging Current Limit: No entity id specified for entity MG ZS EV Charging Current Limit
2024-09-04 15:35:49.939 ERROR (MainThread) [custom_components.mg_saic] Error updating charging sensor Charging Target SOC: No entity id specified for entity MG ZS EV Charging Target SOC
2024-09-04 15:35:49.941 ERROR (MainThread) [custom_components.mg_saic] Error updating charging sensor Charging Duration: No entity id specified for entity MG ZS EV Charging Duration
2024-09-04 15:35:49.943 WARNING (MainThread) [custom_components.mg_saic] Field chrgngRmnngTime returned None in charging data.
2024-09-04 15:35:49.943 ERROR (MainThread) [custom_components.mg_saic] Error updating charging sensor Remaining Charging Time: No entity id specified for entity MG ZS EV Remaining Charging Time
2024-09-04 15:35:49.946 WARNING (MainThread) [custom_components.mg_saic] Field chrgngAddedElecRng returned None in charging data.
2024-09-04 15:35:49.947 ERROR (MainThread) [custom_components.mg_saic] Error updating charging sensor Added Electric Range: No entity id specified for entity MG ZS EV Added Electric Range
2024-09-04 15:35:49.949 ERROR (MainThread) [custom_components.mg_saic] Error updating charging sensor Power Usage Since Last Charge: No entity id specified for entity MG ZS EV Power Usage Since Last Charge
2024-09-04 15:35:49.951 ERROR (MainThread) [custom_components.mg_saic] Error updating charging sensor Mileage Since Last Charge: No entity id specified for entity MG ZS EV Mileage Since Last Charge
2024-09-04 15:35:49.953 ERROR (MainThread) [custom_components.mg_saic] Error updating charging sensor Charging Status: No entity id specified for entity MG ZS EV Charging Status
2024-09-04 15:35:49.958 ERROR (MainThread) [custom_components.mg_saic] Error updating binary sensor Door Front Left: No entity id specified for entity MG ZS EV Door Front Left
2024-09-04 15:35:49.959 ERROR (MainThread) [custom_components.mg_saic] Error updating binary sensor Window Front Left: No entity id specified for entity MG ZS EV Window Front Left
2024-09-04 15:35:49.961 ERROR (MainThread) [custom_components.mg_saic] Error updating binary sensor Door Front Right: No entity id specified for entity MG ZS EV Door Front Right
2024-09-04 15:35:49.964 ERROR (MainThread) [custom_components.mg_saic] Error updating binary sensor Window Front Right: No entity id specified for entity MG ZS EV Window Front Right
2024-09-04 15:35:49.966 ERROR (MainThread) [custom_components.mg_saic] Error updating binary sensor Door Rear Left: No entity id specified for entity MG ZS EV Door Rear Left
2024-09-04 15:35:49.968 ERROR (MainThread) [custom_components.mg_saic] Error updating binary sensor Window Rear Left: No entity id specified for entity MG ZS EV Window Rear Left
2024-09-04 15:35:49.970 ERROR (MainThread) [custom_components.mg_saic] Error updating binary sensor Door Rear Right: No entity id specified for entity MG ZS EV Door Rear Right
2024-09-04 15:35:49.971 ERROR (MainThread) [custom_components.mg_saic] Error updating binary sensor Window Rear Right: No entity id specified for entity MG ZS EV Window Rear Right
2024-09-04 15:35:49.973 ERROR (MainThread) [custom_components.mg_saic] Error updating binary sensor Sun Roof Status: No entity id specified for entity MG ZS EV Sun Roof Status
2024-09-04 15:35:49.976 ERROR (MainThread) [custom_components.mg_saic] Error updating binary sensor Bonnet Status: No entity id specified for entity MG ZS EV Bonnet Status
2024-09-04 15:35:49.978 ERROR (MainThread) [custom_components.mg_saic] Error updating binary sensor Boot Status: No entity id specified for entity MG ZS EV Boot Status
2024-09-04 15:35:49.981 ERROR (MainThread) [custom_components.mg_saic] Error updating binary sensor Lock Status: No entity id specified for entity MG ZS EV Lock Status
2024-09-04 15:35:49.983 ERROR (MainThread) [custom_components.mg_saic] Error updating binary sensor HVAC Status: No entity id specified for entity MG ZS EV HVAC Status
2024-09-04 15:35:49.985 ERROR (MainThread) [custom_components.mg_saic] Error updating charging binary sensor Charging Gun State: No entity id specified for entity MG ZS EV Charging Gun State
2024-09-04 15:35:49.997 DEBUG (MainThread) [custom_components.mg_saic] Updated GPS location to xxx, xxx
2024-09-04 15:35:49.998 ERROR (MainThread) [custom_components.mg_saic] Error updating GPS location: No entity id specified for entity MG ZS EV GPS Location
2024-09-04 15:35:50.014 INFO (MainThread) [custom_components.mg_saic] Services registered for MG SAIC integration.
2024-09-04 15:35:50.014 INFO (MainThread) [custom_components.mg_saic] MG SAIC integration setup completed successfully.
2024-09-04 15:36:19.941 WARNING (MainThread) [custom_components.mg_saic] Field bmsPackVol returned None in charging data.
2024-09-04 15:36:19.957 WARNING (MainThread) [custom_components.mg_saic] Field bmsPackCrnt returned None in charging data.
2024-09-04 15:36:19.961 WARNING (MainThread) [custom_components.mg_saic] Field bmsChrgOtptCrntReq returned None in charging data.
2024-09-04 15:36:19.972 WARNING (MainThread) [custom_components.mg_saic] Field chrgngRmnngTime returned None in charging data.
2024-09-04 15:36:19.978 WARNING (MainThread) [custom_components.mg_saic] Field chrgngAddedElecRng returned None in charging data.```