Ring Binding [3.2.0.0;5.0.0.0)

Yes, I will be dropping the jar back to 3.2. Eventually, probably near December, once 4.0.0 is more adopted I will probably drop a final 3.x as it is somewhat complicated to keep up. 4.1 and 4.0 should be almost identical and the jars should be compatible.

Where are you seeing github postings? I hadn’t seen any recently.

LOL, they are all from you. PR #14600

I’m going to put this here for now rather than update the main thread…

https://github.com/morph166955/openhab-addons/releases/download/ring/org.openhab.binding.ring-3.2.0-4.1.0-SNAPSHOT-93b326a.jar

Most importantly. BEFORE you delete the old jar, you need to delete any UI created Things including the account. This is most important for the account thing otherwise you may run into an issue where you get both a thing and a bridge with the same name, and you get a fun exception that’s hard to find out the answer to. Ask me how I know, I promise I didn’t spend some time figuring this out… You may want to make notes of what your item names are, you may have to recreate those depending on how you do it.

Replace the jar. Restart OH (there is a leak somewhere I haven’t fixed yet on the scheduler, this will be resolved in the future).

The text based configs work again! You are welcome to try to use that, or you can create a new account thing in the UI. If you are using the UI, make sure you see the nice blue Bridge bubble on the right side. If you are using the text based, your config will look like…

Bridge ring:account:myhome "Ring Account" {
        Thing doorbell 12345 "Ring Video Doorbell - Front Door"
        Thing stickupcam 67890 "Ring Video Stickup Cam - Back Yard"
        Thing chime 54321 "Ring Chime - Main Floor"
}

Yes, this looks weird. There are no . You are welcome to add username, password, twofactorAuth, to the Bridge. You can do that now with the CLI as well, so you don’t have to.

If you used the options, or you configured your things in the UI with user/pass/2fa, it should login like normal and you’re back in business. If you didn’t use the options, you can now use the new CLI. To do this, login to karaf and type:

openhab:ring ring:account:myhome login username password 2fa

You should see the login and everything works like normal after that as well.

If you get to here, your account Bridge should be in the ONLINE state. If it’s not, don’t go any further until you get it resolved.

Now, recreate your things. You should see them in the inbox. If not, click the scan button and that should make them come back as well. What you will notice, your things used to be “ring:doorbell:12345” and now they are “ring:doorbell:myhome:12345” to indicate that they are tied to the myhome bridge you configured above.

At this point you are down to your items. You need to fix the links to the channels to now also include the myhome piece.

If you made it here, you’re back online. Please let me know how it all went!

I setup the latest binding today and will let you know how it goes :slight_smile:

Removing the checkerboard from the logo would make it look nicer. :slight_smile:

I have the impression that the checkerboard should be a transparent background.
It is shown as checkerboard because jpg file format does not support transparent color.
In case the picture would have been in png format the background could be made transparent.

@wborn I’ll trade you a non checkerboard logo for a review on the PR… :stuck_out_tongue:

Maybe if you fix the build first. :wink:

Says the guy who submitted the PR that broke the build :stuck_out_tongue:

I’ll go pull the 3.x bits out shortly.

1 Like

Just checking in with the community here to see if there are any issues with the binding. Mine has been very stable on the most current build.

Its been solid for quite some time now. Thank you!

Hi @morph166955 ,

i got my first ring. I use your org.openhab.binding.ring-3.2.0-4.1.0-SNAPSHOT-93b326a.jar.

After a a pressed button i got the event (RingEventCreated) after 30 seconds and i can not find any suggestions for a fix. For this, it doesn’t work for me. Do you have any idea, what i can do to get event when the ring is pressed?!

Regards,
xtoasty

Your problem is the polling interval. We haven’t implemented websockets yet to reduce the time on events. Im looking to do that after this version gets through review and is merged in. You can dial the interval down, however Ring will get onto you at some point for flooding or just cut you off entirely so be careful.

thanks for the very quick reply. I used the default of 5 seconds and 10 and 20 and it is still the same. After appx. 30 seconds the event is on openhab. Looking forward to the websocket version…

It can realistically be anywhere from almost instant to as much as 30 seconds. It really depends when the event happens inside that 30 second window. Websockets won’t happen on this until 2024.

Hello,
I was wondering whether there are plans to support the Ring Intercom:

I have one of these and would be motivated to support the binding development. The should be two functions supported:

  • A notification when a ring is detected (works already)
  • A command to support opening the door

Is there some debugging feature that would need to be enabled to find out more?

Trying to set up using OpenHAB 3.

Used email, pwd, and 2fa, but it shows:

Initialization failed: Failed : HTTP error code : 406

CLI says:

openhab> openhab:ring ring:account:600218f6bb login mail@gmail.com pwd 123456
An unexpected error occurred during execution.

Any ideas?

I would need to see a debug or trace log to be able to see what happened. 406 is an odd error to get. Is anyone else having this issue?

Very nice binding. Many thanks for that.

I also use the Ring Intercom. It would be nice if a command to support opening the door would be available. :slight_smile:

The intercom should show up as an “other” type device. I don’t have one so I can’t really test it out. Does it show up just without the control?