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 lcrmcr.lock.cb2207 #1375

Open
kei81131 opened this issue Jun 7, 2024 · 0 comments
Open

add support lcrmcr.lock.cb2207 #1375

kei81131 opened this issue Jun 7, 2024 · 0 comments

Comments

@kei81131
Copy link

kei81131 commented Jun 7, 2024

image

{
    # https://home.miot-spec.com/spec/lcrmcr.lock.cb2207
    11450: ["CRMCR", "intelligent glass door lock", "lcrmcr.lock.cb2207"],
    "spec": [
        BaseConv("action", "sensor"), 
        ConstConv("action", mi="3.e.1020", value="lock_event"),
        ConstConv("action", mi="3.e.1007", value="exception_occurred"),
        ConstConv("action", mi="5.e.1001", value="low_battery"), 
        BaseConv("last_lock_action", "sensor", mi="3.e.1020.p.1"), # seems no use, sensor always "0"
        MapConv("last_method", "sensor", mi="3.e.1020.p.2", map={
            1: "ble", 2: "password", 3: "fingerprint", 4: "nfc", 5: "otp", 6: "indoor", 7: "remoter"
        }),
        MathConv("last_user_id", "sensor", mi="3.e.1020.p.3", min=0, max=65534), # blocked sensor revert to "65535"
        MapConv("last_error", "sensor", mi="3.e.1007.p.5", map={
            1: "wrong_password", 2: "wrong_fingerprint", 3: "worng_nfc", 4: "battery_low"
        }),
        BaseConv("battery", "sensor", mi="5.p.1003"),
    ],
    # "ttl": "25h"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant