Skip to content

Commit

Permalink
Enumerates Zigbee Green Power profile and device types in existing qu…
Browse files Browse the repository at this point in the history
…irks (#2414)

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Add Zigbee Green Power enumerations

* Update Zigbee Green Power enumerations

* Update Zigbee Green Power enumerations

* Add GreenPowerProxy

* Add GreenPowerProxy

* Add GreenPowerProxy

* black fixes
  • Loading branch information
nworbneb committed Jun 7, 2023
1 parent b2197b2 commit 2d05ca8
Show file tree
Hide file tree
Showing 40 changed files with 376 additions and 367 deletions.
10 changes: 5 additions & 5 deletions zhaquirks/aurora/aurora_dimmer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Device handler for Aurora dimmer switch, battery powered."""
from zigpy.profiles import zha
from zigpy.profiles import zgp, zha
from zigpy.quirks import CustomDevice
from zigpy.zcl.clusters.general import (
Basic,
Expand Down Expand Up @@ -118,8 +118,8 @@ class WallSwitchColorCluster(EventableCluster, Color):
# device_version=0
# input_clusters=[]
# output_clusters=[33]
PROFILE_ID: 41440,
DEVICE_TYPE: 97,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
Expand Down Expand Up @@ -165,8 +165,8 @@ class WallSwitchColorCluster(EventableCluster, Color):
],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 97,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
Expand Down
10 changes: 5 additions & 5 deletions zhaquirks/gledopto/glc009p.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""GLEDOPTO GL-C-009P device."""
from zigpy.profiles import zha
from zigpy.profiles import zgp, zha
from zigpy.quirks import CustomDevice
from zigpy.zcl.clusters.general import (
Basic,
Expand Down Expand Up @@ -48,8 +48,8 @@ class GLC009P(CustomDevice):
],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [
GreenPowerProxy.cluster_id,
Expand Down Expand Up @@ -77,8 +77,8 @@ class GLC009P(CustomDevice):
],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [
GreenPowerProxy.cluster_id,
Expand Down
18 changes: 9 additions & 9 deletions zhaquirks/ikea/starkvind.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import logging
from typing import Any

from zigpy.profiles import zha
from zigpy.profiles import zgp, zha
from zigpy.quirks import CustomCluster, CustomDevice
import zigpy.types as t
from zigpy.zcl.clusters.general import (
Expand Down Expand Up @@ -177,8 +177,8 @@ def __init__(self, *args, **kwargs):
# device_version=0
# input_clusters=[33] output_clusters=[33]>
242: {
PROFILE_ID: 0xA1E0, # 41440 (dec)
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID, # 41440 (dec)
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [
GreenPowerProxy.cluster_id, # 0x0021 = GreenPowerProxy.cluster_id
Expand Down Expand Up @@ -210,8 +210,8 @@ def __init__(self, *args, **kwargs):
# device_version=0
# input_clusters=[33] output_clusters=[33]>
242: {
PROFILE_ID: 0xA1E0, # 41440 (dec)
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID, # 41440 (dec)
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [
GreenPowerProxy.cluster_id, # 0x0021 = GreenPowerProxy.cluster_id
Expand Down Expand Up @@ -253,8 +253,8 @@ class IkeaSTARKVIND_v2(IkeaSTARKVIND):
# device_version=0
# input_clusters=[33] output_clusters=[33]>
242: {
PROFILE_ID: 0xA1E0, # 41440 (dec)
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID, # 41440 (dec)
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [
GreenPowerProxy.cluster_id, # 0x0021 = GreenPowerProxy.cluster_id
Expand Down Expand Up @@ -287,8 +287,8 @@ class IkeaSTARKVIND_v2(IkeaSTARKVIND):
# device_version=0
# input_clusters=[33] output_clusters=[33]>
242: {
PROFILE_ID: 0xA1E0, # 41440 (dec)
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID, # 41440 (dec)
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [
GreenPowerProxy.cluster_id, # 0x0021 = GreenPowerProxy.cluster_id
Expand Down
11 changes: 6 additions & 5 deletions zhaquirks/ikea/tradfriplug.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""Tradfri Plug Quirk."""
from zigpy.profiles import zha, zll
from zigpy.profiles import zgp, zha, zll
from zigpy.quirks import CustomDevice
from zigpy.zcl.clusters.general import (
Basic,
GreenPowerProxy,
Groups,
Identify,
LevelControl,
Expand Down Expand Up @@ -64,10 +65,10 @@ class TradfriPlug(CustomDevice):
# device_version=0
# input_clusters=[33] output_clusters=[33]>
242: {
PROFILE_ID: 0xA1E0,
DEVICE_TYPE: 0x0061,
INPUT_CLUSTERS: [33],
OUTPUT_CLUSTERS: [33],
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
},
}
Expand Down
10 changes: 5 additions & 5 deletions zhaquirks/iluminize/cct.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Quirk for iluminize CCT actor."""
from zigpy.profiles import zll
from zigpy.profiles import zgp, zll
from zigpy.quirks import CustomCluster, CustomDevice
from zigpy.zcl.clusters.general import (
Basic,
Expand Down Expand Up @@ -64,8 +64,8 @@ class CCTLight(CustomDevice):
# device_version=0
# input_clusters=[33]
# output_clusters=[33]
PROFILE_ID: 41440,
DEVICE_TYPE: 102,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.COMBO_BASIC,
INPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
Expand All @@ -91,8 +91,8 @@ class CCTLight(CustomDevice):
OUTPUT_CLUSTERS: [Ota.cluster_id],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 102,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.COMBO_BASIC,
INPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
Expand Down
10 changes: 5 additions & 5 deletions zhaquirks/iluminize/dim.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Quirk for iluminize DIM actor."""
from zigpy.profiles import zha
from zigpy.profiles import zgp, zha
from zigpy.quirks import CustomCluster, CustomDevice
from zigpy.zcl.clusters.general import (
Basic,
Expand Down Expand Up @@ -64,8 +64,8 @@ class DIMLight(CustomDevice):
# device_version=0
# input_clusters=[33]
# output_clusters=[33]
PROFILE_ID: 41440,
DEVICE_TYPE: 102,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.COMBO_BASIC,
INPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
Expand All @@ -91,8 +91,8 @@ class DIMLight(CustomDevice):
OUTPUT_CLUSTERS: [Ota.cluster_id],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 102,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.COMBO_BASIC,
INPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
Expand Down
10 changes: 5 additions & 5 deletions zhaquirks/innr/innr_sp234_plug.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Innr SP 234 plug."""
from zigpy.profiles import zha
from zigpy.profiles import zgp, zha
from zigpy.quirks import CustomCluster, CustomDevice
from zigpy.zcl.clusters.general import (
Basic,
Expand Down Expand Up @@ -64,8 +64,8 @@ class SP234(CustomDevice):
],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
Expand Down Expand Up @@ -98,8 +98,8 @@ class SP234(CustomDevice):
],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
Expand Down
10 changes: 5 additions & 5 deletions zhaquirks/innr/rs228t.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Innr RS 228 T device."""
from zigpy.profiles import zha
from zigpy.profiles import zgp, zha
from zigpy.profiles.zha import DeviceType
from zigpy.quirks import CustomDevice
from zigpy.zcl.clusters.general import (
Expand Down Expand Up @@ -55,8 +55,8 @@ class RS228T(CustomDevice):
# input_clusters=[]
# output_clusters=[33]>
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 97,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
Expand All @@ -81,8 +81,8 @@ class RS228T(CustomDevice):
OUTPUT_CLUSTERS: [Ota.cluster_id],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 97,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
Expand Down
27 changes: 14 additions & 13 deletions zhaquirks/inovelli/VZM31SN.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""VZM31-SN Two in One Switch/Dimmer Module."""

from zigpy.profiles import zha
from zigpy.profiles import zgp, zha
from zigpy.profiles.zha import DeviceType
from zigpy.quirks import CustomDevice
from zigpy.zcl.clusters.general import (
Basic,
GreenPowerProxy,
Groups,
Identify,
LevelControl,
Expand Down Expand Up @@ -70,10 +71,10 @@ class InovelliVZM31SNv12(CustomDevice):
],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [0x0021],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
},
}
Expand Down Expand Up @@ -112,10 +113,10 @@ class InovelliVZM31SNv12(CustomDevice):
],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [0x0021],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
},
}
Expand Down Expand Up @@ -159,10 +160,10 @@ class InovelliVZM31SNv11(CustomDevice):
],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [0x0021],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
},
}
Expand Down Expand Up @@ -205,10 +206,10 @@ class InovelliVZM31SNv11(CustomDevice):
],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [0x0021],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
},
}
Expand Down
10 changes: 5 additions & 5 deletions zhaquirks/insta/nexentro_pushbutton_interface.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Device handler for Insta NEXENTRO Pushbutton Interface."""
from zigpy.profiles import zha
from zigpy.profiles import zgp, zha
from zigpy.quirks import CustomDevice
from zigpy.zcl.clusters.closures import WindowCovering
from zigpy.zcl.clusters.general import (
Expand Down Expand Up @@ -121,8 +121,8 @@ class InstaNexentroPushbuttonInterface(CustomDevice):
# input_clusters=[]
# output_clusters=[33]>
242: {
PROFILE_ID: 0xA1E0,
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
Expand Down Expand Up @@ -180,8 +180,8 @@ class InstaNexentroPushbuttonInterface(CustomDevice):
],
},
242: {
PROFILE_ID: 0xA1E0,
DEVICE_TYPE: 0x0061,
PROFILE_ID: zgp.PROFILE_ID,
DEVICE_TYPE: zgp.DeviceType.PROXY_BASIC,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [GreenPowerProxy.cluster_id],
},
Expand Down

0 comments on commit 2d05ca8

Please sign in to comment.