plugwise 1.3.0__py3-none-any.whl → 1.4.0__py3-none-any.whl
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.
- plugwise/__init__.py +3 -0
- plugwise/constants.py +5 -3
- plugwise/helper.py +3 -2
- plugwise/smile.py +2 -0
- {plugwise-1.3.0.dist-info → plugwise-1.4.0.dist-info}/METADATA +1 -1
- {plugwise-1.3.0.dist-info → plugwise-1.4.0.dist-info}/RECORD +9 -9
- {plugwise-1.3.0.dist-info → plugwise-1.4.0.dist-info}/LICENSE +0 -0
- {plugwise-1.3.0.dist-info → plugwise-1.4.0.dist-info}/WHEEL +0 -0
- {plugwise-1.3.0.dist-info → plugwise-1.4.0.dist-info}/top_level.txt +0 -0
plugwise/__init__.py
CHANGED
@@ -85,6 +85,7 @@ class Smile(SmileComm):
|
|
85
85
|
self.smile_legacy = False
|
86
86
|
self.smile_mac_address: str | None = None
|
87
87
|
self.smile_model: str = NONE
|
88
|
+
self.smile_model_id: str | None = None
|
88
89
|
self.smile_name: str = NONE
|
89
90
|
self.smile_type: str = NONE
|
90
91
|
self.smile_version: str = NONE
|
@@ -145,6 +146,7 @@ class Smile(SmileComm):
|
|
145
146
|
self.smile_hw_version,
|
146
147
|
self.smile_mac_address,
|
147
148
|
self.smile_model,
|
149
|
+
self.smile_model_id,
|
148
150
|
self.smile_name,
|
149
151
|
self.smile_type,
|
150
152
|
self._user,
|
@@ -190,6 +192,7 @@ class Smile(SmileComm):
|
|
190
192
|
self.smile_hw_version = gateway.find("hardware_version").text
|
191
193
|
self.smile_hostname = gateway.find("hostname").text
|
192
194
|
self.smile_mac_address = gateway.find("mac_address").text
|
195
|
+
self.smile_model_id = gateway.find("vendor_model").text
|
193
196
|
else:
|
194
197
|
model = await self._smile_detect_legacy(result, dsmrmain, model)
|
195
198
|
|
plugwise/constants.py
CHANGED
@@ -252,6 +252,7 @@ ApplianceType = Literal[
|
|
252
252
|
"mac_address",
|
253
253
|
"members",
|
254
254
|
"model",
|
255
|
+
"model_id",
|
255
256
|
"name",
|
256
257
|
"vendor",
|
257
258
|
"zigbee_mac_address",
|
@@ -511,15 +512,16 @@ class DeviceData(TypedDict, total=False):
|
|
511
512
|
|
512
513
|
# Appliance base data
|
513
514
|
dev_class: str
|
514
|
-
firmware: str
|
515
|
+
firmware: str
|
515
516
|
hardware: str
|
516
517
|
location: str
|
517
|
-
mac_address: str
|
518
|
+
mac_address: str
|
518
519
|
members: list[str]
|
519
520
|
model: str
|
521
|
+
model_id: str | None
|
520
522
|
name: str
|
521
523
|
vendor: str
|
522
|
-
zigbee_mac_address: str
|
524
|
+
zigbee_mac_address: str
|
523
525
|
|
524
526
|
# For temporary use
|
525
527
|
cooling_enabled: bool
|
plugwise/helper.py
CHANGED
@@ -254,6 +254,7 @@ class SmileHelper(SmileCommon):
|
|
254
254
|
self.smile_hw_version: str | None
|
255
255
|
self.smile_mac_address: str | None
|
256
256
|
self.smile_model: str
|
257
|
+
self.smile_model_id: str | None
|
257
258
|
self.smile_name: str
|
258
259
|
self.smile_type: str
|
259
260
|
self.smile_zigbee_mac_address: str | None
|
@@ -351,7 +352,7 @@ class SmileHelper(SmileCommon):
|
|
351
352
|
appl.dev_id = self.gateway_id
|
352
353
|
appl.location = loc_id
|
353
354
|
appl.mac = None
|
354
|
-
appl.model =
|
355
|
+
appl.model = None
|
355
356
|
appl.model_id = None
|
356
357
|
appl.name = "P1"
|
357
358
|
appl.pwclass = "smartmeter"
|
@@ -421,7 +422,7 @@ class SmileHelper(SmileCommon):
|
|
421
422
|
appl.hardware = self.smile_hw_version
|
422
423
|
appl.mac = self.smile_mac_address
|
423
424
|
appl.model = self.smile_model
|
424
|
-
appl.model_id = self.
|
425
|
+
appl.model_id = self.smile_model_id
|
425
426
|
appl.name = self.smile_name
|
426
427
|
appl.vendor_name = "Plugwise"
|
427
428
|
|
plugwise/smile.py
CHANGED
@@ -62,6 +62,7 @@ class SmileAPI(SmileComm, SmileData):
|
|
62
62
|
smile_hw_version: str | None,
|
63
63
|
smile_mac_address: str | None,
|
64
64
|
smile_model: str,
|
65
|
+
smile_model_id: str | None,
|
65
66
|
smile_name: str,
|
66
67
|
smile_type: str,
|
67
68
|
username: str = DEFAULT_USERNAME,
|
@@ -93,6 +94,7 @@ class SmileAPI(SmileComm, SmileData):
|
|
93
94
|
self.smile_hw_version = smile_hw_version
|
94
95
|
self.smile_mac_address = smile_mac_address
|
95
96
|
self.smile_model = smile_model
|
97
|
+
self.smile_model_id = smile_model_id
|
96
98
|
self.smile_name = smile_name
|
97
99
|
self.smile_type = smile_type
|
98
100
|
|
@@ -1,17 +1,17 @@
|
|
1
|
-
plugwise/__init__.py,sha256=
|
1
|
+
plugwise/__init__.py,sha256=wA-xl4Cd2mioaKhP31D6dHNu-CM2X-5n8TlQbSIra3k,17035
|
2
2
|
plugwise/common.py,sha256=geZd-kVQ0F1OTJoUd2WMPxNBVpSLgZ2ID_47ainOMnk,12746
|
3
|
-
plugwise/constants.py,sha256=
|
3
|
+
plugwise/constants.py,sha256=kVNrr4zeKFMiGBogVLZ6B925FHAIgy1PY2BBxaT1vkk,16742
|
4
4
|
plugwise/data.py,sha256=I4w3ABqmcj_uSnfxTWPYQH8WP6HaywVMx1aQ-feBdU0,10734
|
5
5
|
plugwise/exceptions.py,sha256=Ce-tO9uNsMB-8FP6VAxBvsHNJ-NIM9F0onUZOdZI4Ys,1110
|
6
|
-
plugwise/helper.py,sha256=
|
6
|
+
plugwise/helper.py,sha256=05dG0FYCBNwO10P5l7LfeouO5Jrs8i-e0jzftZbgFIw,44074
|
7
7
|
plugwise/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
plugwise/smile.py,sha256=
|
8
|
+
plugwise/smile.py,sha256=QEztzHr3dzwoZv6lgXKZqDwwCy4WD-2LlS5FhWBHk48,18762
|
9
9
|
plugwise/util.py,sha256=lCasQDzYO3CNAIHbLKTK16YJxQKoBrTQkJ1nCMmF17g,8006
|
10
10
|
plugwise/legacy/data.py,sha256=DsHR9xgiFDg_Vh_6ZpOskw8ZhNQ3CmwjstI3yiH6MEk,3048
|
11
11
|
plugwise/legacy/helper.py,sha256=7QCJyaR9FaM4EEQxGt2oFJac6Pu5OKoi_LG_GQKzRs4,18012
|
12
12
|
plugwise/legacy/smile.py,sha256=7oaPZuvxrYRvoA8qWFvtWSwQRFfQl1XXpPjWXn3_xFs,11314
|
13
|
-
plugwise-1.
|
14
|
-
plugwise-1.
|
15
|
-
plugwise-1.
|
16
|
-
plugwise-1.
|
17
|
-
plugwise-1.
|
13
|
+
plugwise-1.4.0.dist-info/LICENSE,sha256=mL22BjmXtg_wnoDnnaqps5_Bg_VGj_yHueX5lsKwbCc,1144
|
14
|
+
plugwise-1.4.0.dist-info/METADATA,sha256=EZRtW9L6vE2vrmMPW9FIDyX1jm4_R2oSjDx6gBAZP2w,9097
|
15
|
+
plugwise-1.4.0.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
16
|
+
plugwise-1.4.0.dist-info/top_level.txt,sha256=MYOmktMFf8ZmX6_OE1y9MoCZFfY-L8DA0F2tA2IvE4s,9
|
17
|
+
plugwise-1.4.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|