Are there any settings in a zigbee device that controls the device type identification?

I have an Aqara curtain motor that worked fine for years and then stopped responding. I unpaired it and re-paired it to the Aqara hub/app but it shows up as a button instead of a curtain.

I later paired it to a backup instance of home assistant, and it correctly identified it as a curtain with a zigbee ID of lumi.curtain for model ZNCLDJ11LM.

I have another 6 curtains paired to the Aqara hub/app that continue to work as expected through the HA Miio integration.

Is there anything I can do to correct this identification? Or maybe reset the zigbee module on this curtain?

  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=0, maximum_outgoing_transfer_size=100, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0202",
      "in_clusters": [
        "0x0000",
        "0x0001",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x000a",
        "0x000d",
        "0x0013",
        "0x0102",
        "0x0406"
      ],
      "out_clusters": [
        "0x0001",
        "0x0006",
        "0x000a",
        "0x000d",
        "0x0013",
        "0x0019",
        "0x0102",
        "0x0406"
      ]
    }
  },
  "manufacturer": "LUMI",
  "model": "lumi.curtain",
  "class": "zigpy.device.Device"
}```

Assume you used ZHA integration when it correctly identified as a curtain and not the Miio integration?

https://www.home-assistant.io/integrations/zha

If you are using the ZHA integration then you can manually modify device type for it as a workaround:

https://www.home-assistant.io/integrations/zha#modifying-the-device-type

or better yet, correct it in the device type via the quirk for ZHA Device Handlers so fix for all ZHA users:

https://www.home-assistant.io/integrations/zha#knowing-which-devices-are-supported

https://www.home-assistant.io/integrations/zha#how-to-add-support-for-new-and-unsupported-devices

https://github.com/zigpy/zha-device-handlers

https://github.com/zigpy/zha-device-handlers/issues

If want help with Xiaomi Miio integration then instead need to post in forum for third-party integrations:

https://community.home-assistant.io/c/third-party/15

https://www.home-assistant.io/integrations/xiaomi_miio/