Ring doorbell

So far so good. Is this normal?
09-PM

Sorry for the late replies, it seems i’m not getting alerts to this thread for some reason

It should pick up the cameras as well, at least the events in the account thing should be coming across. There was a pull request to add stick up camera support to get battery status but I haven’t yet had an opportunity to do a new build, hopefully I will sometime today. As far as the time, that is coming from the ring server itself. I’m sure it can be adjusted to use local time, but i’m not sure how at the moment.

That’s definitely strange, did you add that manually or did it come up during auto discovery?

I believe that I had to initiate the search but it found the items automatically.

That is strange then. If you delete the video doorbell thing and restart the binding from karaf (or openhab altogether), it should pop back by itself into your inbox after a while on its own. Hopefully that gets it going. I’m still trying to sort out the issue where it won’t re-discover things after they get deleted until the binding is restarted. I’ve also uploaded a new version with the stickup cam addition here. It does work with 2.4 as well. https://github.com/zolakk/openhab2-addons-ring/raw/master/target/org.openhab.binding.ring-2.5.0-SNAPSHOT.jar

1 Like

Something VERY odd is going on now. I’m seeing this in the error logs:

2019-01-31 15:39:01.069 [hingStatusInfoChangedEvent] - 'ring:account:87c6cb5f' changed from OFFLINE (COMMUNICATION_ERROR): Invalid response from ring.com. to ONLINE

I’ve uploaded the new jar and deleted the video thing. I’ll try restarting OpehHAB via sudo /etc/init.d/openhab2 restart and we’ll see what happens.

Wow, still throwing a ton of those errors! and the Ring Account Binding Thing keeps going on and off line. I’ll delete the whole set up and try again.

After clearing it all out, I dropped the new jar (2.5.0) back in addons. After a moment, the binding showed up in the Paper UI. Had to manually add the Things:

  • Ring Account Binding Thing looks good. Solid Online status.
  • Ring Video Doorbell showed up in my in box all by itself! :grinning:
  • Manually added Chime Binding Thing, no problems noted.
  • Manually added Video Doorbell Binding Thing but there are problems.

Same issue again:

2019-01-31 16:23:17.497 [hingStatusInfoChangedEvent] - 'ring:doorbell:XXXXXXXX' changed from INITIALIZING to OFFLINE (CONFIGURATION_ERROR): Device with id 'XXXXXXXX' not found

I went to the Ring Account Binding Thing in Control and looked at the attributes. The URL to Record Video is good. When I opened it in another tab, it played the last video.

The Video Doorbell Binding Thing is in Control also and it shows the Battery Status as -NaN which makes sense since it is off line.

BTW, when I uninstalled everything I cleared the cache so I had to reinitialize my settings. I turned on Item Linking Simple Mode and turned off Inbox Auto Ignore.

I have just installed this and I think I have everything setup as I should.

Both my account and doorbell are showing as online.

I have a rule that triggers when the “EventKind” item is updated, checks what the event was and logs it.

I’ve set it to turn on the porch light for testing purposes.

The problem is there is a good 30 second delay between the motion event and the rule triggering. Is this normal for this addon of have I configured something wrong?

rule "Ring Trigger"
when
    Item EventKind received update
then
    logInfo("User.RingVideo","Rule Triggered Event=" + EventKind.state)
    if (EventKind.state == "on_demand") {
       logInfo("User.RingVideo","Live View Detected") 
    } else if (EventKind.state == "motion"){
        Porch.sendCommand("100")
        logInfo("User.RingVideo","Motion Detected") 
    } else if (EventKind.state == "ding") {
        logInfo("User.RingVideo","Ring Detected") 
    }
end
1 Like

Unfortunately, such delays can be possible but for me it seems to be pretty reliable, within the 5 second polling frequency and usually pretty much instantly. There is no official public API available to tie into so the binding has to rely on polling the events from your account instead of a push method that I’m sure the official app uses so there can be delays there. How are your other rules behaving? I’ve seen other rules in my system take up to 30 seconds to fire on the first time after editing , openhab booting, or if they haven’t run in a while but after that they behave fast for a long while.

All my other rules are running fine.

I am currently using IFTTT to turn on lights based on motion being detected so I guess I will have to stick with that.

It’s a shame Ring haven’t provided an API as that is pretty much the only device I have left that requires cloud access to integrate with other bits in my home.

I’ll try it again later to see if the long delay could be a temporary issue.

Thanks.

The promised and never delivered API was the exact reason why I took mine offline. I use DoorBird now. This one is designed for working on my local network, has superior video and also integrates via SIP with my FritzBox and has an App.
Costs more, but doesn’t need cloud subscription for advanced features.

BTW, I just installed this again on a new OH2 install and got the same problem. Must be something with my account!

I took a look at the code and when you manually add, the thing ID when manually adding needs to match a valid ring device ID. The easiest way is to look at the account thing doorbot/ring device ID for the last event and use that. If you’re already using a valid ring device ID as your thing ID, i’m not sure what the problem could be

Thank you zolakk, I’ll take a look and see if I can do that. It was manually added so that kind of makes sense.

When I use the thing ID from the Ring Account Binding Thing to manually add the Video Doorbell Binding Thing, I get the same error.

When I tried to use the Ring Video Doorbell thing ID, it threw a Error 409 - Conflict

I think I’ve been confused. I haven’t been able to add the Video Doorbell Binding Thing but I have successfully added the Ring Account Binding and the Ring Video Doorbell Thing. The Ring Account Binding Thing has a URL to the most recent video so I think I’m good.

The Video Doorbell Binding Thing doesn’t work but I’m not sure I need it.

Now, which widget does everyone recommend to add it to HABPanel?

The 409 error is a bug in the binding where if you delete a Thing, it doesn’t properly get purged from the Thing registry so if you try to re-create (or re-auto discover) you get an error until you restart the binding. Unfortunately, I’ve been trying hard to nail it down and have yet to figure out where the problem is.

On the bright side, unless you care about the battery level the only Thing that really matters at the moment is the account Thing. All the other (video, chime, stickup) Things pretty much just report their battery level at this point. I would like to move the events to the individual Things at some point but definitely not before I can nail down that 409 error issue. So for now, as long as your account Thing is working fine you have 99% of the functionality.

I haven’t had a look at a HABPanel widget for it yet, but would definitely be interested to see what anyone else may have.

Hey, thanks for that. How do you restart a binding?

Assuming you’re running openhabian or linux, from a console type:

ssh -p8101 openhab@localhost

default password is habopen. Then type the following at the karaf console:

bundle:restart org.openhab.binding.ring

Edit: i’ve put the 409 error and this method of restarting the binding as an open issue in the github repo as well for future reference.

Did that and tried to manually readd the Video Doorbell Binding Thing with the device ID from the Account Binding. Still getting the config “Device with id ‘XXXXXXXX’ not found” error. I’m just not going to worry about it.

It would be nice to be able to display the doorbell video on the HABPanel. I’ll see if I can figure out how to do that.

Sorry for all the issues, i’ve never worked on a binding before so i’m very much learning as I go but hopefully we can get there some day :slight_smile:

No problem! You’ve done a good job, more than I can/have! :slight_smile:

Hi, I am very new to openhab having made the change from homeassistant. I have installed the ring binding and was wondering if/how it is possible to display current battery percentage. Be gentle with me - noob, thanks