Hello, you have the “lumi.switch.acn047” ?
If yes, this option is missing on the DDF deconz-rest-plugin/devices/xiaomi/xiaomi_dcm-k01_t2_dual_relay.json at master · dresden-elektronik/deconz-rest-plugin · GitHub
Untested but from another DDF can try to add
{
"name": "config/clickmode",
"refresh.interval": 300,
"read": {
"at": "0x000a",
"cl": "0xfcc0",
"ep": 1,
"fn": "zcl:attr",
"mf": "0x115f"
},
"parse": {
"at": "0x000a",
"cl": "0xfcc0",
"ep": 1,
"eval": "if (Attr.val == 1) { Item.val = 'rocker' } else if (Attr.val == 2) { Item.val = 'momentary' } else { Item.val = 'unknown' }",
"fn": "zcl:attr",
"mf": "0x115f"
},
"write": {
"at": "0x000a",
"cl": "0xfcc0",
"dt": "0x20",
"ep": 1,
"eval": "if (Item.val == 'rocker') { 1 } else if (Item.val == 'momentary') { 2 } else { 'unknown' }",
"fn": "zcl:attr",
"mf": "0x115f"
},
"values": [
["\"momentary\"", "Momentary mode"],
["\"rocker\"", "Rocker mode"]
],
"default": "rocker"
},
on the $TYPE_SWITCH