Jump to content
  • 0

Doorbird


Question

  • Answers 49
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

Duplicate of mine post.

Hello guys,   @zaanhoeve and @gusqua, i'm glad that VD and camera is working.   @zaanhoeve, I do not think, that Fibaro app is suitable to get sound and speech, even if it is some

@jakub.jezek I have placed a door / window sensor to get the push button signal from doorbird. Then I've built a scene with this, to send to my iphone an Interactive PUSH notifications telling me th

Recommended Posts

  • 0

Tried about every combination possible to get the DoorBird to show in my HC2.

 

Till now no luck.

 

When accessing the DoorBird with VLC it does work fine (ie: http://ggzqog0001:[email protected]/bha-api/video.cgi)

 

In HC2 I added the Axis generic plugin, opened it and added under advanced > IP address: ggzqog0001:[email protected]
I left the fields Username and password empty.
I use for the JPG stream: bha-api/image.cgi

For MJPG stream I use the following path: bha-api/video.cgi
 

Did I miss something?

Link to post
Share on other sites
  • 0
27 minutes ago, Guest said:

Tried about every combination possible to get the DoorBird to show in my HC2.

 

Till now no luck.

 

When accessing the DoorBird with VLC it does work fine (ie: http://ggzqog0001:[email protected]/bha-api/video.cgi)

 

In HC2 I added the Axis generic plugin, opened it and added under advanced > IP address: ggzqog0001:[email protected]
I left the fields Username and password empty.
In JPG stream path: and MJPG stream path: I added: bha-api/video.cgi
 

Did I miss something?

 

Try to add camera from DoorBird by adding camera in add new device. That is how it works for me.

Link to post
Share on other sites
  • 0

Okay. That did the trick (sort of).

 

It's now showing up fine within HC2 (Windows 10), but does not show when accessed by my Android phone (using the Fibaro HC2 app).

I get the message "Error is Check MJPG settings - using JPG image now". After this I still see nothing

 

Same thing for my tablet (Android).

 

Link to post
Share on other sites
  • 0

Got it working :-)

I needed to add the password and username also in the main settings in HC2.

Link to post
Share on other sites
  • 0
On ‎12‎/‎22‎/‎2016 at 3:18 PM, jakub.jezek said:

I succesfully integrated camera from doorbird without using Axis Generic plugin.

 

IP adress you have to fill in folowing format: username:[email protected]_IP (e.g. ggxxxx0001:[email protected]).

And i fill mjpg and jpg folowing: bha-api/video.cgi

 

I have also virtual device, that controlls IR light and door Relay in Doorbird.

 

You have to just fill field for IP and port. And you have to replace XXXXXXXXXXXXXXX with username:password encoded in base64.

 

Doorbird.vfib

Hmmm...

As usually things do not work for me straight out of the box.

 

I'm now trying to add the Doorbird.vfib, and it must be an ID 10 T error (read IDIOT), but as mentioned above it does not work.

 

I see in the "Button" 1 the following code:

GET /bha-api/open-door.cgi HTTP/1.00x0D0x0AAuthorization: Basic XXXXXXXXXXXXXXX0x0D0x0A0x0D0x0A

However! I see in Button 2 this:

"GET /bha-api/light-on.cgi HTTP/1.00x0D0x0AAuthorization: Basic XXXXXXXXXXXXXXX0x0D0x0A0x0D0x0A

 

The code in button 2 starts with a quotation mark, and buttons code 1 not.

You also mention to set the port. What port number should be used? I guess port 80 ?

And yes. I did base64  encode the XXXXXXXXXXXXXXX (ie: ggzqog0001:mwamttzaa became: Z2d6cW9nMDAwMTptd2FtdHR6YWE= )

 

 

Edited by Guest
Link to post
Share on other sites
  • 0

Okay.. Got it working.

The code in button1 needs to look like this:

GET "/bha-api/open-door.cgi" HTTP/1.00x0D0x0AAuthorization: Basic XXXXXXXXXXXXXXX0x0D0x0A0x0D0x0A

The code in button 2 need to look like this!

GET "/bha-api/light-on.cgi" HTTP/1.00x0D0x0AAuthorization: Basic XXXXXXXXXXXXXXX0x0D0x0A0x0D0x0A

Where as mentioned before the XXXXXXXXXXXXXXX needs to be your: username:password and base64 encoded!

Edited by Guest
Link to post
Share on other sites
  • 0

Almost done now...

 

I would like to trigger an event on my HC2 when someone pushes the bell.

 

According to the DoorBird API documentation it is possible, but you need to set a "Notification request" (in my case event=doorbell)

The syntax is like this: http://<device-ip>/bha-api/notification.cgi?<parameter>=<value> , and when triggered than the "request" will be pushed in JSON.

 

Anyone here who might know the correct syntax?

 

Basically I would like to turn on a light (or populate a global variable) when someone pushes the bell.

 

Thank you.

Link to post
Share on other sites
  • 0

Okay.. Got the "Notification Request" working :-)

 

Here is how:

