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

I add the lock fms5s #1552

Open
tufeikafei opened this issue Jan 25, 2025 · 1 comment
Open

I add the lock fms5s #1552

tufeikafei opened this issue Jan 25, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tufeikafei
Copy link

tufeikafei commented Jan 25, 2025

https://home.miot-spec.com/spec/line.lock.fms5s

{
    17213: ["S5", "LINE-fms5S"],
    "spec": [
        BaseConv("action", "sensor"),
        MapConv("lock_action", "sensor", mi="3.e.1020.p.1", map={1: "lock", 0: "unlock"}),
        MapConv("method", "sensor", mi="3.e.1020.p.2", map={0: "蓝牙", 1:"密码",2: "指纹", 3: "lock key", 4: "Turntable", 5: "NFC", 6: "一次性密码", 7: "Periodic Password", 8: "Coerce"}),
        # Operation ID
        BaseConv("operation_id", "sensor", mi="3.e.1020.p.3"),
        BaseConv("lock_timestamp", "sensor", mi="3.e.1020.p.4"),
        MapConv("abnormal_type", "sensor", mi="3.e.1007.p.5", map={0: "Frequent Unlocking Failed By Password", 1: "Frequent Unlocking Failed By Fingerprint", 2: "Bell", 3: "Door Was Opened Forcefully", 4: "System Lock", 6: "Door Lock Batteries Are Low", 7: "锁常开开启", 21: "锁常开关闭", 22: "ACTIVATE BACKLOCK", 23: "Eliminate Anti-Lock"}),
        MapConv("door_state", "sensor", mi="3.p.1021", map={16: "Locked", 20: "Locked", 24: "Locked", 28: "Locked", 32: "Unlocked", 36: "Unlocked", 40: "Unlocked", 44: "Unlocked", 48: "Leaving The Door Open Timed Out", 52: "Leaving The Door Open Timed Out", 56: "Leaving The Door Open Timed Out", 60: "Leaving The Door Open Timed Out", 64: "Door Was Ajar", 68: "Door Was Ajar", 72: "Door Was Ajar", 76: "Door Was Ajar"}),
        # small battery sensor
        BaseConv("battery", "sensor", mi="5.p.1003"),
    ],
}
@tufeikafei
Copy link
Author

tufeikafei commented Jan 25, 2025

Sorry, the english version.

 {
    17213: ["S5", "LINE-fms5S"],
    "spec": [
        BaseConv("action", "sensor"),
        MapConv("lock_action", "sensor", mi="3.e.1020.p.1", map={1: "lock", 0: "unlock"}),
        MapConv("method", "sensor", mi="3.e.1020.p.2", map={0: "ble", 1:"password",2: "fingerprint", 3: "lock key", 4: "Turntable", 5: "NFC", 6: "One Time Password", 7: "Periodic Password", 8: "Coerce"}),
        # Operation ID
        BaseConv("operation_id", "sensor", mi="3.e.1020.p.3"),
        BaseConv("lock_timestamp", "sensor", mi="3.e.1020.p.4"),
        MapConv("abnormal_type", "sensor", mi="3.e.1007.p.5", map={0: "Frequent Unlocking Failed By Password", 1: "Frequent Unlocking Failed By Fingerprint", 2: "Bell", 3: "Door Was Opened Forcefully", 4: "System Lock", 6: "Door Lock Batteries Are Low", 7: "Door Open Mode", 21: "Open Set CLose", 22: "ACTIVATE BACKLOCK", 23: "Eliminate Anti-Lock"}),
        MapConv("door_state", "sensor", mi="3.p.1021", map={16: "Locked", 20: "Locked", 24: "Locked", 28: "Locked", 32: "Unlocked", 36: "Unlocked", 40: "Unlocked", 44: "Unlocked", 48: "Leaving The Door Open Timed Out", 52: "Leaving The Door Open Timed Out", 56: "Leaving The Door Open Timed Out", 60: "Leaving The Door Open Timed Out", 64: "Door Was Ajar", 68: "Door Was Ajar", 72: "Door Was Ajar", 76: "Door Was Ajar"}),
        # small battery sensor
        BaseConv("battery", "sensor", mi="5.p.1003"),
    ],
}

@AlexxIT AlexxIT added the enhancement New feature or request label Jan 25, 2025
@AlexxIT AlexxIT self-assigned this Jan 25, 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