bimmerconnected / bimmer_connected

🚘 Library to query the status of your BMW or Mini from the ConnectedDrive portal
Apache License 2.0
365 stars 79 forks source link

Add charging sessions and charging statistics data for hybrids and BEVs #566

Closed cubinet-code closed 1 year ago

cubinet-code commented 1 year ago

Proposed change

New Data

ChargingStatistics(charging_session_timeperiod='September 2023', charging_session_count=6, total_energy_charged=168)
ChargingSessions(charging_session_count=6, charging_sessions=[ChargingSession(status='FINISHED', description='9/3/2023 15:47 • AC solid GmbH • 1h 49min • ~ 13,57 EUR', address='Kornmarkt 8 90402 Nürnberg', charging_type=<ChargingType.AC_HIGH: 'AC_HIGH'>, soc_start='10%', soc_end='62%', energy_charged=37.699981689453125, time_start='9/3/2023 15:47', time_end='9/3/2023 17:38', duration='1h 49min', power_avg=20.48, power_min=0.0, power_max=21.55, charging_blocks=[ChargingBlock(time_start='2023-09-03T15:47:47Z', time_end='2023-09-03T15:47:48Z', power_avg=0.0), ChargingBlock(time_start='2023-09-03T15:47:48Z', time_end='2023-09-03T15:47:49Z', power_avg=0.0), ChargingBlock(time_start='2023-09-03T15:47:49Z', time_end='2023-09-03T15:48:55Z', power_avg=0.0), ChargingBlock(time_start='2023-09-03T15:48:55Z', time_end='2023-09-03T15:55:21Z', power_avg=19.55), ChargingBlock(time_start='2023-09-03T15:55:21Z', time_end='2023-09-03T15:58:16.75Z', power_avg=19.8), ChargingBlock(time_start='2023-09-03T15:58:16.75Z', time_end='2023-09-03T16:01:12.5Z', power_avg=19.8), ChargingBlock(time_start='2023-09-03T16:01:12.5Z', time_end='2023-09-03T16:04:08.25Z', power_avg=19.8), ChargingBlock(time_start='2023-09-03T16:04:08.25Z', time_end='2023-09-03T16:07:04Z', power_avg=19.8), ChargingBlock(time_start='2023-09-03T16:07:04Z', time_end='2023-09-03T16:11:36.5Z', power_avg=20.1), ChargingBlock(time_start='2023-09-03T16:11:36.5Z', time_end='2023-09-03T16:16:09Z', power_avg=20.1), ChargingBlock(time_start='2023-09-03T16:16:09Z', time_end='2023-09-03T16:20:41.5Z', power_avg=20.1), ChargingBlock(time_start='2023-09-03T16:20:41.5Z', time_end='2023-09-03T16:25:14Z', power_avg=20.1), ChargingBlock(time_start='2023-09-03T16:25:14Z', time_end='2023-09-03T16:32:53.5Z', power_avg=20.35), ChargingBlock(time_start='2023-09-03T16:32:53.5Z', time_end='2023-09-03T16:40:33Z', power_avg=20.35), ChargingBlock(time_start='2023-09-03T16:40:33Z', time_end='2023-09-03T16:48:12.5Z', power_avg=20.35), ChargingBlock(time_start='2023-09-03T16:48:12.5Z', time_end='2023-09-03T16:55:52Z', power_avg=20.35), ChargingBlock(time_start='2023-09-03T16:55:52Z', time_end='2023-09-03T17:05:55Z', power_avg=20.75), ChargingBlock(time_start='2023-09-03T17:05:55Z', time_end='2023-09-03T17:09:48Z', power_avg=21.0), ChargingBlock(time_start='2023-09-03T17:09:48Z', time_end='2023-09-03T17:13:41Z', power_avg=21.0), ChargingBlock(time_start='2023-09-03T17:13:41Z', time_end='2023-09-03T17:17:34Z', power_avg=21.0), ChargingBlock(time_start='2023-09-03T17:17:34Z', time_end='2023-09-03T17:21:27Z', power_avg=21.0), ChargingBlock(time_start='2023-09-03T17:21:27Z', time_end='2023-09-03T17:31:29Z', power_avg=21.25), ChargingBlock(time_start='2023-09-03T17:31:29Z', time_end='2023-09-03T17:38:06Z', power_avg=21.55), ChargingBlock(time_start='2023-09-03T17:38:06Z', time_end='2023-09-03T17:38:07Z', power_avg=0.0)], public=True, pre_condition='On', mileage='7,038 km'), ChargingSession(status='FINISHED', description='9/3/2023 13:01 • HPC/DC IONITY GmbH • 27 min • ~ 11,70 EUR', address='Rastanlage Donautal Ost A3 94036 Passau', charging_type=<ChargingType.DC: 'DC'>, soc_start='39%', soc_end='90%', energy_charged=33.41998291015625, time_start='9/3/2023 13:01', time_end='9/3/2023 13:29', duration='27 min', power_avg=72.45, power_min=33.55, power_max=123.8, charging_blocks=[ChargingBlock(time_start='2023-09-03T13:01:48Z', time_end='2023-09-03T13:01:49Z', power_avg=0.0), ChargingBlock(time_start='2023-09-03T13:01:49Z', time_end='2023-09-03T13:01:51Z', power_avg=33.55), ChargingBlock(time_start='2023-09-03T13:01:51Z', time_end='2023-09-03T13:02:21Z', power_avg=33.55), ChargingBlock(time_start='2023-09-03T13:02:21Z', time_end='2023-09-03T13:02:51Z', power_avg=123.8), ChargingBlock(time_start='2023-09-03T13:02:51Z', time_end='2023-09-03T13:03:21Z', power_avg=123.6), ChargingBlock(time_start='2023-09-03T13:03:21Z', time_end='2023-09-03T13:03:51Z', power_avg=123.3), ChargingBlock(time_start='2023-09-03T13:03:51Z', time_end='2023-09-03T13:04:21Z', power_avg=122.0), ChargingBlock(time_start='2023-09-03T13:04:21Z', time_end='2023-09-03T13:04:51Z', power_avg=120.25), ChargingBlock(time_start='2023-09-03T13:04:51Z', time_end='2023-09-03T13:05:21Z', power_avg=119.2), ChargingBlock(time_start='2023-09-03T13:05:21Z', time_end='2023-09-03T13:05:51Z', power_avg=118.35), ChargingBlock(time_start='2023-09-03T13:05:51Z', time_end='2023-09-03T13:06:21Z', power_avg=118.4), ChargingBlock(time_start='2023-09-03T13:06:21Z', time_end='2023-09-03T13:06:51Z', power_avg=117.05), ChargingBlock(time_start='2023-09-03T13:06:51Z', time_end='2023-09-03T13:07:21Z', power_avg=112.85), ChargingBlock(time_start='2023-09-03T13:07:21Z', time_end='2023-09-03T13:07:51Z', power_avg=109.0), ChargingBlock(time_start='2023-09-03T13:07:51Z', time_end='2023-09-03T13:08:21Z', power_avg=105.1), ChargingBlock(time_start='2023-09-03T13:08:21Z', time_end='2023-09-03T13:08:51Z', power_avg=103.2), ChargingBlock(time_start='2023-09-03T13:08:51Z', time_end='2023-09-03T13:09:21Z', power_avg=100.45), ChargingBlock(time_start='2023-09-03T13:09:21Z', time_end='2023-09-03T13:09:51Z', power_avg=98.5), ChargingBlock(time_start='2023-09-03T13:09:51Z', time_end='2023-09-03T13:10:21Z', power_avg=96.75), ChargingBlock(time_start='2023-09-03T13:10:21Z', time_end='2023-09-03T13:10:51Z', power_avg=94.1), ChargingBlock(time_start='2023-09-03T13:10:51Z', time_end='2023-09-03T13:11:21Z', power_avg=91.1), ChargingBlock(time_start='2023-09-03T13:11:21Z', time_end='2023-09-03T13:11:51Z', power_avg=88.4), ChargingBlock(time_start='2023-09-03T13:11:51Z', time_end='2023-09-03T13:12:21Z', power_avg=85.7), ChargingBlock(time_start='2023-09-03T13:12:21Z', time_end='2023-09-03T13:12:51Z', power_avg=83.9), ChargingBlock(time_start='2023-09-03T13:12:51Z', time_end='2023-09-03T13:13:21Z', power_avg=83.05), ChargingBlock(time_start='2023-09-03T13:13:21Z', time_end='2023-09-03T13:13:51Z', power_avg=81.55), ChargingBlock(time_start='2023-09-03T13:13:51Z', time_end='2023-09-03T13:14:21Z', power_avg=80.8), ChargingBlock(time_start='2023-09-03T13:14:21Z', time_end='2023-09-03T13:14:51Z', power_avg=81.0), ChargingBlock(time_start='2023-09-03T13:14:51Z', time_end='2023-09-03T13:15:21Z', power_avg=80.55), ChargingBlock(time_start='2023-09-03T13:15:21Z', time_end='2023-09-03T13:15:51Z', power_avg=79.1), ChargingBlock(time_start='2023-09-03T13:15:51Z', time_end='2023-09-03T13:16:21Z', power_avg=76.65), ChargingBlock(time_start='2023-09-03T13:16:21Z', time_end='2023-09-03T13:16:51Z', power_avg=74.2), ChargingBlock(time_start='2023-09-03T13:16:51Z', time_end='2023-09-03T13:17:21Z', power_avg=71.35), ChargingBlock(time_start='2023-09-03T13:17:21Z', time_end='2023-09-03T13:17:51Z', power_avg=69.2), ChargingBlock(time_start='2023-09-03T13:17:51Z', time_end='2023-09-03T13:18:21Z', power_avg=68.0), ChargingBlock(time_start='2023-09-03T13:18:21Z', time_end='2023-09-03T13:18:51Z', power_avg=54.0), ChargingBlock(time_start='2023-09-03T13:18:51Z', time_end='2023-09-03T13:19:21Z', power_avg=38.7), ChargingBlock(time_start='2023-09-03T13:19:21Z', time_end='2023-09-03T13:19:51Z', power_avg=37.4), ChargingBlock(time_start='2023-09-03T13:19:51Z', time_end='2023-09-03T13:20:21Z', power_avg=37.45), ChargingBlock(time_start='2023-09-03T13:20:21Z', time_end='2023-09-03T13:20:51Z', power_avg=37.45), ChargingBlock(time_start='2023-09-03T13:20:51Z', time_end='2023-09-03T13:21:21Z', power_avg=37.5), ChargingBlock(time_start='2023-09-03T13:21:21Z', time_end='2023-09-03T13:21:51Z', power_avg=37.55), ChargingBlock(time_start='2023-09-03T13:21:51Z', time_end='2023-09-03T13:22:21Z', power_avg=37.6), ChargingBlock(time_start='2023-09-03T13:22:21Z', time_end='2023-09-03T13:22:51Z', power_avg=37.6), ChargingBlock(time_start='2023-09-03T13:22:51Z', time_end='2023-09-03T13:23:21Z', power_avg=37.65), ChargingBlock(time_start='2023-09-03T13:23:21Z', time_end='2023-09-03T13:23:51Z', power_avg=37.35), ChargingBlock(time_start='2023-09-03T13:23:51Z', time_end='2023-09-03T13:24:21Z', power_avg=37.4), ChargingBlock(time_start='2023-09-03T13:24:21Z', time_end='2023-09-03T13:24:51Z', power_avg=37.45), ChargingBlock(time_start='2023-09-03T13:24:51Z', time_end='2023-09-03T13:25:21Z', power_avg=37.8), ChargingBlock(time_start='2023-09-03T13:25:21Z', time_end='2023-09-03T13:25:51Z', power_avg=37.85), ChargingBlock(time_start='2023-09-03T13:25:51Z', time_end='2023-09-03T13:26:51Z', power_avg=37.5), ChargingBlock(time_start='2023-09-03T13:26:51Z', time_end='2023-09-03T13:27:21Z', power_avg=37.9), ChargingBlock(time_start='2023-09-03T13:27:21Z', time_end='2023-09-03T13:27:51Z', power_avg=37.6), ChargingBlock(time_start='2023-09-03T13:27:51Z', time_end='2023-09-03T13:28:21Z', power_avg=38.9), ChargingBlock(time_start='2023-09-03T13:28:21Z', time_end='2023-09-03T13:28:51Z', power_avg=39.3), ChargingBlock(time_start='2023-09-03T13:28:51Z', time_end='2023-09-03T13:29:18Z', power_avg=40.95), ChargingBlock(time_start='2023-09-03T13:29:18Z', time_end='2023-09-03T13:29:19Z', power_avg=0.0)], public=True, pre_condition='On', mileage='6,824 km'), ChargingSession(status='FINISHED', description='9/3/2023 11:15 • HPC/DC IONITY GmbH • 27 min • ~ 16,85 EUR', address='Rasthausstraße 3 4300 St. Valentin', charging_type=<ChargingType.DC: 'DC'>, soc_start='8%', soc_end='80%', energy_charged=48.149993896484375, time_start='9/3/2023 11:15', time_end='9/3/2023 11:43', duration='27 min', power_avg=103.5, power_min=34.1, power_max=128.05, charging_blocks=[ChargingBlock(time_start='2023-09-03T11:15:59Z', time_end='2023-09-03T11:16:00Z', power_avg=0.0), ChargingBlock(time_start='2023-09-03T11:16:00Z', time_end='2023-09-03T11:16:02Z', power_avg=34.1), ChargingBlock(time_start='2023-09-03T11:16:02Z', time_end='2023-09-03T11:16:32Z', power_avg=34.1), ChargingBlock(time_start='2023-09-03T11:16:32Z', time_end='2023-09-03T11:17:02Z', power_avg=124.2), ChargingBlock(time_start='2023-09-03T11:17:02Z', time_end='2023-09-03T11:17:32Z', power_avg=125.3), ChargingBlock(time_start='2023-09-03T11:17:32Z', time_end='2023-09-03T11:18:02Z', power_avg=125.95), ChargingBlock(time_start='2023-09-03T11:18:02Z', time_end='2023-09-03T11:18:32Z', power_avg=126.35), ChargingBlock(time_start='2023-09-03T11:18:32Z', time_end='2023-09-03T11:19:02Z', power_avg=126.8), ChargingBlock(time_start='2023-09-03T11:19:02Z', time_end='2023-09-03T11:19:32Z', power_avg=127.25), ChargingBlock(time_start='2023-09-03T11:19:32Z', time_end='2023-09-03T11:20:02Z', power_avg=127.55), ChargingBlock(time_start='2023-09-03T11:20:02Z', time_end='2023-09-03T11:20:32Z', power_avg=128.05), ChargingBlock(time_start='2023-09-03T11:20:32Z', time_end='2023-09-03T11:21:02Z', power_avg=126.8), ChargingBlock(time_start='2023-09-03T11:21:02Z', time_end='2023-09-03T11:21:32Z', power_avg=125.9), ChargingBlock(time_start='2023-09-03T11:21:32Z', time_end='2023-09-03T11:22:02Z', power_avg=125.45), ChargingBlock(time_start='2023-09-03T11:22:02Z', time_end='2023-09-03T11:22:32Z', power_avg=124.75), ChargingBlock(time_start='2023-09-03T11:22:32Z', time_end='2023-09-03T11:23:02Z', power_avg=125.05), ChargingBlock(time_start='2023-09-03T11:23:02Z', time_end='2023-09-03T11:23:32Z', power_avg=124.95), ChargingBlock(time_start='2023-09-03T11:23:32Z', time_end='2023-09-03T11:24:02Z', power_avg=125.0), ChargingBlock(time_start='2023-09-03T11:24:02Z', time_end='2023-09-03T11:24:32Z', power_avg=124.7), ChargingBlock(time_start='2023-09-03T11:24:32Z', time_end='2023-09-03T11:25:02Z', power_avg=124.4), ChargingBlock(time_start='2023-09-03T11:25:02Z', time_end='2023-09-03T11:25:32Z', power_avg=124.0), ChargingBlock(time_start='2023-09-03T11:25:32Z', time_end='2023-09-03T11:26:02Z', power_avg=123.8), ChargingBlock(time_start='2023-09-03T11:26:02Z', time_end='2023-09-03T11:26:32Z', power_avg=123.5), ChargingBlock(time_start='2023-09-03T11:26:32Z', time_end='2023-09-03T11:27:02Z', power_avg=122.7), ChargingBlock(time_start='2023-09-03T11:27:02Z', time_end='2023-09-03T11:27:32Z', power_avg=121.95), ChargingBlock(time_start='2023-09-03T11:27:32Z', time_end='2023-09-03T11:28:02Z', power_avg=120.95), ChargingBlock(time_start='2023-09-03T11:28:02Z', time_end='2023-09-03T11:28:32Z', power_avg=120.4), ChargingBlock(time_start='2023-09-03T11:28:32Z', time_end='2023-09-03T11:29:02Z', power_avg=119.5), ChargingBlock(time_start='2023-09-03T11:29:02Z', time_end='2023-09-03T11:29:32Z', power_avg=119.95), ChargingBlock(time_start='2023-09-03T11:29:32Z', time_end='2023-09-03T11:30:02Z', power_avg=120.25), ChargingBlock(time_start='2023-09-03T11:30:02Z', time_end='2023-09-03T11:30:32Z', power_avg=116.2), ChargingBlock(time_start='2023-09-03T11:30:32Z', time_end='2023-09-03T11:31:02Z', power_avg=112.35), ChargingBlock(time_start='2023-09-03T11:31:02Z', time_end='2023-09-03T11:31:32Z', power_avg=108.8), ChargingBlock(time_start='2023-09-03T11:31:32Z', time_end='2023-09-03T11:32:02Z', power_avg=105.6), ChargingBlock(time_start='2023-09-03T11:32:02Z', time_end='2023-09-03T11:32:32Z', power_avg=103.2), ChargingBlock(time_start='2023-09-03T11:32:32Z', time_end='2023-09-03T11:33:02Z', power_avg=100.85), ChargingBlock(time_start='2023-09-03T11:33:02Z', time_end='2023-09-03T11:33:32Z', power_avg=98.2), ChargingBlock(time_start='2023-09-03T11:33:32Z', time_end='2023-09-03T11:34:02Z', power_avg=95.8), ChargingBlock(time_start='2023-09-03T11:34:02Z', time_end='2023-09-03T11:34:32Z', power_avg=93.7), ChargingBlock(time_start='2023-09-03T11:34:32Z', time_end='2023-09-03T11:35:02Z', power_avg=91.7), ChargingBlock(time_start='2023-09-03T11:35:02Z', time_end='2023-09-03T11:35:32Z', power_avg=89.25), ChargingBlock(time_start='2023-09-03T11:35:32Z', time_end='2023-09-03T11:36:02Z', power_avg=87.2), ChargingBlock(time_start='2023-09-03T11:36:02Z', time_end='2023-09-03T11:36:32Z', power_avg=85.45), ChargingBlock(time_start='2023-09-03T11:36:32Z', time_end='2023-09-03T11:37:02Z', power_avg=84.1), ChargingBlock(time_start='2023-09-03T11:37:02Z', time_end='2023-09-03T11:37:32Z', power_avg=82.2), ChargingBlock(time_start='2023-09-03T11:37:32Z', time_end='2023-09-03T11:38:02Z', power_avg=80.8), ChargingBlock(time_start='2023-09-03T11:38:02Z', time_end='2023-09-03T11:38:32Z', power_avg=80.6), ChargingBlock(time_start='2023-09-03T11:38:32Z', time_end='2023-09-03T11:39:02Z', power_avg=80.8), ChargingBlock(time_start='2023-09-03T11:39:02Z', time_end='2023-09-03T11:39:32Z', power_avg=79.4), ChargingBlock(time_start='2023-09-03T11:39:32Z', time_end='2023-09-03T11:40:02Z', power_avg=77.15), ChargingBlock(time_start='2023-09-03T11:40:02Z', time_end='2023-09-03T11:41:02Z', power_avg=76.45), ChargingBlock(time_start='2023-09-03T11:41:02Z', time_end='2023-09-03T11:41:32Z', power_avg=70.45), ChargingBlock(time_start='2023-09-03T11:41:32Z', time_end='2023-09-03T11:42:02Z', power_avg=68.95), ChargingBlock(time_start='2023-09-03T11:42:02Z', time_end='2023-09-03T11:42:32Z', power_avg=68.1), ChargingBlock(time_start='2023-09-03T11:42:32Z', time_end='2023-09-03T11:43:02Z', power_avg=67.55), ChargingBlock(time_start='2023-09-03T11:43:02Z', time_end='2023-09-03T11:43:32Z', power_avg=58.7), ChargingBlock(time_start='2023-09-03T11:43:32Z', time_end='2023-09-03T11:43:48Z', power_avg=42.7), ChargingBlock(time_start='2023-09-03T11:43:48Z', time_end='2023-09-03T11:43:49Z', power_avg=0.0)], public=True, pre_condition='On', mileage='6,696 km'), ChargingSession(status='FINISHED', description='9/1/2023 12:10 • AC Wien Energie GmbH • 2h 39min • -- EUR', address='Eduard-Klein-Gasse 1 1130 Wien', charging_type=<ChargingType.AC_HIGH: 'AC_HIGH'>, soc_start='12%', soc_end='72%', energy_charged=41.55999755859375, time_start='9/1/2023 12:10', time_end='9/1/2023 14:52', duration='2h 39min', power_avg=15.54, power_min=11.35, power_max=20.75, charging_blocks=[ChargingBlock(time_start='2023-09-01T12:12:33Z', time_end='2023-09-01T12:12:34Z', power_avg=0.0), ChargingBlock(time_start='2023-09-01T12:12:34Z', time_end='2023-09-01T12:19:32Z', power_avg=19.6), ChargingBlock(time_start='2023-09-01T12:19:32Z', time_end='2023-09-01T12:42:23Z', power_avg=19.85), ChargingBlock(time_start='2023-09-01T12:42:23Z', time_end='2023-09-01T13:00:50Z', power_avg=20.2), ChargingBlock(time_start='2023-09-01T13:00:50Z', time_end='2023-09-01T13:15:06Z', power_avg=20.5), ChargingBlock(time_start='2023-09-01T13:15:06Z', time_end='2023-09-01T13:28:08Z', power_avg=20.75), ChargingBlock(time_start='2023-09-01T13:28:08Z', time_end='2023-09-01T13:49:08.25Z', power_avg=11.35), ChargingBlock(time_start='2023-09-01T13:49:08.25Z', time_end='2023-09-01T14:10:08.5Z', power_avg=11.35), ChargingBlock(time_start='2023-09-01T14:10:08.5Z', time_end='2023-09-01T14:31:08.75Z', power_avg=11.35), ChargingBlock(time_start='2023-09-01T14:31:08.75Z', time_end='2023-09-01T14:52:09Z', power_avg=11.35), ChargingBlock(time_start='2023-09-01T14:52:09Z', time_end='2023-09-01T14:52:10Z', power_avg=0.0)], public=True, pre_condition='On', mileage='6,506 km'), ChargingSession(status='FINISHED', description='9/1/2023 9:22 • DC/AC SMATRICS GmbH & Co KG • 18 min • -- EUR', address='Mitterfeldstraße 2 4600 Wels', charging_type=<ChargingType.AC_HIGH: 'AC_HIGH'>, soc_start='63%', soc_end='73%', energy_charged=6.889984130859375, time_start='9/1/2023 9:22', time_end='9/1/2023 9:42', duration='18 min', power_avg=21.72, power_min=21.45, power_max=21.95, charging_blocks=[ChargingBlock(time_start='2023-09-01T09:23:32Z', time_end='2023-09-01T09:23:33Z', power_avg=0.0), ChargingBlock(time_start='2023-09-01T09:23:33Z', time_end='2023-09-01T09:27:00Z', power_avg=21.45), ChargingBlock(time_start='2023-09-01T09:27:00Z', time_end='2023-09-01T09:27:58.6Z', power_avg=21.7), ChargingBlock(time_start='2023-09-01T09:27:58.6Z', time_end='2023-09-01T09:28:57.2Z', power_avg=21.7), ChargingBlock(time_start='2023-09-01T09:28:57.2Z', time_end='2023-09-01T09:29:55.8Z', power_avg=21.7), ChargingBlock(time_start='2023-09-01T09:29:55.8Z', time_end='2023-09-01T09:30:54.4Z', power_avg=21.7), ChargingBlock(time_start='2023-09-01T09:30:54.4Z', time_end='2023-09-01T09:31:53Z', power_avg=21.7), ChargingBlock(time_start='2023-09-01T09:31:53Z', time_end='2023-09-01T09:32:51.6Z', power_avg=21.7), ChargingBlock(time_start='2023-09-01T09:32:51.6Z', time_end='2023-09-01T09:33:50.2Z', power_avg=21.7), ChargingBlock(time_start='2023-09-01T09:33:50.2Z', time_end='2023-09-01T09:34:48.8Z', power_avg=21.7), ChargingBlock(time_start='2023-09-01T09:34:48.8Z', time_end='2023-09-01T09:35:47.4Z', power_avg=21.7), ChargingBlock(time_start='2023-09-01T09:35:47.4Z', time_end='2023-09-01T09:36:46Z', power_avg=21.7), ChargingBlock(time_start='2023-09-01T09:36:46Z', time_end='2023-09-01T09:42:03Z', power_avg=21.95), ChargingBlock(time_start='2023-09-01T09:42:03Z', time_end='2023-09-01T09:42:04Z', power_avg=0.0)], public=True, pre_condition='On', mileage='6,310 km'), ChargingSession(status='FINISHED', description='9/1/2023 9:20 • DC/AC SMATRICS GmbH & Co KG • 0 min • -- EUR', address='Mitterfeldstraße 2 4600 Wels', charging_type=<ChargingType.DC: 'DC'>, soc_start='63%', soc_end='63%', energy_charged=0.0, time_start='9/1/2023 9:20', time_end='9/1/2023 9:22', duration='0 min', power_avg=-1.0, power_min=-1.0, power_max=-1.0, charging_blocks=[], public=True, pre_condition='On', mileage='6,310 km')])

