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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-openevse-http
3
- Version: 0.1.60
3
+ Version: 0.1.62
4
4
  Summary: Python wrapper for OpenEVSE HTTP API
5
5
  Home-page: https://github.com/firstof9/python-openevse-http
6
6
  Author: firstof9
@@ -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 firmware version."""
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-openevse-http
3
- Version: 0.1.60
3
+ Version: 0.1.62
4
4
  Summary: Python wrapper for OpenEVSE HTTP API
5
5
  Home-page: https://github.com/firstof9/python-openevse-http
6
6
  Author: firstof9
@@ -6,7 +6,7 @@ from setuptools import find_packages, setup
6
6
 
7
7
  PROJECT_DIR = Path(__file__).parent.resolve()
8
8
  README_FILE = PROJECT_DIR / "README.md"
9
- VERSION = "0.1.60"
9
+ VERSION = "0.1.62"
10
10
 
11
11
  setup(
12
12
  name="python-openevse-http",