You need to tell the DoorBird what to do when the button is pushed.

You do this by sending the following "command" by using a browser.

http://AAAAA:[email protected]/bha-api/notification.cgi?url=http://DDDDD/api/sceneControl?id=EEEEE%26action=start&user=admin&password=FFFFF&event=doorbell&subscribe=1

Where AAAAA = DoorBirds username, BBBBB = DoorBirds password, CCCCC = DoorBirds IP, DDDDD = IP HC2, EEEEE = HC2's scene's ID (see below) and FFFFF = HC2's password.

 

Now create a scene doing something, and use the scene ID in the above string (see EEEEE).

 

Now when the button is pushed the DoorBird will send the notification (json formatted) to HC2, and tells it to start scene EEEEE

 

To "cancel/delete" the "Notification Request" run the same "command", but change the subscribe (at the end of the string) to 0

 

ie:

http://AAAAA:[email protected]/bha-api/notification.cgi?url=http://DDDDD/api/sceneControl?id=EEEEE%26action=start&user=admin&password=FFFFF&event=doorbell&subscribe=0

 

 

 

 

 

Edited by Guest
Link to post
Share on other sites
  • 0

You can do the same for the motion sensor and also use the door open button on the app to run a scene. You can also do &reset=1 to reset all subscriptions.

Just a small note, if you use a mac and use Postman to test out api calls to your doorbird, it has a bug that it doesn't do proper url encoding. (Just use a browser instead, less handy but works fine too, or any other tool)

 

You only need to urlencode the & sign in the =url field.

Link to post
Share on other sites
  • 0

Anyone been able to "grap" a image from DoorBird and email it?
ie:

fibaro:call(296, "sendPhotoToUser", "2");

The 296 is my DoorBird camera, and 2 the ID of my phone.

For some reason it does not work.

Other cameras work fine with the above code.

 

 

Edited by Guest
Link to post
Share on other sites
  • 0

Maybe I don't get this right....

 

I added DoorBird as a generic camera "other model" (not based on any specific model).

 

On the General settings page:

I filled in User: xxxxxx0001 and Password: as set in the DoorBird app.

 

On the Advanced settings page:

I simply put in the ip adress, eg 10.0.0.150.

JPG path: bha-api/image.cgi

MJPG stream path: bha-api/video.cgi

 

To turn on the light, I simply put in the following in one of the move buttons:  bha-api/light-on.cgi

 

The "pause" or "stop movement" button can for instance be used to open the door, with the following:  bha-api/open-door.cgi

 

 

It works.   But I wonder if I am misunderstanding something...

 

I wonder why you guys encode the user:password into Base64? Is that just to make it more secure? If so, in what way is the above method insecure on my local LAN?

 

I also wonder why you guys had to include user:[email protected] instead of simply typing the IP-address in the IP-address field?

 

As far as the Virtual device goes, I simply put the plain IP-address and port 80 in the General tab. Then it works as Guest suggested in the earlier post:

On 13.1.2017 at 10:02 PM, Guest said:

The code in button1 needs to look like this:

GET "/bha-api/open-door.cgi" HTTP/1.00x0D0x0AAuthorization: Basic XXXXXXXXXXXXXXX0x0D0x0A0x0D0x0A

The code in button 2 need to look like this!

GET "/bha-api/light-on.cgi" HTTP/1.00x0D0x0AAuthorization: Basic XXXXXXXXXXXXXXX0x0D0x0A0x0D0x0A

Where as mentioned before the XXXXXXXXXXXXXXX needs to be your: username:password and base64 encoded!

 

 

So, what am I missing here?

 

OleK

Edited by olekenneth
Link to post
Share on other sites
  • 0

Thanks a lot!  

Now, via the DoorBird app I can have video with 2-way audio, and then the "open door" button in the app sends an API call to run a scene in HC2 that can unlock the door. 

 

Video with 2-way audio is not possible through HC2 Video gate function, so that will be via the separate DoorBird app, but I can live with that. However, the Video gate function in HC2 works via DoorBirds camera, but I cannot have audio. 

 

So, this is as good as it gets for now. It works!

 

I would appreciate though, if someone could enlighten me on the security issues mentioned in my previous post....

Link to post
Share on other sites
  • 0

I do think i saw something regarding SIP and the doorbird, on hc2 doesn't it use asterisk for voip? Which should support SIP too. In theory you might say this could be possible, just don't think its on fibaro's top list of things to do then :)

Link to post
Share on other sites
  • 0

I asked the DoorBird team about the SIP.

 

They told me that they are updating the information regarding SIP regularly on http://www.doorbird.com/sip

HC2 is using a very striped down version of Asterisk.

Theoretically it would be possible to get the HC2 to communicate with the DoorBird by SIP

Edited by Guest
Link to post
Share on other sites
  • 0

DoorBird needs to have some certificate in SIP server to get SIP working. Atleast that was told to me, regarding connection to Control4.

 

Not sure if 100% right. It was some time ago when we started to use it with C4 and became DoorBird distributor for CZ.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...