dgreif / ring

Unofficial packages for Ring Doorbells, Cameras, Alarm System, and Smart Lighting
MIT License
1.21k stars 163 forks source link

Supporting Amazon Key Locks #178

Closed issues-guy closed 4 years ago

issues-guy commented 4 years ago

I have added a lock to Ring which can only be added via Amazon Key. When using the ring homebridge plugin the Lock did not appear in the list of devices. Is this the expected behavior currently?

Running on homebridge-ring v5.9.1

If it is not currently supported, I do hope it can be added. I am available to assist with testing as well.

Thanks!

dgreif commented 4 years ago

I might be able to support it with the plugin, but it's going to be difficult to add it without having one to test with. The first step to see if it's possible would be to see if Ring shows the lock in the web app. Go to ring.com then log in to your account. Hover over your name in the top right and click on "Devices" in the drop down. Do you see the lock listed in that list of devices? If you have an alarm, you may need to click into the alarm device and see if it's listed in there.

issues-guy commented 4 years ago

Nope, the lock is not listed anywhere. : (

dgreif commented 4 years ago

K...unfortunately that makes it really hard for me to implement it. If it shows up in the web app, then I can look at the code and reverse engineer it. Without that, I would have to have one on hand to test with. What model of lock is it?

issues-guy commented 4 years ago

Schlage Encode

enriquecaballero commented 4 years ago

I just added my August Lock and it does show up on the webapp. Any chance this one might work?

enriquecaballero commented 4 years ago

Nevermind, it just worked. Awesome.

dgreif commented 4 years ago

Interesting, how did you connect your August lock to ring?

enriquecaballero commented 4 years ago

I tried pairing it like any other z-wave device and it just worked: it found the device, prompted for the code, and added it successfully. Figured I’d give it a shot since I was also able to successfully pair my HomeSeer light switches and dimmers. No official support but hey, it works.

dgreif commented 4 years ago

@enriquecaballero that's awesome, I may have to give that a try! I've been using the native HomeKit support for my August locks, but it seems slow to respond most of the time. Might work better with a straight z-wave connection 🤔. @issues-guy sorry this doesn't fix your Amazon Key issue. I haven't seen anything in the web app source code that would help me get that working with HomeKit yet.

enriquecaballero commented 4 years ago

@dgreif I used to use the straight up HomeKit connection but I also ran into a bunch of connectivity issues. Turns out it’s because it relies on a direct Bluetooth connection from your hub (Apple TV, iPad, etc.) to the lock. Even using the August Connect, it still used Bluetooth...so dumb. So I shut off HomeKit and enabled z-wave and the issues disappeared. I used to run Homeassistant for controlling my lights and lock, and now I’ve moved everything over to Ring — everything’s been rock solid and much more responsive since.

dgreif commented 4 years ago

I still have not purchased (and don't intend to purchase) an Amazon Key compatible lock. Since Ring handles these locks in a completely different way than the z-wave locks, I don't think I will be able to implement this feature myself. If anyone happens to have a compatible lock and is able to figure out how the API works for them, I would be happy to take a PR!

dxdc commented 4 years ago

@enriquecaballero I have had similar issues with August and trying Zwave. Do you have DoorSense? I'm curious if DoorSense is exposed through the ring platform. If so, I might be convinced to take a crack at this :)

dgreif commented 4 years ago

I'm going to close this issue for now. I don't really want to buy an Amazon Key lock to build this feature and from what I have seen of the API, it would require more polling to keep the lock state up to date. If anyone has an Amazon Key lock and is able to open a pull request with at least an API setup, I would definitely consider adding this in the future.