Doorbird video doorbell binding

hmmm, can’t find this option in the app…
Is that possible? Could it be under another name?

EDIT: sorry, to fast.
It’s activated (under doorbell). Motion and geofencing are off…

Ok well, then let’s see what TRACE mode shows when the doorbell is pressed.

Just called home, to push the button ( :stuck_out_tongue: ), but nothing is coming in.
Push has been done at 16:23:58. As you can see in the Perry_DoorbellHistoryTime.

As long as I don’t ask for something (through fe sitemap), nothing is coming in…

2019-06-08 15:13:14.595 [nt.ItemStatePredictedEvent] - Perry_DoorbellHistoryIndex predicted to become 1
2019-06-08 15:13:16.174 [vent.ItemStateChangedEvent] - Perry_DoorbellHistoryImage changed from raw type (image/jpeg): 24189 bytes to raw type (image/jpeg): 26750 bytes
2019-06-08 15:13:16.175 [vent.ItemStateChangedEvent] - Perry_DoorbellHistoryTime changed from 2019-06-08T14:19:59.000+0200 to 2019-06-08T15:10:31.000+0200
2019-06-08 16:29:13.399 [ome.event.ItemCommandEvent] - Item 'Perry_DoorbellHistoryIndex' received command 1
2019-06-08 16:29:13.400 [nt.ItemStatePredictedEvent] - Perry_DoorbellHistoryIndex predicted to become 1
2019-06-08 16:29:15.950 [vent.ItemStateChangedEvent] - Perry_DoorbellHistoryImage changed from raw type (image/jpeg): 26750 bytes to raw type (image/jpeg): 22184 bytes
2019-06-08 16:29:15.950 [vent.ItemStateChangedEvent] - Perry_DoorbellHistoryTime changed from 2019-06-08T15:10:31.000+0200 to 2019-06-08T16:23:58.000+0200

2019-06-08 15:04:07.191 [DEBUG] [ng.doorbird.internal.DoorbirdHandler] - Downloading image using url=http://perry/bha-api/history.cgi?event=doorbell&index=1
2019-06-08 15:13:14.604 [DEBUG] [ng.doorbird.internal.DoorbirdHandler] - Downloading image using url=http://perry/bha-api/history.cgi?event=doorbell&index=1
2019-06-08 16:29:13.401 [DEBUG] [ng.doorbird.internal.DoorbirdHandler] - Downloading image using url=http://perry/bha-api/history.cgi?event=doorbell&index=1

Settings in karaf

openhab> log:list
Logger                                             │ Level
org.openhab                                        │ INFO
org.openhab.binding.doorbird                       │ TRACE

That’s odd that you’re seeing no events (including keepalives) coming from the doorbird. You should see something like this every 6-8 seconds. These are the keepalive packets, where

  • 12058 is a sequence number
  • gzrizb is the user id
  • 1560005488 is the timestamp
2019-06-08 10:51:21.699 [TRACE] [nhab.binding.doorbird.internal.DoorbirdUdpListener] - Got datagram of length 23 from 192.168.10.87
2019-06-08 10:51:21.699 [TRACE] [rg.openhab.binding.doorbird.internal.DoorbirdEvent] - Received event not a doorbell event: 12057:gzrizb:1560005481
2019-06-08 10:51:21.699 [TRACE] [nhab.binding.doorbird.internal.DoorbirdUdpListener] - Got datagram of length 23 from 192.168.10.87
2019-06-08 10:51:21.699 [TRACE] [nhab.binding.doorbird.internal.DoorbirdUdpListener] - Dropping duplicate packet

2019-06-08 10:51:28.700 [TRACE] [nhab.binding.doorbird.internal.DoorbirdUdpListener] - Got datagram of length 23 from 192.168.10.87
2019-06-08 10:51:28.700 [TRACE] [rg.openhab.binding.doorbird.internal.DoorbirdEvent] - Received event not a doorbell event: 12058:gzrizb:1560005488
2019-06-08 10:51:28.700 [TRACE] [nhab.binding.doorbird.internal.DoorbirdUdpListener] - Got datagram of length 23 from 192.168.10.87
2019-06-08 10:51:28.700 [TRACE] [nhab.binding.doorbird.internal.DoorbirdUdpListener] - Dropping duplicate packet

