blueair-api 1.31.3__py3-none-any.whl → 1.32.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 +59 -0
- {blueair_api-1.31.3.dist-info → blueair_api-1.32.0.dist-info}/METADATA +1 -1
- {blueair_api-1.31.3.dist-info → blueair_api-1.32.0.dist-info}/RECORD +6 -6
- {blueair_api-1.31.3.dist-info → blueair_api-1.32.0.dist-info}/LICENSE +0 -0
- {blueair_api-1.31.3.dist-info → blueair_api-1.32.0.dist-info}/WHEEL +0 -0
- {blueair_api-1.31.3.dist-info → blueair_api-1.32.0.dist-info}/top_level.txt +0 -0
blueair_api/device_aws.py
CHANGED
@@ -66,6 +66,15 @@ class DeviceAws(CallbacksMixin):
|
|
66
66
|
water_shortage : AttributeType[bool] = None
|
67
67
|
auto_regulated_humidity : AttributeType[int] = None
|
68
68
|
|
69
|
+
main_mode: AttributeType[int] = None # api value 0 purify only, 1 heat on, 2 cool on
|
70
|
+
heat_sub_mode: AttributeType[int] = None # api value 1 heat on, 2 heat on with fan auto
|
71
|
+
heat_fan_speed: AttributeType[int] = None # api value 11/37/64/91
|
72
|
+
heat_temp: AttributeType[int] = None # api value is celsius * 10
|
73
|
+
cool_sub_mode: AttributeType[int] = None # api value 1 cool on, 2 cool on with fan auto
|
74
|
+
cool_fan_speed: AttributeType[int] = None # api value 11/37/64/91
|
75
|
+
ap_sub_mode: AttributeType[int] = None # api value 1 manual speeed, 2 auto fan speed
|
76
|
+
fan_speed_0: AttributeType[int] = None # api value 11/37/64/91
|
77
|
+
|
69
78
|
async def refresh(self):
|
70
79
|
_LOGGER.debug(f"refreshing blueair device aws: {self}")
|
71
80
|
self.raw_info = await self.api.device_info(self.name_api, self.uuid)
|
@@ -117,11 +126,21 @@ class DeviceAws(CallbacksMixin):
|
|
117
126
|
self.fan_speed = states_safe_get("fanspeed")
|
118
127
|
self.fan_auto_mode = states_safe_get("automode")
|
119
128
|
self.filter_usage_percentage = states_safe_get("filterusage")
|
129
|
+
|
120
130
|
self.wick_usage_percentage = states_safe_get("wickusage")
|
121
131
|
self.wick_dry_mode = states_safe_get("wickdrys")
|
122
132
|
self.auto_regulated_humidity = states_safe_get("autorh")
|
123
133
|
self.water_shortage = states_safe_get("wshortage")
|
124
134
|
|
135
|
+
self.main_mode = states_safe_get("mainmode")
|
136
|
+
self.heat_temp = states_safe_get("heattemp")
|
137
|
+
self.heat_sub_mode = states_safe_get("heatsubmode")
|
138
|
+
self.heat_fan_speed = states_safe_get("heatfs")
|
139
|
+
self.cool_sub_mode = states_safe_get("coolsubmode")
|
140
|
+
self.cool_fan_speed = states_safe_get("coolfs")
|
141
|
+
self.ap_sub_mode = states_safe_get("apsubmode")
|
142
|
+
self.fan_speed_0 = states_safe_get("fsp0")
|
143
|
+
|
125
144
|
self.publish_updates()
|
126
145
|
_LOGGER.debug(f"refreshed blueair device aws: {self}")
|
127
146
|
|
@@ -170,6 +189,46 @@ class DeviceAws(CallbacksMixin):
|
|
170
189
|
await self.api.set_device_info(self.uuid, "germshield", "vb", value)
|
171
190
|
self.publish_updates()
|
172
191
|
|
192
|
+
async def set_main_mode(self, value: int):
|
193
|
+
self.main_mode = value
|
194
|
+
await self.api.set_device_info(self.uuid, "mainmode", "v", value)
|
195
|
+
self.publish_updates()
|
196
|
+
|
197
|
+
async def set_heat_temp(self, value: int):
|
198
|
+
self.heat_temp = value
|
199
|
+
await self.api.set_device_info(self.uuid, "heattemp", "v", value)
|
200
|
+
self.publish_updates()
|
201
|
+
|
202
|
+
async def set_heat_sub_mode(self, value: int):
|
203
|
+
self.heat_sub_mode = value
|
204
|
+
await self.api.set_device_info(self.uuid, "heatsubmode", "v", value)
|
205
|
+
self.publish_updates()
|
206
|
+
|
207
|
+
async def set_heat_fan_speed(self, value: int):
|
208
|
+
self.heat_fan_speed = value
|
209
|
+
await self.api.set_device_info(self.uuid, "heatfs", "v", value)
|
210
|
+
self.publish_updates()
|
211
|
+
|
212
|
+
async def set_cool_sub_mode(self, value: int):
|
213
|
+
self.cool_sub_mode = value
|
214
|
+
await self.api.set_device_info(self.uuid, "coolsubmode", "v", value)
|
215
|
+
self.publish_updates()
|
216
|
+
|
217
|
+
async def set_cool_fan_speed(self, value: int):
|
218
|
+
self.cool_fan_speed = value
|
219
|
+
await self.api.set_device_info(self.uuid, "coolfs", "v", value)
|
220
|
+
self.publish_updates()
|
221
|
+
|
222
|
+
async def set_ap_sub_mode(self, value: int):
|
223
|
+
self.ap_sub_mode = value
|
224
|
+
await self.api.set_device_info(self.uuid, "apsubmode", "v", value)
|
225
|
+
self.publish_updates()
|
226
|
+
|
227
|
+
async def set_fan_speed_0(self, value: int):
|
228
|
+
self.fan_speed_0 = value
|
229
|
+
await self.api.set_device_info(self.uuid, "fsp0", "v", value)
|
230
|
+
self.publish_updates()
|
231
|
+
|
173
232
|
@property
|
174
233
|
def model(self) -> ModelEnum:
|
175
234
|
if self.sku == "111633":
|
@@ -2,7 +2,7 @@ blueair_api/__init__.py,sha256=GucsIENhTF4AVxPn4Xyr4imUxJJ8RO8RYt1opHCF2hQ,326
|
|
2
2
|
blueair_api/callbacks.py,sha256=fvrJsqH5eDRxWOGWiZkF2uLU4n2ve0zzU17ERqWbHP8,756
|
3
3
|
blueair_api/const.py,sha256=q1smSEhwyYvuQiR867lToFm-mGV-d3dNJvN0NJgscbU,1037
|
4
4
|
blueair_api/device.py,sha256=rUFOLDo7TAQz8DuRwrqTED7mCtY7_B33NEhf5D4s6gI,5321
|
5
|
-
blueair_api/device_aws.py,sha256=
|
5
|
+
blueair_api/device_aws.py,sha256=qOPfzD7n0tcAaWwLQgK3PeRY8Zwg5Qffb8xgIU2rAXg,9878
|
6
6
|
blueair_api/errors.py,sha256=lJ_iFU_W6zQfGRi_wsMhWDw-fAVPFeCkCbT1erIlYQQ,233
|
7
7
|
blueair_api/http_aws_blueair.py,sha256=jztGyoH0iC7aCJ2oGf9hnEeHFOie3YikFvwtWo3W2w4,8536
|
8
8
|
blueair_api/http_blueair.py,sha256=IMnKXs9S0Z-t1GVshSItjNr9tTdtXjh7-T-tHpsbzhE,11752
|
@@ -12,8 +12,8 @@ blueair_api/stub.py,sha256=tWJJLIhKf39P1gRAXfJk6L8cBJI9fVK3Uk9pj2_Teaw,1187
|
|
12
12
|
blueair_api/util.py,sha256=7MrB2DLqUVOlBQuhv7bRmUXvcGcsjXiV3M0H3LloiOo,1962
|
13
13
|
blueair_api/util_bootstrap.py,sha256=oo6qqEYUxWb4wLLivk7ofB0YFrKsTZo5tW0U2wc3-D0,1757
|
14
14
|
blueair_api/util_http.py,sha256=45AJG3Vb6LMVzI0WV22AoSyt64f_Jj3KpOAwF5M6EFE,1327
|
15
|
-
blueair_api-1.
|
16
|
-
blueair_api-1.
|
17
|
-
blueair_api-1.
|
18
|
-
blueair_api-1.
|
19
|
-
blueair_api-1.
|
15
|
+
blueair_api-1.32.0.dist-info/LICENSE,sha256=W6UV41yCe1R_Avet8VtsxwdJar18n40b3MRnbEMHZmI,1066
|
16
|
+
blueair_api-1.32.0.dist-info/METADATA,sha256=av1BdQWsrhXIcOPHDCZrKBLx625wz0gXE6gByqZSCiE,1995
|
17
|
+
blueair_api-1.32.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
18
|
+
blueair_api-1.32.0.dist-info/top_level.txt,sha256=-gn0jNtmE83qEu70uMW5F4JrXnHGRfuFup1EPWF70oc,12
|
19
|
+
blueair_api-1.32.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|