blebox-uniapi 2.4.1__tar.gz → 2.4.2__tar.gz
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.
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/HISTORY.rst +4 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/PKG-INFO +5 -13
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/README.rst +0 -12
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/__init__.py +1 -1
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/box_types.py +14 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/sensor.py +3 -1
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi.egg-info/PKG-INFO +5 -13
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/setup.cfg +1 -1
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/setup.py +1 -1
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/CONTRIBUTING.rst +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/LICENSE +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/MANIFEST.in +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/binary_sensor.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/box.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/button.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/climate.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/cover.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/error.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/feature.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/jfollow.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/light.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/session.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi/switch.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi.egg-info/SOURCES.txt +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi.egg-info/dependency_links.txt +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi.egg-info/not-zip-safe +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi.egg-info/requires.txt +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/blebox_uniapi.egg-info/top_level.txt +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/docs/Makefile +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/docs/authors.rst +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/docs/conf.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/docs/contributing.rst +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/docs/history.rst +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/docs/index.rst +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/docs/installation.rst +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/docs/make.bat +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/docs/readme.rst +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/docs/usage.rst +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/tests/test_box.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/tests/test_box_types.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/tests/test_button.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/tests/test_climate.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/tests/test_cover.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/tests/test_light.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/tests/test_light_unit.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/tests/test_sensor.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/tests/test_session.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/tests/test_switch.py +0 -0
- {blebox_uniapi-2.4.1 → blebox_uniapi-2.4.2}/tests/test_unknown.py +0 -0
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
=======
|
|
2
2
|
History
|
|
3
3
|
=======
|
|
4
|
+
2.4.2 (2024-06-04)
|
|
5
|
+
------------------
|
|
6
|
+
* fix: add missing support for active power sensors on switchbox/switchboxd devices by @swistakm in https://github.com/blebox/blebox_uniapi/pull/175
|
|
7
|
+
|
|
4
8
|
2.4.1 (2024-06-04)
|
|
5
9
|
------------------
|
|
6
10
|
* fix: rectify ambiguity around powerConsumption and wind sensor types
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: blebox_uniapi
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.2
|
|
4
4
|
Summary: Python API for accessing BleBox smart home devices
|
|
5
5
|
Home-page: https://github.com/blebox/blebox_uniapi
|
|
6
6
|
Author: BleBox
|
|
@@ -23,20 +23,9 @@ Requires-Dist: jmespath>1.0.0
|
|
|
23
23
|
BleBox Python UniAPI
|
|
24
24
|
====================
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
.. image:: https://img.shields.io/pypi/v/blebox_uniapi.svg
|
|
28
27
|
:target: https://pypi.python.org/pypi/blebox_uniapi
|
|
29
28
|
|
|
30
|
-
.. image:: https://travis-ci.com/blebox/blebox_uniapi.svg?branch=master
|
|
31
|
-
:target: https://travis-ci.com/blebox/blebox_uniapi
|
|
32
|
-
|
|
33
|
-
.. image:: https://readthedocs.org/projects/blebox-uniapi/badge/?version=latest
|
|
34
|
-
:target: https://blebox-uniapi.readthedocs.io/en/latest/?badge=latest
|
|
35
|
-
:alt: Documentation Status
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
29
|
Python API for accessing BleBox smart home devices
|
|
41
30
|
|
|
42
31
|
|
|
@@ -60,7 +49,6 @@ Contributions are welcome!
|
|
|
60
49
|
Credits
|
|
61
50
|
-------
|
|
62
51
|
|
|
63
|
-
|
|
64
52
|
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
|
|
65
53
|
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
|
|
66
54
|
.. _`11 BleBox smart home devices`: https://blebox.eu/produkty/?lang=en
|
|
@@ -69,6 +57,10 @@ Credits
|
|
|
69
57
|
=======
|
|
70
58
|
History
|
|
71
59
|
=======
|
|
60
|
+
2.4.2 (2024-06-04)
|
|
61
|
+
------------------
|
|
62
|
+
* fix: add missing support for active power sensors on switchbox/switchboxd devices by @swistakm in https://github.com/blebox/blebox_uniapi/pull/175
|
|
63
|
+
|
|
72
64
|
2.4.1 (2024-06-04)
|
|
73
65
|
------------------
|
|
74
66
|
* fix: rectify ambiguity around powerConsumption and wind sensor types
|
|
@@ -2,20 +2,9 @@
|
|
|
2
2
|
BleBox Python UniAPI
|
|
3
3
|
====================
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
.. image:: https://img.shields.io/pypi/v/blebox_uniapi.svg
|
|
7
6
|
:target: https://pypi.python.org/pypi/blebox_uniapi
|
|
8
7
|
|
|
9
|
-
.. image:: https://travis-ci.com/blebox/blebox_uniapi.svg?branch=master
|
|
10
|
-
:target: https://travis-ci.com/blebox/blebox_uniapi
|
|
11
|
-
|
|
12
|
-
.. image:: https://readthedocs.org/projects/blebox-uniapi/badge/?version=latest
|
|
13
|
-
:target: https://blebox-uniapi.readthedocs.io/en/latest/?badge=latest
|
|
14
|
-
:alt: Documentation Status
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
8
|
Python API for accessing BleBox smart home devices
|
|
20
9
|
|
|
21
10
|
|
|
@@ -39,7 +28,6 @@ Contributions are welcome!
|
|
|
39
28
|
Credits
|
|
40
29
|
-------
|
|
41
30
|
|
|
42
|
-
|
|
43
31
|
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
|
|
44
32
|
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
|
|
45
33
|
.. _`11 BleBox smart home devices`: https://blebox.eu/produkty/?lang=en
|
|
@@ -280,7 +280,9 @@ BOX_TYPE_CONF: dict[str, dict[int, dict[str, Any]]] = {
|
|
|
280
280
|
[
|
|
281
281
|
"switchBox.energy",
|
|
282
282
|
{
|
|
283
|
+
# note: switchbox/switchboxD sensors are currently not indexed (singletons)
|
|
283
284
|
"powerConsumption": lambda x: "powerMeasuring.powerConsumption[0]|value",
|
|
285
|
+
"activePower": lambda x: "sensors[?type == 'activePower']|[0]|value",
|
|
284
286
|
"periodS": "powerMeasuring.powerConsumption[0]|periodS",
|
|
285
287
|
"measurement_enabled": "powerMeasuring.enabled",
|
|
286
288
|
},
|
|
@@ -305,7 +307,9 @@ BOX_TYPE_CONF: dict[str, dict[int, dict[str, Any]]] = {
|
|
|
305
307
|
[
|
|
306
308
|
"switchBox.energy",
|
|
307
309
|
{
|
|
310
|
+
# note: switchbox/switchboxD sensors are currently not indexed (singletons)
|
|
308
311
|
"powerConsumption": lambda x: "powerMeasuring.powerConsumption[0]|value",
|
|
312
|
+
"activePower": lambda x: "sensors[?type == 'activePower']|[0]|value",
|
|
309
313
|
"periodS": "powerMeasuring.powerConsumption[0]|periodS",
|
|
310
314
|
"measurement_enabled": "powerMeasuring.enabled",
|
|
311
315
|
},
|
|
@@ -330,7 +334,9 @@ BOX_TYPE_CONF: dict[str, dict[int, dict[str, Any]]] = {
|
|
|
330
334
|
[
|
|
331
335
|
"switchBox.energy",
|
|
332
336
|
{
|
|
337
|
+
# note: switchbox/switchboxD sensors are currently not indexed (singletons)
|
|
333
338
|
"powerConsumption": lambda x: "powerMeasuring.powerConsumption[0]|value",
|
|
339
|
+
"activePower": lambda x: "sensors[?type == 'activePower']|[0]|value",
|
|
334
340
|
"periodS": "powerMeasuring.powerConsumption[0]|periodS",
|
|
335
341
|
"measurement_enabled": "powerMeasuring.enabled",
|
|
336
342
|
},
|
|
@@ -357,7 +363,9 @@ BOX_TYPE_CONF: dict[str, dict[int, dict[str, Any]]] = {
|
|
|
357
363
|
[
|
|
358
364
|
"switchBox.energy",
|
|
359
365
|
{
|
|
366
|
+
# note: switchbox/switchboxD sensors are currently not indexed (singletons)
|
|
360
367
|
"powerConsumption": lambda x: "powerMeasuring.powerConsumption[0]|value ",
|
|
368
|
+
"activePower": lambda x: "sensors[?type == 'activePower']|[0]|value",
|
|
361
369
|
"periodS": "powerMeasuring.powerConsumption[0]|periodS",
|
|
362
370
|
"measurement_enabled": "powerMeasuring.enabled",
|
|
363
371
|
},
|
|
@@ -392,7 +400,9 @@ BOX_TYPE_CONF: dict[str, dict[int, dict[str, Any]]] = {
|
|
|
392
400
|
[
|
|
393
401
|
"switchBox.energy",
|
|
394
402
|
{
|
|
403
|
+
# note: switchbox/switchboxD sensors are currently not indexed (singletons)
|
|
395
404
|
"powerConsumption": lambda x: "powerMeasuring.powerConsumption[0]|value ",
|
|
405
|
+
"activePower": lambda x: "sensors[?type == 'activePower']|[0]|value",
|
|
396
406
|
"periodS": "powerMeasuring.powerConsumption[0]|periodS",
|
|
397
407
|
"measurement_enabled": "powerMeasuring.enabled",
|
|
398
408
|
},
|
|
@@ -424,7 +434,9 @@ BOX_TYPE_CONF: dict[str, dict[int, dict[str, Any]]] = {
|
|
|
424
434
|
[
|
|
425
435
|
"switchBox.energy",
|
|
426
436
|
{
|
|
437
|
+
# note: switchbox/switchboxD sensors are currently not indexed (singletons)
|
|
427
438
|
"powerConsumption": lambda x: "powerMeasuring.powerConsumption[0]|value ",
|
|
439
|
+
"activePower": lambda x: "sensors[?type == 'activePower']|[0]|value",
|
|
428
440
|
"periodS": "powerMeasuring.powerConsumption[0]|periodS",
|
|
429
441
|
"measurement_enabled": "powerMeasuring.enabled",
|
|
430
442
|
},
|
|
@@ -456,7 +468,9 @@ BOX_TYPE_CONF: dict[str, dict[int, dict[str, Any]]] = {
|
|
|
456
468
|
[
|
|
457
469
|
"switchBox.energy",
|
|
458
470
|
{
|
|
471
|
+
# note: switchbox/switchboxD sensors are currently not indexed (singletons)
|
|
459
472
|
"powerConsumption": lambda x: "powerMeasuring.powerConsumption[0]|value ",
|
|
473
|
+
"activePower": lambda x: "sensors[?type == 'activePower']|[0]|value",
|
|
460
474
|
"periodS": "powerMeasuring.powerConsumption[0]|periodS",
|
|
461
475
|
"measurement_enabled": "powerMeasuring.enabled",
|
|
462
476
|
},
|
|
@@ -35,7 +35,9 @@ class SensorFactory:
|
|
|
35
35
|
# note: probably we should iterate extended state in future if there
|
|
36
36
|
# are other api flavours other than multiSensor that provide sensors
|
|
37
37
|
states = extended_state.get("multiSensor", {}).get("sensors", [])
|
|
38
|
-
|
|
38
|
+
# note: but for now we are only able to support non-multisensor devices
|
|
39
|
+
# that provide sensor data in extended data payload root
|
|
40
|
+
states.extend(extended_state.get("sensors", []))
|
|
39
41
|
# note: power measuring feature predates multiSensor API, so we need a small
|
|
40
42
|
# shim to adapt older shape of power measuring schema to the new sensor API
|
|
41
43
|
if "powerMeasuring" in extended_state:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: blebox_uniapi
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.2
|
|
4
4
|
Summary: Python API for accessing BleBox smart home devices
|
|
5
5
|
Home-page: https://github.com/blebox/blebox_uniapi
|
|
6
6
|
Author: BleBox
|
|
@@ -23,20 +23,9 @@ Requires-Dist: jmespath>1.0.0
|
|
|
23
23
|
BleBox Python UniAPI
|
|
24
24
|
====================
|
|
25
25
|
|
|
26
|
-
|
|
27
26
|
.. image:: https://img.shields.io/pypi/v/blebox_uniapi.svg
|
|
28
27
|
:target: https://pypi.python.org/pypi/blebox_uniapi
|
|
29
28
|
|
|
30
|
-
.. image:: https://travis-ci.com/blebox/blebox_uniapi.svg?branch=master
|
|
31
|
-
:target: https://travis-ci.com/blebox/blebox_uniapi
|
|
32
|
-
|
|
33
|
-
.. image:: https://readthedocs.org/projects/blebox-uniapi/badge/?version=latest
|
|
34
|
-
:target: https://blebox-uniapi.readthedocs.io/en/latest/?badge=latest
|
|
35
|
-
:alt: Documentation Status
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
29
|
Python API for accessing BleBox smart home devices
|
|
41
30
|
|
|
42
31
|
|
|
@@ -60,7 +49,6 @@ Contributions are welcome!
|
|
|
60
49
|
Credits
|
|
61
50
|
-------
|
|
62
51
|
|
|
63
|
-
|
|
64
52
|
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
|
|
65
53
|
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
|
|
66
54
|
.. _`11 BleBox smart home devices`: https://blebox.eu/produkty/?lang=en
|
|
@@ -69,6 +57,10 @@ Credits
|
|
|
69
57
|
=======
|
|
70
58
|
History
|
|
71
59
|
=======
|
|
60
|
+
2.4.2 (2024-06-04)
|
|
61
|
+
------------------
|
|
62
|
+
* fix: add missing support for active power sensors on switchbox/switchboxd devices by @swistakm in https://github.com/blebox/blebox_uniapi/pull/175
|
|
63
|
+
|
|
72
64
|
2.4.1 (2024-06-04)
|
|
73
65
|
------------------
|
|
74
66
|
* fix: rectify ambiguity around powerConsumption and wind sensor types
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|