-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doorbird camera discussion #1060
Comments
Hi, |
Developing two way without physical access to device is very hard task. There is no feedback. |
I'll give you access to my device. Here's the link to the api documentation: |
I also need yet another camera for feedback. |
@oeiber I can help also as requested |
I configured an public endpoint for Alex using nginx. Now he should be able access Doorbird's api. But Alex requested a second camera in the front of Doorbird device to test 2way audio. |
Hello, what do you need exactly, i own a doorbird too. |
I also have a doorbird if I can help. On my side both video and audio receive work well. But not microphone. |
There is a plugin in scrypted.app for doobird which seems to support audio transmit. Can it help ? |
I also have a doorbird and would love this feature. |
I switch to something else to do the trick. Doorbird has SIP capability that is working very well : https://www.doorbird.com/fr/sip. |
Thank you - sounds great. |
Yes, same for me, but I succeed. Forum/discord + chatgpt help... |
@fransiouz: I get crazy with asterisk. Iam not able to get my doorbird registered after several hours. I would appreciate if you could share your asterisk custom config files (extensions.conf / pjsip.conf / sip.conf)? |
Here is my config. The main point is that it's not the doorbird that initiate the call, but your HA user from your phone or tablet. I created a HA user for my tablet where i have HA installed where I can initiate the call with the SIP CARD. In asterisk add-on, I set up a AMI password + auto add extensions. It will create an extension for the tablet user (in my case extension 102). Then you need to copy some conf files :
/homeassistant/asterisk/custom/pjsip_custom.conf
/homeassistant/asterisk/custom/confbridge.conf
Then, in doorbird apps, you need to configure and authorize SIP calls: Administration/SIP Parameters. Check Authorize calls IN and add your tablet (102@HA_IP) in Activated SIP users. Finally, in HA fronted, I added the sip card to be able to call the doorbird :
My whole setup is in https. You may have issues without https to be able to activate mic within the apps. But check the logs in asterisk add-on to see if the call is initiate or not. Hope it help ! |
Thanks for your great support. I finally got my doorbird connected without any issues. But im forcing the SSL error. I think this could connected to your "whole setup in https". How do you generate your SSL Certifiacte for HAAS? I tried to connect to https://HA-IP:8089/ws to temporarily fix it, but still the same issue. Acutally I use "Generate SSL Certificate" in the addon config. Asterisk Addon Logs: Further i got an frontend issue. Not sure if this is connected to the ssl issue or a seperat task:
|
After investing some time with my colleague, here is our current status regarding backchannel audio with doorbird devices:
example: As far as i know, tapo devices are working very similar, don't they? @AlexxIT Maybe this code can be modified and added directly to go2rtc? |
This is hard to do because there is no way I can test this code at all |
Ok. I'll give you access to my dorbird device and will bring a notebook with microphone and speaker in front of it. |
I think this should work |
perfect! when would it be convenient for you? |
It's hard to say. We could try this weekend. |
sounds good! what do you need to access the windows notebook? |
Any messenger from my contacts. Just voice call. |
Thanks to @oeiber new source added to master version. Will be in next release: streams:
video-audio:
- rtsp://user:[email protected]:554/mpeg/media.amp
- doorbird://user:[email protected]?media=audio
two-way:
- rtsp://user:[email protected]:554/mpeg/media.amp
- doorbird://user:[email protected]?media=audio
- doorbird://user:[email protected]
mjpeg-video:
- doorbird://user:[email protected]?media=video |
Unfortunately backchannel audio is not working for me, yet: Configuration:
Stream info:
|
Maybe you have some errors in logs? The device supports only one connection. I've experienced a number of failures in testing. |
I can see a lot of retries in the logs.
What do you think? |
|
Hi Alex. Although i am not firm in go it seems your send method is using the native http go client, which uses HTTP/1.1 instead of HTTP/1.0 as Protocol. i captured the post request to the doorbird which reflects these findings: POST /bha-api/audio-transmit.cgi?http-user=USER&http-password=PASSWORD HTTP/1.1 HTTP/1.0 503 Service Not Available 503 Service Not AvailableBest Regards, |
@kevp89 Thanks. I don't use standard http client, but I do use standard http request. Maybe that's where the problem is. I'll look into it. go2rtc/pkg/doorbird/backchannel.go Lines 30 to 53 in d7cdc8b
|
Hi @ll, Yesterday I have downloaded the nightly release, and I can confirm I can receive audio now. Home Assistant still has access to doorbird but I am only barely able to use the app to connect. Also the connection with the doorbird app on my mobile is not working anymore properly. Everything is super slow and I get reoccurring responses to check the data connection. By the way, the microphone path is also not working. Have still only receive path.
Not sure, whether my setup is wrong, but in summary my doorbird is stalled as soon as I activate the microphone and it heals only, when I restart Frigate/go2rtc. In Frigate I am using the 2-way configuration: go2rtc part
cameras part
Is there anything I can do to support? |
@fladenbrotic which version did you try? |
I have made changes after @kevp89 advice. You can try new master version. |
go2rtc platform=linux/arm64 revision=mod.d7cdc8b version=1.9.7 I used a nightly build |
Hi @ll, I just realized something indeed changed. I also realized that now, the microphone is not toggeling in Frigate lovelace card (I am using home assistant). Which means, when I press the mic-symbol it is changing shortly to red and jumps back to the striked-through mic icon. On the other side, the the browser is confirming the mic is in use. In summary. It seems like the mic is turned on, but Frigate doesn't recognize the same. Closing of the tab is healing the system. Not sure, if these informatin are helping to circle the issue down. Regards |
It is better to debug the work in go2rtc WebUI. And if everything is fine there, move on to other software. |
Hi Alex Unfortunately even with the latest build the error persists. As far as i know the doorbird does block every client from sending data apart from the first one. Currently the producer reconnect does spawn a tcp session per reconnect and according to the packet captures there is no voice data in the transmitted request, just the header and afterwards no data. After several seconds the doorbird closes the connection with "HTTP/200 OK" 13:06:37.056 DBG [streams] retry=0 to url=doorbird://user:[email protected] |
Hit @AlexxIT I checked in the go2rtc WebUI and I see the following warning in the logs.
and following information how doorbird is set-up in go2rtc Does that help? |
First of all thanks to @AlexxIT for your great effort to get the doorbird working ;) I got the one way audio on live view and on recordings. But the audio is like 10 seconds delayed and the quality is terrible. Im using go2rtc in Frigate as docker and would appreciate if one of you expert guys can check if there are possible faults/improvements in my newbie config. No errors in the logs. Thanks in advance guys: Frigate: 0.14.1.-f4f3cfa
|
You forgot real time flags in your input go2rtc/internal/ffmpeg/ffmpeg.go Line 66 in f1ba5e9
|
Is there already a workaround to get the microphone running expect SIP protocol? |
It's hard to say. It worked when I tested it. It will be possible to retry the remote connection next sunday. |
Hi Alex! Unfortunately Sunday doesn't work for me. Maybe we can find some time a few days later? Thank you! |
I've also just received my DoorBird doorbell, When I have some free time in the next weeks I will learn and set up go2rtc and then I can also join you in testing these changes you guys are doing, thanks for your work! |
Hi @LamerTex, Thx Oliver |
Yes, for sure. I wanted to set up go2rtc and learn how it works first because it's the first time I've seen it, and I'm doing that right now. Thanks for your work, |
I've finished setting up go2rtc and learned at least the basics of it. I've added to go2rtc a Tapo camera with
and it is working with 2way audio. Then I've added the DoorBird camera with
and magically it is also working with 2way audio! BUT with some problems:
If you want to try anything @AlexxIT I can setup the Tapo camera in front to the DoorBird camera and give you the login data in Telegram whenever you want. Thanks again! |
You can message me on telegram anytime. We'll decide on the connection time there. |
Hi, I've tried different configurations and I get the video stream, but after 2-3 min the ffmpeg stream seams to crash. This happens with the configuration which is mentioned here as well as other options I've tried. Any idea what could cause this issue and how to fix it?
![]() Logs are attached: |
hi guys, is there any prgress to get the two way audio running with doorbird? thanks for your great effort. |
The text was updated successfully, but these errors were encountered: