Support for Lockin G30 / Smart Lock and Keypad

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:

@azerty9971
Hey mate, good morning.

Any luck?

Thanks in advance.

Edit history:
Phrase makes sense in Portuguese, updated to not feel aggressive as English

Can we do a Google meet about this?
It should work, no idea why it’s not from your side

Ohhh, I think I just figured out why this happens, are you using the latest stable release of XT or the latest beta?

For now, please use the latest beta, it should work way better!!

I’m currently writing the doc on how to configure the locks in HA using XT, I’ll update this post with the new documentation as soon as it’s finished :wink:

1 Like

Will try with the latest beta than.
Ping you with the results later.
Thank you.

Also,
Can you please make sure that you follow the following procedure?

Thanks in advance,
Azerty

Hi @azerty9971
Sorry for the late reply but I moved house and was unable to set my server until yesterday.
Tested with the 3.0 beta and the opening button is working great!
Thank you so much for your contribution

Hi,
I’ve got an issue with lock. I managed to Lock and Unlock via Alexa commands (created scriprs), however I just found out that in Xtended Tuya there is an option to Lock/Unlock door, but when I click on the button it sends me error message Failed to perform the action lock/lock. ‘bfe1be3f228a283107jawd’

Hi, did you enabled the lock properties like told here:

Hi,
Yes it says that it’s in service.

1 Like