blueair-api 1.10.0__py3-none-any.whl → 1.11.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.
- blueair_api/device_aws.py +8 -1
- blueair_api/util_bootstrap.py +5 -3
- {blueair_api-1.10.0.dist-info → blueair_api-1.11.0.dist-info}/METADATA +1 -1
- {blueair_api-1.10.0.dist-info → blueair_api-1.11.0.dist-info}/RECORD +7 -7
- {blueair_api-1.10.0.dist-info → blueair_api-1.11.0.dist-info}/WHEEL +1 -1
- {blueair_api-1.10.0.dist-info → blueair_api-1.11.0.dist-info}/LICENSE +0 -0
- {blueair_api-1.10.0.dist-info → blueair_api-1.11.0.dist-info}/top_level.txt +0 -0
blueair_api/device_aws.py
CHANGED
@@ -12,6 +12,9 @@ class DeviceAws(CallbacksMixin):
|
|
12
12
|
name: str = None
|
13
13
|
name_api: str = None
|
14
14
|
mac: str = None
|
15
|
+
type_name: str = None
|
16
|
+
|
17
|
+
sku: str = None
|
15
18
|
firmware: str = None
|
16
19
|
mcu_firmware: str = None
|
17
20
|
serial_number: str = None
|
@@ -36,7 +39,7 @@ class DeviceAws(CallbacksMixin):
|
|
36
39
|
# i35
|
37
40
|
wick_usage: int = None # percentage
|
38
41
|
wick_dry_mode: bool = None
|
39
|
-
|
42
|
+
water_shortage: bool = None
|
40
43
|
auto_regulated_humidity: int = None
|
41
44
|
|
42
45
|
def __init__(
|
@@ -55,6 +58,7 @@ class DeviceAws(CallbacksMixin):
|
|
55
58
|
_LOGGER.debug(f"creating blueair device aws: {self.uuid}")
|
56
59
|
|
57
60
|
async def refresh(self):
|
61
|
+
_LOGGER.debug(f"refreshing blueair device aws: {self.uuid}")
|
58
62
|
info = await self.api.device_info(self.name_api, self.uuid)
|
59
63
|
sensor_data = convert_api_array_to_dict(info["sensordata"])
|
60
64
|
self.pm1 = safely_get_json_value(sensor_data, "pm1", int)
|
@@ -68,6 +72,7 @@ class DeviceAws(CallbacksMixin):
|
|
68
72
|
self.firmware = safely_get_json_value(info, "configuration.di.cfv")
|
69
73
|
self.mcu_firmware = safely_get_json_value(info, "configuration.di.mfv")
|
70
74
|
self.serial_number = safely_get_json_value(info, "configuration.di.ds")
|
75
|
+
self.sku = safely_get_json_value(info, "configuration.di.sku")
|
71
76
|
|
72
77
|
states = convert_api_array_to_dict(info["states"])
|
73
78
|
self.running = safely_get_json_value(states, "standby") is False
|
@@ -85,6 +90,7 @@ class DeviceAws(CallbacksMixin):
|
|
85
90
|
self.water_shortage = safely_get_json_value(states, "wshortage", bool)
|
86
91
|
|
87
92
|
self.publish_updates()
|
93
|
+
_LOGGER.debug(f"refreshed blueair device aws: {self}")
|
88
94
|
|
89
95
|
async def set_brightness(self, value: int):
|
90
96
|
self.brightness = value
|
@@ -131,6 +137,7 @@ class DeviceAws(CallbacksMixin):
|
|
131
137
|
"uuid": self.uuid,
|
132
138
|
"name": self.name,
|
133
139
|
"type_name": self.type_name,
|
140
|
+
"sku": self.sku,
|
134
141
|
"name_api": self.name_api,
|
135
142
|
"mac": self.mac,
|
136
143
|
"firmware": self.firmware,
|
blueair_api/util_bootstrap.py
CHANGED
@@ -32,7 +32,6 @@ async def get_devices(
|
|
32
32
|
uuid=device["uuid"],
|
33
33
|
name=device["name"],
|
34
34
|
mac=device["mac"],
|
35
|
-
type_name=device["type"],
|
36
35
|
)
|
37
36
|
|
38
37
|
devices = map(create_device, api_devices)
|
@@ -62,7 +61,10 @@ async def get_aws_devices(
|
|
62
61
|
uuid=device["uuid"],
|
63
62
|
name_api=device["name"],
|
64
63
|
mac=device["mac"],
|
64
|
+
type_name=device["type"],
|
65
65
|
)
|
66
66
|
|
67
|
-
|
68
|
-
|
67
|
+
|
68
|
+
devices = list(map(create_device, api_devices))
|
69
|
+
|
70
|
+
return (api, devices)
|
@@ -2,16 +2,16 @@ blueair_api/__init__.py,sha256=TSAR2ntyFQWyGdKNR1iEsJJmQbNMOvnw-xdVONMHdA8,279
|
|
2
2
|
blueair_api/callbacks.py,sha256=6hzAAbdq-FQYTgc5RVBQCiqJz3PaBHkIgAkg0P2NZ8U,725
|
3
3
|
blueair_api/const.py,sha256=RJtIjEyi4VaAtlnjjBaEdndAtDNUjsm-c78o83CIjgk,1048
|
4
4
|
blueair_api/device.py,sha256=8fzC97FeyCvjML-73ls-vQPs2_aTNX9o-Ywk7ZTVoNI,3193
|
5
|
-
blueair_api/device_aws.py,sha256=
|
5
|
+
blueair_api/device_aws.py,sha256=MiBv-5TGrJCMfsuVnnndgP0SMSWz8wFo9i8RYyg-TEo,6388
|
6
6
|
blueair_api/errors.py,sha256=lJ_iFU_W6zQfGRi_wsMhWDw-fAVPFeCkCbT1erIlYQQ,233
|
7
7
|
blueair_api/http_aws_blueair.py,sha256=m_qoCFOYICCu_U_maBvkmOha3YmNtxxtPYyapVBGKNc,17821
|
8
8
|
blueair_api/http_blueair.py,sha256=ieDvjs0_DHSJzseO_qdvLIxdrUUHuTgSHjWb6u-_gRs,7350
|
9
9
|
blueair_api/stub.py,sha256=04RBMbv3ZdfJzmZISj3grf43AYU7ia0parL0UKDfeXI,1273
|
10
10
|
blueair_api/util.py,sha256=3L9-vfHfN1vUBYU0BA9ruYyNPUTmS21D-uI-Jyo5x6U,1672
|
11
|
-
blueair_api/util_bootstrap.py,sha256=
|
11
|
+
blueair_api/util_bootstrap.py,sha256=1IQXZ0_nbRiLYnrnmyQcDMdZ7vi4i_CV78vFRxXCPWY,1602
|
12
12
|
blueair_api/util_http.py,sha256=45AJG3Vb6LMVzI0WV22AoSyt64f_Jj3KpOAwF5M6EFE,1327
|
13
|
-
blueair_api-1.
|
14
|
-
blueair_api-1.
|
15
|
-
blueair_api-1.
|
16
|
-
blueair_api-1.
|
17
|
-
blueair_api-1.
|
13
|
+
blueair_api-1.11.0.dist-info/LICENSE,sha256=W6UV41yCe1R_Avet8VtsxwdJar18n40b3MRnbEMHZmI,1066
|
14
|
+
blueair_api-1.11.0.dist-info/METADATA,sha256=CEltWqFqbIUK8_RPCzc_V0wh4vmcmqSo30fuwJF3P6c,1997
|
15
|
+
blueair_api-1.11.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
16
|
+
blueair_api-1.11.0.dist-info/top_level.txt,sha256=-gn0jNtmE83qEu70uMW5F4JrXnHGRfuFup1EPWF70oc,12
|
17
|
+
blueair_api-1.11.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|