From 117700315caee446a38b34145ee882b5563be05d Mon Sep 17 00:00:00 2001 From: Pedro Ribeiro Date: Tue, 15 Oct 2024 17:59:29 +0100 Subject: [PATCH 1/2] Add support for "addZ" Device Types (Zigbee) #66 --- homepilot/manager.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/homepilot/manager.py b/homepilot/manager.py index d284e3b..5f39309 100644 --- a/homepilot/manager.py +++ b/homepilot/manager.py @@ -36,7 +36,7 @@ async def async_build_manager(api: HomePilotApi): manager.devices = { id_type["did"]: await HomePilotManager.async_build_device(manager.api, id_type) for id_type in await manager.get_device_ids_types() - if id_type["type"] in ["-1", "1", "2", "3", "4", "5", "8", "10", "73", "74", "75", "76"] + if id_type["type"] in ["-1", "1", "2", "3", "4", "5", "8", "10", "70", "71", "72", "73", "74", "75", "76"] } try: manager.scenes = { @@ -66,6 +66,12 @@ async def async_build_device(api, id_type): return await HomePilotCover.async_build_from_api(api, id_type["did"]) if id_type["type"] == "10": return await HomePilotWallController.async_build_from_api(api, id_type["did"]) + if id_type["type"] == "70": + return await HomePilotLight.async_build_from_api(api, id_type["did"]) + if id_type["type"] == "71": + return await HomePilotLight.async_build_from_api(api, id_type["did"]) + if id_type["type"] == "72": + return await HomePilotLight.async_build_from_api(api, id_type["did"]) if id_type["type"] == "73": return await HomePilotLight.async_build_from_api(api, id_type["did"]) if id_type["type"] == "74": From 32378b515fc3a93d6e38e18b3a1afba60b94eda0 Mon Sep 17 00:00:00 2001 From: Pedro Ribeiro Date: Tue, 15 Oct 2024 18:00:10 +0100 Subject: [PATCH 2/2] Bump version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9fe792c..3074f6c 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="pyrademacher", - version="0.14.2", + version="0.14.3", author="Pedro Ribeiro", author_email="pedroeusebio@gmail.com", description="Control devices connected to your Rademacher Homepilot "