zha-device-handlers icon indicating copy to clipboard operation
zha-device-handlers copied to clipboard

Support for lumi.lock.v1

Open Nemesis24 opened this issue 5 years ago • 21 comments

It will be very fine to support Xiaomi lumi.lock.v1. <SimpleDescriptor endpoint=1 profile=260 device_type=10 device_version=2 input_clusters=[0, 3, 1, 2, 25, 10] output_clusters=[25, 10]> I can help if you explain me ! Thank you.

Nemesis24 avatar Mar 08 '19 09:03 Nemesis24

i found this if it could help https://github.com/Koenkk/zigbee-shepherd-converters/blob/master/converters/fromZigbee.js

xiaomi_lock_report: {
        cid: 'genBasic',
        type: ['attReport', 'readRsp'],
        convert: (model, msg, publish, options) => {
            if (msg.data.data['65328']) {
                const data = msg.data.data['65328'];
                const state = data.substr(2, 2);
                const action = data.substr(4, 2);
                const keynum = data.substr(6, 2);
                if (state == 11) {
                    if (action == 1) {
                        // unknown key
                        return {keyerror: true, inserted: 'unknown'};
                    }
                    if (action == 3) {
                        // explicitly disabled key (i.e. reported lost)
                        return {keyerror: true, inserted: keynum};
                    }
                    if (action == 7) {
                        // strange object introduced into the cylinder (e.g. a lock pick)
                        return {keyerror: true, inserted: 'strange'};
                    }
                }
                if (state == 12) {
                    if (action == 1) {
                        return {inserted: keynum};
                    }
                    if (action == 11) {
                        return {forgotten: keynum};
                    }
                }
            }
        },
    },

Nemesis24 avatar Mar 20 '19 18:03 Nemesis24

We don't have support for the lock domain yet in HA.

dmulcahey avatar Apr 30 '19 12:04 dmulcahey

This lock is a zigbee "sensor" and not serve as lock. Here You can't open or close the door with zigbee.

Nemesis24 avatar Apr 30 '19 13:04 Nemesis24

I’m confused... what type of device are we actually talking about? If it is really a door lock we’ll wait to support it correctly rather than hack it as a sensor.

dmulcahey avatar Apr 30 '19 13:04 dmulcahey

This device is a simple lock like you've got on all the doors... But it can detect what key is inserted and it's got 5 keys. It can detect too if a wrong key or disbled key was inserted.

Nemesis24 avatar Apr 30 '19 13:04 Nemesis24

Have a link to the product?

dmulcahey avatar Apr 30 '19 13:04 dmulcahey

https://www.youtube.com/watch?v=0pGiTnyLpU4

Nemesis24 avatar Apr 30 '19 13:04 Nemesis24

any news about this
https://zigbee.blakadder.com/Xiaomi_Vima_A6121.html

Nemesis24 avatar Aug 22 '20 09:08 Nemesis24

Perhaps some good news https://github.com/dresden-elektronik/deconz-rest-plugin/issues/1977#issuecomment-698438985

Nemesis24 avatar Sep 24 '20 18:09 Nemesis24

Hello everyone, let me revive the subject. can you integrate lumi.lock.v1 in ZHA? Please Tell me what you need. thank you in advance

pwet45 avatar Dec 13 '20 23:12 pwet45

Could you integrate this lock please?

A link that can help you, in any case I hope

https://easydomoticz.com/forum/viewtopic.php?f=28&t=10587

pwet45 avatar Dec 23 '20 01:12 pwet45

We don't have support for the lock domain yet in HA.

According to the integrations page Locks are supported https://www.home-assistant.io/integrations/zha/

I don't know if I can do anything to help, but if I can...

Fenix999 avatar Jun 21 '21 10:06 Fenix999

I'm also interested in this integration. As a matter of fact, this is the only device I'm missing to get to ZHA from Zigbee2Mqtt. I can contribute if you guide me. Thanks!

ec-blaster avatar Jul 24 '21 18:07 ec-blaster

Is there a way to integrate the lock ?

Nemesis24 avatar Oct 18 '21 13:10 Nemesis24

Hello,

Any news on this ?

Regards

adi90x avatar Feb 01 '22 19:02 adi90x

I hope it could be integrate because this is the only device i can't connect on my Home assistant If i can help say me something. Thanks for all.

Nemesis24 avatar Feb 02 '22 12:02 Nemesis24

I'm also interested in this integration. As a matter of fact, this is the only device I'm missing to get to ZHA from Zigbee2Mqtt. I can contribute if you guide me. Thanks!

Is it working fine on zigbee2mqtt ?

adi90x avatar Feb 11 '22 23:02 adi90x

https://zigbee.blakadder.com/Xiaomi_Vima_A6121.html This link says it's working.

Nemesis24 avatar Feb 12 '22 05:02 Nemesis24

Any news on that ? Any chance to have it working in zha ?

adi90x avatar Mar 15 '22 20:03 adi90x

I would have this integrated in my home assistant, what can i do for helping ? Thanks for your answer.

Nemesis24 avatar May 24 '22 06:05 Nemesis24

Hi, any news about that, how can i help ?

Nemesis24 avatar Sep 16 '22 06:09 Nemesis24

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Mar 15 '23 07:03 github-actions[bot]

Zigbee2MQTT has support for this lock for ages - so I'll stick to that for a time.

https://www.zigbee2mqtt.io/devices/A6121.html

Drun555 avatar Dec 22 '23 07:12 Drun555