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