tuya-home-assistant icon indicating copy to clipboard operation
tuya-home-assistant copied to clipboard

Wifi Door Lock

Open kond111 opened this issue 2 years ago • 26 comments

Device normal info

  • Brand
  • Product: Wifi智能门锁

Device info (please complete the following information, which can be found in log): like this: { "result": [ { "code": "unlock_fingerprint", "value": 15 }, { "code": "unlock_password", "value": 11 }, { "code": "unlock_temporary", "value": 909 }, { "code": "unlock_dynamic", "value": 900 }, { "code": "unlock_card", "value": 0 }, { "code": "unlock_key", "value": 0 }, { "code": "alarm_lock", "value": "wrong_password" }, { "code": "unlock_request", "value": 0 }, { "code": "residual_electricity", "value": 100 }, { "code": "unlock_app", "value": 0 }, { "code": "hijack", "value": false }, { "code": "doorbell", "value": true } ], "success": true, "t": 1626872625471 }

while Integrating with Home assistant only find sensor for Battery nothing else, No logs for Open the door and the ID of the door Opened

kond111 avatar Jul 21 '21 13:07 kond111

{ "result": { "active_time": 1621337292, "biz_type": 18, "category": "ms", "create_time": 1619012539, "icon": "smart/icon/ay15620559232955VcTq/2f365636d123a0efe4719de426a71a4e.png", "id": "4346076384cca88f7e34", "ip": "156.213.248.206", "lat": "30.03596046458731", "local_key": "e6e7405321ee9e8b", "lon": "31.51514175975225", "model": "", "name": "Wifi SmartLock", "online": true, "owner_id": "27781434", "product_id": "082cmsqvk9tkp8d9", "product_name": "Wifi SmartLock", "status": [ { "code": "unlock_fingerprint", "value": 15 }, { "code": "unlock_password", "value": 11 }, { "code": "unlock_temporary", "value": 909 }, { "code": "unlock_dynamic", "value": 900 }, { "code": "unlock_card", "value": 0 }, { "code": "unlock_key", "value": 0 }, { "code": "alarm_lock", "value": "wrong_password" }, { "code": "unlock_request", "value": 0 }, { "code": "residual_electricity", "value": 100 }, { "code": "unlock_app", "value": 0 }, { "code": "hijack", "value": false }, { "code": "doorbell", "value": true } ], "sub": false, "time_zone": "+02:00", "uid": "eu1616156182124EoieM", "update_time": 1626867821, "uuid": "4346076384cca88f7e34" }, "success": true, "t": 1626873390976 }

kond111 avatar Jul 21 '21 13:07 kond111

@tsutsuku none of my Tuya Locks (wifi or zigbee) have the function to unlock, i only have the function to change the doorbell volume, is that going to be changed?

Sthopeless avatar Jul 22 '21 10:07 Sthopeless

If the unlocking will not be available at least I should have logs about who unlocked the door ?which type of unblocking happened? Getting notification when hacking is happening ?? Any type of info.

kond111 avatar Jul 22 '21 10:07 kond111

@Sthopeless Did you do anything on the Home assistant to have these volume setup or it is available by default?

kond111 avatar Jul 22 '21 13:07 kond111

@kond111 if your lock as that option should appear automatically in Home Assistant. On Tuya/Smartlife App do you have that option on your lock to change the volume?

Sthopeless avatar Jul 22 '21 13:07 Sthopeless

@Sthopeless No i don't Have meanwhile I don't care really about the volume of the door bell since it tough be figured out by the visitors that the Lock is having a Ring door bell, but actually it is a very nice lock which have all what I need but the only missing issue to have some customized automation on the person coming, for example i'm a deep need to lock may room in case the maid entered for cleaning while I'm out of home.

kond111 avatar Jul 22 '21 13:07 kond111

Hi guys, I've already written the driver for the lock for the status sensors, but the device needs to be standardized.

@tsutsuku Can you put this device in the queue to be standardize ? I Can finish the driver code after this

There's two friends of mine with this lock 'ms' category as well

Jhonattan-Souza avatar Jul 22 '21 21:07 Jhonattan-Souza

@Jhonattan-Souza You can create a ticket in the Tuya service console with your device specifications to ask to standardize. https://service.console.tuya.com/8/2/create?step=3&id=01030503&source=content_feedback.

tsutsuku avatar Jul 23 '21 02:07 tsutsuku

@tsutsuku if I opened a ticket this will be only for my device or for all the same type of devices??

kond111 avatar Jul 23 '21 09:07 kond111

My lock only show battery status only. No other function.

fahimi73 avatar Jul 24 '21 05:07 fahimi73

Hello All,

Is there any Updates related to this Subject

kond111 avatar Jul 26 '21 11:07 kond111

Hi, I’m curious on this as wel How’s the progress?

ferbulous avatar Aug 12 '21 02:08 ferbulous

Support for these locks would be really great.