More questions…

  • What model doorbird?

  • What firmware version is your doorbird running? Mine is 000118.

  • In the Admin section of the app, for the user you’ve configured in the Doorbird thing, what are the Permissions? Mine are all checked. Watch Always, History, Motion, Geofencing, API-Operator, Relay1.

  • Doorbell: D101s

  • Firmware: 000119

  • In my ‘user settings’, the only thing that wasn’t selected, was the API operator. I’ve enabled this, but doesn’t change a lot. The app tells me that it can take up 5 minutes? It’s now 15 minutes, but no luck. But maybe it has an issue that I’m remote? So I’ll try once more in about 2 hours when I’m home.

  • What I’m wondering, how are those events triggered?
    Is that between openhab and the doorbird? Or between openhab and internet? Or…
    I’ve got a firewall in between, and maybe he blocks something? Can’t see anything in the firewall logs, but you never know… Normally everything can go out without any problem. Coming in…

Ok, so you have a newer firmware. That’s one thing that’s different.

Yes, this needs to be checked.

Directly from the doorbird to openHAB. No Internet to get in the way. :wink:

The doorbird broadcasts on this port.

14:39:12.341 [DEBUG] [doorbird.internal.DoorbirdUdpListener] - Listener got UDP socket on port 6524 with timeout 3000

By any chance, do you have multiple network interfaces in your server?

I’m using opnsense (firewall) with virtual VLANs.

Is there any way you can monitor traffic coming from the doorbird? Not sure if it’s WiFi or hardwired… It would be helpful to find out if the doorbird is actually broadcasting events. Also, if openHAB and the doorbird are on separate VLANs, I’m not sure the UDP packets will route.

1 Like

Quick Google search shows lots of posts with issues routing UDP across VLANs. Maybe there needs to be an explicit route set up for that.

Edit: I’m not much of a VLAN expert, so if that’s the issue, I can’t be of much help…

No. It won’t. :blush:

And the endresult after changing the VLAN for the doorbird:

2019-06-08 19:53:08.123 [vent.ItemStateChangedEvent] - Perry_Pressed changed from OFF to ON
2019-06-08 19:53:08.161 [vent.ItemStateChangedEvent] - Perry_PressedImage changed from raw type (image/jpeg): 22184 bytes to raw type (image/jpeg): 21434 bytes
2019-06-08 19:53:08.161 [vent.ItemStateChangedEvent] - Perry_PressedTime changed from 2019-06-08T16:23:58.000+0200 to 2019-06-08T19:53:08.000+0200

Some debug:

2019-06-08 19:58:13.779 [TRACE] [oorbird.internal.DoorbirdUdpListener] - Got datagram of length 20 from 192.168.222.6
2019-06-08 19:58:13.780 [TRACE] [ding.doorbird.internal.DoorbirdEvent] - Received event not a doorbell event: 55:ghefvw:1560016692
2019-06-08 19:58:13.780 [TRACE] [oorbird.internal.DoorbirdUdpListener] - Got datagram of length 20 from 192.168.222.6
2019-06-08 19:58:13.780 [TRACE] [oorbird.internal.DoorbirdUdpListener] - Dropping duplicate packet

So your binding works greats! This all was a bad setup between the doorbird node and the server.
Thanks a lot for your patience and support!!!

Next step, trying to let openhab show the doorbird image to the television… :wink:

1 Like

Excellent. Glad we got it working!

Let me know if you run into any issues, or have any ideas for additional features.

Is it possible that the app button ‘open door1’ isn’t sending the info in openHAB?
I was trying to link my gate (knx item) with the key button in the doorbird app.
Or am I missing a setting in the doorbird app? The motion and ring button actions are arriving.

Switch   Perry_OpenDoor1 "Open Deur [%s]" <switch>        ["Switch"] { channel="doorbird:d101:97cb8f27:openDoor1", expire="5s, command=OFF" }

The Doorbird api only passes the motion and ring events. I’ve requested that they add other events, but they seem to be a little slow to add functionality.

Thank you!!! Is you need son test on d210, i have one. Tell me!

I believe @dastrix80 is running it on a D210. But you can test as well.

Im using a D2101V yep, works well!

Hi Mark,

Not sure what appears to have changed in my system but the DoorBell_Pressed doesnt appear to be functioning recently. The console doesnt indicate it switches on, but the montage images etc are all working just fine.
Any suggestions? I restarted the binding to no avail

Cheers
Kris

Hmm. That’s odd.

I’m not sure what you mean by this.

In your rules, are you using received command or changed. Perhaps try received update to see if that makes a difference.

HI Mark, im using:


rule "Annouce Visitors"
    when

Ill try a change. The doorbird it self doesnt require any settings for the switched to be turned on, when someone presses the bell, right?
        Item Doorbell_Pressed received command ON