Homevolt 0.4.0__tar.gz → 0.4.2__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.
- {homevolt-0.4.0 → homevolt-0.4.2}/Homevolt.egg-info/PKG-INFO +1 -1
- {homevolt-0.4.0 → homevolt-0.4.2}/PKG-INFO +1 -1
- {homevolt-0.4.0 → homevolt-0.4.2}/homevolt/const.py +11 -10
- {homevolt-0.4.0 → homevolt-0.4.2}/homevolt/homevolt.py +2 -2
- {homevolt-0.4.0 → homevolt-0.4.2}/pyproject.toml +1 -1
- {homevolt-0.4.0 → homevolt-0.4.2}/Homevolt.egg-info/SOURCES.txt +0 -0
- {homevolt-0.4.0 → homevolt-0.4.2}/Homevolt.egg-info/dependency_links.txt +0 -0
- {homevolt-0.4.0 → homevolt-0.4.2}/Homevolt.egg-info/requires.txt +0 -0
- {homevolt-0.4.0 → homevolt-0.4.2}/Homevolt.egg-info/top_level.txt +0 -0
- {homevolt-0.4.0 → homevolt-0.4.2}/LICENSE +0 -0
- {homevolt-0.4.0 → homevolt-0.4.2}/README.md +0 -0
- {homevolt-0.4.0 → homevolt-0.4.2}/homevolt/__init__.py +0 -0
- {homevolt-0.4.0 → homevolt-0.4.2}/homevolt/exceptions.py +0 -0
- {homevolt-0.4.0 → homevolt-0.4.2}/homevolt/models.py +0 -0
- {homevolt-0.4.0 → homevolt-0.4.2}/setup.cfg +0 -0
|
@@ -6,17 +6,18 @@ ENDPOINT_SCHEDULE = "/schedule.json"
|
|
|
6
6
|
ENDPOINT_CONSOLE = "/console.json"
|
|
7
7
|
ENDPOINT_PARAMS = "/params.json"
|
|
8
8
|
|
|
9
|
+
# Map integer schedule codes to snake_case identifiers
|
|
9
10
|
SCHEDULE_TYPE = {
|
|
10
|
-
0: "
|
|
11
|
-
1: "
|
|
12
|
-
2: "
|
|
13
|
-
3: "
|
|
14
|
-
4: "
|
|
15
|
-
5: "
|
|
16
|
-
6: "
|
|
17
|
-
7: "
|
|
18
|
-
8: "
|
|
19
|
-
9: "
|
|
11
|
+
0: "idle",
|
|
12
|
+
1: "inverter_charge",
|
|
13
|
+
2: "inverter_discharge",
|
|
14
|
+
3: "grid_charge",
|
|
15
|
+
4: "grid_discharge",
|
|
16
|
+
5: "grid_charge_discharge",
|
|
17
|
+
6: "frequency_reserve",
|
|
18
|
+
7: "solar_charge",
|
|
19
|
+
8: "solar_charge_discharge",
|
|
20
|
+
9: "full_solar_export",
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
# Device type mappings for sensors
|
|
@@ -223,9 +223,9 @@ class Homevolt:
|
|
|
223
223
|
type="frequency",
|
|
224
224
|
device_identifier=ems_device_id,
|
|
225
225
|
),
|
|
226
|
-
"
|
|
226
|
+
"State of Charge": Sensor(
|
|
227
227
|
value=ems["ems_data"]["soc_avg"] / 100,
|
|
228
|
-
type="
|
|
228
|
+
type="state_of_charge",
|
|
229
229
|
device_identifier=ems_device_id,
|
|
230
230
|
),
|
|
231
231
|
}
|
|
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
|