volkswagencarnet 5.0.0b3__py3-none-any.whl → 5.0.0b5__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 +86 -0
- {volkswagencarnet-5.0.0b3.dist-info → volkswagencarnet-5.0.0b5.dist-info}/METADATA +1 -1
- {volkswagencarnet-5.0.0b3.dist-info → volkswagencarnet-5.0.0b5.dist-info}/RECORD +7 -7
- {volkswagencarnet-5.0.0b3.dist-info → volkswagencarnet-5.0.0b5.dist-info}/LICENSE.txt +0 -0
- {volkswagencarnet-5.0.0b3.dist-info → volkswagencarnet-5.0.0b5.dist-info}/WHEEL +0 -0
- {volkswagencarnet-5.0.0b3.dist-info → volkswagencarnet-5.0.0b5.dist-info}/top_level.txt +0 -0
volkswagencarnet/version.py
CHANGED
volkswagencarnet/vw_dashboard.py
CHANGED
|
@@ -349,6 +349,52 @@ class Number(Instrument):
|
|
|
349
349
|
raise NotImplementedError
|
|
350
350
|
|
|
351
351
|
|
|
352
|
+
class Select(Instrument):
|
|
353
|
+
"""Select instrument."""
|
|
354
|
+
|
|
355
|
+
def __init__(
|
|
356
|
+
self,
|
|
357
|
+
attr: str,
|
|
358
|
+
name: str,
|
|
359
|
+
icon: str | None,
|
|
360
|
+
unit: str | None,
|
|
361
|
+
entity_type: str | None = None,
|
|
362
|
+
device_class: str | None = None,
|
|
363
|
+
state_class: str | None = None,
|
|
364
|
+
) -> None:
|
|
365
|
+
"""Init."""
|
|
366
|
+
super().__init__(
|
|
367
|
+
component="select",
|
|
368
|
+
attr=attr,
|
|
369
|
+
name=name,
|
|
370
|
+
icon=icon,
|
|
371
|
+
entity_type=entity_type,
|
|
372
|
+
device_class=device_class,
|
|
373
|
+
state_class=state_class,
|
|
374
|
+
)
|
|
375
|
+
self.unit = unit
|
|
376
|
+
|
|
377
|
+
@property
|
|
378
|
+
def is_mutable(self):
|
|
379
|
+
"""Return boolean is_mutable."""
|
|
380
|
+
return False
|
|
381
|
+
|
|
382
|
+
@property
|
|
383
|
+
def state(self):
|
|
384
|
+
"""Return current state."""
|
|
385
|
+
raise NotImplementedError
|
|
386
|
+
|
|
387
|
+
@property
|
|
388
|
+
def current_option(self):
|
|
389
|
+
"""Return current option."""
|
|
390
|
+
raise NotImplementedError
|
|
391
|
+
|
|
392
|
+
@property
|
|
393
|
+
def options(self):
|
|
394
|
+
"""Return options."""
|
|
395
|
+
raise NotImplementedError
|
|
396
|
+
|
|
397
|
+
|
|
352
398
|
class Position(Instrument):
|
|
353
399
|
"""Position instrument."""
|
|
354
400
|
|
|
@@ -631,6 +677,45 @@ class ClimatisationTargetTemperature(Number):
|
|
|
631
677
|
return {"last_result": self.vehicle.climater_action_status}
|
|
632
678
|
|
|
633
679
|
|
|
680
|
+
# Select
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
class ChargeMaxACAmpere(Select):
|
|
684
|
+
"""Maximum charge ampere."""
|
|
685
|
+
|
|
686
|
+
def __init__(self) -> None:
|
|
687
|
+
"""Init."""
|
|
688
|
+
super().__init__(
|
|
689
|
+
attr="charge_max_ac_ampere",
|
|
690
|
+
name="Charger max AC ampere",
|
|
691
|
+
icon="mdi:flash-auto",
|
|
692
|
+
unit="A",
|
|
693
|
+
entity_type="config",
|
|
694
|
+
)
|
|
695
|
+
|
|
696
|
+
@property
|
|
697
|
+
def state(self):
|
|
698
|
+
"""Return current state."""
|
|
699
|
+
return self.vehicle.charge_max_ac_ampere
|
|
700
|
+
|
|
701
|
+
@property
|
|
702
|
+
def current_option(self):
|
|
703
|
+
"""Return current option."""
|
|
704
|
+
return str(self.vehicle.charge_max_ac_ampere)
|
|
705
|
+
|
|
706
|
+
@property
|
|
707
|
+
def options(self) -> dict:
|
|
708
|
+
"""Return options."""
|
|
709
|
+
return ["5", "10", "13", "32"]
|
|
710
|
+
|
|
711
|
+
async def set_value(self, ampere: str):
|
|
712
|
+
"""Set value."""
|
|
713
|
+
await self.vehicle.set_charging_settings(
|
|
714
|
+
setting="max_charge_amperage", value=ampere
|
|
715
|
+
)
|
|
716
|
+
await self.vehicle.update()
|
|
717
|
+
|
|
718
|
+
|
|
634
719
|
# Switches
|
|
635
720
|
|
|
636
721
|
|
|
@@ -1310,6 +1395,7 @@ def create_instruments():
|
|
|
1310
1395
|
ClimatisationTargetTemperature(),
|
|
1311
1396
|
DoorLock(),
|
|
1312
1397
|
TrunkLock(),
|
|
1398
|
+
ChargeMaxACAmpere(),
|
|
1313
1399
|
RequestUpdate(),
|
|
1314
1400
|
WindowHeater(),
|
|
1315
1401
|
BatteryClimatisation(),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
volkswagencarnet/__init__.py,sha256=ndlRBXCUPW7GKbbf-RdChs3xD61yE1c6aNxoYBXDBtQ,39
|
|
2
|
-
volkswagencarnet/version.py,sha256=
|
|
2
|
+
volkswagencarnet/version.py,sha256=gtWubtcg9L2jBC_HlCFf64L_unfNMSy78xHdGJNedH4,413
|
|
3
3
|
volkswagencarnet/vw_connection.py,sha256=m4Nu6WW6FZspmdQGlXi_5RDfZdkJkSflJb-yZR23rKk,45931
|
|
4
4
|
volkswagencarnet/vw_const.py,sha256=aE45XXuKpQxQS4_keoUD3kZBGu8jycdhm3E009XLF6c,4002
|
|
5
|
-
volkswagencarnet/vw_dashboard.py,sha256=
|
|
5
|
+
volkswagencarnet/vw_dashboard.py,sha256=_OWqdhluWkQwJXEldSaeXn-D2b9PfDtLCzp-YH6lH_g,52078
|
|
6
6
|
volkswagencarnet/vw_utilities.py,sha256=prdIyuU5yvs4PzSabzgqJOsGL-ApGDnyvIZlJZg7DYY,3559
|
|
7
7
|
volkswagencarnet/vw_vehicle.py,sha256=ReSfyW4s4B1P_RxfexKAsro4t4VA16RVzBNnXcnrEWU,154945
|
|
8
|
-
volkswagencarnet-5.0.
|
|
9
|
-
volkswagencarnet-5.0.
|
|
10
|
-
volkswagencarnet-5.0.
|
|
11
|
-
volkswagencarnet-5.0.
|
|
12
|
-
volkswagencarnet-5.0.
|
|
8
|
+
volkswagencarnet-5.0.0b5.dist-info/LICENSE.txt,sha256=5roVEYR3e-kTlq73yMQgO18VDR4w4JiSKdHejEJnT0s,34876
|
|
9
|
+
volkswagencarnet-5.0.0b5.dist-info/METADATA,sha256=RM3c9Eg8ZiWlaUT-OsODH7mACBs5mf7Wemlcw0CWor8,6458
|
|
10
|
+
volkswagencarnet-5.0.0b5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
11
|
+
volkswagencarnet-5.0.0b5.dist-info/top_level.txt,sha256=tUJNf33PP5Ln_Zc9N86ThKbe8BKJmW60ZKABmfZL_18,17
|
|
12
|
+
volkswagencarnet-5.0.0b5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|