jay_diff: fix two correctness bugs + add real-data round-trip tests

Bug 1 (crash): jay_merge_delete iterated _new.items() while _old (which
aliases _new sub-dicts due to jay_diff_rev's side-effect writes) was being
mutated.  Fixed by snapshotting with list(_new.items()) before iteration.

Bug 2 (wrong round-trip): When new has an empty dict {} at a location where
old had a non-empty dict, jay_merge_delete incorrectly pruned the now-empty
parent key.  Root cause: jay_diff_del stored the full old sub-dict in the
delete delta for both "key absent from new" and "key present but empty in
new", making them indistinguishable at merge time.

Fix: jay_diff_del is now a standalone recursive function that stores None
for dict keys entirely absent from new (sentinel for "delete entire key")
vs a sub-dict of specific sub-keys for partial deletions.  jay_merge_delete
no longer prunes empty dicts; None (or any non-dict value) in the delta is
the explicit signal to remove the parent key.

Also adds:
- tests/data/  — copy of 25 real JSON log files for integration testing
- tests/test_jay_diff_real_data.py — 2028 parametrised round-trip tests
  over 675 real vehicle snapshots; exposed and confirmed both bugs above

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-27 12:25:35 +02:00
co-authored by Claude Sonnet 4.6
parent 5ef7f13118
commit c8de234423
28 changed files with 92272 additions and 35 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,293 @@
{
"meta": {
"vin": "WVWZZZE1ZMP010760",
"created_at": "2026-05-26T11:37:05.156831+00:00",
"interval_seconds": 30
},
"records": [
{
"ts": "2026-05-26T11:37:08.127749+00:00",
"charging": {
"chargingStatus": {
"chargingState": "ChargingState.CHARGE_PURPOSE_REACHED_CONSERVATION",
"chargePower": {
"value": 0.0,
"unit": "kW"
},
"remainingChargingTimeToComplete": {
"value": 0,
"unit": "min"
},
"chargeType": "ChargeType.AC"
},
"batteryStatus": {
"currentSOC": {
"value": 80,
"unit": "%"
},
"cruisingRangeElectric": {
"value": 280,
"unit": "km"
}
},
"chargingSettings": {
"targetSOC": {
"value": 80,
"unit": "%"
},
"maxChargeCurrentAC": "MaximumChargeCurrent.MAXIMUM",
"autoUnlockPlugWhenCharged": "UnlockPlugState.OFF"
},
"plugStatus": {
"plugConnectionState": "PlugConnectionState.CONNECTED",
"plugLockState": "PlugLockState.LOCKED",
"externalPower": "ExternalPower.READY"
}
},
"measurements": {
"odometerStatus": {
"odometer": {
"value": 67419,
"unit": "km"
}
},
"rangeStatus": {
"electricRange": {
"value": 280,
"unit": "km"
},
"totalRange": {
"value": 280,
"unit": "km"
}
},
"temperatureBatteryStatus": {
"temperatureHvBatteryMax": {
"value": 23.5,
"unit": "degC"
},
"temperatureHvBatteryMin": {
"value": 22.0,
"unit": "degC"
}
}
},
"climatisation": {
"climatisationStatus": {
"climatisationState": "ClimatizationState.OFF",
"remainingClimatisationTime": {
"value": 0,
"unit": "min"
}
},
"climatisationSettings": {
"targetTemperature": {
"value": 21.0,
"unit": "degC"
},
"unitInCar": "UnitInCar.CELSIUS"
},
"windowHeatingStatus": {
"front": "WindowHeatingState.OFF",
"rear": "WindowHeatingState.OFF"
}
},
"access": {
"accessStatus": {
"overallStatus": "OverallState.SAFE",
"doors": {
"bonnet": {
"lockState": "LockState.UNKNOWN",
"openState": "OpenState.CLOSED"
},
"trunk": {
"lockState": "LockState.LOCKED",
"openState": "OpenState.CLOSED"
},
"rearRight": {
"lockState": "LockState.LOCKED",
"openState": "OpenState.CLOSED"
},
"rearLeft": {
"lockState": "LockState.LOCKED",
"openState": "OpenState.CLOSED"
},
"frontRight": {
"lockState": "LockState.LOCKED",
"openState": "OpenState.CLOSED"
},
"frontLeft": {
"lockState": "LockState.LOCKED",
"openState": "OpenState.CLOSED"
}
},
"windows": {
"sunRoof": {
"openState": "OpenState.UNSUPPORTED"
},
"roofCover": {
"openState": "OpenState.UNSUPPORTED"
},
"sunRoofRear": {
"openState": "OpenState.UNSUPPORTED"
},
"frontLeft": {
"openState": "OpenState.CLOSED"
},
"frontRight": {
"openState": "OpenState.CLOSED"
},
"rearLeft": {
"openState": "OpenState.CLOSED"
},
"rearRight": {
"openState": "OpenState.CLOSED"
}
}
}
}
},
{
"ts": "2026-05-26T11:37:43.660250+00:00",
"charging": {
"chargingStatus": {
"chargingState": "ChargingState.CHARGE_PURPOSE_REACHED_CONSERVATION",
"chargePower": {
"value": 0.0,
"unit": "kW"
},
"remainingChargingTimeToComplete": {
"value": 0,
"unit": "min"
},
"chargeType": "ChargeType.AC"
},
"batteryStatus": {
"currentSOC": {
"value": 80,
"unit": "%"
},
"cruisingRangeElectric": {
"value": 280,
"unit": "km"
}
},
"chargingSettings": {
"targetSOC": {
"value": 80,
"unit": "%"
},
"maxChargeCurrentAC": "MaximumChargeCurrent.MAXIMUM",
"autoUnlockPlugWhenCharged": "UnlockPlugState.OFF"
},
"plugStatus": {
"plugConnectionState": "PlugConnectionState.CONNECTED",
"plugLockState": "PlugLockState.LOCKED",
"externalPower": "ExternalPower.READY"
}
},
"measurements": {
"odometerStatus": {
"odometer": {
"value": 67419,
"unit": "km"
}
},
"rangeStatus": {
"electricRange": {
"value": 280,
"unit": "km"
},
"totalRange": {
"value": 280,
"unit": "km"
}
},
"temperatureBatteryStatus": {
"temperatureHvBatteryMax": {
"value": 23.5,
"unit": "degC"
},
"temperatureHvBatteryMin": {
"value": 22.0,
"unit": "degC"
}
}
},
"climatisation": {
"climatisationStatus": {
"climatisationState": "ClimatizationState.OFF",
"remainingClimatisationTime": {
"value": 0,
"unit": "min"
}
},
"climatisationSettings": {
"targetTemperature": {
"value": 21.0,
"unit": "degC"
},
"unitInCar": "UnitInCar.CELSIUS"
},
"windowHeatingStatus": {
"front": "WindowHeatingState.OFF",
"rear": "WindowHeatingState.OFF"
}
},
"access": {
"accessStatus": {
"overallStatus": "OverallState.SAFE",
"doors": {
"bonnet": {
"lockState": "LockState.UNKNOWN",
"openState": "OpenState.CLOSED"
},
"trunk": {
"lockState": "LockState.LOCKED",
"openState": "OpenState.CLOSED"
},
"rearRight": {
"lockState": "LockState.LOCKED",
"openState": "OpenState.CLOSED"
},
"rearLeft": {
"lockState": "LockState.LOCKED",
"openState": "OpenState.CLOSED"
},
"frontRight": {
"lockState": "LockState.LOCKED",
"openState": "OpenState.CLOSED"
},
"frontLeft": {
"lockState": "LockState.LOCKED",
"openState": "OpenState.CLOSED"
}
},
"windows": {
"sunRoof": {
"openState": "OpenState.UNSUPPORTED"
},
"roofCover": {
"openState": "OpenState.UNSUPPORTED"
},
"sunRoofRear": {
"openState": "OpenState.UNSUPPORTED"
},
"frontLeft": {
"openState": "OpenState.CLOSED"
},
"frontRight": {
"openState": "OpenState.CLOSED"
},
"rearLeft": {
"openState": "OpenState.CLOSED"
},
"rearRight": {
"openState": "OpenState.CLOSED"
}
}
}
}
}
]
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,485 @@
{
"meta": {
"vin": "WVWZZZE1ZMP010760",
"created_at": "2026-05-27T05:53:07.953894+00:00",
"interval_seconds": 30
},
"records": [
{
"ts": "2026-05-27T05:53:08.103087+00:00",
"charging": {
"chargingStatus": {
"chargingState": "off",
"chargeType": "invalid",
"chargePower": {
"value": 0.0,
"unit": "kW"
},
"remainingChargingTimeToComplete": {
"value": 0,
"unit": "min"
}
},
"batteryStatus": {
"currentSOC": {
"value": 58.0,
"unit": "%"
},
"cruisingRangeElectric": {
"value": 209.0,
"unit": "km"
}
},
"chargingSettings": {
"targetSOC": {
"value": 80.0,
"unit": "%"
},
"maxChargeCurrentAC": {
"value": 16.0,
"unit": "A"
},
"autoUnlockPlugWhenCharged": "False"
},
"plugStatus": {
"plugConnectionState": "disconnected",
"plugLockState": "unlocked",
"externalPower": "unavailable"
}
},
"measurements": {
"odometerStatus": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
},
"rangeStatus": {
"electricRange": {
"value": 209.0,
"unit": "km"
},
"totalRange": {
"value": 209.0,
"unit": "km"
}
},
"temperatureBatteryStatus": {
"temperatureHvBatteryMax": {
"value": 295.15,
"unit": "degC"
},
"temperatureHvBatteryMin": {
"value": 294.15,
"unit": "degC"
}
},
"temperatureOutsideStatus": {
"temperatureOutside": {
"value": null,
"unit": "degC"
}
}
},
"readiness": {
"readinessStatus": {
"connectionState": {
"isOnline": false,
"isActive": true
}
}
},
"climatisation": {
"climatisationStatus": {
"climatisationState": "off",
"remainingClimatisationTime": {
"value": 0,
"unit": "min"
}
},
"climatisationSettings": {
"targetTemperature": {
"value": 21.0,
"unit": "degC"
}
}
},
"parking": {
"parkingPosition": {
"lat": null,
"lon": null
}
},
"access": {
"accessStatus": {
"overallStatus": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
},
{
"ts": "2026-05-27T05:53:38.257550+00:00",
"charging": {
"chargingStatus": {
"chargingState": "off",
"chargeType": "invalid",
"chargePower": {
"value": 0.0,
"unit": "kW"
},
"remainingChargingTimeToComplete": {
"value": 0,
"unit": "min"
}
},
"batteryStatus": {
"currentSOC": {
"value": 58.0,
"unit": "%"
},
"cruisingRangeElectric": {
"value": 209.0,
"unit": "km"
}
},
"chargingSettings": {
"targetSOC": {
"value": 80.0,
"unit": "%"
},
"maxChargeCurrentAC": {
"value": 16.0,
"unit": "A"
},
"autoUnlockPlugWhenCharged": "False"
},
"plugStatus": {
"plugConnectionState": "disconnected",
"plugLockState": "unlocked",
"externalPower": "unavailable"
}
},
"measurements": {
"odometerStatus": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
},
"rangeStatus": {
"electricRange": {
"value": 209.0,
"unit": "km"
},
"totalRange": {
"value": 209.0,
"unit": "km"
}
},
"temperatureBatteryStatus": {
"temperatureHvBatteryMax": {
"value": 295.15,
"unit": "degC"
},
"temperatureHvBatteryMin": {
"value": 294.15,
"unit": "degC"
}
},
"temperatureOutsideStatus": {
"temperatureOutside": {
"value": null,
"unit": "degC"
}
}
},
"readiness": {
"readinessStatus": {
"connectionState": {
"isOnline": false,
"isActive": true
}
}
},
"climatisation": {
"climatisationStatus": {
"climatisationState": "off",
"remainingClimatisationTime": {
"value": 0,
"unit": "min"
}
},
"climatisationSettings": {
"targetTemperature": {
"value": 21.0,
"unit": "degC"
}
}
},
"parking": {
"parkingPosition": {
"lat": null,
"lon": null
}
},
"access": {
"accessStatus": {
"overallStatus": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
},
{
"ts": "2026-05-27T05:54:08.438969+00:00",
"charging": {
"chargingStatus": {
"chargingState": "off",
"chargeType": "invalid",
"chargePower": {
"value": 0.0,
"unit": "kW"
},
"remainingChargingTimeToComplete": {
"value": 0,
"unit": "min"
}
},
"batteryStatus": {
"currentSOC": {
"value": 58.0,
"unit": "%"
},
"cruisingRangeElectric": {
"value": 209.0,
"unit": "km"
}
},
"chargingSettings": {
"targetSOC": {
"value": 80.0,
"unit": "%"
},
"maxChargeCurrentAC": {
"value": 16.0,
"unit": "A"
},
"autoUnlockPlugWhenCharged": "False"
},
"plugStatus": {
"plugConnectionState": "disconnected",
"plugLockState": "unlocked",
"externalPower": "unavailable"
}
},
"measurements": {
"odometerStatus": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
},
"rangeStatus": {
"electricRange": {
"value": 209.0,
"unit": "km"
},
"totalRange": {
"value": 209.0,
"unit": "km"
}
},
"temperatureBatteryStatus": {
"temperatureHvBatteryMax": {
"value": 295.15,
"unit": "degC"
},
"temperatureHvBatteryMin": {
"value": 294.15,
"unit": "degC"
}
},
"temperatureOutsideStatus": {
"temperatureOutside": {
"value": null,
"unit": "degC"
}
}
},
"readiness": {
"readinessStatus": {
"connectionState": {
"isOnline": false,
"isActive": true
}
}
},
"climatisation": {
"climatisationStatus": {
"climatisationState": "off",
"remainingClimatisationTime": {
"value": 0,
"unit": "min"
}
},
"climatisationSettings": {
"targetTemperature": {
"value": 21.0,
"unit": "degC"
}
}
},
"parking": {
"parkingPosition": {
"lat": null,
"lon": null
}
},
"access": {
"accessStatus": {
"overallStatus": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
},
{
"ts": "2026-05-27T05:54:38.603661+00:00",
"charging": {
"chargingStatus": {
"chargingState": "off",
"chargeType": "invalid",
"chargePower": {
"value": 0.0,
"unit": "kW"
},
"remainingChargingTimeToComplete": {
"value": 0,
"unit": "min"
}
},
"batteryStatus": {
"currentSOC": {
"value": 58.0,
"unit": "%"
},
"cruisingRangeElectric": {
"value": 209.0,
"unit": "km"
}
},
"chargingSettings": {
"targetSOC": {
"value": 80.0,
"unit": "%"
},
"maxChargeCurrentAC": {
"value": 16.0,
"unit": "A"
},
"autoUnlockPlugWhenCharged": "False"
},
"plugStatus": {
"plugConnectionState": "disconnected",
"plugLockState": "unlocked",
"externalPower": "unavailable"
}
},
"measurements": {
"odometerStatus": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
},
"rangeStatus": {
"electricRange": {
"value": 209.0,
"unit": "km"
},
"totalRange": {
"value": 209.0,
"unit": "km"
}
},
"temperatureBatteryStatus": {
"temperatureHvBatteryMax": {
"value": 295.15,
"unit": "degC"
},
"temperatureHvBatteryMin": {
"value": 294.15,
"unit": "degC"
}
},
"temperatureOutsideStatus": {
"temperatureOutside": {
"value": null,
"unit": "degC"
}
}
},
"readiness": {
"readinessStatus": {
"connectionState": {
"isOnline": false,
"isActive": true
}
}
},
"climatisation": {
"climatisationStatus": {
"climatisationState": "off",
"remainingClimatisationTime": {
"value": 0,
"unit": "min"
}
},
"climatisationSettings": {
"targetTemperature": {
"value": 21.0,
"unit": "degC"
}
}
},
"parking": {
"parkingPosition": {
"lat": null,
"lon": null
}
},
"access": {
"accessStatus": {
"overallStatus": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
}
]
}
@@ -0,0 +1,128 @@
{
"meta": {
"vin": "WVWZZZE1ZMP010760",
"created_at": "2026-05-27T05:55:03.027525+00:00",
"interval_seconds": 30
},
"records": [
{
"ts": "2026-05-27T05:55:03.219238+00:00",
"charging": {
"chargingStatus": {
"chargingState": "off",
"chargeType": "invalid",
"chargePower": {
"value": 0.0,
"unit": "kW"
},
"remainingChargingTimeToComplete": {
"value": 0,
"unit": "min"
}
},
"batteryStatus": {
"currentSOC": {
"value": 58.0,
"unit": "%"
},
"cruisingRangeElectric": {
"value": 209.0,
"unit": "km"
}
},
"chargingSettings": {
"targetSOC": {
"value": 80.0,
"unit": "%"
},
"maxChargeCurrentAC": {
"value": 16.0,
"unit": "A"
},
"autoUnlockPlugWhenCharged": "False"
},
"plugStatus": {
"plugConnectionState": "disconnected",
"plugLockState": "unlocked",
"externalPower": "unavailable"
}
},
"measurements": {
"odometerStatus": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
},
"rangeStatus": {
"electricRange": {
"value": 209.0,
"unit": "km"
},
"totalRange": {
"value": 209.0,
"unit": "km"
}
},
"temperatureBatteryStatus": {
"temperatureHvBatteryMax": {
"value": 295.15,
"unit": "degC"
},
"temperatureHvBatteryMin": {
"value": 294.15,
"unit": "degC"
}
},
"temperatureOutsideStatus": {
"temperatureOutside": {
"value": null,
"unit": "degC"
}
}
},
"readiness": {
"readinessStatus": {
"connectionState": {
"isOnline": false,
"isActive": true
}
}
},
"climatisation": {
"climatisationStatus": {
"climatisationState": "off",
"remainingClimatisationTime": {
"value": 0,
"unit": "min"
}
},
"climatisationSettings": {
"targetTemperature": {
"value": 21.0,
"unit": "degC"
}
}
},
"parking": {
"parkingPosition": {
"lat": null,
"lon": null
}
},
"access": {
"accessStatus": {
"overallStatus": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
}
]
}
@@ -0,0 +1,130 @@
{
"meta": {
"vin": "WVWZZZE1ZMP010760",
"created_at": "2026-05-27T06:17:18.385566+00:00",
"interval_seconds": 30
},
"records": [
{
"ts": "2026-05-27T06:17:18.554491+00:00",
"charging": {
"chargingStatus": {
"chargingState": "off",
"chargeType": "invalid",
"chargePower": {
"value": 0.0,
"unit": "kW"
},
"remainingChargingTimeToComplete": {
"value": 0,
"unit": "min"
}
},
"batteryStatus": {
"currentSOC": {
"value": 58.0,
"unit": "%"
},
"cruisingRangeElectric": {
"value": 209.0,
"unit": "km"
}
},
"chargingSettings": {
"targetSOC": {
"value": 80.0,
"unit": "%"
},
"maxChargeCurrentAC": {
"value": 16.0,
"unit": "A"
},
"autoUnlockPlugWhenCharged": "False"
},
"plugStatus": {
"plugConnectionState": "disconnected",
"plugLockState": "unlocked",
"externalPower": "unavailable"
}
},
"measurements": {
"odometerStatus": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
},
"rangeStatus": {
"electricRange": {
"value": 209.0,
"unit": "km"
},
"totalRange": {
"value": 209.0,
"unit": "km"
}
},
"temperatureBatteryStatus": {
"temperatureHvBatteryMax": {
"value": 295.15,
"unit": "degC"
},
"temperatureHvBatteryMin": {
"value": 294.15,
"unit": "degC"
}
},
"temperatureOutsideStatus": {
"temperatureOutside": {
"value": null,
"unit": "degC"
}
}
},
"vehicle": {
"vehicle": {
"state": "unknown vehicle state"
}
},
"connectivity": {
"connection": {
"state": "reachable"
}
},
"climatisation": {
"climatisationStatus": {
"climatisationState": "off",
"remainingClimatisationTime": {
"value": 0,
"unit": "min"
}
},
"climatisationSettings": {
"targetTemperature": {
"value": 21.0,
"unit": "degC"
}
}
},
"position": {
"position": {
"lat": null,
"lon": null
}
},
"doors": {
"doors": {
"overallState": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
}
]
}
@@ -0,0 +1,130 @@
{
"meta": {
"vin": "WVWZZZE1ZMP010760",
"created_at": "2026-05-27T06:18:28.783719+00:00",
"interval_seconds": 30
},
"records": [
{
"ts": "2026-05-27T06:18:28.981339+00:00",
"charging": {
"chargingStatus": {
"chargingState": "off",
"chargeType": "invalid",
"chargePower": {
"value": 0.0,
"unit": "kW"
},
"remainingChargingTimeToComplete": {
"value": 0,
"unit": "min"
}
},
"batteryStatus": {
"currentSOC": {
"value": 58.0,
"unit": "%"
},
"cruisingRangeElectric": {
"value": 209.0,
"unit": "km"
}
},
"chargingSettings": {
"targetSOC": {
"value": 80.0,
"unit": "%"
},
"maxChargeCurrentAC": {
"value": 16.0,
"unit": "A"
},
"autoUnlockPlugWhenCharged": "False"
},
"plugStatus": {
"plugConnectionState": "disconnected",
"plugLockState": "unlocked",
"externalPower": "unavailable"
}
},
"measurements": {
"odometerStatus": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
},
"rangeStatus": {
"electricRange": {
"value": 209.0,
"unit": "km"
},
"totalRange": {
"value": 209.0,
"unit": "km"
}
},
"temperatureBatteryStatus": {
"temperatureHvBatteryMax": {
"value": 295.15,
"unit": "degC"
},
"temperatureHvBatteryMin": {
"value": 294.15,
"unit": "degC"
}
},
"temperatureOutsideStatus": {
"temperatureOutside": {
"value": null,
"unit": "degC"
}
}
},
"vehicle": {
"vehicle": {
"state": "unknown vehicle state"
}
},
"connectivity": {
"connection": {
"state": "reachable"
}
},
"climatisation": {
"climatisationStatus": {
"climatisationState": "off",
"remainingClimatisationTime": {
"value": 0,
"unit": "min"
}
},
"climatisationSettings": {
"targetTemperature": {
"value": 21.0,
"unit": "degC"
}
}
},
"position": {
"position": {
"lat": null,
"lon": null
}
},
"doors": {
"doors": {
"overallState": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
}
]
}
@@ -0,0 +1,130 @@
{
"meta": {
"vin": "WVWZZZE1ZMP010760",
"created_at": "2026-05-27T06:21:01.933728+00:00",
"interval_seconds": 30
},
"records": [
{
"ts": "2026-05-27T06:21:02.150738+00:00",
"charging": {
"chargingStatus": {
"chargingState": "off",
"chargeType": "invalid",
"chargePower": {
"value": 0.0,
"unit": "kW"
},
"remainingChargingTimeToComplete": {
"value": 0,
"unit": "min"
}
},
"batteryStatus": {
"currentSOC": {
"value": 58.0,
"unit": "%"
},
"cruisingRangeElectric": {
"value": 209.0,
"unit": "km"
}
},
"chargingSettings": {
"targetSOC": {
"value": 80.0,
"unit": "%"
},
"maxChargeCurrentAC": {
"value": 16.0,
"unit": "A"
},
"autoUnlockPlugWhenCharged": "False"
},
"plugStatus": {
"plugConnectionState": "disconnected",
"plugLockState": "unlocked",
"externalPower": "unavailable"
}
},
"measurements": {
"odometerStatus": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
},
"rangeStatus": {
"electricRange": {
"value": 209.0,
"unit": "km"
},
"totalRange": {
"value": 209.0,
"unit": "km"
}
},
"temperatureBatteryStatus": {
"temperatureHvBatteryMax": {
"value": 295.15,
"unit": "degC"
},
"temperatureHvBatteryMin": {
"value": 294.15,
"unit": "degC"
}
},
"temperatureOutsideStatus": {
"temperatureOutside": {
"value": null,
"unit": "degC"
}
}
},
"vehicle": {
"vehicle": {
"state": "unknown vehicle state"
}
},
"connectivity": {
"connection": {
"state": "reachable"
}
},
"climatisation": {
"climatisationStatus": {
"climatisationState": "off",
"remainingClimatisationTime": {
"value": 0,
"unit": "min"
}
},
"climatisationSettings": {
"targetTemperature": {
"value": 21.0,
"unit": "degC"
}
}
},
"position": {
"position": {
"lat": null,
"lon": null
}
},
"doors": {
"doors": {
"overallState": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
}
]
}
@@ -0,0 +1,130 @@
{
"meta": {
"vin": "WVWZZZE1ZMP010760",
"created_at": "2026-05-27T06:33:08.561803+00:00",
"interval_seconds": 30
},
"records": [
{
"ts": "2026-05-27T06:33:08.745827+00:00",
"charging": {
"chargingStatus": {
"chargingState": "off",
"chargeType": "invalid",
"chargePower": {
"value": 0.0,
"unit": "kW"
},
"remainingChargingTimeToComplete": {
"value": 0,
"unit": "min"
}
},
"batteryStatus": {
"currentSOC": {
"value": 58.0,
"unit": "%"
},
"cruisingRangeElectric": {
"value": 209.0,
"unit": "km"
}
},
"chargingSettings": {
"targetSOC": {
"value": 80.0,
"unit": "%"
},
"maxChargeCurrentAC": {
"value": 16.0,
"unit": "A"
},
"autoUnlockPlugWhenCharged": "False"
},
"plugStatus": {
"plugConnectionState": "disconnected",
"plugLockState": "unlocked",
"externalPower": "unavailable"
}
},
"electric_system": {
"electric_system": {
"range": {
"value": 209.0,
"unit": "km"
},
"range_full": {
"value": 360.3448275862069,
"unit": "km"
},
"battery": {
"temperature_max": {
"value": 295.15,
"unit": "degC"
},
"temperature_min": {
"value": 294.15,
"unit": "degC"
}
}
},
"odometer": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
},
"environment": {
"temperature_outside": {
"value": null,
"unit": "degC"
}
}
},
"vehicle": {
"vehicle": {
"state": "unknown vehicle state"
}
},
"connectivity": {
"connectivity": {
"state": "reachable"
}
},
"climatisation": {
"climatisationStatus": {
"climatisationState": "off",
"remainingClimatisationTime": {
"value": 0,
"unit": "min"
}
},
"climatisationSettings": {
"targetTemperature": {
"value": 21.0,
"unit": "degC"
}
}
},
"position": {
"position": {
"lat": null,
"lon": null
}
},
"doors": {
"doors": {
"overallState": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
}
]
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,627 @@
{
"meta": {
"vin": "WVWZZZE1ZMP010760",
"created_at": "2026-05-27T09:31:50.175248+00:00",
"interval_seconds": 30
},
"records": [
{
"ts": "2026-05-27T09:31:50.333801+00:00",
"charging": {
"state": "off",
"type": "invalid",
"power": {
"value": 0.0,
"unit": "kW"
},
"remain": {
"value": 0,
"unit": "min"
},
"settings": {
"target_level": {
"value": 80.0,
"unit": "%"
},
"maximum_current": {
"value": 16.0,
"unit": "A"
},
"auto_unlock": "False"
},
"plugStatus": {
"connection_state": "disconnected",
"lock_state": "unlocked",
"external_power": "unavailable"
}
},
"electric_drive": {
"range": {
"value": 209.0,
"unit": "km"
},
"range_full": {
"value": 360.3,
"unit": "km"
},
"battery": {
"soc": {
"value": 58.0,
"unit": "%"
},
"temperature_max": {
"value": 295.15,
"unit": "degC"
},
"temperature_min": {
"value": 294.15,
"unit": "degC"
}
},
"odometer": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
}
},
"vehicle": {
"state": "unknown vehicle state"
},
"connectivity": {
"state": "reachable"
},
"climatisation": {
"state": "off",
"remain": {
"value": 0,
"unit": "min"
},
"settings": {
"target_temperature": {
"value": 21.0,
"unit": "degC"
}
},
"environment": {
"temperature_outside": {
"value": null,
"unit": "degC"
}
}
},
"position": {
"lat": null,
"lon": null
},
"doors": {
"doors": {
"overallState": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
},
{
"ts": "2026-05-27T09:32:20.484182+00:00",
"charging": {
"state": "off",
"type": "invalid",
"power": {
"value": 0.0,
"unit": "kW"
},
"remain": {
"value": 0,
"unit": "min"
},
"settings": {
"target_level": {
"value": 80.0,
"unit": "%"
},
"maximum_current": {
"value": 16.0,
"unit": "A"
},
"auto_unlock": "False"
},
"plugStatus": {
"connection_state": "disconnected",
"lock_state": "unlocked",
"external_power": "unavailable"
}
},
"electric_drive": {
"range": {
"value": 209.0,
"unit": "km"
},
"range_full": {
"value": 360.3,
"unit": "km"
},
"battery": {
"soc": {
"value": 58.0,
"unit": "%"
},
"temperature_max": {
"value": 295.15,
"unit": "degC"
},
"temperature_min": {
"value": 294.15,
"unit": "degC"
}
},
"odometer": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
}
},
"vehicle": {
"state": "unknown vehicle state"
},
"connectivity": {
"state": "reachable"
},
"climatisation": {
"state": "off",
"remain": {
"value": 0,
"unit": "min"
},
"settings": {
"target_temperature": {
"value": 21.0,
"unit": "degC"
}
},
"environment": {
"temperature_outside": {
"value": null,
"unit": "degC"
}
}
},
"position": {
"lat": null,
"lon": null
},
"doors": {
"doors": {
"overallState": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
},
{
"ts": "2026-05-27T09:32:50.642394+00:00",
"charging": {
"state": "off",
"type": "invalid",
"power": {
"value": 0.0,
"unit": "kW"
},
"remain": {
"value": 0,
"unit": "min"
},
"settings": {
"target_level": {
"value": 80.0,
"unit": "%"
},
"maximum_current": {
"value": 16.0,
"unit": "A"
},
"auto_unlock": "False"
},
"plugStatus": {
"connection_state": "disconnected",
"lock_state": "unlocked",
"external_power": "unavailable"
}
},
"electric_drive": {
"range": {
"value": 209.0,
"unit": "km"
},
"range_full": {
"value": 360.3,
"unit": "km"
},
"battery": {
"soc": {
"value": 58.0,
"unit": "%"
},
"temperature_max": {
"value": 295.15,
"unit": "degC"
},
"temperature_min": {
"value": 294.15,
"unit": "degC"
}
},
"odometer": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
}
},
"vehicle": {
"state": "unknown vehicle state"
},
"connectivity": {
"state": "reachable"
},
"climatisation": {
"state": "off",
"remain": {
"value": 0,
"unit": "min"
},
"settings": {
"target_temperature": {
"value": 21.0,
"unit": "degC"
}
},
"environment": {
"temperature_outside": {
"value": null,
"unit": "degC"
}
}
},
"position": {
"lat": null,
"lon": null
},
"doors": {
"doors": {
"overallState": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
},
{
"ts": "2026-05-27T09:33:20.808989+00:00",
"charging": {
"state": "off",
"type": "invalid",
"power": {
"value": 0.0,
"unit": "kW"
},
"remain": {
"value": 0,
"unit": "min"
},
"settings": {
"target_level": {
"value": 80.0,
"unit": "%"
},
"maximum_current": {
"value": 16.0,
"unit": "A"
},
"auto_unlock": "False"
},
"plugStatus": {
"connection_state": "disconnected",
"lock_state": "unlocked",
"external_power": "unavailable"
}
},
"electric_drive": {
"range": {
"value": 209.0,
"unit": "km"
},
"range_full": {
"value": 360.3,
"unit": "km"
},
"battery": {
"soc": {
"value": 58.0,
"unit": "%"
},
"temperature_max": {
"value": 295.15,
"unit": "degC"
},
"temperature_min": {
"value": 294.15,
"unit": "degC"
}
},
"odometer": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
}
},
"vehicle": {
"state": "unknown vehicle state"
},
"connectivity": {
"state": "reachable"
},
"climatisation": {
"state": "off",
"remain": {
"value": 0,
"unit": "min"
},
"settings": {
"target_temperature": {
"value": 21.0,
"unit": "degC"
}
},
"environment": {
"temperature_outside": {
"value": null,
"unit": "degC"
}
}
},
"position": {
"lat": null,
"lon": null
},
"doors": {
"doors": {
"overallState": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
},
{
"ts": "2026-05-27T09:33:50.960434+00:00",
"charging": {
"state": "off",
"type": "invalid",
"power": {
"value": 0.0,
"unit": "kW"
},
"remain": {
"value": 0,
"unit": "min"
},
"settings": {
"target_level": {
"value": 80.0,
"unit": "%"
},
"maximum_current": {
"value": 16.0,
"unit": "A"
},
"auto_unlock": "False"
},
"plugStatus": {
"connection_state": "disconnected",
"lock_state": "unlocked",
"external_power": "unavailable"
}
},
"electric_drive": {
"range": {
"value": 209.0,
"unit": "km"
},
"range_full": {
"value": 360.3,
"unit": "km"
},
"battery": {
"soc": {
"value": 58.0,
"unit": "%"
},
"temperature_max": {
"value": 295.15,
"unit": "degC"
},
"temperature_min": {
"value": 294.15,
"unit": "degC"
}
},
"odometer": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
}
},
"vehicle": {
"state": "unknown vehicle state"
},
"connectivity": {
"state": "reachable"
},
"climatisation": {
"state": "off",
"remain": {
"value": 0,
"unit": "min"
},
"settings": {
"target_temperature": {
"value": 21.0,
"unit": "degC"
}
},
"environment": {
"temperature_outside": {
"value": null,
"unit": "degC"
}
}
},
"position": {
"lat": null,
"lon": null
},
"doors": {
"doors": {
"overallState": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
},
{
"ts": "2026-05-27T09:34:21.107584+00:00",
"charging": {
"state": "off",
"type": "invalid",
"power": {
"value": 0.0,
"unit": "kW"
},
"remain": {
"value": 0,
"unit": "min"
},
"settings": {
"target_level": {
"value": 80.0,
"unit": "%"
},
"maximum_current": {
"value": 16.0,
"unit": "A"
},
"auto_unlock": "False"
},
"plugStatus": {
"connection_state": "disconnected",
"lock_state": "unlocked",
"external_power": "unavailable"
}
},
"electric_drive": {
"range": {
"value": 209.0,
"unit": "km"
},
"range_full": {
"value": 360.3,
"unit": "km"
},
"battery": {
"soc": {
"value": 58.0,
"unit": "%"
},
"temperature_max": {
"value": 295.15,
"unit": "degC"
},
"temperature_min": {
"value": 294.15,
"unit": "degC"
}
},
"odometer": {
"odometer": {
"value": 67489.0,
"unit": "km"
}
}
},
"vehicle": {
"state": "unknown vehicle state"
},
"connectivity": {
"state": "reachable"
},
"climatisation": {
"state": "off",
"remain": {
"value": 0,
"unit": "min"
},
"settings": {
"target_temperature": {
"value": 21.0,
"unit": "degC"
}
},
"environment": {
"temperature_outside": {
"value": null,
"unit": "degC"
}
}
},
"position": {
"lat": null,
"lon": null
},
"doors": {
"doors": {
"overallState": "None",
"doors": {},
"windows": {}
}
},
"procedural": {
"range_at_100": {
"value": 360.3,
"unit": "km"
}
}
}
]
}
File diff suppressed because it is too large Load Diff