question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Device Support Request] Aqara Roller Shade Driver E1

See original GitHub issue

Is your feature request related to a problem? Please describe. The cover entity in HA will control the roller but does not update its position so it is always 100 Looking at the WindowCovering cluster current_position_lift_percentage, always reports 0

Describe the solution you’d like Someone way smarter than me who would be so kind to fix it. I cannot get my head around creating a quirk

Device signature - this can be acquired by removing the device from ZHA and pairing it again from the add devices screen. Be sure to add the entire content of the log panel after pairing the device to a code block below this line.

{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264, 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=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0100",
      "in_clusters": [
        "0x0000",
        "0x0002",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0009",
        "0x000d",
        "0x0013",
        "0x0102"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "LUMI",
  "model": "lumi.curtain.acn002",
  "class": "zigpy.device.Device"
}

Additional context There is a number entity, AnalongOutput cluster. This seems to update when controlling the roller via its physical buttons or the cover entity.

Bonus: make the device report battery state - I believe it reports in the official app although im not sure this is possable because I cannot see it in any of the clusters that makes any sense to me.

There is also a switch, which apears to do nothing and is always in an of state

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:103 (39 by maintainers)

github_iconTop GitHub Comments

2reactions
schwickstercommented, Mar 8, 2022

@hastime I use this method for as long if there’s no new release of zigpy zha device handlers. https://github.com/zigpy/zha-device-handlers#testing-quirks-in-development-in-docker-based-install

If the pull request gets accepted it should be present in the next major release of HA.

1reaction
schwickstercommented, Jul 11, 2022

@Rev-777 I honestly have no clue what else you can do… what’s the device signature?

{ “node_descriptor”: “NodeDescriptor(logical_type=<LogicalType.EndDevice: 2>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress: 128>, manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264, 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=True, *is_full_function_device=False, *is_mains_powered=False, *is_receiver_on_when_idle=False, *is_router=False, *is_security_capable=False)”, “endpoints”: { “1”: { “profile_id”: 260, “device_type”: “0x0202”, “in_clusters”: [ “0x0000”, “0x0002”, “0x0003”, “0x0004”, “0x0005”, “0x0006”, “0x0009”, “0x000d”, “0x0013”, “0x0102” ], “out_clusters”: [ “0x000a”, “0x0019” ] }, “242”: { “profile_id”: 41440, “device_type”: “0x0061”, “in_clusters”: [], “out_clusters”: [ “0x0021” ] } }, “manufacturer”: “LUMI”, “model”: “lumi.curtain.acn002”, “class”: “zigpy.device.Device” }

@Rev-777 By the looks of it you are missing the Aqara node (0xFCC0). Try deleting line 200 (https://github.com/zigpy/zha-device-handlers/blob/dev/zhaquirks/xiaomi/aqara/roller_curtain_e1.py) in your local setup and see if it works for you… granted… for me if I remove that line than the device isn’t recognized by ZHA. But maybe for you it will work

@matthiasdebaat: On the device itself you can do this. From the manual:

Remap the buttons to rotate the motor in the opposite direction If you press the button of which the direction is opposite to the actual rolling direction of the roller shade, the rotating direction of the motor can be reversed by pressing the RESET button three times; and then, if the indicator turns to blue and lasts for 1 second, it indicates that the rolling direction of the motor is reversed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Roller Shade Driver E1
Aqara Curtain Controller B1 supports three control modes such as local button control, sensor linkage control and app remote control.
Read more >
Device handler/driver for Aqara Roller Shade Driver E1
Hi I just got a Aqara Roller Shade Driver E1 Link which I can pair to smartthing but cant control it. Is there...
Read more >
ZHA Support for Aqara Roller Shade Driver E1
I think I'm going to add another ZigBee network using a second coordinator and Zigbee2MQTT - alongside ZHA. I'll then move the E1s...
Read more >
Aqara Roller Shade Driver E1 User Manual - Manuals+
1 Aqara Roller Shade Driver E1 User Manual. 1.1 Product Introduction. 1.2 Warnings. 1.3 Preparation before Use. 1.4 Device Installation. 1.5 ...
Read more >
Aqara Roller Shade Driver E1 support
In this phoscon forum - if you are up for it - you can add a request for a new device in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found