Skip to content

Commit

Permalink
Add ZLinky_TIC_FW_V12 quirk with power configuration cluster in signa…
Browse files Browse the repository at this point in the history
…ture for ZLinky_TIC with firmware v12.0+
  • Loading branch information
pdecat committed Nov 24, 2022
1 parent f05d546 commit 1ad7c3f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions zhaquirks/lixee/zlinky.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Quirk for ZLinky_TIC."""
from copy import deepcopy

from zigpy.profiles import zha
from zigpy.quirks import CustomCluster, CustomDevice
import zigpy.types as t
Expand Down Expand Up @@ -193,3 +195,19 @@ class ZLinkyTIC(CustomDevice):
},
},
}


class ZLinkyTICFWV12(ZLinkyTIC):
"""ZLinky_TIC from LiXee with firmware v12.0+."""

signature = deepcopy(ZLinkyTIC.signature)

# Update model info
signature[MODELS_INFO] = [(LIXEE, "ZLinky_TIC_FW_V12")]

# Insert PowerConfiguration cluster in signature for devices with firmware v12.0+
signature[ENDPOINTS][1][INPUT_CLUSTERS] = (
signature[ENDPOINTS][1][INPUT_CLUSTERS][:1]
+ [PowerConfiguration.cluster_id]
+ signature[ENDPOINTS][1][INPUT_CLUSTERS][1:]
)

0 comments on commit 1ad7c3f

Please sign in to comment.