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

Add greenpower cluster enumerations #1213

Merged
merged 10 commits into from May 28, 2023
Merged
4 changes: 2 additions & 2 deletions zigpy/profiles/__init__.py
@@ -1,5 +1,5 @@
from __future__ import annotations

from . import zha, zll
from . import zgp, zha, zll

PROFILES = {zha.PROFILE_ID: zha, zll.PROFILE_ID: zll}
PROFILES = {zha.PROFILE_ID: zha, zll.PROFILE_ID: zll, zgp.PROFILE_ID: zgp}
26 changes: 26 additions & 0 deletions zigpy/profiles/zgp.py
@@ -0,0 +1,26 @@
from __future__ import annotations

import zigpy.types as t

PROFILE_ID = 41440


class DeviceType(t.enum16):
puddly marked this conversation as resolved.
Show resolved Hide resolved
PROXY = 0x0060
PROXY_BASIC = 0x0061
puddly marked this conversation as resolved.
Show resolved Hide resolved
TARGET_PLUS = 0x0062
TARGET = 0x0063
COMM_TOOL = 0x0064
COMBO = 0x0065
COMBO_BASIC = 0x0066


CLUSTERS = {
puddly marked this conversation as resolved.
Show resolved Hide resolved
DeviceType.PROXY: ([0x0021], [0x0021]),
DeviceType.PROXY_BASIC: ([], [0x0021]),
DeviceType.TARGET_PLUS: ([0x0021], [0x0021]),
DeviceType.TARGET: ([0x0021], [0x0021]),
DeviceType.COMM_TOOL: ([0x0021], []),
DeviceType.COMBO: ([0x0021], [0x0021]),
DeviceType.COMBO_BASIC: ([0x0021], [0x0021]),
}