Getting the AD410 Doorbell to pop up on Apple TV when it is rang

Not really a question just wanted to share.

Hardware: Amcrest AD410
Goal: Ring the doorbell and have it pop up on an Apple TV
Software Dependencies: HACS, HACS Dahua Integration, HomeKit

# 2 doorbells
homekit:
  name: HASS Bridge Doorbells
  port: 21081
  filter:
    include_entities:
        - camera.back_doorbell_main
        - binary_sensor.back_doorbell_button_pressed
        - binary_sensor.back_doorbell_smart_motion_human
        - camera.front_doorbell_main
        - binary_sensor.front_doorbell_button_pressed
        - binary_sensor.front_doorbell_smart_motion_human
  entity_config:
    camera.back_doorbell_main:
        stream_address: 10.0.0.xxx
        stream_source: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&authbasic=64
        support_audio: true
        linked_doorbell_sensor: binary_sensor.back_doorbell_button_pressed
        linked_motion_sensor: binary_sensor.back_doorbell_smart_motion_human
    camera.front_doorbell_main:
        stream_address: 10.0.0.yyy
        stream_source: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&authbasic=64
        support_audio: true
        linked_doorbell_sensor: binary_sensor.front_doorbell_button_pressed
        linked_motion_sensor: binary_sensor.front_doorbell_smart_motion_human
# 1 doorbell
homekit:
  name: HASS Bridge Doorbells
  port: 21081
  filter:
    include_entities:
        - camera.back_doorbell_main
        - binary_sensor.back_doorbell_button_pressed
        - binary_sensor.back_doorbell_smart_motion_human
  entity_config:
    camera.back_doorbell_main:
        stream_address: 10.0.0.xxx
        stream_source: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0&authbasic=64
        support_audio: true
        linked_doorbell_sensor: binary_sensor.back_doorbell_button_pressed
        linked_motion_sensor: binary_sensor.back_doorbell_smart_motion_human

This will get you a homekit connection for the doorbell. From there you just need an Apple TV connected as a hub to your Home app.

On your network, you should make sure you have multicast enabled if you are having problems.

The first time I added the doorbells into the system the doorbell button didn’t import for whatever reason. I had to remove them and add them back in for the entity to show up. It wasn’t until I reviewed the Dahua doc that I noticed I was missing entities.

Does the audio work? I am having issues with my audio. I am also using the Dahua integration from HACS then in homekit I have this as my config.

- name: Front Door Doorbell
  mode: accessory
  port: 21062
  filter:
    include_entities:
      - camera.front_door_main
  entity_config:
    camera.front_door_main:
      name: Front Door Doorbell
      stream_source: -rtsp_transport tcp -re -i rtsp://admin:<REDACTED>@172.25.XXX:XXX:554/cam/realmonitor?channel=1&subtype=0
      video_codec: copy
      audio_codec: copy
      support_audio: True
      linked_doorbell_sensor: binary_sensor.front_door_button_pressed

I can’t get the audio to work. I already tried it without the audio_codec: copy and nothing.

OK so i got it working by doing audio_codec: libopus, but it is very choppy which is consistent with this thread link

@bsaverino how is your audio? Is it choppy?

The audio comes in clear, I don’t have any issue with it.

I have RTSP running into my Synology surveillance station and that signal is super choppy. However, when I am direct to RTSP I don’t have any problems.

So how are you connecting your camera to your home assistant via the Synology or directly via RTSP? Mind sharing that?