So I think we will use
debug.txt:1427:17:27:51:306 [INFO] - No button map for: **lumi.switch.acn047**, unicast to: 0x0000, endpoint: 0x01, cluster: MULTISTATE_INPUT (0x0012), command: ATTRIBUTE_REPORT (0x0A), payload: 5500210100, zclSeq: 36
debug.txt:1473:17:32:50:117 [INFO] - No button map for: lumi.switch.acn047, unicast to: 0x0000, endpoint: 0x02, cluster: MULTISTATE_INPUT (0x0012), command: ATTRIBUTE_REPORT (0x0A), payload: 5500210100, zclSeq: 68
Now the complicated stuff.
You need to edit the file button_maps.json in /usr/share/deCONZ/devices/
and add this part where you want
"xiaomiT2Module" {
"vendor": "Xiaomi",
"doc": "Xiaomi Aqara T2 Module",
"modelids": ["lumi.switch.acn047"],
"map": [
[1, "0x01", "MULTISTATE_INPUT", "ATTRIBUTE_REPORT", "1", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "B1"],
[1, "0x02", "MULTISTATE_INPUT", "ATTRIBUTE_REPORT", "1", "S_BUTTON_2", "S_BUTTON_ACTION_SHORT_RELEASED", "B2"],
]
},
I think it will be fine payload: 5500210100
so the attribute is 0055, the datatype 21 and the value 01 for both (the code take only 1 byte)
But Now I have a problem to add a command “config/clickmode” (to enable the decoupled mode) as you need 2 requests, and whith DDF we can do only one.
Perhaps we can put them in the “light” device, so you will have 1 request by endpoint, but not sure this field will be visible on the “light” sensor (there is no “config” field on “light” entry in deconz)