pylxpweb 0.5.8__tar.gz → 0.5.9__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.
Files changed (51) hide show
  1. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/PKG-INFO +1 -1
  2. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/pyproject.toml +1 -1
  3. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/_mid_runtime_properties.py +11 -0
  4. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/README.md +0 -0
  5. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/__init__.py +0 -0
  6. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/api_namespace.py +0 -0
  7. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/cli/__init__.py +0 -0
  8. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/cli/collect_device_data.py +0 -0
  9. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/client.py +0 -0
  10. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/constants/__init__.py +0 -0
  11. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/constants/api.py +0 -0
  12. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/constants/devices.py +0 -0
  13. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/constants/locations.py +0 -0
  14. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/constants/registers.py +0 -0
  15. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/constants/scaling.py +0 -0
  16. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/__init__.py +0 -0
  17. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/_firmware_update_mixin.py +0 -0
  18. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/base.py +0 -0
  19. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/battery.py +0 -0
  20. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/battery_bank.py +0 -0
  21. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/inverters/__init__.py +0 -0
  22. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/inverters/_features.py +0 -0
  23. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/inverters/_runtime_properties.py +0 -0
  24. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/inverters/base.py +0 -0
  25. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/inverters/generic.py +0 -0
  26. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/inverters/hybrid.py +0 -0
  27. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/mid_device.py +0 -0
  28. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/models.py +0 -0
  29. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/parallel_group.py +0 -0
  30. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/devices/station.py +0 -0
  31. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/endpoints/__init__.py +0 -0
  32. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/endpoints/analytics.py +0 -0
  33. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/endpoints/base.py +0 -0
  34. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/endpoints/control.py +0 -0
  35. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/endpoints/devices.py +0 -0
  36. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/endpoints/export.py +0 -0
  37. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/endpoints/firmware.py +0 -0
  38. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/endpoints/forecasting.py +0 -0
  39. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/endpoints/plants.py +0 -0
  40. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/exceptions.py +0 -0
  41. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/models.py +0 -0
  42. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/py.typed +0 -0
  43. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/registers.py +0 -0
  44. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/transports/__init__.py +0 -0
  45. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/transports/capabilities.py +0 -0
  46. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/transports/data.py +0 -0
  47. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/transports/exceptions.py +0 -0
  48. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/transports/factory.py +0 -0
  49. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/transports/http.py +0 -0
  50. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/transports/modbus.py +0 -0
  51. {pylxpweb-0.5.8 → pylxpweb-0.5.9}/src/pylxpweb/transports/protocol.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pylxpweb
3
- Version: 0.5.8
3
+ Version: 0.5.9
4
4
  Summary: Python client library for Luxpower/EG4 inverter web monitoring API
5
5
  Keywords: luxpower,eg4,inverter,solar,api,client
6
6
  Author: Bryan Li
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pylxpweb"
3
- version = "0.5.8"
3
+ version = "0.5.9"
4
4
  description = "Python client library for Luxpower/EG4 inverter web monitoring API"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -864,6 +864,17 @@ class MIDRuntimePropertiesMixin:
864
864
  """
865
865
  return self._runtime is not None
866
866
 
867
+ @property
868
+ def is_off_grid(self) -> bool:
869
+ """Check if the system is operating in off-grid/EPS mode.
870
+
871
+ Returns:
872
+ True if off-grid (on battery backup), False if grid is available.
873
+ """
874
+ if self._runtime is None:
875
+ return False
876
+ return bool(getattr(self._runtime, "isOffGrid", False))
877
+
867
878
  # ===========================================
868
879
  # Energy Properties - UPS
869
880
  # ===========================================
File without changes
File without changes