Skip to content

Commit

Permalink
alternate legrand dimmer implementation (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulcahey authored Jun 29, 2020
1 parent dfa710d commit 21e40c9
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions zhaquirks/legrand/dimmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,42 @@ class DimmerWithoutNeutral(CustomDevice):
}
}
}


class DimmerWithoutNeutral2(DimmerWithoutNeutral):
"""Dimmer switch w/o neutral 2."""

signature = {
# <SimpleDescriptor endpoint=1 profile=260 device_type=256
# device_version=1
# input_clusters=[0, 3, 4, 8, 6, 5, 15, 64513]
# output_clusters=[0, 64513, 25]>
MODELS_INFO: [(f" {LEGRAND}", " Dimmer switch w/o neutral")],
ENDPOINTS: {
1: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.ON_OFF_LIGHT,
INPUT_CLUSTERS: [
Basic.cluster_id,
Identify.cluster_id,
Groups.cluster_id,
OnOff.cluster_id,
LevelControl.cluster_id,
Scenes.cluster_id,
BinaryInput.cluster_id,
MANUFACTURER_SPECIFIC_CLUSTER_ID,
],
OUTPUT_CLUSTERS: [
Basic.cluster_id,
MANUFACTURER_SPECIFIC_CLUSTER_ID,
Ota.cluster_id,
],
},
242: {
PROFILE_ID: 41440,
DEVICE_TYPE: 0x0061,
INPUT_CLUSTERS: [],
OUTPUT_CLUSTERS: [0x0021],
},
},
}

0 comments on commit 21e40c9

Please sign in to comment.