blueair-api 1.31.3__py3-none-any.whl → 1.33.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 CHANGED
@@ -66,6 +66,16 @@ 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
+ temperature_unit: AttributeType[int] = None # api value of 1 is celcius
78
+
69
79
  async def refresh(self):
70
80
  _LOGGER.debug(f"refreshing blueair device aws: {self}")
71
81
  self.raw_info = await self.api.device_info(self.name_api, self.uuid)
@@ -117,11 +127,22 @@ class DeviceAws(CallbacksMixin):
117
127
  self.fan_speed = states_safe_get("fanspeed")
118
128
  self.fan_auto_mode = states_safe_get("automode")
119
129
  self.filter_usage_percentage = states_safe_get("filterusage")
130
+
120
131
  self.wick_usage_percentage = states_safe_get("wickusage")
121
132
  self.wick_dry_mode = states_safe_get("wickdrys")
122
133
  self.auto_regulated_humidity = states_safe_get("autorh")
123
134
  self.water_shortage = states_safe_get("wshortage")
124
135
 
136
+ self.main_mode = states_safe_get("mainmode")
137
+ self.heat_temp = states_safe_get("heattemp")
138
+ self.heat_sub_mode = states_safe_get("heatsubmode")
139
+ self.heat_fan_speed = states_safe_get("heatfs")
140
+ self.cool_sub_mode = states_safe_get("coolsubmode")
141
+ self.cool_fan_speed = states_safe_get("coolfs")
142
+ self.ap_sub_mode = states_safe_get("apsubmode")
143
+ self.fan_speed_0 = states_safe_get("fsp0")
144
+ self.temperature_unit = states_safe_get("tu")
145
+
125
146
  self.publish_updates()
126
147
  _LOGGER.debug(f"refreshed blueair device aws: {self}")
127
148
 
@@ -170,6 +191,46 @@ class DeviceAws(CallbacksMixin):
170
191
  await self.api.set_device_info(self.uuid, "germshield", "vb", value)
171
192
  self.publish_updates()
172
193
 
194
+ async def set_main_mode(self, value: int):
195
+ self.main_mode = value
196
+ await self.api.set_device_info(self.uuid, "mainmode", "v", value)
197
+ self.publish_updates()
198
+
199
+ async def set_heat_temp(self, value: int):
200
+ self.heat_temp = value
201
+ await self.api.set_device_info(self.uuid, "heattemp", "v", value)
202
+ self.publish_updates()
203
+
204
+ async def set_heat_sub_mode(self, value: int):
205
+ self.heat_sub_mode = value
206
+ await self.api.set_device_info(self.uuid, "heatsubmode", "v", value)
207
+ self.publish_updates()
208
+
209
+ async def set_heat_fan_speed(self, value: int):
210
+ self.heat_fan_speed = value
211
+ await self.api.set_device_info(self.uuid, "heatfs", "v", value)
212
+ self.publish_updates()
213
+
214
+ async def set_cool_sub_mode(self, value: int):
215
+ self.cool_sub_mode = value
216
+ await self.api.set_device_info(self.uuid, "coolsubmode", "v", value)
217
+ self.publish_updates()
218
+
219
+ async def set_cool_fan_speed(self, value: int):
220
+ self.cool_fan_speed = value
221
+ await self.api.set_device_info(self.uuid, "coolfs", "v", value)
222
+ self.publish_updates()
223
+
224
+ async def set_ap_sub_mode(self, value: int):
225
+ self.ap_sub_mode = value
226
+ await self.api.set_device_info(self.uuid, "apsubmode", "v", value)
227
+ self.publish_updates()
228
+
229
+ async def set_fan_speed_0(self, value: int):
230
+ self.fan_speed_0 = value
231
+ await self.api.set_device_info(self.uuid, "fsp0", "v", value)
232
+ self.publish_updates()
233
+
173
234
  @property
174
235
  def model(self) -> ModelEnum:
175
236
  if self.sku == "111633":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: blueair_api
3
- Version: 1.31.3
3
+ Version: 1.33.0
4
4
  Summary: Blueair Api Wrapper
5
5
  Author-email: Brendan Dahl <dahl.brendan@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/dahlb/blueair_api
@@ -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=UZjtG6IcC2YzEX8jbS6Vp4fmBXYicbKZKP8nD9Pc--g,7277
5
+ blueair_api/device_aws.py,sha256=cWpMrMzWH9hI-gkZb_Tvp2DMJPFZm3p5kt01ZHTUtGc,10008
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.31.3.dist-info/LICENSE,sha256=W6UV41yCe1R_Avet8VtsxwdJar18n40b3MRnbEMHZmI,1066
16
- blueair_api-1.31.3.dist-info/METADATA,sha256=HXYMXcbQ2GtozBOnZF0CVLr34JW9ntLnMThGzxOOfOo,1995
17
- blueair_api-1.31.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
18
- blueair_api-1.31.3.dist-info/top_level.txt,sha256=-gn0jNtmE83qEu70uMW5F4JrXnHGRfuFup1EPWF70oc,12
19
- blueair_api-1.31.3.dist-info/RECORD,,
15
+ blueair_api-1.33.0.dist-info/LICENSE,sha256=W6UV41yCe1R_Avet8VtsxwdJar18n40b3MRnbEMHZmI,1066
16
+ blueair_api-1.33.0.dist-info/METADATA,sha256=r6jGGRhJVS4K7qOwzRtqJdtfeblHSBD_4X8mC9YR3A4,1995
17
+ blueair_api-1.33.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
18
+ blueair_api-1.33.0.dist-info/top_level.txt,sha256=-gn0jNtmE83qEu70uMW5F4JrXnHGRfuFup1EPWF70oc,12
19
+ blueair_api-1.33.0.dist-info/RECORD,,