Doorbird API released

Thanks for the help here. I now have scenes running off of the button press and the motion trigger.
One problem I cant figure out.
I would like to trigger the IR of the Doorbird with the Vera.

The API gives me the URL to do this. (http:///bha-api/light-on.cgi) I know the URL works as I have tested it in my browser.

I found the Loop code that should trigger a URL ( local status, result = luup.inet.wget(“http://www.yahoo.com”, 5)) I replaced the yahoo address with the URL above so it looks like this. local status, result = luup.inet.wget(“http://XX.XX.XX.XX/bha-api/light-on.cgi”, 5) With the X’s being my IP of the Doorbird. I placed this loop code in the loop section in the scene.
http://wiki.micasaverde.com/index.php/Luup_Scenes_Events#Invoke_HTTP_URL_with_GET_request_.28Method_1.29

I have created a virtual switch and a scene that triggers when the switch is on. I know the scene triggers.
The problem it seems is that the scene will not execute the Loop code or the loop code does not work.

Anyone know what I am doing wrong?

Hi Jamr,

I think your syntax is incorrect. I use the following to send a command to open/close the gate

luup.inet.wget(‘http://YOUR_IP/bha-api/open-door.cgi?http-user=NAME&http-password=PASSWORD’)

so to turn on the IR I would use:

luup.inet.wget(‘http://YOUR_IP/bha-api/light-on.cgi?http-user=NAME&http-password=PASSWORD’)

[quote=“Albert1, post:42, topic:189761”]Hi Jamr,

I think your syntax is incorrect. I use the following to send a command to open/close the gate

luup.inet.wget(‘http://YOUR_IP/bha-api/open-door.cgi?http-user=NAME&http-password=PASSWORD’)

so to turn on the IR I would use:

luup.inet.wget(‘http://YOUR_IP/bha-api/light-on.cgi?http-user=NAME&http-password=PASSWORD’)[/quote]

You are right Albert1. Before seeing your post, I thought I would try it again with the user name and password so I tried this syntax and it worked!
http://<DB_USER_NAME>:<DB_PASSWORD>@<DB_IP_ADRESS>/bha-api/light-on.cgi

So the entire Loop code to turn on the Doorbird IR is this.
local status, result = luup.inet.wget(“http://<DB_USER_NAME>:<DB_PASSWORD>@<DB_IP_ADRESS>/bha-api/light-on.cgi”, 5)

Is there any operational difference in this syntax and your syntax?

The Loop code provided via Vera includes a “, 5)” at the end and says " – 5 Second timeout" on top of this code. Can I assume this stops running the code after 5 seconds? Is it necessary?

Well, you cannot argue with success! I suppose that the order does not affect the result.

Regarding the 5 sec I do not know enough to say why is there.

Sent from my iPhone using Tapatalk

Ok I need to upgrade my automation.
I currently have scenes being triggered by the Doorbirds motion and button press. This only gives me the ability to trigger one scene.
I would like to trigger a virtual device instead and trigger scenes with this device as it will give me more flexibility and the ability to trigger multiple scenes when that virtual device is triggered.

I currently have obtained this URL to trigger a virtual sensor but it does not work.
http://<Doorbird_IP>/bha‐
api/notification.cgi?url=http://<Vera_IP>:3480/data_request?id=action%26DeviceNum=<Virtual_Sensor_ID>%26s
erviceId=urn:dcineco‐
com:serviceId:VMotion1%26action=SetTripped&event=doorbell&relaxation=120&subscribe=1

When I enter this URL I get a 404 error and yes I did correct the information in between the <>.
Anyone know where the error is?

This URL works for triggering a scene and successfully turns the subscription on and off.
http://<YOUR_DOORBIRD_IP>/bha-api/notification.cgi?url=http://<YOUR_VERA_IP>:3480/data_request?id=action%26serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1%26action=RunScene%26SceneNum=<SCENE_#>&event=motionsensor&subscribe=1

Any help is appreciated.
Thanks.

Jamr what I’ve done is to create a multiswitch. Then in the scenes triggered by Doorbird (doorbell, gate opening and motion sensed) add the multiswitch device, setting button 1,2 or 3 for each case. Be sure to set them as pulse buttons so they will go on for 200 ms. And then off again. Then you can create scenes when the desired multiswitch action is triggered.

Sent from my iPhone using Tapatalk

sorry if I don’t sound technical, but I need to verify that it would be a system that would suit my needs.

I would like to install a doorbird at my driveway gate and be able to open the gate from my iPhone. I have been using Homewave.
I am not sure I understand how it works. Is it possible to fully integrate the video feed as well as triggering the opening of the gate from within homewave ?
Or… is it possible to open the gate from within the doorbird app. How would I do that ? Is it just a question of wiring the doorbird to the gate ? I looked at a video online where the guy clicks to open the garage from within the doorbird app but it seems to take him to the lift master app to open the garage. Is there a way to link that button and automatically open homewave to open the gate ?
Either or is fine, but if I have to tell my wife to use 2 different apps to talk to people and then open the gate, that will be a no go. LOL

As far as connecting the gate to vera, can I use the same system as was described to open a garage door with a relay ?

Thanks

the door bird API works perfectly. Both for upload of image, and for creating a virtual doorbell. I have my SONOS announce the doorbell using the text to speech capability of the SONOS plugin.

Serhito,
It should work with home wave. Just follow the instructions posted earlier.

The Doorbird has connections on the back for Ethernet, relay, gate, doorbell and power. You will need to wire these. I use Ethernet with PoE. The app works very well.

With Vera I have video and scenes for the doorbell, open/stop/close the gate, gate opening, and motion. The only thing that cannot be done is to talk and listen.

Sent from my iPhone using Tapatalk

[URL=http://www.doorbird.com/manual?mobile=true]Video door intercom and video doorbell for iOS, Android, iPhone, iPad, Smartphone and Tablet

Sent from my iPhone using Tapatalk

How to create a session in doorbird. I have been trying this way http://ip/bha-api/getsession.cgi?httpuser=User0001&http-password=NwJ. it is working on the browser. if I test the same Url to on postman it is giving 401 Unauthorized. is it any syntax error here. please any one help me

You need a dash in your http-user parameter (shown here, yours missing) according to the documentation (note the dash is present in the password parameter name).

1 Like

Thanks it is worked. session is created

I new for the development field.
How to test Sip Call. whether call is successfully worked or not. any third software available to test Audio receive and audio transmit. i tried to test audio transmit by Vlc. it did not work. what should i choose to test sip and audio receive,audio transmit

Hey guys, I have a Doorbird installed & powered by a regular 24v doorbell power supply. Can I integrate the Doorbird with Vera without being wired to teh LAN?