PyViCare 2.36.0__tar.gz → 2.37.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PKG-INFO +1 -1
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareDevice.py +6 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareVentilationDevice.py +16 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/pyproject.toml +1 -1
- {pyvicare-2.36.0 → pyvicare-2.37.0}/LICENSE +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/Feature.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCare.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareAbstractOAuthManager.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareBrowserOAuthManager.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareCachedService.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareDeviceConfig.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareElectricalEnergySystem.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareFuelCell.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareGateway.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareGazBoiler.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareHeatCurveCalculation.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareHeatPump.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareHeatingDevice.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareHybrid.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareOAuthManager.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareOilBoiler.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCarePelletsBoiler.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareRadiatorActuator.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareRoomSensor.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareService.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/PyViCareUtils.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/PyViCare/__init__.py +0 -0
- {pyvicare-2.36.0 → pyvicare-2.37.0}/README.md +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
1
3
|
from PyViCare.PyViCareService import ViCareService
|
|
2
4
|
from PyViCare.PyViCareUtils import PyViCareNotSupportedFeatureError, handleNotSupported
|
|
3
5
|
|
|
@@ -16,6 +18,10 @@ class Device:
|
|
|
16
18
|
def getSerial(self):
|
|
17
19
|
return self.service.getProperty("device.serial")["properties"]["value"]["value"]
|
|
18
20
|
|
|
21
|
+
@handleNotSupported
|
|
22
|
+
def getDeviceErrors(self) -> list[Any]:
|
|
23
|
+
return list[Any](self.service.getProperty("device.messages.errors.raw")["properties"]["entries"]["value"])
|
|
24
|
+
|
|
19
25
|
def isLegacyDevice(self) -> bool:
|
|
20
26
|
return self.service.hasRoles(["type:legacy"])
|
|
21
27
|
|
|
@@ -74,6 +74,10 @@ class VentilationDevice(Device):
|
|
|
74
74
|
"""
|
|
75
75
|
return self.service.setProperty(f"ventilation.operating.programs.{program}", "deactivate", {})
|
|
76
76
|
|
|
77
|
+
@handleNotSupported
|
|
78
|
+
def getPermanentLevels(self) -> list[str]:
|
|
79
|
+
return list[str](self.service.getProperty("ventilation.operating.modes.permanent")["commands"]["setLevel"]["params"]["level"]["constraints"]["enum"])
|
|
80
|
+
|
|
77
81
|
@handleAPICommandErrors
|
|
78
82
|
def setPermanentLevel(self, level: str):
|
|
79
83
|
return self.service.setProperty("ventilation.operating.modes.permanent", "setLevel", {'level': level})
|
|
@@ -91,3 +95,15 @@ class VentilationDevice(Device):
|
|
|
91
95
|
"sat": properties["entries"]["value"]["sat"],
|
|
92
96
|
"sun": properties["entries"]["value"]["sun"]
|
|
93
97
|
}
|
|
98
|
+
|
|
99
|
+
@handleNotSupported
|
|
100
|
+
def getVentilationDemand(self) -> str:
|
|
101
|
+
return str(self.service.getProperty("ventilation.operating.state")["properties"]["demand"]["value"])
|
|
102
|
+
|
|
103
|
+
@handleNotSupported
|
|
104
|
+
def getVentilationLevel(self) -> str:
|
|
105
|
+
return str(self.service.getProperty("ventilation.operating.state")["properties"]["level"]["value"])
|
|
106
|
+
|
|
107
|
+
@handleNotSupported
|
|
108
|
+
def getVentilationReason(self) -> str:
|
|
109
|
+
return str(self.service.getProperty("ventilation.operating.state")["properties"]["reason"]["value"])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|