samemory / homebridge-eufy-security

Work in progress
Apache License 2.0
97 stars 14 forks source link

Any plan to support "Eufy Smart Lock touch & Wifi"? #135

Closed lenoxys closed 2 years ago

lenoxys commented 3 years ago

Discussed in https://github.com/samemory/homebridge-eufy-security/discussions/132

Originally posted by **CapnPicard** August 4, 2021 As title says, any plan to support it? At least just a "lock/unlock" button so we can make automation. It's the latest model with builtin wifi so it's always connected to the network. thanks
lenoxys commented 3 years ago

I don't have such device on my setup. Not such a big fan to ask for sharing since I could open your door not really safe.

I will try to implement something

lenoxys commented 3 years ago

hello, can you test on dev ? https://github.com/samemory/homebridge-eufy-security/wiki/How-to-switch-on-dev-branch

I've implemented on the 0.3.10

The lib doesn't provide the ability to interact with the lock so for now it's only getting the lock/unlock status

CapnPicard commented 3 years ago

hello, can you test on dev ? https://github.com/samemory/homebridge-eufy-security/wiki/How-to-switch-on-dev-branch

I've implemented on the 0.3.10

The lib doesn't provide the ability to interact with the lock so for now it's only getting the lock/unlock status

I just tried it. I now have the tile for the lock but it always show as locked. I even tried to restart homebridge to see if it would update at launch but no, it doesn't update.

lenoxys commented 3 years ago

can you enable detailed looging on the plugin config and send me the log ?

level debug would be enough

lenoxys commented 3 years ago

make sure you enable push notification on the alarm mode for your lock within the eufy apps

CapnPicard commented 3 years ago

For the alarm mode, the lock isn't related to any mode. It's really a standalone product but I enabled notifications in the eufy app on the lock settings

 

CapnPicard commented 3 years ago

LINK REMOVED

Here's the log when I start homebridge and I then did some lock/unlock in the app.

Note I also have a doorbell camera

lenoxys commented 3 years ago

when you lock/unlock did anything happend on log ?

CapnPicard commented 3 years ago

unfortunately, no.

schliemann commented 3 years ago

can you enable detailed looging on the plugin config and send me the log ?

level debug would be enough

How do you enable different log levels?

lenoxys commented 3 years ago

I've put 0,1,2 0 normal, 1 debug and 2 insane

Here is the part which do the job https://github.com/samemory/homebridge-eufy-security/blob/dev/src/platform.ts#L85

lenoxys commented 3 years ago

In the hand of Bropat https://github.com/bropat/eufy-security-client/pull/36

schliemann commented 3 years ago

@lenoxys Wow. Really impressive work you've been doing lately.

shadydude047 commented 3 years ago

Just wanted to double check if only T8500 will be supported? I have T8520 and when switched to dev branch, it complains that [EufySecurity] This accessory is not compatible with this plugin: Front Door Type: 51

Dentifreak commented 3 years ago

I did some tests and it seems the plugins works! But problem is it takes at least 10-15 min to update but always end up updated.

So it would need to make it instantaneous to fix it

edit : tried again. 10 min for homekit to update after the lock has changed status

Dentifreak commented 3 years ago

Just wanted to double check if only T8500 will be supported? I have T8520 and when switched to dev branch, it complains that [EufySecurity] This accessory is not compatible with this plugin: Front Door Type: 51

I have the same. You need the get the last dev version, not stable. But note it’s note currently working perfectly.

lenoxys commented 3 years ago

Yeah that's why I've pushed a PR for bropat to bring the push notification and get instant notification while lock/unlock happend.

Dentifreak commented 3 years ago

Yeah that's why I've pushed a PR for bropat to bring the push notification and get instant notification while lock/unlock happend.

Do you think In the future we’ll be able to not only see the status but be able to lock/unlock from homekit?

lenoxys commented 3 years ago

It's depending on the bropat lib I don't have a lock and bropat as well to do investigation and test to help him

CapnPicard commented 3 years ago

It's depending on the bropat lib I don't have a lock and bropat as well to do investigation and test to help him

I’m still available for tests if you need me for this.

bropat commented 3 years ago

Lock/unlock currently works for T8500 (50) and should work for T8510 (52; untested). It is not yet implemented (in progress) for T8501 (53) and T8520 (51). For T8520 you can also read the progress here:

https://github.com/bropat/ioBroker.eufy-security/issues/138

If I can get T8520 to work, then T8501 should also work. I have already written a few lines of source code:

https://github.com/bropat/eufy-security-client/blob/7d8689dd03b21ed3bf9a8e1fa534eb2ea014d70d/src/http/station.ts#L2682-L2708

But the most important thing is missing, the key:

https://github.com/bropat/eufy-security-client/blob/7d8689dd03b21ed3bf9a8e1fa534eb2ea014d70d/src/http/station.ts#L2700

If someone has skills in reverse engineering C/C++ code just let me know ;)

CapnPicard commented 3 years ago

I have no coding skill but THANK YOU guys, you are incredible! If you need testers, I'm here.

lenoxys commented 3 years ago

@CapnPicard can you test on the latest beta version? 0.3.25

CapnPicard commented 3 years ago

Sorry for the delay.

I tried 0.3.25 and .27. One thing I noticed, they add 2 doorlocks in homekit. One always shows locked and the other unlocked. Both don't update.

I also see this in the logs:

8/12/2021, 9:40:09 AM] [homebridge-eufy-security] This plugin threw an error from the characteristic 'Lock Current State': Unhandled error thrown inside read handler for characteristic: this.SmartLock.isLocked is not a function. See https://git.io/JtMGR for more info.

lenoxys commented 3 years ago

do you mind sharing the lock ?

CapnPicard commented 3 years ago

do you mind sharing the lock ?

send me a private chat like the last time and we can do it

lenoxys commented 3 years ago

I may switch on discord next time. When we get verified by homebridge team it's possible to request a channel for the plugin on their community.

Taik commented 3 years ago

@lenoxys I also have this same lock and am happy to provide access and help where I can.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 2 years ago

This issue was closed because it has been stalled for 5 days with no activity.

bropat commented 2 years ago

Good news: I was able to decrypt the communication. I can now close and open the lock. I still have to decipher and implement a few small things so that everything runs smoothly, but the hardest part is now behind me. In the next few days I will publish the new version with support for the device.

rriewerts commented 2 years ago

Request if this was ever finalized? I have the T8520 and am still unable to operate the lock?

kunwarsethi commented 2 years ago

Looks like Bropat just updated it to work for the T8520 today, so we just have to wait for this plugin to be updated to the latest bropat lib!

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 2 years ago

This issue was closed because it has been stalled for 5 days with no activity.