Aqara relay t2 switch type / DDF modification

Dear all,

Could you please be so kind and help me with deconz aqara relay t2 settings?
How can I change switch type from on/off to rocker type. I have this relay connected to my garage door. In the Aqara application there were few options, like: on/off, dry, wet contact, rocker type, pulse mode.

Is there any way to set this up in deconz by update of DDF or in the Phoscon app?

I am running raspberry pi, conbee2 and latest deconz version.

Thank you in advance!

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