Nest - Doorbell (battery) - No clip preview in notifications

Hi,

My Nest doorbell (battery) works like a charm. When I press the button it sends a notification perfectly (on Telegram or with iOS HA app notification). Now I am trying to add a clip preview, since it is marked as possible for this model (mp4 & gif). But when I do, with the provided path (below), I get the message but the image is reading “Response status code was unacceptable: 404.”

Did I missed something (maybe from Google Panel side) ?
Maybe I need to delay the notification so the image can be uploaded to the cloud ?

Anyway, thank you Allen for this integration !

Path used :

/api/nest/event_media/{{ trigger.event.data.device_id }}/{{ trigger.event.data.nest_event_id }}/thumbnail

I also tried the same without “/thumbnail” with the same result.

I am having the same problem

service: notify.mobile_app_tjk_s
data:
  message: Person or motion detected
  title: Front Door
  data:
    image: >-
      /api/nest/event_media/{{ trigger.event.data.device_id }}/{{
      trigger.event.data.nest_event_id }}/thumbnail
    video: >-
      /api/nest/event_media/{{ trigger.event.data.device_id }}/{{
      trigger.event.data.nest_event_id  }}
enabled: true

Also tried using Telegram, nothing even happens

service: telegram_bot.send_video
data:
  target: ********
  file: >-
    /api/nest/event_media/{{ trigger.event.data.device_id }}/{{      
    trigger.event.data.nest_event_id  }}

And here is the trace

Maybe @allenporter can help us.
Could there be a lag for the video to be uploaded to HA and before it happens it’s 404? Just a clue.

Hmm, my impression is we wait for the video fetch to finish before sending the event to avoid that kind of race. It makes events a little slower but then makes followups more reliable.

If this isn’t the case maybe there is a bug. If you have any data or debug info that would be helpful as I don’t have a lot of spare cycles to investigate. My impression is the debug logs for this and the sdm python library should be sufficient to get details on timing.

Has anyone managed to get this working?

Anyone get this working?

I have it working – but i created those examples. Have you tried those?

Thank you. No, I have not tried yet. I am considering getting a Nest doorbell.

I have tried the examples, but I still can’t make it work

1 Like

Hello, I’m trying to include the clip preview in my HA app notification aswell. Notifications are working already but without image/video attachment.

I’m using the Nest Doorbell (battery) which supports clip preview according to @allenporter setup guide.

The clips are manually viewable by navigation to Media Sources>Nest>Deurbel: Recent Events>[Media file]

My current YAML code:

alias: Deurbel
description: "Doorbell notification"
triggers:
  - device_id: **removed**
    domain: nest
    type: camera_motion
    trigger: device
  - device_id: **removed**
    domain: nest
    type: doorbell_chime
    trigger: device
    id: Aanbellen
conditions: []
actions:
  - action: notify.mobile_app_a_iphone
    metadata: {}
    data:
      message: Houd vast om te bekijken.
      title: Beweging bij de voordeur.
      data:
        image: "{{ trigger.event.data.attachment.image }}"
        video: "{{ trigger.event.data.attachment.video }}"
  - if:
      - condition: trigger
        id:
          - Aanbellen
    then:
      - action: tts.speak
        metadata: {}
        data:
          cache: true
          media_player_entity_id: media_player.homepod_keuken
          message: Er heeft iemand aangebeld.
          language: nl
        target:
          entity_id: tts.google_translate_en_com
mode: single

I’m quite sure my YAML configuration is wrong / missing the correct media path.

With file explorer i see the path would be: /config/nest/event_media/[device-id]/[file name with random number]-doorbell_chime.mp4

I don’t completely get from @allenporter guide what the correct solution is. Did someone figured this out or can someone post a working example YAML?

UPDATE: It suddenly just works. So for anyone with problems, you can use mine as a example. Please note, you can’t test/trigger the automation manually since it will be missing the attachment files.