python-homewizard-energy 8.0.0a1__tar.gz → 8.0.0a3__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_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/PKG-INFO +1 -1
- {python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/__init__.py +2 -0
- python_homewizard_energy-8.0.0a3/homewizard_energy/const.py +45 -0
- {python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/homewizard_energy.py +35 -5
- {python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/models.py +24 -1
- {python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/v1/__init__.py +82 -41
- python_homewizard_energy-8.0.0a3/homewizard_energy/v1/const.py +1 -0
- {python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/v2/__init__.py +15 -11
- {python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/pyproject.toml +1 -1
- python_homewizard_energy-8.0.0a1/homewizard_energy/const.py +0 -28
- python_homewizard_energy-8.0.0a1/homewizard_energy/v1/const.py +0 -6
- {python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/LICENSE +0 -0
- {python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/README.md +0 -0
- {python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/errors.py +0 -0
- {python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/py.typed +0 -0
- {python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/v2/cacert.py +0 -0
- {python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/v2/const.py +0 -0
{python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/__init__.py
RENAMED
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
from aiohttp import ClientSession
|
|
4
4
|
|
|
5
5
|
from .errors import DisabledError, InvalidStateError, RequestError, UnsupportedError
|
|
6
|
+
from .homewizard_energy import HomeWizardEnergy
|
|
6
7
|
from .v1 import HomeWizardEnergyV1
|
|
7
8
|
from .v2 import HomeWizardEnergyV2
|
|
8
9
|
|
|
9
10
|
__all__ = [
|
|
10
11
|
"DisabledError",
|
|
12
|
+
"HomeWizardEnergy",
|
|
11
13
|
"HomeWizardEnergyV1",
|
|
12
14
|
"HomeWizardEnergyV2",
|
|
13
15
|
"InvalidStateError",
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""Constants for HomeWizard Energy."""
|
|
2
|
+
|
|
3
|
+
import logging
|
|
4
|
+
from enum import StrEnum
|
|
5
|
+
|
|
6
|
+
LOGGER = logging.getLogger(__name__)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Model(StrEnum):
|
|
10
|
+
"""Model of the HomeWizard Energy device."""
|
|
11
|
+
|
|
12
|
+
P1_METER = "HWE-P1"
|
|
13
|
+
ENERGY_SOCKET = "HWE-SKT"
|
|
14
|
+
WATER_METER = "HWE-WTR"
|
|
15
|
+
DISPLAY = "HWE-DSP"
|
|
16
|
+
ENERGY_METER_1_PHASE = "HWE-KWH1"
|
|
17
|
+
ENERGY_METER_3_PHASE = "HWE-KWH3"
|
|
18
|
+
ENERGY_METER_EASTRON_SDM230 = "SDM230-wifi"
|
|
19
|
+
ENERGY_METER_EASTRON_SDM630 = "SDM630-wifi"
|
|
20
|
+
BATTERY = "HWE-BAT"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
MODEL_TO_ID = {
|
|
24
|
+
Model.P1_METER: "p1dongle",
|
|
25
|
+
Model.ENERGY_SOCKET: "energysocket",
|
|
26
|
+
Model.WATER_METER: "watermeter",
|
|
27
|
+
Model.DISPLAY: "display",
|
|
28
|
+
Model.ENERGY_METER_1_PHASE: "energymeter",
|
|
29
|
+
Model.ENERGY_METER_3_PHASE: "energymeter",
|
|
30
|
+
Model.ENERGY_METER_EASTRON_SDM230: "energymeter",
|
|
31
|
+
Model.ENERGY_METER_EASTRON_SDM630: "energymeter",
|
|
32
|
+
Model.BATTERY: "battery",
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
MODEL_TO_NAME = {
|
|
36
|
+
Model.P1_METER: "Wi-Fi P1 Meter",
|
|
37
|
+
Model.ENERGY_SOCKET: "Wi-Fi Energy Socket",
|
|
38
|
+
Model.WATER_METER: "Wi-Fi Watermeter",
|
|
39
|
+
Model.DISPLAY: "Energy Display",
|
|
40
|
+
Model.ENERGY_METER_1_PHASE: "Wi-Fi kWh Meter 1-phase",
|
|
41
|
+
Model.ENERGY_METER_3_PHASE: "Wi-Fi kWh Meter 3-phase",
|
|
42
|
+
Model.ENERGY_METER_EASTRON_SDM230: "Wi-Fi kWh Meter 1-phase",
|
|
43
|
+
Model.ENERGY_METER_EASTRON_SDM630: "Wi-Fi kWh Meter 3-phase",
|
|
44
|
+
Model.BATTERY: "Plug-In Battery",
|
|
45
|
+
}
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
import asyncio
|
|
5
6
|
from typing import Any
|
|
6
7
|
|
|
7
8
|
from aiohttp.client import ClientSession
|
|
8
9
|
|
|
9
10
|
from .const import LOGGER
|
|
10
|
-
from .
|
|
11
|
+
from .errors import UnsupportedError
|
|
12
|
+
from .models import CombinedModels, Device, Measurement, State, System
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
class HomeWizardEnergy:
|
|
@@ -18,6 +20,8 @@ class HomeWizardEnergy:
|
|
|
18
20
|
_request_timeout: int = 10
|
|
19
21
|
_host: str
|
|
20
22
|
|
|
23
|
+
_device: Device | None = None
|
|
24
|
+
|
|
21
25
|
def __init__(
|
|
22
26
|
self,
|
|
23
27
|
host: str,
|
|
@@ -46,6 +50,28 @@ class HomeWizardEnergy:
|
|
|
46
50
|
"""
|
|
47
51
|
return self._host
|
|
48
52
|
|
|
53
|
+
async def combined(self) -> CombinedModels:
|
|
54
|
+
"""Get all information."""
|
|
55
|
+
|
|
56
|
+
async def fetch_data(coroutine):
|
|
57
|
+
try:
|
|
58
|
+
return await coroutine
|
|
59
|
+
except (UnsupportedError, NotImplementedError):
|
|
60
|
+
return None
|
|
61
|
+
|
|
62
|
+
if self._device is None:
|
|
63
|
+
self._device = await fetch_data(self.device())
|
|
64
|
+
|
|
65
|
+
measurement, system, state = await asyncio.gather(
|
|
66
|
+
fetch_data(self.measurement()),
|
|
67
|
+
fetch_data(self.system()),
|
|
68
|
+
fetch_data(self.state()),
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
return CombinedModels(
|
|
72
|
+
device=self._device, measurement=measurement, system=system, state=state
|
|
73
|
+
)
|
|
74
|
+
|
|
49
75
|
async def device(self) -> Device:
|
|
50
76
|
"""Get the device information."""
|
|
51
77
|
raise NotImplementedError
|
|
@@ -56,17 +82,21 @@ class HomeWizardEnergy:
|
|
|
56
82
|
|
|
57
83
|
async def system(
|
|
58
84
|
self,
|
|
59
|
-
|
|
85
|
+
cloud_enabled: bool | None = None,
|
|
86
|
+
status_led_brightness_pct: int | None = None,
|
|
87
|
+
api_v1_enabled: bool | None = None,
|
|
60
88
|
) -> System:
|
|
61
89
|
"""Get/set the system."""
|
|
62
90
|
raise NotImplementedError
|
|
63
91
|
|
|
64
92
|
async def state(
|
|
65
93
|
self,
|
|
66
|
-
|
|
94
|
+
power_on: bool | None = None,
|
|
95
|
+
switch_lock: bool | None = None,
|
|
96
|
+
brightness: int | None = None,
|
|
67
97
|
) -> State:
|
|
68
98
|
"""Get/set the state."""
|
|
69
|
-
raise
|
|
99
|
+
raise UnsupportedError("State is not supported")
|
|
70
100
|
|
|
71
101
|
async def identify(
|
|
72
102
|
self,
|
|
@@ -78,7 +108,7 @@ class HomeWizardEnergy:
|
|
|
78
108
|
self,
|
|
79
109
|
) -> None:
|
|
80
110
|
"""Reboot the device."""
|
|
81
|
-
raise
|
|
111
|
+
raise UnsupportedError("Reboot is not supported")
|
|
82
112
|
|
|
83
113
|
async def close(self) -> None:
|
|
84
114
|
"""Close client session."""
|
{python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/models.py
RENAMED
|
@@ -11,7 +11,7 @@ from mashumaro.config import BaseConfig
|
|
|
11
11
|
from mashumaro.exceptions import MissingField
|
|
12
12
|
from mashumaro.mixins.orjson import DataClassORJSONMixin
|
|
13
13
|
|
|
14
|
-
from .const import LOGGER, MODEL_TO_ID, MODEL_TO_NAME
|
|
14
|
+
from .const import LOGGER, MODEL_TO_ID, MODEL_TO_NAME, Model
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class BaseModel(DataClassORJSONMixin):
|
|
@@ -38,6 +38,16 @@ class UpdateBaseModel(BaseModel):
|
|
|
38
38
|
return d
|
|
39
39
|
|
|
40
40
|
|
|
41
|
+
@dataclass(kw_only=True)
|
|
42
|
+
class CombinedModels:
|
|
43
|
+
"""All values."""
|
|
44
|
+
|
|
45
|
+
device: Device
|
|
46
|
+
measurement: Measurement
|
|
47
|
+
state: State | None
|
|
48
|
+
system: System | None
|
|
49
|
+
|
|
50
|
+
|
|
41
51
|
def get_verification_hostname(model: str, serial_number: str) -> str:
|
|
42
52
|
"""Helper method to convert device model and serial to identifier
|
|
43
53
|
|
|
@@ -72,6 +82,19 @@ class Device(BaseModel):
|
|
|
72
82
|
obj.id = get_verification_hostname(obj.product_type, obj.serial)
|
|
73
83
|
return obj
|
|
74
84
|
|
|
85
|
+
def supports_state(self) -> bool:
|
|
86
|
+
"""Return if the device supports state."""
|
|
87
|
+
return self.product_type == Model.ENERGY_SOCKET
|
|
88
|
+
|
|
89
|
+
def supports_identify(self) -> bool:
|
|
90
|
+
"""Return if the device supports identify."""
|
|
91
|
+
return self.product_type not in (
|
|
92
|
+
Model.ENERGY_METER_1_PHASE,
|
|
93
|
+
Model.ENERGY_METER_3_PHASE,
|
|
94
|
+
Model.ENERGY_METER_EASTRON_SDM230,
|
|
95
|
+
Model.ENERGY_METER_EASTRON_SDM630,
|
|
96
|
+
)
|
|
97
|
+
|
|
75
98
|
|
|
76
99
|
@dataclass(kw_only=True)
|
|
77
100
|
class Measurement(BaseModel):
|
|
@@ -12,17 +12,18 @@ import backoff
|
|
|
12
12
|
from aiohttp.client import ClientError, ClientResponseError, ClientSession
|
|
13
13
|
from aiohttp.hdrs import METH_GET, METH_PUT
|
|
14
14
|
|
|
15
|
-
from homewizard_energy.errors import (
|
|
16
|
-
DisabledError,
|
|
17
|
-
NotFoundError,
|
|
18
|
-
RequestError,
|
|
19
|
-
UnsupportedError,
|
|
20
|
-
)
|
|
21
|
-
|
|
22
15
|
from ..const import LOGGER
|
|
16
|
+
from ..errors import DisabledError, NotFoundError, RequestError, UnsupportedError
|
|
23
17
|
from ..homewizard_energy import HomeWizardEnergy
|
|
24
|
-
from ..models import
|
|
25
|
-
|
|
18
|
+
from ..models import (
|
|
19
|
+
CombinedModels,
|
|
20
|
+
Device,
|
|
21
|
+
Measurement,
|
|
22
|
+
State,
|
|
23
|
+
StateUpdate,
|
|
24
|
+
System,
|
|
25
|
+
SystemUpdate,
|
|
26
|
+
)
|
|
26
27
|
|
|
27
28
|
T = TypeVar("T")
|
|
28
29
|
|
|
@@ -45,16 +46,33 @@ def optional_method(
|
|
|
45
46
|
class HomeWizardEnergyV1(HomeWizardEnergy):
|
|
46
47
|
"""Communicate with a HomeWizard Energy device."""
|
|
47
48
|
|
|
49
|
+
async def combined(self) -> CombinedModels:
|
|
50
|
+
"""Get all information."""
|
|
51
|
+
|
|
52
|
+
models: CombinedModels = await super().combined()
|
|
53
|
+
|
|
54
|
+
# Move things around for backwards compatibility
|
|
55
|
+
## measurement.wifi_ssid -> system.wifi_ssid
|
|
56
|
+
if models.measurement is not None and models.measurement.wifi_ssid is not None:
|
|
57
|
+
if models.system is None:
|
|
58
|
+
models.system = System()
|
|
59
|
+
models.system.wifi_ssid = models.measurement.wifi_ssid
|
|
60
|
+
|
|
61
|
+
## state.brightness -> system.status_led_brightness_pct
|
|
62
|
+
if models.state is not None and models.state.brightness is not None:
|
|
63
|
+
if models.system is None:
|
|
64
|
+
models.system = System()
|
|
65
|
+
models.system.status_led_brightness_pct = (
|
|
66
|
+
models.state.brightness / 255
|
|
67
|
+
) * 100
|
|
68
|
+
|
|
69
|
+
return models
|
|
70
|
+
|
|
48
71
|
async def device(self) -> Device:
|
|
49
72
|
"""Return the device object."""
|
|
50
73
|
_, response = await self._request("api")
|
|
51
74
|
device = Device.from_json(response)
|
|
52
75
|
|
|
53
|
-
if device.api_version != SUPPORTED_API_VERSION:
|
|
54
|
-
raise UnsupportedError(
|
|
55
|
-
f"Unsupported API version, expected version '{SUPPORTED_API_VERSION}'"
|
|
56
|
-
)
|
|
57
|
-
|
|
58
76
|
return device
|
|
59
77
|
|
|
60
78
|
async def measurement(self) -> Measurement:
|
|
@@ -63,58 +81,81 @@ class HomeWizardEnergyV1(HomeWizardEnergy):
|
|
|
63
81
|
return Measurement.from_json(response)
|
|
64
82
|
|
|
65
83
|
@optional_method
|
|
66
|
-
async def
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
84
|
+
async def system(
|
|
85
|
+
self,
|
|
86
|
+
cloud_enabled: bool | None = None,
|
|
87
|
+
status_led_brightness_pct: int | None = None,
|
|
88
|
+
api_v1_enabled: bool | None = None,
|
|
89
|
+
) -> System:
|
|
90
|
+
"""Return the system object."""
|
|
91
|
+
|
|
92
|
+
# Legacy: raise on unsupported field
|
|
93
|
+
if api_v1_enabled is not None:
|
|
94
|
+
raise UnsupportedError("Setting api_v1_enabled is not supported in v1")
|
|
95
|
+
|
|
96
|
+
# Legacy: route 'status_led_brightness_pct' to state
|
|
97
|
+
if status_led_brightness_pct is not None:
|
|
98
|
+
state = await self.state(brightness=status_led_brightness_pct * 2.55)
|
|
99
|
+
return System(status_led_brightness_pct=state.brightness / 2.55)
|
|
100
|
+
|
|
101
|
+
if cloud_enabled is not None:
|
|
102
|
+
# Executing the update
|
|
103
|
+
data = SystemUpdate(cloud_enabled=cloud_enabled).to_dict()
|
|
70
104
|
status, response = await self._request(
|
|
71
|
-
"api/v1/
|
|
105
|
+
"api/v1/system", method=METH_PUT, data=data
|
|
72
106
|
)
|
|
73
107
|
|
|
74
108
|
else:
|
|
75
|
-
status, response = await self._request("api/v1/
|
|
109
|
+
status, response = await self._request("api/v1/system")
|
|
76
110
|
|
|
77
111
|
if status != HTTPStatus.OK:
|
|
78
|
-
raise RequestError("Failed to get/set
|
|
112
|
+
raise RequestError("Failed to get/set system")
|
|
79
113
|
|
|
80
|
-
|
|
81
|
-
return
|
|
114
|
+
system = System.from_json(response)
|
|
115
|
+
return system
|
|
82
116
|
|
|
83
117
|
@optional_method
|
|
84
|
-
async def
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
118
|
+
async def state(
|
|
119
|
+
self,
|
|
120
|
+
power_on: bool | None = None,
|
|
121
|
+
switch_lock: bool | None = None,
|
|
122
|
+
brightness: int | None = None,
|
|
123
|
+
) -> State:
|
|
124
|
+
"""Return or update the state object."""
|
|
125
|
+
|
|
126
|
+
if self._device is not None and self._device.supports_state is False:
|
|
127
|
+
raise UnsupportedError("State is not supported")
|
|
128
|
+
|
|
129
|
+
if power_on is not None or switch_lock is not None or brightness is not None:
|
|
130
|
+
data = StateUpdate(
|
|
131
|
+
power_on=power_on, switch_lock=switch_lock, brightness=brightness
|
|
132
|
+
).to_dict()
|
|
96
133
|
status, response = await self._request(
|
|
97
|
-
"api/v1/
|
|
134
|
+
"api/v1/state", method=METH_PUT, data=data
|
|
98
135
|
)
|
|
99
136
|
|
|
100
137
|
else:
|
|
101
|
-
status, response = await self._request("api/v1/
|
|
138
|
+
status, response = await self._request("api/v1/state")
|
|
102
139
|
|
|
103
140
|
if status != HTTPStatus.OK:
|
|
104
|
-
raise RequestError("Failed to get/set
|
|
141
|
+
raise RequestError("Failed to get/set state")
|
|
105
142
|
|
|
106
|
-
|
|
107
|
-
return
|
|
143
|
+
state = State.from_json(response)
|
|
144
|
+
return state
|
|
108
145
|
|
|
109
146
|
@optional_method
|
|
110
147
|
async def identify(
|
|
111
148
|
self,
|
|
112
149
|
) -> bool:
|
|
113
150
|
"""Send identify request."""
|
|
151
|
+
|
|
152
|
+
if self._device is not None and self._device.supports_state is False:
|
|
153
|
+
raise UnsupportedError("State is not supported")
|
|
154
|
+
|
|
114
155
|
await self._request("api/v1/identify", method=METH_PUT)
|
|
115
156
|
return True
|
|
116
157
|
|
|
117
|
-
@backoff.on_exception(backoff.expo, RequestError, max_tries=
|
|
158
|
+
@backoff.on_exception(backoff.expo, RequestError, max_tries=3, logger=None)
|
|
118
159
|
async def _request(
|
|
119
160
|
self, path: str, method: str = METH_GET, data: object = None
|
|
120
161
|
) -> tuple[HTTPStatus, dict[str, Any] | None]:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Constants for HomeWizard Energy v1."""
|
|
@@ -21,14 +21,8 @@ from aiohttp.client import (
|
|
|
21
21
|
from aiohttp.hdrs import METH_DELETE, METH_GET, METH_POST, METH_PUT
|
|
22
22
|
from mashumaro.exceptions import InvalidFieldValue, MissingField
|
|
23
23
|
|
|
24
|
-
from homewizard_energy.errors import (
|
|
25
|
-
DisabledError,
|
|
26
|
-
RequestError,
|
|
27
|
-
ResponseError,
|
|
28
|
-
UnauthorizedError,
|
|
29
|
-
)
|
|
30
|
-
|
|
31
24
|
from ..const import LOGGER
|
|
25
|
+
from ..errors import DisabledError, RequestError, ResponseError, UnauthorizedError
|
|
32
26
|
from ..homewizard_energy import HomeWizardEnergy
|
|
33
27
|
from ..models import Device, Measurement, System, SystemUpdate, Token
|
|
34
28
|
from .cacert import CACERT
|
|
@@ -96,12 +90,22 @@ class HomeWizardEnergyV2(HomeWizardEnergy):
|
|
|
96
90
|
@authorized_method
|
|
97
91
|
async def system(
|
|
98
92
|
self,
|
|
99
|
-
|
|
93
|
+
cloud_enabled: bool | None = None,
|
|
94
|
+
status_led_brightness_pct: int | None = None,
|
|
95
|
+
api_v1_enabled: bool | None = None,
|
|
100
96
|
) -> System:
|
|
101
97
|
"""Return the system object."""
|
|
102
98
|
|
|
103
|
-
if
|
|
104
|
-
|
|
99
|
+
if (
|
|
100
|
+
cloud_enabled is not None
|
|
101
|
+
or status_led_brightness_pct is not None
|
|
102
|
+
or api_v1_enabled is not None
|
|
103
|
+
):
|
|
104
|
+
data = SystemUpdate(
|
|
105
|
+
cloud_enabled=cloud_enabled,
|
|
106
|
+
status_led_brightness_pct=status_led_brightness_pct,
|
|
107
|
+
api_v1_enabled=api_v1_enabled,
|
|
108
|
+
).to_dict()
|
|
105
109
|
status, response = await self._request(
|
|
106
110
|
"/api/system", method=METH_PUT, data=data
|
|
107
111
|
)
|
|
@@ -211,7 +215,7 @@ class HomeWizardEnergyV2(HomeWizardEnergy):
|
|
|
211
215
|
connector=connector, timeout=ClientTimeout(total=self._request_timeout)
|
|
212
216
|
)
|
|
213
217
|
|
|
214
|
-
@backoff.on_exception(backoff.expo, RequestError, max_tries=
|
|
218
|
+
@backoff.on_exception(backoff.expo, RequestError, max_tries=3, logger=None)
|
|
215
219
|
async def _request(
|
|
216
220
|
self, path: str, method: str = METH_GET, data: object = None
|
|
217
221
|
) -> tuple[HTTPStatus, dict[str, Any] | None]:
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"""Constants for HomeWizard Energy."""
|
|
2
|
-
|
|
3
|
-
import logging
|
|
4
|
-
|
|
5
|
-
LOGGER = logging.getLogger(__name__)
|
|
6
|
-
|
|
7
|
-
MODEL_TO_ID = {
|
|
8
|
-
"HWE-P1": "p1dongle",
|
|
9
|
-
"HWE-SKT": "energysocket",
|
|
10
|
-
"HWE-WTR": "watermeter",
|
|
11
|
-
"HWE-DSP": "display",
|
|
12
|
-
"HWE-KWH1": "energymeter",
|
|
13
|
-
"SDM230-wifi": "energymeter",
|
|
14
|
-
"HWE-KWH3": "energymeter",
|
|
15
|
-
"SDM630-wifi": "energymeter",
|
|
16
|
-
"HWE-BAT": "battery",
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
MODEL_TO_NAME = {
|
|
20
|
-
"HWE-P1": "Wi-Fi P1 Meter",
|
|
21
|
-
"HWE-SKT": "Wi-Fi Energy Socket",
|
|
22
|
-
"HWE-WTR": "Wi-Fi Watermeter",
|
|
23
|
-
"HWE-KWH1": "Wi-Fi kWh Meter 1-phase",
|
|
24
|
-
"HWE-KWH3": "Wi-Fi kWh Meter 3-phase",
|
|
25
|
-
"SDM230-wifi": "Wi-Fi kWh Meter 1-phase",
|
|
26
|
-
"SDM630-wifi": "Wi-Fi kWh Meter 3-phase",
|
|
27
|
-
"HWE-BAT": "Plug-In Battery",
|
|
28
|
-
}
|
|
File without changes
|
|
File without changes
|
{python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/errors.py
RENAMED
|
File without changes
|
{python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/py.typed
RENAMED
|
File without changes
|
{python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/v2/cacert.py
RENAMED
|
File without changes
|
{python_homewizard_energy-8.0.0a1 → python_homewizard_energy-8.0.0a3}/homewizard_energy/v2/const.py
RENAMED
|
File without changes
|