-
Notifications
You must be signed in to change notification settings - Fork 886
Closed
Labels
staleIssue is inactivate and might get closed soonIssue is inactivate and might get closed soon
Description
Is your feature request related to a problem? Please describe.
I have this Adeo LXEK-5 Zigbee remote for color lights control (device type : Color Control 0x800).
- Model: HR-C99C-Z-C045
- Zigbee ID: "LXEK-5"
- Zigbee Device Type: "Color Control (0x800)"
- Brand: Lexman
- Manufacturer: Adeo (Leroy Merlin - french home improvement store)
The available buttons on the remote are:
Buttons | Cluster |
---|---|
On/Off | 0x0006 "OnOff" |
Brightness Up / Down / Stop | 0x0008 "LevelControl" |
Saturation/Hue/Color Temperature : Up / Down | 0x0300 "Color" |
Scene 1 to 4 | 0xfe00 Manufacturer specific |
Device get discovered in ZHA and added successfully but :
- There is no Device automation triggers defined for any buttons, so they can be only detected through raw zha_events
- "Scene" buttons that use a manufacturer-specific cluster do not work even with raw zha_event (logs added below)
Describe the solution you'd like
- Port the functionality that is implemented in Zigbee2mqtt and in Deconz to get ZHA events for "Scene" buttons 1 to 4 on manufacturer-specific Cluster 0xfe00. Value from the cluster is in the range 0x0a (scene button 1) to 0x0d (scene button 4).
- Additionally, add Device automation triggers for all buttons.
Device signature
{
"node_descriptor": "NodeDescriptor(byte1=2, byte2=64, mac_capability_flags=128, manufacturer_code=4727, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=0, *allocate_address=True, *complex_descriptor_available=False, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False, *is_valid=True, *logical_type=<LogicalType.EndDevice: 2>, *user_descriptor_available=False)",
"endpoints": {
"1": {
"profile_id": 260,
"device_type": "0x0800",
"in_clusters": [
"0x0000",
"0x0001",
"0x0003",
"0x0b05",
"0x1000",
"0xfd01"
],
"out_clusters": [
"0x0003",
"0x0004",
"0x0006",
"0x0008",
"0x0019",
"0x0300",
"0x1000"
]
}
},
"manufacturer": "ADEO",
"model": "LXEK-5",
"class": "zigpy.device.Device"
}
Additional context
HA debug logs when pressing "OFF" button on remote:
2021-05-19 19:45:36 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'000401060001014000000085ffd85413ffff03010f00'
2021-05-19 19:45:36 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=6, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY: 64>, groupId=0, sequence=133), 255, -40, 0x1354, 255, 255, b'\x01\x0f\x00']
2021-05-19 19:45:36 DEBUG (MainThread) [zigpy.zcl] [0x1354:1:0x0006] ZCL deserialize: <ZCLHeader frame_control=<FrameControl frame_type=CLUSTER_COMMAND manufacturer_specific=False is_reply=False disable_default_response=False> manufacturer=None tsn=15 command_id=0>
2021-05-19 19:45:36 DEBUG (MainThread) [zigpy.zcl] [0x1354:1:0x0006] ZCL request 0x0000: []
2021-05-19 19:45:36 DEBUG (MainThread) [zigpy.zcl] [0x1354:1:0x0006] No handler for cluster command 0
A zha_event is emitted:
{
"event_type": "zha_event",
"data": {
"device_ieee": "60:a4:23:ff:fe:##:##:##",
"unique_id": "60:a4:23:ff:fe:##:##:##:1:0x0006",
"device_id": "0501c9e8666648ccd073ffc9773f2962",
"endpoint_id": 1,
"cluster_id": 6,
"command": "off",
"args": []
},
"origin": "LOCAL",
"time_fired": "2021-05-19T17:45:37.568612+00:00",
"context": {
"id": "0351af6941ff8c7ad937b6386aa87405",
"parent_id": null,
"user_id": null
}
}
HA debug logs when pressing the "Scene 3" (0x0c) button on remote:
2021-05-19 20:02:06 DEBUG (MainThread) [bellows.ezsp.protocol] Application frame 69 (incomingMessageHandler) received: b'00040100fe0101400000008affdf5413ffff070d771214000c01'
2021-05-19 20:02:06 DEBUG (MainThread) [bellows.zigbee.application] Received incomingMessageHandler frame with [<EmberIncomingMessageType.INCOMING_UNICAST: 0>, EmberApsFrame(profileId=260, clusterId=65024, sourceEndpoint=1, destinationEndpoint=1, options=<EmberApsOption.APS_OPTION_RETRY: 64>, groupId=0, sequence=138), 255, -33, 0x1354, 255, 255, b'\rw\x12\x14\x00\x0c\x01']
2021-05-19 20:02:06 DEBUG (MainThread) [zigpy.device] Ignoring message (b'0d771214000c01') on cluster 65024: unknown endpoint or cluster id: 'No cluster ID 0xfe00 on (60:a4:23:ff:fe:70:39:a0, 1)'
NO zha_event is emitted.
Metadata
Metadata
Assignees
Labels
staleIssue is inactivate and might get closed soonIssue is inactivate and might get closed soon