imhotep/hass-unifi-access

Intercom doorbell notifications

Closed this issue · 7 comments

Describe the bug
HA is not registering the doorbell presses.
When looking at the logbook, it only shows the door as unlocked, then an event, then the door locked. (this is when unlocking the electric lock through Access).
When opening the door manually after someone rings it, nothing gets registered.

I can attach logs if needed, but I want to understand if Intercom is considered a different/unsupported doorbell for this integration. I read some closed issues in this repo, but it's still not clear.

Which Hub are you using
Unifi Access Hub
Running the setup as required by UI. Intercom attached to an PoE++ powered Access Hub attached to a console (UDM-Pro)

Versions:

  • Home Assistant version 2024.8.3
  • Unifi Access version 2.2.11
  • Unifi Access Integration version 1.2.3

The intercom is NOT supported. It could be supported but I would need some debug logs as I don't own the device myself. My understanding is that the open/close events are working properly but the doorbell events are not. So I would need you to:

  • Start logging
  • Ring the doorbell, wait a few seconds, cancel it.
  • While you're at it unlock/lock the door through whichever convenient means (app, NFC card, etc...)
  • Stop logging

Attach those logs to this issue and I will be happy to take a look.

Reminder:
The easiest way to download logs is by toggling Enable/Disable debug logging.

unifi access logs

Well that's clear, thanks.

Here are the logs for doorbell ring then cancel.
home-assistant_unifi_access_2024-09-02T18-03-08.600Z.log

And here are logs for doorbell ring, cancel, then unlock via ui.com.
home-assistant_unifi_access_2024-09-02T18-16-42.361Z.log

I do have to say, I've been trying to get the unifi_access_doorbell_start event all weekend and now that I turn the DEBUG on, it triggered.

To test the trigger, I created a small automation using the binary_sensor.front_door_hub_doorbell "when occupied".
I've had 6 doorbell rings today, none of them triggered the automation. But the ring with debug on, triggered the automation for the first time.

Screenshot 2024-09-02 at 20 09 00

Very strange.

Let me know if I can do more tests.

@malikmalikmalik according to those logs, your doorbell presses are getting registered correctly. Did you enable polling when setting up the integration? Doorbell Presses are not supported when polling is enabled.
Enabling debug logs doesn't change anything functionally.

EDIT: the UA-Intercom is not currently handled by the integration. I will cut a new release in a few and will update this issue when it's out.

No polling, no SSL (for now).

I have no idea what changed though.
Now the logbook started showing events for the doorbell press.
IMG_0732

That’s good news in the logbook, just not sure if it’s reliable. In any case, it’s an extra. I have unifi viewers, but it would be nice to add some other actions in HA.

I’ll keep an eye out for the events and wait for an update.

Happy to do more tests if necessary! And thank you👌🏻

@malikmalikmalik can you please try v1.2.4?

Thank you Anis.

If updated the integration and did another debug log of ring, cancel, unlock.
HA does 2 things now on a doorbell press:
Front Door Doorbell detects occupancy
Front Door Doorbell Press detects an event

On cancel, it looks like HA clears the occupancy and then registers another "event".
Front Door Doorbell cleared (no occupancy detected)
Front Door Doorbell Press detected an event

That works for me.

home-assistant_unifi_access_2024-09-03T07-17-47.657Z.log

Nicely done!

@malikmalikmalik awesome! Closing this for now!