We have moved at community.getvera.com

Author Topic: Doorbird API released  (Read 20269 times)

Offline prophead

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +6/-3
Re: Doorbird API released
« Reply #30 on: December 08, 2016, 03:19:56 pm »
I'm researching door bells / door video intercoms right now. Is the doorbird the only one that integrates with Vera right now? Can it trigger turning on additional cameras around the porch? That is what I'd like to do ultimately with it.

TIA.
You can set it to run a scene, then in that scene you can do anything, trigger other cameras, run luup code, anything your vera can do.
|-<:)

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 904
  • Karma: +5/-5
Re: Doorbird API released
« Reply #31 on: December 08, 2016, 07:06:28 pm »
I'm researching door bells / door video intercoms right now. Is the doorbird the only one that integrates with Vera right now? Can it trigger turning on additional cameras around the porch? That is what I'd like to do ultimately with it.

TIA.
You can set it to run a scene, then in that scene you can do anything, trigger other cameras, run luup code, anything your vera can do.
|-<:)

That's pretty cool.. The Doorbird is very spendy and I'm still researching things.

I'm looking into a Yale Door Look which costs the same as a Ring and according to a phone call to Yale CS this morning will have z-wave coming out 1Q2017. I might just wait but I got to thinking that if it is WiFi, could it be possible to hook it into the Vera anyhow? I'm going to call back tomorrow and see if it is an ip camera which should show as a generic ip camera on Vera, don't you think?

Offline Dansker

  • Full Member
  • ***
  • Posts: 108
  • Karma: +0/-0
Re: Doorbird API released
« Reply #32 on: December 09, 2016, 05:39:01 am »
OKAyyyy, thank you very much, sigh!

Will try this Monday when on site. Can you ask the Doorbird to send both motion as well as button push notifications?

All the best!

Offline prophead

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +6/-3
Re: Doorbird API released
« Reply #33 on: December 09, 2016, 11:55:38 am »
OKAyyyy, thank you very much, sigh!

Will try this Monday when on site. Can you ask the Doorbird to send both motion as well as button push notifications?

All the best!
Yes, I have both going, the motion turns on the porch light (at night) and notifies my phone.  The bell rings the chimes and turns on the hall light (if it's night)
|-<:)

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 904
  • Karma: +5/-5
Re: Doorbird API released
« Reply #34 on: December 09, 2016, 02:25:20 pm »
OKAyyyy, thank you very much, sigh!

Will try this Monday when on site. Can you ask the Doorbird to send both motion as well as button push notifications?

All the best!
Yes, I have both going, the motion turns on the porch light (at night) and notifies my phone.  The bell rings the chimes and turns on the hall light (if it's night)
|-<:)

I suppose that could be used to trigger another camera on the porch or front yard too..

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 904
  • Karma: +5/-5
Re: Doorbird API released
« Reply #35 on: December 09, 2016, 02:26:44 pm »
I'm researching door bells / door video intercoms right now. Is the doorbird the only one that integrates with Vera right now? Can it trigger turning on additional cameras around the porch? That is what I'd like to do ultimately with it.

TIA.
You can set it to run a scene, then in that scene you can do anything, trigger other cameras, run luup code, anything your vera can do.
|-<:)

That's pretty cool.. The Doorbird is very spendy and I'm still researching things.

I'm looking into a Yale Door Look which costs the same as a Ring and according to a phone call to Yale CS this morning will have z-wave coming out 1Q2017. I might just wait but I got to thinking that if it is WiFi, could it be possible to hook it into the Vera anyhow? I'm going to call back tomorrow and see if it is an ip camera which should show as a generic ip camera on Vera, don't you think?

So I called Yale again and found out this.

Offline Jamr

  • Hero Member
  • *****
  • Posts: 847
  • Karma: +30/-8
