testframework.clients.brain.tester.houseload module

A sub object of the client for interaction with household loads(SamplingPoint.Load)

class testframework.clients.brain.tester.houseload.HouseLoadConnection(client: TestClient)

Bases: object

Provides methods for interacting with the Household Loads - it’s possible to switch loads on L1, L2, L3 individually and get power measurements from meter at Sampling Point Load

Usage:

test_client.houseload

These can be accessed given an instance of TestClient with .houseload for example:

Example

>>> def test_houseload(self, testbench: TestBench):
>>>    test_client = TestClient(testbench, default_timeout=30)
>>>    test_client.houseload.get_current_l1()
>>>    test_client.houseload.turn_on_all_loads()
get_current_l1() float

return current L1 value measured from power meter at sampling point Loads where the household loads are measured

get_current_l2() float

return current L2 value measured from power meter at sampling point Loads where the household loads are measured

get_current_l3() float

return current L3 value measured from power meter at sampling point Loads where the household loads are measured

get_frequency() float

return frequency value measured from power meter at sampling point Loads where the household loads are measured

get_power_l1() float

return power L1 value measured from power meter at sampling point Loads where the household loads are measured

get_power_l2() float

return power L2 value measured from power meter at sampling point Loads where the household loads are measured

get_power_l3() float

return power L3 value measured from power meter at sampling point Loads where the household loads are measured

get_power_total() float

return power total value measured from power meter at sampling point Loads where the household loads are measured

get_power_variable(variable) float

return power mqtt variable measured from power meter at sampling point Loads where the household loads are measured

get_total_energy_export() float

return total energy export towards grid value measured from power meter at sampling point Loads where the household loads are measured

get_total_energy_import() float

return energy import value measured from power meter at sampling point Loads where the household loads are measured

get_voltage_l1() float

return voltage L1 value measured from power meter at sampling point Loads where the household loads are measured

get_voltage_l2() float

return voltage L2 value measured from power meter at sampling point Loads where the household loads are measured

get_voltage_l3() float

return voltage L3 value measured from power meter at sampling point Loads where the household loads are measured

turn_off_all_loads() None

turns off all household loads which are connected on L1, L2 and L3 of EUT

turn_off_loadl1() None

turns on household load connected on L1 of EUT

turn_off_loadl2() None

turns on household load connected on L2 of EUT

turn_off_loadl3() None

turns on household load connected on L3 of EUT

turn_on_all_loads() None

turns on all household loads which are connected on L1, L2 and L3 of EUT

turn_on_loadl1() None

turns on household load connected on L1 of EUT

turn_on_loadl2() None

turns on household load connected on L2 of EUT

turn_on_loadl3() None

turns on household load connected on L3 of EUT