Type of change

Additional information

A preliminary review would be appreciated to understand if my PR meets the project requirements. Unfortunately I do not have an ICE vehicle available in my account. While the tests with the existing vehicle data passes just fine, it would be very interesting to run the fingerprint against an ICE vehicle to understand the API results if no charging information is available.

Checklist

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (6e97a82) 100.00% compared to head (08d17d9) 100.00%.

:exclamation: Current head 08d17d9 differs from pull request most recent head c124d83. Consider uploading reports for the commit c124d83 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #566 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 17 19 +2 Lines 1334 1400 +66 ========================================= + Hits 1334 1400 +66 ``` | [Flag](https://app.codecov.io/gh/bimmerconnected/bimmer_connected/pull/566/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bimmerconnected) | Coverage Δ | | |---|---|---| | [3.10](https://app.codecov.io/gh/bimmerconnected/bimmer_connected/pull/566/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bimmerconnected) | `100.00% <100.00%> (ø)` | | | [3.11](https://app.codecov.io/gh/bimmerconnected/bimmer_connected/pull/566/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bimmerconnected) | `100.00% <100.00%> (ø)` | | | [3.12](https://app.codecov.io/gh/bimmerconnected/bimmer_connected/pull/566/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bimmerconnected) | `?` | | | [3.8](https://app.codecov.io/gh/bimmerconnected/bimmer_connected/pull/566/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bimmerconnected) | `100.00% <100.00%> (ø)` | | | [3.9](https://app.codecov.io/gh/bimmerconnected/bimmer_connected/pull/566/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bimmerconnected) | `100.00% <100.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bimmerconnected#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files Changed](https://app.codecov.io/gh/bimmerconnected/bimmer_connected/pull/566?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bimmerconnected) | Coverage Δ | | |---|---|---| | [bimmer\_connected/account.py](https://app.codecov.io/gh/bimmerconnected/bimmer_connected/pull/566?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bimmerconnected#diff-YmltbWVyX2Nvbm5lY3RlZC9hY2NvdW50LnB5) | `100.00% <100.00%> (ø)` | | | [bimmer\_connected/vehicle/charging\_sessions.py](https://app.codecov.io/gh/bimmerconnected/bimmer_connected/pull/566?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bimmerconnected#diff-YmltbWVyX2Nvbm5lY3RlZC92ZWhpY2xlL2NoYXJnaW5nX3Nlc3Npb25zLnB5) | `100.00% <100.00%> (ø)` | | | [bimmer\_connected/vehicle/charging\_statistics.py](https://app.codecov.io/gh/bimmerconnected/bimmer_connected/pull/566?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bimmerconnected#diff-YmltbWVyX2Nvbm5lY3RlZC92ZWhpY2xlL2NoYXJnaW5nX3N0YXRpc3RpY3MucHk=) | `100.00% <100.00%> (ø)` | | | [bimmer\_connected/vehicle/vehicle.py](https://app.codecov.io/gh/bimmerconnected/bimmer_connected/pull/566?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bimmerconnected#diff-YmltbWVyX2Nvbm5lY3RlZC92ZWhpY2xlL3ZlaGljbGUucHk=) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.