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

Wifi Door Lock #184

Open
kond111 opened this issue Jul 21, 2021 · 26 comments
Open

Wifi Door Lock #184

kond111 opened this issue Jul 21, 2021 · 26 comments
Labels
new driver wanted Request new device driver

Comments

@kond111
Copy link

kond111 commented Jul 21, 2021

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 kond111 added enhancement Request new features help wanted Extra attention is needed labels Jul 21, 2021
@kond111
Copy link
Author

kond111 commented Jul 21, 2021

{
"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
}

@tsutsuku tsutsuku added new driver wanted Request new device driver and removed enhancement Request new features help wanted Extra attention is needed labels Jul 22, 2021
@Sthopeless
Copy link
Contributor

@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?

@kond111
Copy link
Author

kond111 commented Jul 22, 2021

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
Copy link
Author

kond111 commented Jul 22, 2021

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

@Sthopeless
Copy link
Contributor

Sthopeless commented Jul 22, 2021

@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?

@kond111
Copy link
Author

kond111 commented Jul 22, 2021

@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.

@Jhonattan-Souza
Copy link
Contributor

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

@tsutsuku
Copy link
Collaborator

@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.

@kond111
Copy link
Author

kond111 commented Jul 23, 2021

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

@fahimi73
Copy link

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

@kond111
Copy link
Author

kond111 commented Jul 26, 2021

Hello All,

Is there any Updates related to this Subject

@ferbulous
Copy link

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

@cq74
Copy link

cq74 commented Aug 16, 2021

Support for these locks would be really great.

@Sthopeless
Copy link
Contributor

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.

@kond111
Copy link
Author

kond111 commented Aug 16, 2021

@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?

@ferbulous
Copy link

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

@rodrigoscoelho
Copy link

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

@ronpotter271
Copy link

Any news on this?

@rodrigoscoelho
Copy link

rodrigoscoelho commented Apr 13, 2022 via email

@ronpotter271
Copy link

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
Copy link

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

@ronpotter271
Copy link

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

@Sthopeless
Copy link
Contributor

Sthopeless commented Apr 19, 2022

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
Copy link
Contributor

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.

@justfly1111
Copy link

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?

@macxq
Copy link

macxq commented May 9, 2023

Any updates here? I have created ticket for that in official ha tuya integration home-assistant/core#92591

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new driver wanted Request new device driver
Projects
None yet
Development

No branches or pull requests