Support for Lockin G30 / Smart Lock and Keypad

Hello can someone add the support for the Locking G30 Smart Lock and Keypad.

Here the link to buy:

https://www.amazon.de/Lockin-G30-App-Steuerung-Google-kompatibel-elektronisches/dp/B0C2Z6CYJ9

The Devices are working in the Smart-life App for me but the will be marked as unsupported in Homeassitant Tuya.

The Devices are Bluetooth and use a WiFi Bridge.
Also with the local Tuya i cant use the deceives in Home-assistant.

Thanks

I am looking for some solution for the same product.

Hmm, since it’s a lock I’m not sure you’d be willing to but I could give it a shot to implement it in my custom integration (GitHub - azerty9971/xtend_tuya: eXtend Tuya's integration)

For this to work, would it be possible for you to share the device using your Tuya/SmartLife app? (after removing it from a door so that I don’t cause a security breach to your house by performing tests)
Smartlife: gg-106053160716494114782
Tuya: [email protected]

And also contact me via [email protected] so that we can arrange test sessions when the implementation will be ready :slight_smile:

Thanks in advance and have a nice day,
Azerty

Hello! Were you able to get the lock to open and close with their home assistant? I get an error when trying to change the status.

Hello,
I’m guessing it needs to call a different API to do the unlocking, but since I don’t have access to one of these devices I can’t really test…

Would it be possible to share the lock with me via the Smartlife/Tuya app? (and temporarily place it in a place where locking/unlocking won’t be an issue for you)

Have a nice day,
Azerty

I wrote you an email.

Hello everyone,
I’ve just posted an updated version of GitHub - azerty9971/xtend_tuya: eXtend Tuya's integration that enables locking/unlocking from HA.

For now you’ll have to use the latest beta version and provide cloud credentials (GitHub - azerty9971/xtend_tuya: eXtend Tuya's integration).

Once this is done you should get a fully functional G30 lock in HA.

Enjoy!!
Azerty

1 Like

This is just great! Could you add local support or is it impossible? And I would also like you to add codepad support to this lock if possible. Any data you need I will provide you in Discord :slight_smile:

Hello,
I don’t think local support is realistic for now.
Locking could be done via LocalTuya by sending True to DpId 46.

Unlocking on the other hand needs some other API and I don’t think we have access to these…

For the Keypad, I’ve just added support for the latest alarm (wrong fingerprint, face, …), the key tone setting and the battery level, do you see anything else that would be worth getting from HA?

Hey Guys,

I just saw your Project and it works pretty good.

But how can i read the current status of my G30 ? For Example i want a litte lock icon on my Dashbord that tells me if the Door is locked or open. I’ve tried but i cant get it to read the status.

Greets

Hello,
It’s so nice to see this project, I have 2 g30 at home, I’m trying to install your latest beta but I have some problems I can see the status of my lock but I can’t close or open it and if I lock the door manually, the status is not updated in HA until I open the Smart Life app.

I have the tuya integration instaled alredy, they can work together or i have to remove it?

Thank you for your work guy
Max

Hello,
To be able to lock/unlock the lock from HA you need to provide cloud credentials to my integration:

Once this is in and you restarted HA you should be able to open/close the lock from HA.

The status is something that unfortunately the cloud doesn’t send right now, it’s an issue on Tuya’s side and I tried to make their support fix it but it won’t work. Actually in the app itself you don’t have the history if your bluetooth is off…
EDIT: what I mean by status is unlock history, you can get the current status of the lock (locked/unlocked) on the entity page :slight_smile:

For your other question, you can use xtend_tuya alongside Tuya even though I would recommend removing the Tuya integration completely, xtend_tuya will detect this and take over all the functionnalities normaly handled by tuya’s integration.

Have a nice evening,
Azerty

Also, if you want faster response time from me, open an issue at Issues · azerty9971/xtend_tuya · GitHub .
I’m rarely on the HA community but I get emails every time an issue is created :wink:

Have a nice evening,
Azerty

Using @azerty9971 xtended tuya I can see the status of the door, lock and change some other settings:

I cannot open the door by the home assistant tho
I just deleted the tuya integration and working only with the extended one

Hello,
To be able to operate the lock itself from HA you need to subscribe to the “Smart Lock Open Service” (free) on the Tuya IOT platform :).

To do that:
Go to Cloud → Cloud Services:
image

Then in the list, find “Smart Lock Open Service” and click the “Free trial” button (on the right):

Once that’s done you should be able to operate your G30 lock from HA if you have configured the IOT Cloud credentials in Xtended Tuya.

Have a nice day,
Azerty

Hello again @azerty9971
I have enabled it on the Tuya IOT and tested, being able to unlock it without password and get status, but the entity of the G30 still keeps the same and I cannot open it from HA


Am I missing something?

Hello,
Can you post the device diagnostics? (the “download diagnostics” from the screenshot you posted in HA).
Please remove from this file your IP and the local_key (along with any other information you deem should not be public of course :))

Thanks in advance,
Azerty

Sure thing, @azerty9971
Happy to help.

it can be found here, please advise if anything else is needed

Hello,
That’s the diagnostic for the keypad, not the lock :slight_smile:

Can you look in the lock itself in HA and post the diagnostic of that device please?

Thanks in advance,
Azerty

Sorry, a lot happened yesterday
here is the correct info

forgot to ping @azerty9971 :slight_smile: