volkswagencarnet 5.0.0b2__py3-none-any.whl → 5.0.0b3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of volkswagencarnet might be problematic. Click here for more details.
- volkswagencarnet/version.py +1 -1
- volkswagencarnet/vw_dashboard.py +12 -0
- volkswagencarnet/vw_vehicle.py +81 -24
- {volkswagencarnet-5.0.0b2.dist-info → volkswagencarnet-5.0.0b3.dist-info}/METADATA +1 -1
- volkswagencarnet-5.0.0b3.dist-info/RECORD +12 -0
- volkswagencarnet-5.0.0b2.dist-info/RECORD +0 -12
- {volkswagencarnet-5.0.0b2.dist-info → volkswagencarnet-5.0.0b3.dist-info}/LICENSE.txt +0 -0
- {volkswagencarnet-5.0.0b2.dist-info → volkswagencarnet-5.0.0b3.dist-info}/WHEEL +0 -0
- {volkswagencarnet-5.0.0b2.dist-info → volkswagencarnet-5.0.0b3.dist-info}/top_level.txt +0 -0
volkswagencarnet/version.py
CHANGED
volkswagencarnet/vw_dashboard.py
CHANGED
|
@@ -1351,6 +1351,18 @@ def create_instruments():
|
|
|
1351
1351
|
icon="mdi:battery-arrow-up",
|
|
1352
1352
|
unit="%",
|
|
1353
1353
|
),
|
|
1354
|
+
Sensor(
|
|
1355
|
+
attr="hv_battery_min_temperature",
|
|
1356
|
+
name="HV battery min temperature",
|
|
1357
|
+
icon="mdi:thermometer-chevron-down",
|
|
1358
|
+
unit=TEMP_CELSIUS,
|
|
1359
|
+
),
|
|
1360
|
+
Sensor(
|
|
1361
|
+
attr="hv_battery_max_temperature",
|
|
1362
|
+
name="HV battery max temperature",
|
|
1363
|
+
icon="mdi:thermometer-chevron-up",
|
|
1364
|
+
unit=TEMP_CELSIUS,
|
|
1365
|
+
),
|
|
1354
1366
|
Sensor(
|
|
1355
1367
|
attr="adblue_level",
|
|
1356
1368
|
name="Adblue level",
|
volkswagencarnet/vw_vehicle.py
CHANGED
|
@@ -298,28 +298,6 @@ class Vehicle:
|
|
|
298
298
|
|
|
299
299
|
# Data set functions
|
|
300
300
|
# Charging (BATTERYCHARGE)
|
|
301
|
-
async def set_charger_current(self, value):
|
|
302
|
-
"""Set charger current."""
|
|
303
|
-
if self.is_charging_supported:
|
|
304
|
-
if 1 <= int(value) <= 255:
|
|
305
|
-
data = {
|
|
306
|
-
"action": {
|
|
307
|
-
"settings": {"maxChargeCurrent": int(value)},
|
|
308
|
-
"type": "setSettings",
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
else:
|
|
312
|
-
_LOGGER.error(
|
|
313
|
-
"Set charger maximum current to %s is not supported", value
|
|
314
|
-
)
|
|
315
|
-
# pylint: disable=broad-exception-raised
|
|
316
|
-
raise Exception(
|
|
317
|
-
f"Set charger maximum current to {value} is not supported."
|
|
318
|
-
)
|
|
319
|
-
return await self.set_charger(data)
|
|
320
|
-
_LOGGER.error("No charger support")
|
|
321
|
-
raise Exception("No charger support.") # pylint: disable=broad-exception-raised
|
|
322
|
-
|
|
323
301
|
async def set_charger(self, action) -> bool:
|
|
324
302
|
"""Turn on/off charging."""
|
|
325
303
|
if self.is_charging_supported:
|
|
@@ -342,12 +320,24 @@ class Vehicle:
|
|
|
342
320
|
self.is_charge_max_ac_setting_supported
|
|
343
321
|
or self.is_auto_release_ac_connector_supported
|
|
344
322
|
or self.is_battery_target_charge_level_supported
|
|
323
|
+
or self.is_charge_max_ac_ampere_supported
|
|
345
324
|
):
|
|
346
325
|
if setting == "reduced_ac_charging" and value not in ["reduced", "maximum"]:
|
|
347
326
|
_LOGGER.error('Charging setting "%s" is not supported', value)
|
|
348
327
|
raise Exception(f'Charging setting "{value}" is not supported.') # pylint: disable=broad-exception-raised
|
|
328
|
+
if setting == "max_charge_amperage" and int(value) not in [5, 10, 13, 32]:
|
|
329
|
+
_LOGGER.error(
|
|
330
|
+
"Setting maximum charge amperage to %s is not supported", value
|
|
331
|
+
)
|
|
332
|
+
# pylint: disable=broad-exception-raised
|
|
333
|
+
raise Exception(
|
|
334
|
+
f"Setting maximum charge amperage to {value} is not supported."
|
|
335
|
+
)
|
|
349
336
|
data = {}
|
|
350
|
-
if
|
|
337
|
+
if (
|
|
338
|
+
self.is_charge_max_ac_setting_supported
|
|
339
|
+
and setting != "max_charge_amperage"
|
|
340
|
+
):
|
|
351
341
|
data["maxChargeCurrentAC"] = (
|
|
352
342
|
value
|
|
353
343
|
if setting == "reduced_ac_charging"
|
|
@@ -366,6 +356,15 @@ class Vehicle:
|
|
|
366
356
|
if setting == "battery_target_charge_level"
|
|
367
357
|
else self.battery_target_charge_level
|
|
368
358
|
)
|
|
359
|
+
if (
|
|
360
|
+
self.is_charge_max_ac_ampere_supported
|
|
361
|
+
and setting != "reduced_ac_charging"
|
|
362
|
+
):
|
|
363
|
+
data["maxChargeCurrentAC_A"] = (
|
|
364
|
+
int(value)
|
|
365
|
+
if setting == "max_charge_amperage"
|
|
366
|
+
else self.charge_max_ac_ampere
|
|
367
|
+
)
|
|
369
368
|
self._requests["latest"] = "Batterycharge"
|
|
370
369
|
response = await self._connection.setChargingSettings(self.vin, data)
|
|
371
370
|
return await self._handle_response(
|
|
@@ -893,7 +892,7 @@ class Vehicle:
|
|
|
893
892
|
for light in lights:
|
|
894
893
|
if light["status"] == "on":
|
|
895
894
|
lights_on_count = lights_on_count + 1
|
|
896
|
-
return lights_on_count ==
|
|
895
|
+
return lights_on_count == 2
|
|
897
896
|
|
|
898
897
|
@property
|
|
899
898
|
def parking_light_last_updated(self) -> datetime:
|
|
@@ -1245,6 +1244,64 @@ class Vehicle:
|
|
|
1245
1244
|
self.attrs, f"{Services.CHARGING}.chargingSettings.value.targetSOC_pct"
|
|
1246
1245
|
)
|
|
1247
1246
|
|
|
1247
|
+
@property
|
|
1248
|
+
def hv_battery_min_temperature(self) -> int:
|
|
1249
|
+
"""Return HV battery min temperature."""
|
|
1250
|
+
return (
|
|
1251
|
+
float(
|
|
1252
|
+
find_path(
|
|
1253
|
+
self.attrs,
|
|
1254
|
+
f"{Services.MEASUREMENTS}.temperatureBatteryStatus.value.temperatureHvBatteryMin_K",
|
|
1255
|
+
)
|
|
1256
|
+
)
|
|
1257
|
+
- 273.15
|
|
1258
|
+
)
|
|
1259
|
+
|
|
1260
|
+
@property
|
|
1261
|
+
def hv_battery_min_temperature_last_updated(self) -> datetime:
|
|
1262
|
+
"""Return attribute last updated timestamp."""
|
|
1263
|
+
return find_path(
|
|
1264
|
+
self.attrs,
|
|
1265
|
+
f"{Services.MEASUREMENTS}.temperatureBatteryStatus.value.carCapturedTimestamp",
|
|
1266
|
+
)
|
|
1267
|
+
|
|
1268
|
+
@property
|
|
1269
|
+
def is_hv_battery_min_temperature_supported(self) -> bool:
|
|
1270
|
+
"""Return true if HV battery min temperature is supported."""
|
|
1271
|
+
return is_valid_path(
|
|
1272
|
+
self.attrs,
|
|
1273
|
+
f"{Services.MEASUREMENTS}.temperatureBatteryStatus.value.temperatureHvBatteryMin_K",
|
|
1274
|
+
)
|
|
1275
|
+
|
|
1276
|
+
@property
|
|
1277
|
+
def hv_battery_max_temperature(self) -> int:
|
|
1278
|
+
"""Return HV battery max temperature."""
|
|
1279
|
+
return (
|
|
1280
|
+
float(
|
|
1281
|
+
find_path(
|
|
1282
|
+
self.attrs,
|
|
1283
|
+
f"{Services.MEASUREMENTS}.temperatureBatteryStatus.value.temperatureHvBatteryMax_K",
|
|
1284
|
+
)
|
|
1285
|
+
)
|
|
1286
|
+
- 273.15
|
|
1287
|
+
)
|
|
1288
|
+
|
|
1289
|
+
@property
|
|
1290
|
+
def hv_battery_max_temperature_last_updated(self) -> datetime:
|
|
1291
|
+
"""Return attribute last updated timestamp."""
|
|
1292
|
+
return find_path(
|
|
1293
|
+
self.attrs,
|
|
1294
|
+
f"{Services.MEASUREMENTS}.temperatureBatteryStatus.value.carCapturedTimestamp",
|
|
1295
|
+
)
|
|
1296
|
+
|
|
1297
|
+
@property
|
|
1298
|
+
def is_hv_battery_max_temperature_supported(self) -> bool:
|
|
1299
|
+
"""Return true if HV battery max temperature is supported."""
|
|
1300
|
+
return is_valid_path(
|
|
1301
|
+
self.attrs,
|
|
1302
|
+
f"{Services.MEASUREMENTS}.temperatureBatteryStatus.value.temperatureHvBatteryMax_K",
|
|
1303
|
+
)
|
|
1304
|
+
|
|
1248
1305
|
@property
|
|
1249
1306
|
def charge_max_ac_setting(self) -> str | int:
|
|
1250
1307
|
"""Return charger max ampere setting."""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
volkswagencarnet/__init__.py,sha256=ndlRBXCUPW7GKbbf-RdChs3xD61yE1c6aNxoYBXDBtQ,39
|
|
2
|
+
volkswagencarnet/version.py,sha256=6sTwzE4MPXepQ3uVOi2FiA6etyIANxEdW0rjjCB9S7U,413
|
|
3
|
+
volkswagencarnet/vw_connection.py,sha256=m4Nu6WW6FZspmdQGlXi_5RDfZdkJkSflJb-yZR23rKk,45931
|
|
4
|
+
volkswagencarnet/vw_const.py,sha256=aE45XXuKpQxQS4_keoUD3kZBGu8jycdhm3E009XLF6c,4002
|
|
5
|
+
volkswagencarnet/vw_dashboard.py,sha256=Os-CK5YRIqmZZ_bsxg9AyA15Z071kudorC0qkJG55A8,50075
|
|
6
|
+
volkswagencarnet/vw_utilities.py,sha256=prdIyuU5yvs4PzSabzgqJOsGL-ApGDnyvIZlJZg7DYY,3559
|
|
7
|
+
volkswagencarnet/vw_vehicle.py,sha256=ReSfyW4s4B1P_RxfexKAsro4t4VA16RVzBNnXcnrEWU,154945
|
|
8
|
+
volkswagencarnet-5.0.0b3.dist-info/LICENSE.txt,sha256=5roVEYR3e-kTlq73yMQgO18VDR4w4JiSKdHejEJnT0s,34876
|
|
9
|
+
volkswagencarnet-5.0.0b3.dist-info/METADATA,sha256=bjr3NnpL35JcUOMjZ-8PSINQ4XkTUrpgmsFYWmRxFck,6458
|
|
10
|
+
volkswagencarnet-5.0.0b3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
11
|
+
volkswagencarnet-5.0.0b3.dist-info/top_level.txt,sha256=tUJNf33PP5Ln_Zc9N86ThKbe8BKJmW60ZKABmfZL_18,17
|
|
12
|
+
volkswagencarnet-5.0.0b3.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
volkswagencarnet/__init__.py,sha256=ndlRBXCUPW7GKbbf-RdChs3xD61yE1c6aNxoYBXDBtQ,39
|
|
2
|
-
volkswagencarnet/version.py,sha256=7ZUyakBuk6SzjDuLt8FGdKsdOLq-lyI6jHj7AfenJ3c,413
|
|
3
|
-
volkswagencarnet/vw_connection.py,sha256=m4Nu6WW6FZspmdQGlXi_5RDfZdkJkSflJb-yZR23rKk,45931
|
|
4
|
-
volkswagencarnet/vw_const.py,sha256=aE45XXuKpQxQS4_keoUD3kZBGu8jycdhm3E009XLF6c,4002
|
|
5
|
-
volkswagencarnet/vw_dashboard.py,sha256=QPRuDouf5dgBZ33mU1K2Dvu7z313Sbk3CiSuUKMUnC4,49675
|
|
6
|
-
volkswagencarnet/vw_utilities.py,sha256=prdIyuU5yvs4PzSabzgqJOsGL-ApGDnyvIZlJZg7DYY,3559
|
|
7
|
-
volkswagencarnet/vw_vehicle.py,sha256=EwdAYR0-pqUTenViRRSTlBE5Y7qgLhqHareP4NSogqA,152993
|
|
8
|
-
volkswagencarnet-5.0.0b2.dist-info/LICENSE.txt,sha256=5roVEYR3e-kTlq73yMQgO18VDR4w4JiSKdHejEJnT0s,34876
|
|
9
|
-
volkswagencarnet-5.0.0b2.dist-info/METADATA,sha256=fGr584QNSnRjnvu0tx7hz05LZvq7SJMalMFmT0ATVZ8,6458
|
|
10
|
-
volkswagencarnet-5.0.0b2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
11
|
-
volkswagencarnet-5.0.0b2.dist-info/top_level.txt,sha256=tUJNf33PP5Ln_Zc9N86ThKbe8BKJmW60ZKABmfZL_18,17
|
|
12
|
-
volkswagencarnet-5.0.0b2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|