We have moved at community.getvera.com

Author Topic: Doorbird API released  (Read 20274 times)

Offline o0heavyb0o

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Doorbird API released
« Reply #15 on: August 16, 2016, 06:58:16 pm »
Yeah, I finally got the Doorbird completely integrated into my Vera.  Now I get reliable (so far) wired LAN triggers instead of my kludgy old magnetic sensor on the coil trick.  And it was good.  Porch and hall lights come on at night and mp3 alarms go off in every room, some of which were out of hearing range of the only physical chime in the house.  I could have my pick of ordinary bell and chime sounds, but the Jetsons theme seemed more appropriate.  It does a take a few seconds for all the operations to complete, but it's certainly better then missing the bell.  I've had the camera integrated for a few months but forgot to come back to look at the notification API.  Much happier with my Doorbird now.  Prophead approves.
|-<:)

I would also greatly appreciate a guide on how you got the doorbird to play nice with Vera. I'm looking into buying it myself and would love to be able to trigger events with the doorbell or motion detected through it. Thanks man!

Offline prophead

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +6/-3
Re: Doorbird API released
« Reply #16 on: August 16, 2016, 08:33:53 pm »
prophead! please Can you described the full course to integrate the doorbird to Vera? Thanks!!
The first message on this thread is the API documentation which can explain it better then I can.

There is only one Vera gotcha, when you subscribe to notifications (with a vera doorbell scene URL) you have to replace the ampersands (&) in the code with the URL encoded code, %26.  Leave the last 2 though as they are part of the doorbird side of the request.  Here is my subscription request, which you only have to do once:

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=doorbell&subscribe=1

The doorbird then hits that url everytime the button is pressed (or motion is detected if you change the subscription keyword).
The camera information is in the API doc also, it appears fine for me, but does not work on the app like my other cameras for some reason.  No big because Doorbird has it's own app which you have to use if you want to talk to the door anyhow.  My traditional physical chime is also wired into the Doorbird.

You can make your doorbell scene do anything obviously, I have mine turn on the lights at night and alert my phone and play the chime on 4 aeotec "doorbell" mp3 receivers around my house.  I could do the whole capture video and put it on the TV scene, but I never watch TV so the app's easier.  Theres no motion sensitivity adjustment for the motion detection so mine goes off constantly and is useless, but they have promised range adjustment for the last six months.  I have mine all hard wired with power and ethernet so it's rock solid, no sketchy wireless or batteries to worry about.  I'm happy with it now that I've got the HA integration.

|-<:)
« Last Edit: August 17, 2016, 01:49:42 am by prophead »

Offline javed222uy

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: Doorbird API released
« Reply #17 on: August 17, 2016, 12:00:51 pm »
Thank you! Actually I have problems in first step.  I can view the snapshot, but not I Live mode. an error ?Not Connected?
I had implemented as a generic ip camera, and had used this URL: http://192...../bha-api/video.cgi
Which would be the problem?


Offline prophead

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +6/-3
Re: Doorbird API released
« Reply #18 on: August 18, 2016, 01:00:06 pm »
Thank you! Actually I have problems in first step.  I can view the snapshot, but not I Live mode. an error ?Not Connected?
I had implemented as a generic ip camera, and had used this URL: http://192...../bha-api/video.cgi
Which would be the problem?
Forget about Vera for a moment, does that URL work in your browser?
I am using that URL and works fine for me.
Maybe you don't have enough Wi-Fi connectivity for video?  Mine's wired ethernet.
|-<:)

Offline javed222uy

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: Doorbird API released
« Reply #19 on: August 18, 2016, 04:51:03 pm »
Thanks porhead!
the URL works ok on browser!
my doorbird had wired ethernet!
Actually worked ok with the android app!

Now, on Vera, i can see small image on Cameras TAB
but I cannot see in Live mode... (error: Not Connected)

I had an Foscam cam without problems.

J

Offline prophead

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +6/-3
Re: Doorbird API released
« Reply #20 on: August 18, 2016, 05:16:28 pm »
Thanks porhead!
the URL works ok on browser!
my doorbird had wired ethernet!
Actually worked ok with the android app!

Now, on Vera, i can see small image on Cameras TAB
but I cannot see in Live mode... (error: Not Connected)

I had an Foscam cam without problems.

J
the API will only let you see the 640x480 image, thus, no large image.
|-<:)

Offline javed222uy

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: Doorbird API released
« Reply #21 on: August 18, 2016, 07:38:50 pm »
Thanks Man!

