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.lock.mcn009 #1371

Closed
PerryLayne opened this issue Jun 2, 2024 · 6 comments
Closed

Add support lumi.lock.mcn009 #1371

PerryLayne opened this issue Jun 2, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@PerryLayne
Copy link

  • lumi.lock.mcn009 is a version of lumi.lock.mcn008 with an added camera.

  • E20 WIFI version: https://home.miot-spec.com/spec/lumi.lock.mcn008

  • E20 Cat Eye version: https://home.miot-spec.com/spec/lumi.lock.mcn009

  • These two should be basically interchangeable, so I hope support for the device can be added.

  • I don't know how to compile because I have no background in coding. I don't know where to start, but if there are relevant tutorials or guides, I can try to add the related configurations myself.

@AlexxIT AlexxIT added the enhancement New feature or request label Sep 4, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 4, 2024

Looks like you have added loock.lock.r2 model in another issue. What about lumi.lock.mcn008 and lumi.lock.mcn009?

@kssj0001
Copy link

Looks like you have added loock.lock.r2 model in another issue. What about lumi.lock.mcn008 and lumi.lock.mcn009?

Please add lumi.lock.mcn008 in new version. It's a model without camare.

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 31, 2024

You can send the converter and I'll add it.

@kssj0001
Copy link

kssj0001 commented Nov 4, 2024

Sorry I'm not a professional programmer. I just change PerryLayne's code in "devices.py", It has the same problem with him. The sensor "door" not working, always been unknown status.

image

{
    12934: ["Xiaomi", "Smart Door Lock E20 WIFI", "XMZNMS201LM", "lumi.lock.mcn008"],
    "spec": [
        # lock action
        BaseConv("action", "sensor"),
        BaseConv("method", "sensor"),
        BaseConv("action_id", mi="2.e.1020.p.3"),
        BaseConv("method_id", mi="2.e.1020.p.5"),
        BaseConv("key_id", "sensor", mi="2.e.1020.p.1"),
        BaseConv("timestamp", mi="2.e.1020.p.2"),
        MapConv("action", mi="2.e.1020.p.3", map={1: "lock", 2: "unlock", 3: "Lifted Up The Door Handle From Outside To Lock", 4: "locked_from_inside", 5: "released_lock_from_inside", 6: "enabled_child_lock", 7: "disabled_child_lock", 8: "enable_the_away_from_home_mode", 9: "disable_the_away_from_home_mode"}),
        MapConv("method", mi="2.e.1020.p.5", map={1: "mobile_phone", 2: "fingerprint", 3: "password", 4: "nfc", 5: "face", 6: "finger_vein", 7: "palm_print", 8: "lock_key", 9: "one_time_password", 10: "periodic_password", 11: "homekit", 12: "coerce", 13: "two_step_verification", 14: "turntable", 15: "manual", 16: "auto"}),
        MapConv("door", "sensor", mi="3.p.1021", map={1: "locked", 2: "unlocked", 3: "timeout", 4: "ajar"}),
        MapConv("position", mi="2.e.1020.p.6", map={1: "indoor", 2: "outdoor", 3: "unknown"}),
        BaseConv("battery", "sensor", mi="4.p.1003"),
        ConstConv("action", mi="5.e.1006", value="doorbell"),
        BaseConv("timestamp", mi="5.e.1006.p.1"),
    ],
}

@AlexxIT AlexxIT self-assigned this Nov 4, 2024
@PerryLayne
Copy link
Author

Sorry I'm not a professional programmer. I just change PerryLayne's code in "devices.py", It has the same problem with him. The sensor "door" not working, always been unknown status.

image

{ 12934: ["Xiaomi", "Smart Door Lock E20 WIFI", "XMZNMS201LM", "lumi.lock.mcn008"], "spec": [ # lock action BaseConv("action", "sensor"), BaseConv("method", "sensor"), BaseConv("action_id", mi="2.e.1020.p.3"), BaseConv("method_id", mi="2.e.1020.p.5"), BaseConv("key_id", "sensor", mi="2.e.1020.p.1"), BaseConv("timestamp", mi="2.e.1020.p.2"), MapConv("action", mi="2.e.1020.p.3", map={1: "lock", 2: "unlock", 3: "Lifted Up The Door Handle From Outside To Lock", 4: "locked_from_inside", 5: "released_lock_from_inside", 6: "enabled_child_lock", 7: "disabled_child_lock", 8: "enable_the_away_from_home_mode", 9: "disable_the_away_from_home_mode"}), MapConv("method", mi="2.e.1020.p.5", map={1: "mobile_phone", 2: "fingerprint", 3: "password", 4: "nfc", 5: "face", 6: "finger_vein", 7: "palm_print", 8: "lock_key", 9: "one_time_password", 10: "periodic_password", 11: "homekit", 12: "coerce", 13: "two_step_verification", 14: "turntable", 15: "manual", 16: "auto"}), MapConv("door", "sensor", mi="3.p.1021", map={1: "locked", 2: "unlocked", 3: "timeout", 4: "ajar"}), MapConv("position", mi="2.e.1020.p.6", map={1: "indoor", 2: "outdoor", 3: "unknown"}), BaseConv("battery", "sensor", mi="4.p.1003"), ConstConv("action", mi="5.e.1006", value="doorbell"), BaseConv("timestamp", mi="5.e.1006.p.1"), ], }

I'm sorry, but I don't have any knowledge or background in coding. I'm just trying to learn and write code on my own as a hobby. I still haven't been able to solve this problem despite trying countless approaches, none of which have worked.

@AlexxIT AlexxIT changed the title I hope to add support for the door lock model: lumi.lock.mcn009. Add support lumi.lock.mcn009. Dec 27, 2024
@AlexxIT AlexxIT changed the title Add support lumi.lock.mcn009. Add support lumi.lock.mcn009 Dec 27, 2024
@AlexxIT AlexxIT added this to the v4.0.8 milestone Dec 27, 2024
AlexxIT added a commit that referenced this issue Dec 27, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Dec 28, 2024

@AlexxIT AlexxIT closed this as completed Dec 28, 2024
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

3 participants