Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

66 add support for addz device types zigbee #67

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion homepilot/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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":
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pyrademacher",
version="0.14.2",
version="0.14.3",
author="Pedro Ribeiro",
author_email="[email protected]",
description="Control devices connected to your Rademacher Homepilot "
Expand Down
Loading