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

phases: Dict[Literal['A', 'B', 'C'], Phase]
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'