Now all is right!!

For Live mode, I must used the followig URL

Syntax:
http://<device-ip>/bha-api/image.cgi

J

Offline agame

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Re: Doorbird API released
« Reply #22 on: November 05, 2016, 08:30:39 am »
Notifications now work perfectly from the Doorbird. The virtual motion sensor associated with the bellpress triggers a scene that generates a voice announcement from my Sonos. A couple of seconds lag.

Offline tb001

  • Sr. Member
  • ****
  • Posts: 394
  • Karma: +5/-2
Re: Doorbird API released
« Reply #23 on: November 05, 2016, 01:44:17 pm »
Agame, great to hear! We're hard wiring our doorbirds next weekend. They're working fairly well if we're all on the LAN, but the video is a little spotty remotely.

Wondering--is there an easy way to text a pic from the system on motion/bell push? I think I can set this up through blue iris, but would rather use DoorBird motion sensor as it seems to cut down on false alarms vs blue iris

Offline LindsiWains

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +0/-40
Doorbird API released
« Reply #24 on: November 14, 2016, 08:34:04 am »
Seems right to me. I just did a similar thing for a customer but not with the Pi. How do you like the Doorbird so far? I thought it was a nice product.

Offline Dansker

  • Full Member
  • ***
  • Posts: 108
  • Karma: +0/-0
Re: Doorbird API released
« Reply #25 on: December 07, 2016, 04:42:27 am »
prophead! please Can you described the full course to integrate the doorbird to Vera? Thanks!!
The first message on this thread is the API documentation which can explain it better then I can.

There is only one Vera gotcha, when you subscribe to notifications (with a vera doorbell scene URL) you have to replace the ampersands (&) in the code with the URL encoded code, %26.  Leave the last 2 though as they are part of the doorbird side of the request.  Here is my subscription request, which you only have to do once:

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=doorbell&subscribe=1

The doorbird then hits that url everytime the button is pressed (or motion is detected if you change the subscription keyword).
The camera information is in the API doc also, it appears fine for me, but does not work on the app like my other cameras for some reason.  No big because Doorbird has it's own app which you have to use if you want to talk to the door anyhow.  My traditional physical chime is also wired into the Doorbird.

You can make your doorbell scene do anything obviously, I have mine turn on the lights at night and alert my phone and play the chime on 4 aeotec "doorbell" mp3 receivers around my house.  I could do the whole capture video and put it on the TV scene, but I never watch TV so the app's easier.  Theres no motion sensitivity adjustment for the motion detection so mine goes off constantly and is useless, but they have promised range adjustment for the last six months.  I have mine all hard wired with power and ethernet so it's rock solid, no sketchy wireless or batteries to worry about.  I'm happy with it now that I've got the HA integration.

|-<:)

Need a pointer: where to obtain the YOUR_DOORBELL_SCENE_ID value for any of my scenes (I assume this is an integer value). Thank you for your efforts!

Offline prophead

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +6/-3
Re: Doorbird API released
« Reply #26 on: December 07, 2016, 09:56:34 am »

Need a pointer: where to obtain the YOUR_DOORBELL_SCENE_ID value for any of my scenes (I assume this is an integer value). Thank you for your efforts!

This can be found in the advanced tab of the scene or device
|-<:)

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 904
  • Karma: +5/-5
Re: Doorbird API released
« Reply #27 on: December 07, 2016, 01:13:33 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.

Offline Dansker

  • Full Member
  • ***
  • Posts: 108
  • Karma: +0/-0
Re: Doorbird API released
« Reply #28 on: December 08, 2016, 02:57:16 am »

Need a pointer: where to obtain the YOUR_DOORBELL_SCENE_ID value for any of my scenes (I assume this is an integer value). Thank you for your efforts!

This can be found in the advanced tab of the scene or device
|-<:)

OK, know where to find that for devices, but where is the advanced tab for scenes? Thanks!

Offline prophead

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +6/-3
Re: Doorbird API released
« Reply #29 on: December 08, 2016, 03:18:27 pm »

Need a pointer: where to obtain the YOUR_DOORBELL_SCENE_ID value for any of my scenes (I assume this is an integer value). Thank you for your efforts!

This can be found in the advanced tab of the scene or device
|-<:)

OK, know where to find that for devices, but where is the advanced tab for scenes? Thanks!
it's on the main scenes screen in brackets right after the scene name.
|-<:)