Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions PyViCare/PyViCareVentilationDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,30 @@ def getHeatExchangerFrostProtectionActive(self) -> bool:
def getHeatRecoveryEfficiency(self) -> float:
return float(self.getProperty("ventilation.heating.recovery")["properties"]["value"]["value"])

@handleNotSupported
def getBypassActive(self) -> bool:
return bool(self.getProperty("ventilation.bypass")["properties"]["active"]["value"])

@handleNotSupported
def getBypassPosition(self) -> int:
return int(self.getProperty("ventilation.bypass.position")["properties"]["value"]["value"])

@handleNotSupported
def getBypassAutomaticMode(self) -> bool:
return bool(self.getProperty("ventilation.bypass.operating.modes.automatic")["properties"]["active"]["value"])

@handleNotSupported
def getBypassOperatingModeLevel(self) -> str:
return str(self.getProperty("ventilation.bypass.operating.modes.active")["properties"]["level"]["value"])

@handleNotSupported
def getBypassOperatingModeState(self) -> str:
return str(self.getProperty("ventilation.bypass.operating.modes.active")["properties"]["state"]["value"])

@handleNotSupported
def getBypassOperatingModeValue(self) -> str:
return str(self.getProperty("ventilation.bypass.operating.modes.active")["properties"]["value"]["value"])

@handleNotSupported
def getSupplyVolumeFlow(self) -> int:
return int(self.getProperty("ventilation.volumeFlow.current.input")["properties"]["value"]["value"])
Expand Down
18 changes: 18 additions & 0 deletions tests/test_VitoairFs300E.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,21 @@ def test_getConfiguredLevelThreeVolumeFlow(self):

def test_getConfiguredLevelFourVolumeFlow(self):
self.assertEqual(self.device.getConfiguredLevelFourVolumeFlow(), 275)

def test_getBypassActive(self):
self.assertEqual(self.device.getBypassActive(), True)

def test_getBypassPosition(self):
self.assertEqual(self.device.getBypassPosition(), 0)

def test_getBypassAutomaticMode(self):
self.assertEqual(self.device.getBypassAutomaticMode(), True)

def test_getBypassOperatingModeLevel(self):
self.assertEqual(self.device.getBypassOperatingModeLevel(), "dynamicRegulationMode")

def test_getBypassOperatingModeState(self):
self.assertEqual(self.device.getBypassOperatingModeState(), "automatic")

def test_getBypassOperatingModeValue(self):
self.assertEqual(self.device.getBypassOperatingModeValue(), "automatic")
Loading