SOLUTION: Link Doorbird app relay button to OpenHAB

Hello

me again.
I got that setup working but i have another request.
I want to trigger a chromecast when someone rings the bell on my doorbird.
Unfortunately with the original doorbird binding i have delays up to 10 s so i cannot use the binding directly.
I remembered that here might be another solution waiting for me.
Is it possible to use this way to determine the doorbel_pressed item?

Thank you!

Hi @Jonas88,

If you can trigger what you want using the basicui, it should be possible to replicate it quite easily using this method - all we are doing here is getting the Doorbird to make a call to the basicui.

e.g. I made a switch called Doorbird_Relay_Callback as a ‘model’ for the relay, and switched it with the command below:

https://[your_openHAB_ip]:8443/basicui/CMD?Doorbird_Relay_Callback=ON

If you can trigger whatever you want to do on Chromecast with a single command, it should be fine - e.g. you set up a switch that plays a song, Chromecast_Play_Something, then you would trigger it by changing the line in my example at the top of the thread to:

https://[your_openHAB_ip]:8443/basicui/CMD?Chromecast_Play_Something=ON

Do note that the https call is just a command, so you aren’t limited to ON / OFF, you can send anything that the basicui would accept as a command, and it will be parsed.

I hope this helps!

1 Like

Thank you. I ne tried to replicate it but i cannot find an option in the doorbird ui to link the http call to the „button pressed“ event.

Have a look in ‘Expert Settings’ > ‘Schedule for Doorbell’ - at the top left, you should have a drop down, with the default option being ‘Push Notifications’. You’ll find HTTPS calls in there, and you can set the schedule. Note that you will need to set up the HTTPS call first, as per step 3 in the first post.

1 Like

thanks a lot! i did not know there was a dropdown menu.
it works flawlessly :slight_smile:

Very nice Andrew, this is exactly what I needed to control my door strike other than wiring it directly to the outside Doorbird/relay which seems somewhat insecure?

Glad it was helpful!

When I was setting up myself, I did entertain the thought of hard-wiring the relay back to the GPIO of the RPi I run OpenHAB on also, but I agree with you - it feels overcomplicated, given the doors can already be opened by an app.

Hi guys! First of all, this is working fine :slight_smile: But actually there is one thing: this is working only when the device where the Doorbird app is used in this moment is in the local network. This means I need to be at home. I know that there are usecases where this is no problem, but actually I would like to open the garagedoor (just for example) for the postman also when I am not at home. Currently I need to switch from the Doorbird app to the Openhab app in order to open it. It would be great if I could do directly in the Doorbird app also. I tried a HTTPS-Call via myopenhab.org/rest, but it did not work at all (HTTP error).

https:myopenhab.org:443/rest/items/myITEM_XY=ON

Not sure whether just the https-call sytax is wrong or it’s not working via myopenhab at all. Do you guys know if this is possible and if so, how?

Maybe I don’t get it right. But since I own a Doorbird and everything you asked for works with my setup… the Doorbird doorbell itself sends the command to open the door / garagedoor to openHAB. Your app on your mobile connects to the Doorbird. So if the Setup works when you are at home it does not make sense to me if does not work if you are outside your lan.

Can you confirm your setup works when you are at home? Maybe there is issue with fixed / dynamic ip‘s.

As long as the Doorbird and openHAB Server are in the same Network and you do not turn off your router when leaving the house it should work …

Would this work to get keypad events from the door bird? The API documentation has stated they were coming soon to the http commands for about the last 2 years at least so I’ve looking for a way to get them into openhab.

Hi @xeroiv ,
If you can set up an event in the Doorbird admin page, you can set up a corresponding event in openHAB - I’m assuming you are working with a larger Doorbird if you are talking about a keypad? I have only the D101S, and the guide above pretty much maps out what you would need to do to tie an event to a doorbell button press - if there’s a similar function for your Doorbird, you should be good to go!

Hi @wosch87 - I think @chrode is right, it sounds like something isn’t right with your setup (I’m not sure what exactly). My understanding (and how it appears to work in my install) is that once you have the Doorbird configured, it is making the calls itself (from within your LAN), and so it should work the same with respect to your openHAB instance when you trigger the door release from the app, even outside the network.

One thing to keep in mind is that I don’t think the Doorbird can make advanced REST calls, it’s really just hitting a particular web address, so I don’t think it will work with the myopenhab.org REST API - this is why you need to install the basicui as part of this guide.

You might want to check you don’t have your Doorbird app in ‘LAN only mode’ (first page of settings in the app) - I don’t know what impact this would have, but I can imagine it might produce the result you get.

Hi @chrode and @S13_Mills!

To be honest, I am not 100% sure what I did when I tried to get it working a few month ago. It defenitly did work within my local network but not outside of it (shut of WIFI on my mobile). However, I now tried again and you guys are right - it is working like a charm! :slight_smile:

I am wondering if there was an issue within my network since I switched to another provider and I am using a Fritzbox since 3 weeks or so :thinking:

Thank you both for your support!

1 Like

Hi Kris, thats what i am looking for… but i found no switch/status for the rfid usage… can you please post your code to understand how you did it?

kind regards, Oliver

Hi again, nobody here who can give me a hint how to trigger a rule when rfid chip is used to open the door?

Hi @ollys - I couldn’t see exactly how you’d do this in the LAN API, but @dastrix80 mentioned in this post above that they had this working (even based on individual tags), perhaps they can help?

It’s quite likely this will be a ‘monitor’ request, and the tag information appears in the returned info.

I don’t use RFID with my own Doorbird, so I can’t help I’m sorry!

you can achive this by using the webhock binding ([webhook] New, very simple binding for listening incomming http requests) in combination with the doorbird https calls. Webhock binding is not an official binding.

you will need different https doorbird commands for different rfid chips that are called from doorbird, like

https://address.of.openhab:port/httplistener/httplistener_command?action=door_open&requester=personA

The “action” and the “reporter” are parsed within openhab by webhook binding.

You can also use Node-Red for this. See here:

Hi, i was visiting the oher post… maybe checking the next days wether the webhock binding will work in oh 4.1…

Hi Sebastian, to use node red only for this is to much overload… will look for another solution…