testframework.clients.ops.tester.wallbox moduleο
β A client focused on interacting with the wallbox endpoints of the ops container Does this by hitting direct β/wallboxβ endpoints or using sensornames
- class testframework.clients.ops.tester.wallbox.Phase(current_amps: float | None, voltage: float | None)ο
Bases:
object
Properties of a single phase of electricity
- current_amps: float | Noneο
- voltage: float | Noneο
- class testframework.clients.ops.tester.wallbox.RemoteStartStopStatus(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)ο
Bases:
Enum
Weather a start/stop request was accepted or rejusted from the wallbox
- ACCEPTED = 'Accepted'ο
- REJECTED = 'Rejected'ο
- UNKNOWN = 'Unknown'ο
- class testframework.clients.ops.tester.wallbox.ResetTypes(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)ο
Bases:
Enum
Different reset types of the wallbox
- HARD = 'Hard'ο
- SOFT = 'Soft'ο
- UNKNOWN = 'Unknown'ο
- class testframework.clients.ops.tester.wallbox.ThreePhaseConnector(electrical_properties: ThreePhaseElectricalProperties, charging_watts: float | None, power_offered_watts: float | None, charge_percentage: float | None)ο
Bases:
object
A three phase wallbox connector
- charge_percentage: float | Noneο
- charging_watts: float | Noneο
- electrical_properties: ThreePhaseElectricalPropertiesο
- power_offered_watts: float | Noneο
- class testframework.clients.ops.tester.wallbox.ThreePhaseElectricalProperties(phases: Dict[Literal['A', 'B', 'C'], Phase])ο
Bases:
object
A collection of three phases
- class testframework.clients.ops.tester.wallbox.Wallbox(testbench: TestBench)ο
Bases:
object
A client that indirectly interacts with a wallbox though the rest interface of the operation container
- get_charge_mode(charge_point: int) WallboxChargeMode ο
Gets the charge mode of a charge point
- get_charge_point_charge_flow_w(charge_point: int) float | None ο
Get charge point flow
- get_charge_point_charge_percentage(charge_point: int) float | None ο
Gets the charge point charge percentage
- get_charge_point_details(charge_point: int) ThreePhaseConnector ο
Gets all the details of a charge point
- get_charge_point_phase_details(charge_point: int, phase: Literal['L1', 'L2', 'L3'])ο
Gets a single phase details of a charge point
- get_charge_point_power_offered_w(charge_point: int) float | None ο
Gets the power offered by the charge point
- get_charge_point_power_requested_w(charge_point: int) float | None ο
Gets the power requested by the charge point
- get_charge_status(charge_point: int) WallboxChargeStatus ο
Gets the charge status of a charge point
- get_electrical_properties(charge_point: int) ThreePhaseElectricalProperties ο
Gets electrical properties of a charge point
- is_connected() bool ο
Returns True if the wallbox is connected
- set_charge_mode(charge_point: int, mode: WallboxChargeMode)ο
Sets the charge mode of a charge point
- set_charge_point_charge_value(charge_point: int, power_watts: int)ο
Sets the power of a charge point
- start_charging(charge_point: int) RemoteStartStopStatus ο
Starts the charging process
- stop_charging(charge_point: int) RemoteStartStopStatus ο
Stops the charging process
- class testframework.clients.ops.tester.wallbox.WallboxChargeMode(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)ο
Bases:
Enum
The charge mode of the wallbox
- ECO = 'Eco'ο
- FAST = 'Solar'ο
- SOLAR = 'Fast'ο
- class testframework.clients.ops.tester.wallbox.WallboxChargeStatus(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)ο
Bases:
Enum
The current state of the wallbox
- CHARGING = 'Charging'ο
- CONNECTED = 'Connected'ο
- ERROR_STATE = 'ErrorState'ο
- FINISHING = 'Finishing'ο
- NOT_CONNECTED = 'NotConnected'ο
- UNKNOWN = 'Unknown'ο