jwiseman
(Mr. Wiseman (OH 4.2 Snapshot on Pi4))
48
Hi Sriram,
Thank you SO much for doing this work and allowing others to have it also. This was 1 of 2 bindings I needed in order to finish my migration from OH 2.x to 3.x. I got your binding up and running all via discovery vs. the file definition way I did in OH 2.x.
One thing I learned is you can’t have the OH 2.5 binding running also on a different machine during the migration because the EyezOn Envisalink device can’t keep track of which call it’s responding to OH 2.x or OH 3.x. I had to shut down the OH 2.5 in order to fully get this one to work which is completely fine!
You wouldn’t have any insights in how can migrate the RING doorbell binding from OH 2.x to 3.x?
I do not have a Ring doorbell to test but managed to migrate the binding to OH3 and it installed properly in my instance. Let me know if it works for you -
I don’t think you’ll get a photo or videostream. Best thing you might get would be a locally saved video on an event, but only if you use the paid subscription.
How does the event#kind work? I expected it would change based on the event recognized by the doorbell (e.g. switch to “dong” when somebody rings and switch to “motion” when a motion is detected), but for me it switched to “motion” initially and then never changed.
jwiseman
(Mr. Wiseman (OH 4.2 Snapshot on Pi4))
54
Not aware how to get a photo - I’m using a HIK Vision camera to get a photo when it happens.
The Ring video stream has a 2 minute delay when the ring binding receives a ‘ding’ status. Here’s my logic to put a URL in front of the actual file the Ring binding creates so I can put these URL’s in an email to me.
var remoteMotionURL = RingEventVideoURL.state.toString().replace("http://192.168.0.32:8080/ring/video/","http://www.XXXXX.org/OHRing/")
var localURL = RingEventVideoURL.state.toString().replace("http://192.168.0.32:8080/ring/video/","http://192.168.0.32:8080/static/ring/video/")
logInfo("RING","Ring remoteMotionURL is " + remoteMotionURL)
logInfo("RING","Ring localURL is " + localURL)
I have an IIS server with a virtual directory tied to where the Ring video’s are stored on the OH3.x Pi4 (http://www.XXXXX.org/OHRing/)
Thank you, Jay
Is this the online state or what is this about?
(my doorbell will arrive today
jwiseman
(Mr. Wiseman (OH 4.2 Snapshot on Pi4))
58
I think it was back in the day when the binding was originally developed - I monitor the Ring account for being online/offline at the Thing level.
It does go offline maybe every other day but comes right back online. This could be a lot of different reasons, my internet connection, failed API call, etc.
rule "Checking Ring Account Thing Status"
when
Thing "ring:account:7494353203" changed
then
Here’s what it looks like when it comes online.
2022-04-10 12:22:21.291 [INFO ] [g.openhab.binding.ring.internal.RingHandlerFactory] - createHandler thingType: ring:doorbell
2022-04-10 12:22:21.334 [INFO ] [g.openhab.binding.ring.internal.RingHandlerFactory] - createHandler thingType: ring:account
2022-04-10 12:22:21.359 [INFO ] [org.openhab.binding.ring.internal.RestClient ] - Creating Ring client for API version 11 on endPoint https://api.ring.com
2022-04-10 12:22:22.167 [INFO ] [org.openhab.binding.ring.internal.RestClient ] - Creating Ring client for API version 11 on endPoint https://api.ring.com
And even though I have put in the correct 6-digit code, the binding is still asking for it.
2022-05-02 15:10:39.269 [DEBUG] [ing.ring.handler.AbstractRingHandler] - AuthenticationException when initializing Ring Account handler2 factor enabled, enter code
jwiseman
(Mr. Wiseman (OH 4.2 Snapshot on Pi4))
61
My only guess is if you have 2FA turned on with your Ring account, the binding may not have incorporated 2FA when it was originally written.
I do NOT have 2FA turned on with my account and it works.
2022-05-02 20:11:03.324 [INFO ] [g.openhab.binding.ring.internal.RingHandlerFactory] - createHandler thingType: ring:doorbell
2022-05-02 20:11:03.369 [INFO ] [g.openhab.binding.ring.internal.RingHandlerFactory] - createHandler thingType: ring:account
2022-05-02 20:11:03.393 [INFO ] [org.openhab.binding.ring.internal.RestClient ] - Creating Ring client for API version 11 on endPoint https://api.ring.com
2022-05-02 20:11:04.316 [INFO ] [org.openhab.binding.ring.internal.RestClient ] - Creating Ring client for API version 11 on endPoint https://api.ring.com
I tried this path as well, but I cannot deactivate 2FA.
In my profile I can only choose between adding a new number for verification or to use an authorization App.
There is no option to switch the 2FA off.
There is one option in the Ring control center to authorize new devices, but the generated code does not help with OH either:
In the thing view it still states:
Anyone have any suggestions on disarming and arming? I am able to receive status with the updated binding in this thread but I cannot successfully send commands to the alarm panel. The status just reverts to previous.
I can successfully go to the Envisalink page and send commands.
Do I need to create rules in order to change state?
jwiseman
(Mr. Wiseman (OH 4.2 Snapshot on Pi4))
64