hjdhjd / homebridge-doorbird

Homebridge plugin for Doorbird
Apache License 2.0
55 stars 14 forks source link

Doorbird is not working #15

Closed sohnkarlsruhe closed 7 years ago

sohnkarlsruhe commented 7 years ago

First thanks for your work. I install this plugin and camera-ffmpeg (is working) but door bird is shown in home app but nothing happens (push the button or the motion sensor.

here is my config.json

{ "platform": "DoorBird", "doorbird": [ { "name": "DoorBird", "doorbird_ip": "192.168.0.105", "doorbird_username": "ghXXX02", "doorbird_password": "bdXXXXx2t", "doorbird_model": "D101S", "doorbird_serial": "4260423860193", "cmd_doorbell": "", "cmd_motionsensor": "", "http_port": "8080" } ] }, { "platform": "Camera-ffmpeg", "cameras": [ { "name": "Doorbird Camera", "videoConfig": { "source": "-re -i rtsp://ghXXX02:bdXXXX2t@192.168.0.105:554/mpeg/media.amp", "stillImageSource": "-i http://gXXXX002:bXXXX2t@192.168.0.105/bha-api/image.cgi", "maxStreams": 1, "maxWidth": 1280, "maxHeight": 720, "maxFPS": 15

bombadiltom commented 7 years ago

What do you expect to happen? Both are only Sensors, you need to define an Automation. Can you switch on the Camera Light? What's in the logs?

sohnkarlsruhe commented 7 years ago

now i can see in the home app when the doorbell button is pushed.. but only when i add "cmd_doorbell": "", the wget command. Motion Sensor don't work with the wget command .

when i push the doorbell button:

[2017-7-27 17:27:40] HTTP Server: doorbell.html was called, sending event to homebridge. [2017-7-27 17:27:40] undefined [2017-7-27 17:27:40] HTTP Server: executing 'wget -q 'http://192.168.0.105/bha-api/notification.cgi?http-user=gxxxxx2&http-password=xxxxbell&subscribe=1&url=http://192.168.0.115:8080/doorbell.html''

and i can see it in the home app... but the motion sensor is not working, in the doorbell app i see the motion if i activate the doorbell light: [2017-7-27 17:30:47] DoorBird night vision activated for 3 minutes

brownad commented 7 years ago

Post your config from the doorbird api eg call the notification.cgi? And drop the Json here

Sent from my iPhone

On 27 Jul 2017, at 16:31, sohnkarlsruhe notifications@github.com wrote:

now i can see in the home app when the doorbell button is pushed.. but only when i add "cmd_doorbell": "", the wget command. Motion Sensor don't work with the wget command .

when i push the doorbell button:

[2017-7-27 17:27:40] HTTP Server: doorbell.html was called, sending event to homebridge. [2017-7-27 17:27:40] undefined [2017-7-27 17:27:40] HTTP Server: executing 'wget -q 'http://192.168.0.105/bha-api/notification.cgi?http-user=gxxxxx2&http-password=xxxxbell&subscribe=1&url=http://192.168.0.115:8080/doorbell.html''

and i can see it in the home app... but the motion sensor is not working, in the doorbell app i see the motion if i activate the doorbell light: [2017-7-27 17:30:47] DoorBird night vision activated for 3 minutes

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

bombadiltom commented 7 years ago

Do not add "cmd_doorbell": "", "cmd_motionsensor": ""

Leave the lines out! The code checks, if these values are defined and if they are, they must contain valid commands!

sohnkarlsruhe commented 7 years ago

sorry.. when i leave them blank or delete the 2 lines nothing happened when i am in front of the sensor or ring the bell.

brownad commented 7 years ago

Have you done the one off step to register the doorbird with the two endpoints in your Pi?

Eg for the doorbell and the motion sensor html entries? There is a comment on the readme for this, that will then tie up the plugin with the events from DoorBird.

Does that make sense?

Sent from my iPhone

On 2 Aug 2017, at 19:23, sohnkarlsruhe notifications@github.com wrote:

sorry.. when i leave them blank or delete the 2 lines nothing happened when i am in front of the sensor or ring the bell.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

brownad commented 7 years ago

It’s on the readme. You need to put the IP of your running Homebridge and the IP of your doorbird - just uses the doorbird api notification endpoint

That’s it

Sent from my iPhone

On 14 Oct 2017, at 18:48, unaxboy notifications@github.com wrote:

Hi brownad, how to register endpoints?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

unaxboy commented 7 years ago

Thanks, already found by myself)