cq74 avatar Aug 16 '21 08:08 cq74

Hi, I’m curious on this as wel How’s the progress?

same old.. only battery status and some lock models has have sensor saying if it's closed or open.

I have successfully used API to open Bluetooth, WiFi and Zigbee locks but the process is not as simple as sending one request

TBH I dont think this will be the solution for HA locks and Tuya doesn't seem to be whiling to do any changes to it.

  • WiFi locks are asleep all the time and to unlock remotely you need to start a request from the lock itself
  • unlocking requires a password sended by tuya cloud that changes every +-3mins
  • most locks don't have open/close sensor

I think if Tuya decides to change something they will do same they did with Weight Scales and just create a new category for Locks with "this new features" and if we want them we buy the new locks.

Sthopeless avatar Aug 16 '21 08:08 Sthopeless

@Sthopeless Can you share with us your experience to open Wifi Lock or Zigbee, it will be a great help unitl Tuya find a way forward in this path, and this will help Us to use our lock which is not being used in any of the automations?

kond111 avatar Aug 16 '21 15:08 kond111

Hi guys, I've already written the driver for the lock for the status sensors, but the device needs to be standardized.

@tsutsuku Can you put this device in the queue to be standardize ? I Can finish the driver code after this

There's two friends of mine with this lock 'ms' category as well

Hi @Jhonattan-Souza what's your progress on this? were you able to standardize the driver

ferbulous avatar Nov 02 '21 01:11 ferbulous

Hi. At least pushing the status of entrance number?? no way?

rodrigoscoelho avatar Dec 28 '21 03:12 rodrigoscoelho

Any news on this?

ronpotter271 avatar Apr 13 '22 22:04 ronpotter271

Nope


Email enviado usando um celular...

Em qua., 13 de abr. de 2022 19:06, ronpotter271 @.***> escreveu:

Any news on this?

— Reply to this email directly, view it on GitHub https://github.com/tuya/tuya-home-assistant/issues/184#issuecomment-1098530495, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUXTGQPVTL5INLVMC7WNTDVE5AQBANCNFSM5AX5SDLA . You are receiving this because you commented.Message ID: @.***>

rodrigoscoelho avatar Apr 13 '22 23:04 rodrigoscoelho

I feel like it shouldn't be that hard to write a script that would automatically get the password that it needs from the cloud and just send a lock/unlock request, if it was in fact done manually, why cant anyone make it into a custom integration? am i missing something

ronpotter271 avatar Apr 14 '22 00:04 ronpotter271

@Sthopeless Heyy, have you tried sending the requests to the lock locally? And does locking/unlocking work that way?

ronpotter271 avatar Apr 14 '22 15:04 ronpotter271

Asking that since I saw in their IOT documentation an option for Offline key, so I'm guessing that should just work?

ronpotter271 avatar Apr 14 '22 15:04 ronpotter271

I feel like it shouldn't be that hard to write a script that would automatically get the password that it needs from the cloud and just send a lock/unlock request, if it was in fact done manually, why cant anyone make it into a custom integration? am i missing something

That's what I've done, but because the locks only worked when connected to Tuya Cloud I have never got to use them and don't advise them.

Asking that since I saw in their IOT documentation an option for Offline key, so I'm guessing that should just work?

Can you show me the url please, maybe they changed but I think is unlikely. Also from what I can remember, only Zigbee could be unlocked totally remotely. WiFi was not possible.

And yes I have tried many ways to control the my locks locally 100% cloud free, but nothing came tho

Sthopeless avatar Apr 19 '22 14:04 Sthopeless

I feel like it shouldn't be that hard to write a script that would automatically get the password that it needs from the cloud and just send a lock/unlock request, if it was in fact done manually, why cant anyone make it into a custom integration? am i missing something

That's what I've done, but because the locks only worked when connected to Tuya Cloud I have never got to use them and don't advise them.

Asking that since I saw in their IOT documentation an option for Offline key, so I'm guessing that should just work?

Can you show me the url please, maybe they changed but I think is unlikely. Also from what I can remember, only Zigbee could be unlocked totally remotely. WiFi was not possible.

Sthopeless avatar Apr 19 '22 14:04 Sthopeless

any updates on the lock situation I have a feww locks that arte tuya ble and when i add the tuya app to the iot platform none of them shows up it says 0 devices added thern if i retry adding the tuya app it says CAPOP_user_biund error i start a new project tyhe iot platform isnt recognizing any of them but the locks show up in both tuya andf smart life apps and when i setup the cloud project in iot platform and the tuya or smart life doesnt add the locks when i try integratingh with home assistant i get an invalid skill id error anyone able to help with thisa?

justfly1111 avatar Apr 19 '22 19:04 justfly1111

Any updates here? I have created ticket for that in official ha tuya integration https://github.com/home-assistant/core/issues/92591

macxq avatar May 09 '23 11:05 macxq