Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support lumi.curtain.acn04 #1550

Open
hzonz opened this issue Jan 21, 2025 · 0 comments
Open

Add support lumi.curtain.acn04 #1550

hzonz opened this issue Jan 21, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@hzonz
Copy link

hzonz commented Jan 21, 2025

Device: Aqara Curtain Motor C3
Model: lumi.curtain.acn04
Support: Curtain opening/closing and positioning.

from custom_components.xiaomi_gateway3.core.devices import *

DEVICES = [{
    "lumi.curtain.acn04": ["Aqara", "Curtain Motor C3", "ZNCLDJ01LM"],
    "spec": [
        MapConv("motor", "cover", mi="14.2.85", map={0: "close", 1: "open", 2: "stop"}),
        BaseConv("position", mi="1.1.85"),
        # Unknown  "13.4.85" "0.55.85"
    ],    
}] + DEVICES

More Information:
https://home.miot-spec.com/spec/lumi.curtain.acn04
https://www.aqara.cn/curtain-c3_overview

Debug Log:

{'uid': '0x54ef441000963d43', 'did': 'lumi.54ef441000963d43', 'msg': 'write', 'data': {'motor': 'close'}}
{'topic': 'zigbee/recv', 'data': b'{"cmd":"write","did":"lumi.54ef441000963d43","params":[{"res_name":"14.2.85","value":0}]}'}
{'topic': 'zigbee/send', 'data': b'{"cmd":"write_rsp","id":0,"time":1737431213456,"did":"lumi.54ef441000963d43","zseq":62,"results":[{"res_name":"14.2.85","value":0,"error_code":0}]}'}
{'uid': '0x54ef441000963d43', 'did': 'lumi.54ef441000963d43', 'msg': 'write', 'data': {'motor': 'open'}}
{'topic': 'zigbee/recv', 'data': b'{"cmd":"write","did":"lumi.54ef441000963d43","params":[{"res_name":"14.2.85","value":1}]}'}
{'topic': 'zigbee/send', 'data': b'{"cmd":"report","id":2000007810,"did":"lumi.54ef441000963d43","time":1737431214256,"rssi":-71,"zseq":3,"params":[{"res_name":"1.1.85","value":0}],"dev_src":"0"}'}
{'uid': '0x54ef441000963d43', 'did': 'lumi.54ef441000963d43', 'msg': 'on_report', 'data': {'position': 0}}
{'topic': 'zigbee/send', 'data': b'{"cmd":"report","id":2000007811,"did":"lumi.54ef441000963d43","time":1737431214456,"rssi":-71,"zseq":4,"params":[{"res_name":"13.4.85","value":0}],"dev_src":"0"}'}
{'topic': 'zigbee/send', 'data': b'{"cmd":"report","id":2000007815,"did":"lumi.54ef441000963d43","time":1737431237296,"rssi":-70,"zseq":14,"params":[{"res_name":"13.4.85","value":1}],"dev_src":"0"}'}
{'topic': 'zigbee/send', 'data': b'{"cmd":"report","id":2000007816,"did":"lumi.54ef441000963d43","time":1737431249146,"rssi":-71,"zseq":16,"params":[{"res_name":"13.4.85","value":2}],"dev_src":"0"}'}
{'topic': 'zigbee/send', 'data': b'{"cmd":"report","id":2000007813,"did":"lumi.54ef441000963d43","time":1737431227976,"rssi":-71,"zseq":8,"params":[{"res_name":"0.55.85","value":0}],"dev_src":"0"}'}
@AlexxIT AlexxIT added the enhancement New feature or request label Jan 21, 2025
@AlexxIT AlexxIT self-assigned this Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants