python-openevse-http 0.1.71__tar.gz → 0.1.73__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.
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/PKG-INFO +1 -1
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/openevsehttp/__main__.py +11 -4
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/python_openevse_http.egg-info/PKG-INFO +1 -1
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/setup.py +1 -1
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/README.md +0 -0
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/openevsehttp/__init__.py +0 -0
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/openevsehttp/const.py +0 -0
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/openevsehttp/exceptions.py +0 -0
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/openevsehttp/websocket.py +0 -0
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/python_openevse_http.egg-info/SOURCES.txt +0 -0
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/python_openevse_http.egg-info/dependency_links.txt +0 -0
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/python_openevse_http.egg-info/not-zip-safe +0 -0
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/python_openevse_http.egg-info/requires.txt +0 -0
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/python_openevse_http.egg-info/top_level.txt +0 -0
- {python_openevse_http-0.1.71 → python_openevse_http-0.1.73}/setup.cfg +0 -0
|
@@ -397,7 +397,7 @@ class OpenEVSE:
|
|
|
397
397
|
raise UnsupportedFeature
|
|
398
398
|
url = f"{self.url}override"
|
|
399
399
|
|
|
400
|
-
data: dict[str, Any] =
|
|
400
|
+
data: dict[str, Any] = await self.get_override()
|
|
401
401
|
|
|
402
402
|
if state not in ["active", "disabled", None]:
|
|
403
403
|
_LOGGER.error("Invalid override state: %s", state)
|
|
@@ -644,7 +644,6 @@ class OpenEVSE:
|
|
|
644
644
|
return False
|
|
645
645
|
|
|
646
646
|
# HTTP Posting of grid voltage
|
|
647
|
-
|
|
648
647
|
async def grid_voltage(self, voltage: int | None = None) -> None:
|
|
649
648
|
"""Send pushed sensor data to grid voltage."""
|
|
650
649
|
if not self._version_check("4.0.0"):
|
|
@@ -665,7 +664,6 @@ class OpenEVSE:
|
|
|
665
664
|
_LOGGER.debug("Voltage posting response: %s", response)
|
|
666
665
|
|
|
667
666
|
# Self production HTTP Posting
|
|
668
|
-
|
|
669
667
|
async def self_production(
|
|
670
668
|
self,
|
|
671
669
|
grid: int | None = None,
|
|
@@ -743,7 +741,7 @@ class OpenEVSE:
|
|
|
743
741
|
raise UnsupportedFeature
|
|
744
742
|
|
|
745
743
|
url = f"{self.url}limit"
|
|
746
|
-
data: Dict[str, Any] =
|
|
744
|
+
data: Dict[str, Any] = await self.get_limit()
|
|
747
745
|
valid_types = ["time", "energy", "soc", "range"]
|
|
748
746
|
|
|
749
747
|
if limit_type not in valid_types:
|
|
@@ -1274,6 +1272,7 @@ class OpenEVSE:
|
|
|
1274
1272
|
return round(self._status["voltage"] * self._status["amp"], 2)
|
|
1275
1273
|
return None
|
|
1276
1274
|
|
|
1275
|
+
# Shaper values
|
|
1277
1276
|
@property
|
|
1278
1277
|
def shaper_active(self) -> bool | None:
|
|
1279
1278
|
"""Return if shper is active."""
|
|
@@ -1304,6 +1303,14 @@ class OpenEVSE:
|
|
|
1304
1303
|
return self._status["shaper_max_pwr"]
|
|
1305
1304
|
return None
|
|
1306
1305
|
|
|
1306
|
+
@property
|
|
1307
|
+
def shaper_updated(self) -> bool:
|
|
1308
|
+
"""Return shaper updated boolean."""
|
|
1309
|
+
if self._status is not None and "shaper_updated" in self._status:
|
|
1310
|
+
return self._status["shaper_updated"]
|
|
1311
|
+
return False
|
|
1312
|
+
|
|
1313
|
+
# Vehicle values
|
|
1307
1314
|
@property
|
|
1308
1315
|
def vehicle_soc(self) -> int | None:
|
|
1309
1316
|
"""Return battery level."""
|
|
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
|