File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from zigpy .profiles import zha
4
4
from zigpy .quirks .v2 import QuirkBuilder
5
+ from zigpy .zcl import ClusterType
5
6
6
7
from zhaquirks .inovelli import INOVELLI_AUTOMATION_TRIGGERS , InovelliVZM35SNCluster
7
8
8
9
(
9
10
QuirkBuilder ("Inovelli" , "VZM35-SN" )
10
11
.replaces_endpoint (1 , device_type = zha .DeviceType .DIMMABLE_LIGHT )
11
12
.replace_cluster_occurrences (InovelliVZM35SNCluster )
12
- .replaces (InovelliVZM35SNCluster , endpoint_id = 2 )
13
- .replaces (InovelliVZM35SNCluster , endpoint_id = 3 )
13
+ # ep 3 is missing in zigpy DB for devices paired with an old fw version, add it:
14
+ .replaces_endpoint (3 , device_type = zha .DeviceType .DIMMER_SWITCH )
15
+ # these missing clusters are needed for button presses to generate events:
16
+ .replaces (InovelliVZM35SNCluster , endpoint_id = 2 , cluster_type = ClusterType .Client )
17
+ .replaces (InovelliVZM35SNCluster , endpoint_id = 3 , cluster_type = ClusterType .Client )
14
18
.device_automation_triggers (INOVELLI_AUTOMATION_TRIGGERS )
15
19
.add_to_registry ()
16
20
)
You can’t perform that action at this time.
0 commit comments