Doorbird integration

Did this get added in in the .70 update?

It did not.

it did now, but no motion so far. Looking at the PR i do see a note from Klikini, https://github.com/home-assistant/home-assistant/pull/13994/files#r194552231

And this one https://github.com/home-assistant/home-assistant/pull/14933 is still in heavy talks, lots of good work there!

Motion events are available as of 0.72. One thing to note about the motion events is that they depend on a schedule. You can verify that the schedule is setup on the main Doorbird app under administration for the doorstation. If for some reason the schedule has been cleared, HA wonā€™t receive the event. All squares should be blue.

I noted the upcoming firmware release in the other topicā€¦

If i have a schedule for the doorbell, the motion is all grey saying ā€œoccupied by doorbellā€ā€¦
(swapped them around, but no luck so far)

You must go into the motion settings, then click on the schedule in there to edit the motion schedule. I have no idea why they decided to separate them out like that. App flow and UX is definitely not one of their strong suits.

what is the motion sensor name doorbird_[name]_motion ?

Yes, that is the convention if you provide a value for name for the doorstations in your config. If you do not use a name, the devices will use doorbird_{number}_motion where number is determined by the order the devices are defined in your configuration (starting with 1).

Also, to further clarify, an entity is not created for doorbell or motion events, so you will not see status in the HA interface. You must create an automation that responds to the event by name.

Example in the documentation: https://www.home-assistant.io/components/doorbird/#motion-and-doorbell-events

That did the trick though, but i can only set one (motion, or door bell event) not that i need the doorbel event but still its weird you can only do one. Or am i missing something. (motion is working now with my automation)

If you are referring to only being able to edit one schedule via the Doorbell appā€¦ they are in different places. The motion schedule is accessed via the motion options. The doorbell schedule is accessed from the first level of the administration menu. I believe it is called ā€˜doorbell scheduleā€™. It is very confusing indeed.

Indeed, i think the UX design guys had a party too much when coming up with this interface :slight_smile:

Iā€™m having an issue with DoorBird after the recent changes that I canā€™t seem to resolve. When pressing the door bell, the event doesnā€™t arrive or trigger in HA. The weid thing is that all individual components work fine.

The callback is correctly registered with DoorBird at http://192.168.0.XXX/bha-api/notification.cgi:
{"BHA": { "RETURNCODE": "1", "NOTIFICATIONS": [{"event": "doorbell1","subscribe": "1","url": "https://xxxxxx.dyndns.be:88XX/api/doorbird/voordeur_button","user": "","password": "","relaxation": "10"}]}}

When going to https://xxxxxx.dyndns.be:88XX/api/doorbird/voordeur_button manually in the browser, the events is received as the automation runs (and a sound plays). Iā€™m not prompted for a password. Even tried this call over the internet, works OK.

My best guess at the moment is that when the Doorbird calls https://xxxxxx.dyndns.be:88XX/api/doorbird/voordeur_button it ends up somewhere else. Any logs I can watch for this or other suggestions?

I can also see the http call in the app and the ā€œdoorbell scheduleā€ is completely blue under the schedule for http.

Edit: issue seems to be on DoorBird side, a call to a webserver on the internet is also not received when i press the button. Was working fine the las few weeks though :frowning:

Edit 2: did a factory reset, restarted HA, issue remains.

Edit 3: setting the HTTP Call URL to:
https://192.168.0.XX:8123/api/doorbird/voordeur_button (works in browser)
Does not work

Setting to:

http://192.168.0.YY/io.cgi?DOA3=10 (this triggers a relay)

Works

Seems like DoorBird stopped liking my HA or https.

Edit 4:
Turned off SSL for HA (which had a 100% correct LE certificate) and sett the url override to http://192.168.0.XX:8123/. Working, but Iā€™d offcourse prefer to have httpsā€¦

Are you using a self signed certificate for HA or something like LetsEncrypt? Iā€™m not sure if the Doorbird unit supports self signed certificates (but I havenā€™t looked for it). If it is failing with LetsEncrypt or some other third party verified certificate, it may be worth contacting support.

Iā€™m curious. Can Doorbird let me import my own certificate authority?

Anyway, why not just use VPN and not expose port 8123 to the outside world?

I use Zentyal as my Linux container. Zentyal acts as a certificate authority and lets me set up OpenVPN.

I donā€™t want to go off-topic, but I thought I would ask about this since itā€™s easy to create certificates using Zentyal and have it host an OpenVPN server inside a container.

The certificate was from Letā€™s Encrypt, but I also couldnā€™t see anything come in on my webserver via https. I went from 0.68 to 0.73 and had to make the changes required due to the doorbird update. Before it was working over https.

Full disclosure: i went from a rpi1 to a rpi3b+ based on hassos. URLā€™s and IP adresses remained the same though and HTTPS by itself was working.

If someone else has hass_url_override set to ā€œhttpsā€¦ā€, curious to know if thatā€™ workig for you at the moment.

DoorBird released a new app version today that allows you to trigger an HTTP call when a relay is triggered. Now I can finally open and close my ā€œcustomā€ garage door from within their app :slight_smile:

Can these be added in the HA DoorBird component as monitored events (e.g. /api/doorbird/_relay1 and /api/doorbird/_relay2)?

Maybe also a good time to switch from the legacy API to the http call + schedule combination. And register the event idā€™s for ā€œconvenienceā€.

@whitedogbe That should be pretty easy to add.

@Klikini Iā€™ll get to work on this if you havenā€™t done so already.

EDIT: Went to work on this and found that none of my 3 Doorbirds have received the new firmware. :frowning:

I donā€™t have it either. Iā€™ll keep checking this week and let you know if I do, please let me know if you get to it first :slight_smile:

Since the last update to the doorbird component each time my doorbird senses motion, it triggers my doorbell automation, which is set to be triggered by a doorbell press. I canā€™t figure out why.