blueair-api 1.24.0__py3-none-any.whl → 1.25.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.py +11 -10
- blueair_api/device_aws.py +2 -0
- {blueair_api-1.24.0.dist-info → blueair_api-1.25.0.dist-info}/METADATA +1 -1
- {blueair_api-1.24.0.dist-info → blueair_api-1.25.0.dist-info}/RECORD +7 -7
- {blueair_api-1.24.0.dist-info → blueair_api-1.25.0.dist-info}/LICENSE +0 -0
- {blueair_api-1.24.0.dist-info → blueair_api-1.25.0.dist-info}/WHEEL +0 -0
- {blueair_api-1.24.0.dist-info → blueair_api-1.25.0.dist-info}/top_level.txt +0 -0
blueair_api/device.py
CHANGED
@@ -81,16 +81,17 @@ class Device(CallbacksMixin):
|
|
81
81
|
self.wifi_working = attributes["wifi_status"] == "1"
|
82
82
|
else:
|
83
83
|
self.wifi_working = False
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
84
|
+
if self.compatibility != "sense+":
|
85
|
+
for data_point in transform_data_points(await self.api.get_data_points_since(self.uuid)):
|
86
|
+
_LOGGER.debug(data_point)
|
87
|
+
self.pm25 = safely_get_json_value(data_point, "pm25", int)
|
88
|
+
self.pm10 = safely_get_json_value(data_point, "pm10", int)
|
89
|
+
self.pm1 = safely_get_json_value(data_point, "pm1", int)
|
90
|
+
self.voc = safely_get_json_value(data_point, "voc", int)
|
91
|
+
self.co2 = safely_get_json_value(data_point, "co2", int)
|
92
|
+
self.temperature = safely_get_json_value(data_point, "temperature", int)
|
93
|
+
self.humidity = safely_get_json_value(data_point, "humidity", int)
|
94
|
+
self.all_pollution = safely_get_json_value(data_point, "all_pollution", int)
|
94
95
|
_LOGGER.debug(f"refreshed blueair device: {self}")
|
95
96
|
self.publish_updates()
|
96
97
|
|
blueair_api/device_aws.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import dataclasses
|
2
2
|
import logging
|
3
|
+
from json import dumps
|
3
4
|
|
4
5
|
from .callbacks import CallbacksMixin
|
5
6
|
from .http_aws_blueair import HttpAwsBlueair
|
@@ -64,6 +65,7 @@ class DeviceAws(CallbacksMixin):
|
|
64
65
|
async def refresh(self):
|
65
66
|
_LOGGER.debug(f"refreshing blueair device aws: {self}")
|
66
67
|
info = await self.api.device_info(self.name_api, self.uuid)
|
68
|
+
_LOGGER.debug(dumps(info, indent=2))
|
67
69
|
sensor_data = convert_api_array_to_dict(info["sensordata"])
|
68
70
|
self.pm1 = safely_get_json_value(sensor_data, "pm1", int)
|
69
71
|
self.pm2_5 = safely_get_json_value(sensor_data, "pm2_5", int)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
blueair_api/__init__.py,sha256=GucsIENhTF4AVxPn4Xyr4imUxJJ8RO8RYt1opHCF2hQ,326
|
2
2
|
blueair_api/callbacks.py,sha256=eqgfe1qN_NNWOp2qNSP123zQJxh_Ie6vZXp5EHp6ePc,757
|
3
3
|
blueair_api/const.py,sha256=fRth29dQT1dguM7L4ij8pDefB_vBrevAHqTdfNvSugs,1048
|
4
|
-
blueair_api/device.py,sha256=
|
5
|
-
blueair_api/device_aws.py,sha256=
|
4
|
+
blueair_api/device.py,sha256=1cauwVaRXTVcUay_wA1mIpR-f7RPoxUp45lpredkNMo,3768
|
5
|
+
blueair_api/device_aws.py,sha256=SLJ4-RUBjjLW9WjQjvvEjqFrbg22qCr4m5cgkr8o2DI,6015
|
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=n9F5fvEROIyAkqDMM22l84PB7ZoeEkWbj2YuCZpeDNg,9411
|
@@ -11,8 +11,8 @@ blueair_api/stub.py,sha256=sTWyRSDObzrXpZToAgDmZhCk3q8SsGN35h-kzMOqSOc,1272
|
|
11
11
|
blueair_api/util.py,sha256=4g8dTlxawBYKslOJS7WCWss0670mtUc53c3L8NiPTsM,2201
|
12
12
|
blueair_api/util_bootstrap.py,sha256=Vewg7mT1qSRgzOOJDrpXrVhGwcFPRnMrqhJVSIB-0AA,1688
|
13
13
|
blueair_api/util_http.py,sha256=45AJG3Vb6LMVzI0WV22AoSyt64f_Jj3KpOAwF5M6EFE,1327
|
14
|
-
blueair_api-1.
|
15
|
-
blueair_api-1.
|
16
|
-
blueair_api-1.
|
17
|
-
blueair_api-1.
|
18
|
-
blueair_api-1.
|
14
|
+
blueair_api-1.25.0.dist-info/LICENSE,sha256=W6UV41yCe1R_Avet8VtsxwdJar18n40b3MRnbEMHZmI,1066
|
15
|
+
blueair_api-1.25.0.dist-info/METADATA,sha256=IVuuwhIfHoGxf9MJKhmsPEXHvkygwEemB0xXpumS9qI,1995
|
16
|
+
blueair_api-1.25.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
17
|
+
blueair_api-1.25.0.dist-info/top_level.txt,sha256=-gn0jNtmE83qEu70uMW5F4JrXnHGRfuFup1EPWF70oc,12
|
18
|
+
blueair_api-1.25.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|