Re: Doorbird API released
« Reply #36 on: March 28, 2017, 01:07:23 am »
It seems no one with coding experience is willing to make a Vera add on for this device. Unfortunately I have no coding experience but would love to document a way for us non coders to add this device to our Veras.
Is there someone here that has got their Doorbird and Vera to work together to contact me so we can get these two great devices to work together and document the process.
I have also tried this persons directions and none of the directions seem to work, but I do like his direction as it seems his Vera is talking directly to the DB so if the internet is down, my DB/Vera scenes will still run. If i understand it correctly, subscrbing uses the internet and thus, no internet, no scenes.
https://marchome.files.wordpress.com/2016/10/how-to-use-doorbird-on-vera-rev-1.pdf

Please respond here if you are interested in doing this with me.
Thanks.

Offline prophead

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +6/-3
Re: Doorbird API released
« Reply #37 on: March 28, 2017, 02:25:17 am »
I have my DB and Vera working perfectly together, no plugin needed.
If you read this entire thread you will see how.
http://forum.micasaverde.com/index.php/topic,34857.msg290326.html#msg290326
|-<:/

It seems no one with coding experience is willing to make a Vera add on for this device. Unfortunately I have no coding experience but would love to document a way for us non coders to add this device to our Veras.
Is there someone here that has got their Doorbird and Vera to work together to contact me so we can get these two great devices to work together and document the process.
I have also tried this persons directions and none of the directions seem to work, but I do like his direction as it seems his Vera is talking directly to the DB so if the internet is down, my DB/Vera scenes will still run. If i understand it correctly, subscrbing uses the internet and thus, no internet, no scenes.
https://marchome.files.wordpress.com/2016/10/how-to-use-doorbird-on-vera-rev-1.pdf

Please respond here if you are interested in doing this with me.
Thanks.

Offline prophead

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +6/-3
Re: Doorbird API released
« Reply #38 on: March 28, 2017, 02:34:32 am »
If you subscribe (which is a one-time thing) using your vera's LAN ip address the http call to your vera does not need to touch the internet.  Mine (hard wired ethernet) has has worked 100% of the time.

|-<:)

...If i understand it correctly, subscrbing uses the internet and thus, no internet, no scenes.
...

Offline Albert1

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +1/-0
Re: Doorbird API released
« Reply #39 on: April 08, 2017, 12:18:01 pm »
For the camera to work I used: YOUR_IP://bha-api/image.cgi?http-user=DOORBIRD_USER&http-password=DOORBIRD_PASSWORD.

image.cgi will allow taking and saving pictures. you will see the image under cameras as well as when you select it
video.cgi  will allow you to see live video under cameras. However it does not work when you select it. It will say no connection

My DoorBird is wired with PoE. I have implemented a scene that will turn lights on at night when the gate is open. I follow the  instruction posted earlier here:

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=YOUR_DOORBELL_SCENE_ID&event=dooropen&subscribe=1

Offline Jamr

  • Hero Member
  • *****
  • Posts: 847
  • Karma: +30/-8
Re: Doorbird API released
« Reply #40 on: April 19, 2017, 02:30:40 am »
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://<deviceip>/bha-api/light-on.cgi) I know the URL works as I have tested it in my browser.
http://www.doorbird.com/downloads/api_lan.pdf?rev=0.16

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?

Offline Albert1

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +1/-0
Re: Doorbird API released
« Reply #41 on: April 19, 2017, 09:46:50 am »
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')

Offline Jamr

  • Hero Member
  • *****
  • Posts: 847
  • Karma: +30/-8
Re: Doorbird API released
« Reply #42 on: April 19, 2017, 01:35:36 pm »
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')

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?

Offline Albert1

  • Sr. Newbie
  • *
  • Posts: 26
  • Karma: +1/-0
Re: Doorbird API released
« Reply #43 on: April 19, 2017, 03:59:37 pm »
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

Offline Jamr

  • Hero Member
  • *****
  • Posts: 847
  • Karma: +30/-8
Re: Doorbird API released
« Reply #44 on: April 24, 2017, 09:07:37 pm »
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.