Unifi G4 pro doorbell on Google Nest Hub delay and video streams

Hi all,

I have been playing around with HA for some time now and am liking it. I have made an automation for when someone pressed our G4 pro doorbell (wired via cable) to show up on the Google Nest hub (and max) in our house (we have 6, which I included in one automation, not sure if it would make it any faster to do 6 different automations?).
Automation is working, for all screens, but there is a severe delay of about 10-15 seconds from the time the doorbell is pressed until we see the feed.
So the feed I have set up, is the camera of the doorbell, the package camera (doorbell) and another camera from the driveway (to see if the front gate is open or closed) and an icon I have made for “GATE” so we can just press this and the gate opens/closes which is done by a sonoff itching contact (all connected and working fine).

I am running HA in a VM on my home-built Unraid server, which should be plenty fast to run everything. It is running on an Intel i7-4930K @ 3,40 with CPUs 0/6, 1/7 and 2/8 selected with initial memory of 8192 MB and Max Memory of 16384 MB. VM is running on an MX500 crucial SSD drive. So I shouldn’t have any issues with HDD’s having to spin up, etc, which could cause the issue.

When the doorbell is pressed, the google screens all turn white, then after 2/3 seconds, it shows the logo of HA with “not connected”, then after a few seconds more, the screen shows what I want it to show. I have all screens turn off after 2 minutes.

For now, I have the video streams of the G4 pro doorbell and the driveway (ai pro) in high resolution and the default one for the package camera. Would that potentially be an issue? I have tried to input a lower resolution stream for the ai pro, but as far as I see, it still shows me the high resolution stream.
I have also noticed that the video feeds are “running behind”. When the postman backs out his car, I can still see the car standing on the video feed, more than 30 seconds after he left.
Also, is there a possibility to somehow add voice and talk back via the google screens?
For now, I would really like to get the delay of the casting down to a minimum - instantly would obviously be preferred.

I already looked around on the forum to posts like Step by Step - Unifi Protect G4 Doorbell integration with Google mini Hub and Unifi G4 Doorbell Stream to Google / Nest Hubs but they don’t seem to really provide answers to the questions above.

This is what I have so far (YAML):

alias: Cast deurbel naar GHome Hubs new
description: >-
  Cast camera to Google Nest Hub when the doorbell is pressed and turn off after
  2 minutes
trigger:
  - platform: state
    entity_id:
      - binary_sensor.deurbel_street_doorbell
    to: "on"
condition: []
action:
  - data:
      entity_id: media_player.overloop
      dashboard_path: dashboard-bobs
      view_path: home
    action: cast.show_lovelace_view
    enabled: true
  - data:
      entity_id: media_player.kantoor_nest
      dashboard_path: dashboard-bobs
      view_path: home
    action: cast.show_lovelace_view
    enabled: true
  - data:
      entity_id: media_player.keuken_nesthub_max
      dashboard_path: dashboard-bobs
      view_path: home
    action: cast.show_lovelace_view
  - data:
      entity_id: media_player.woonkamer_max
      dashboard_path: dashboard-bobs
      view_path: home
    action: cast.show_lovelace_view
  - data:
      entity_id: media_player.badkamer_nest
      dashboard_path: dashboard-bobs
      view_path: home
    action: cast.show_lovelace_view
  - data:
      entity_id: media_player.eetkamer_nest
      dashboard_path: dashboard-bobs
      view_path: home
    action: cast.show_lovelace_view
  - delay:
      hours: 0
      minutes: 2
      seconds: 0
      milliseconds: 0
    enabled: true
  - target:
      entity_id:
        - media_player.kantoor_nest
        - media_player.keuken_nesthub_max
        - media_player.overloop
        - media_player.eetkamer_nest
        - media_player.badkamer_nest
        - media_player.woonkamer_max
    data: {}
    action: media_player.turn_off
mode: single

Any ideas would be most welcome!

1 Like