-
Notifications
You must be signed in to change notification settings - Fork 84
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
Button press sensor only fires if the doorbell is connected to SIP #359
Comments
This is the only event that fires in such case:
At least it appears to be consistent. |
According to my tests, the same event is not triggered when SIP is connected normally. I think it's a good idea to also check for this event to consider the doorbell button pressed. @rroller, what do you think? |
@felipecrs if you need all events from Dahua VTO including doorbell button press, you can try my integration which is just about events and commands, it's should works without active SIP connection. |
Hi @myhomeiot, that is really helpful. Thank you. But I have some automations based on this integration and would prefer not to change it. I believe this is just a corner case that can be fixed by adding one extra condition here: dahua/custom_components/dahua/__init__.py Lines 503 to 506 in 583165c
|
@felipecrs It's already check the |
Isn't this what I did?
I was using the following command:
Also, if the VTO was sending out the Please let me know if I did something wrong. |
I check events from my VTO using this command and it's doesn't show any |
Oh, I see. Do you know of an easy way to subscribe to all events, including these |
I think the simplest way will be installing my integration (it's can work in parallel with this integration) and check all coming |
Sounds good. I will report back once I have the data for this test. Thank you! |
I sitll have this issue, anyone else? |
Also when the doorbell is disconnected from SIP? |
Ok, @myhomeiot I finished testing events using your integration. The result is:
The This means the VTO is useless when not connected to a SIP server and nothing can be done to capture the button press in such case, I think, therefore I am closing this issue. However, it is not very difficult to run the Asterisk add-on to have a SIP server the doorbell can connect to. That's what I do. |
@felipecrs Thanks for the update! Can you try to use VTO local SIP server if you have this option? |
This is what I was trying first. Same results. No event emitted. And immediately after pressing the button the doorbell says "The call was not answered". Which is the same as when the doorbell is not connected to SIP. |
I think for this option to work, it needs a VTH connected. Or some extension connected to the VTO SIP Server so the VTO can call it. |
@felipecrs I am really interested in your efforts to integrate the Dahua VTOs with HA and am already really impressed with your progress. This said I am struggling to understand the issue you are having with capturing the button presses. While I am not using @myhomeiot integration right now (may switch if need be), since it was predated by https://github.com/rroller/dahua which worked as well, there is really no issue in getting the button presses into HA. It may be that I am missing some important detail here. If you could please explain, maybe we can figure it out. BTW, my SIP is also set up to be enabled on device and I don't have a Dahua VTH panel, nor any panel for this matter. Just using the VTO as a camera and a dumb doorbell ringer. |
@convicte, this is surprising to me. Can you please share some more details? What did you fill in this page exactly? What number is the VTO configured to call? Default is 9901 I think. What does the VTO say (voice prompt) when you press the button? Is it "Calling now"? And finally, you mean the binary_sensor.button_press is working normally for you when using the built-in SIP Server and no VTH? Maybe it has something to do with firmware version. I am using latest from Dahua website, DHI-VTO2202F-P-S2 Or maybe my model behaves differently than yours. |
@rroller, this is certainly a stretch, but if the integration could provide a very basic SIP server that the VTO could connect too, it would also "solve" this issue. |
I have a VTO2202F-P-S2, and I am building a guide to make it work with Home Assistant without the VTH or the Cloud services.
Everything works great, including the button press sensor of this integration.
However, if I disconnect the SIP server, the button press sensor no longer changes/fires. Which is sad for me because this means I need a full-blown Asterisk server just for this.
So, I wonder if there's any alternative.
I will try capturing the event logs later.
The text was updated successfully, but these errors were encountered: