python-openevse-http 0.1.60__tar.gz → 0.1.62__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.60 → python-openevse-http-0.1.62}/PKG-INFO +1 -1
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/openevsehttp/__main__.py +15 -1
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/python_openevse_http.egg-info/PKG-INFO +1 -1
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/setup.py +1 -1
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/README.md +0 -0
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/openevsehttp/__init__.py +0 -0
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/openevsehttp/const.py +0 -0
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/openevsehttp/exceptions.py +0 -0
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/openevsehttp/websocket.py +0 -0
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/python_openevse_http.egg-info/SOURCES.txt +0 -0
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/python_openevse_http.egg-info/dependency_links.txt +0 -0
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/python_openevse_http.egg-info/not-zip-safe +0 -0
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/python_openevse_http.egg-info/requires.txt +0 -0
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/python_openevse_http.egg-info/top_level.txt +0 -0
- {python-openevse-http-0.1.60 → python-openevse-http-0.1.62}/setup.cfg +0 -0
|
@@ -136,6 +136,7 @@ class OpenEVSE:
|
|
|
136
136
|
_LOGGER.warning("Non JSON response: %s", message)
|
|
137
137
|
|
|
138
138
|
if resp.status == 400:
|
|
139
|
+
index = ""
|
|
139
140
|
if "msg" in message.keys():
|
|
140
141
|
index = "msg"
|
|
141
142
|
elif "error" in message.keys():
|
|
@@ -894,11 +895,18 @@ class OpenEVSE:
|
|
|
894
895
|
|
|
895
896
|
@property
|
|
896
897
|
def max_current_soft(self) -> int | None:
|
|
897
|
-
"""Return the
|
|
898
|
+
"""Return the max current soft."""
|
|
898
899
|
if self._config is not None and "max_current_soft" in self._config:
|
|
899
900
|
return self._config["max_current_soft"]
|
|
900
901
|
return self._status["pilot"]
|
|
901
902
|
|
|
903
|
+
@property
|
|
904
|
+
def max_current(self) -> int | None:
|
|
905
|
+
"""Return the max current."""
|
|
906
|
+
if self._status is not None and "max_current" in self._status:
|
|
907
|
+
return self._status["max_current"]
|
|
908
|
+
return None
|
|
909
|
+
|
|
902
910
|
@property
|
|
903
911
|
def wifi_firmware(self) -> str:
|
|
904
912
|
"""Return the ESP firmware version."""
|
|
@@ -1234,6 +1242,8 @@ class OpenEVSE:
|
|
|
1234
1242
|
"""Return battery level."""
|
|
1235
1243
|
if self._status is not None and "vehicle_soc" in self._status:
|
|
1236
1244
|
return self._status["vehicle_soc"]
|
|
1245
|
+
if self._status is not None and "battery_level" in self._status:
|
|
1246
|
+
return self._status["battery_level"]
|
|
1237
1247
|
return None
|
|
1238
1248
|
|
|
1239
1249
|
@property
|
|
@@ -1241,6 +1251,8 @@ class OpenEVSE:
|
|
|
1241
1251
|
"""Return battery range."""
|
|
1242
1252
|
if self._status is not None and "vehicle_range" in self._status:
|
|
1243
1253
|
return self._status["vehicle_range"]
|
|
1254
|
+
if self._status is not None and "battery_range" in self._status:
|
|
1255
|
+
return self._status["battery_range"]
|
|
1244
1256
|
return None
|
|
1245
1257
|
|
|
1246
1258
|
@property
|
|
@@ -1248,6 +1260,8 @@ class OpenEVSE:
|
|
|
1248
1260
|
"""Return time to full charge."""
|
|
1249
1261
|
if self._status is not None and "vehicle_eta" in self._status:
|
|
1250
1262
|
return self._status["vehicle_eta"]
|
|
1263
|
+
if self._status is not None and "time_to_full_charge" in self._status:
|
|
1264
|
+
return self._status["time_to_full_charge"]
|
|
1251
1265
|
return None
|
|
1252
1266
|
|
|
1253
1267
|
# There is currently no min/max amps JSON data
|
|
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
|