Nest Doorbell Battery Automation

After having issues with 2 Eufy doorbells, I went for the Nest battery doorbell. I’m trying to get the notifications working like I had on my Eufy’s.

What I had before was when someone was detected it would show me a notification on my TV using Notifications: Send a notification with firestick_4k. This worked perfectly.

I followed the instructions at Nest - Home Assistant but it does not display any pictures/videos on my phone or TV.

Can anyone help me with this? I have 2 weeks to send it back and will do if I can’t get the notifications working properly as the Google App is terrible!

If I don’t use a picture in the notification then I get the alert fine.

This is the code I used:

alias: Doorbell Person Alert
description: ‘’
trigger:

  • platform: device
    device_id: 7dff7f6a507ed355bfd8bd126e011ae1
    domain: nest
    type: camera_person
    condition: []
    action:
  • service: notify.mobile_app_robbs_iphone_xs_max
    data:
    message: Person detected at the front door
    data:
    image: >-
    /api/nest/event_media/{{ trigger.event.data.device_id }}/{{
    trigger.event.data.nest_event_id }}/thumbnail
    mode: single

Hi, from what was posted here the indentation looks off, but that may just be the formatting. Can you double check the indents or paste with back quotes so formatting is preserved?

Are you seeing person events show up in the Media Player?

1 Like

Are you seeing errors in the logs?
Also the integrations now support Diagnostics which have some detailed information, and might give us a clue as to what is going on (like counters of events happening, failures, etc).

1 Like

Hi and thanks for the reply.

I am getting person events show up in the media folder (movies with 10 frames or so). I am also getting the notification, but only when I don’t have the image part in the config.

Here is the config with quotes. Cannot see anything regarding diagnostics:

alias: Doorbell Person Alert
description: ''
trigger:
  - platform: device
    device_id: 7dff7f6a507ed355bfd8bd126e011ae1
    domain: nest
    type: camera_person
condition: []
action:
  - service: notify.mobile_app_robbs_iphone_xs_max
    data:
      message: Person detected at 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  }}
mode: single

This is the code for the 4kTV that isn’t working either.

service: notify.firestick_4k
data:
  data:
    duration: 10
    fontsize: large
    position: bottom-right
    image:
      path: >-
        /api/nest/event_media/{{ trigger.event.data.device_id }}/{{
        trigger.event.data.nest_event_id }}/thumbnail
  message: Motion detected at front door

Hi,

I’m also trying to achieve some video event automations, for the new battery cam.
I’m using browser_mod to pop-up a picture-entity card, for playing the last event.
Well that is what i want to achieve :slight_smile:
Untill now i’ve been able to run the automation without issues, when using the live feed from the camera. But i’m not able to use the event video :confused:

this is my code:

alias: Popup test event data
description: ''
trigger:
  - platform: device
    device_id: "my_device_id"
    domain: nest
    type: camera_motion
    id: '1'
  - platform: device
    device_id: "my_device_id_2"
    domain: nest
    type: camera_motion
    id: '2'
condition:
  - condition: time
    after: '06:00'
    before: '00:00'
    weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
      - sun
action:
  - service: mqtt.publish
    data:
      topic: wallpanel/mywallpanel/command
      payload: '{"wake": true, "wakeTime": 30}'
  - service: mqtt.publish
    data:
      topic: wallpanel/mywallpanel/command
      payload: '{"brightness": 5}'
  - choose:
      - conditions:
          - condition: trigger
            id: '1'
        sequence:
          - service: browser_mod.popup
            data:
              title: Motion Inngang
              card:
                type: picture-entity
                entity: camera.inngangsparti
                image: |-
                  /api/nest/event_media/{{ trigger.event.data.device_id }}/{{
                   trigger.event.data.nest_event_id }}
              large: true
              hide_header: true
              auto_close: false
          - delay:
              hours: 0
              minutes: 0
              seconds: 30
              milliseconds: 0
          - service: browser_mod.close_popup
            data: {}
      - conditions:
          - condition: trigger
            id: '2'
        sequence:
          - service: browser_mod.popup
            data:
              title: Motion Garasje
              card:
                type: picture-entity
                entity: camera.garasje_cam
                image: |-
                  /api/nest/event_media/{{ trigger.event.data.device_id }}/{{
                   trigger.event.data.nest_event_id }}
              large: true
              hide_header: true
              auto_close: false
          - delay:
              hours: 0
              minutes: 0
              seconds: 30
              milliseconds: 0
          - service: browser_mod.close_popup
            data: {}
    default: []
mode: queued
initial_state: 'true'
max: 2

Any ideas?

@allenporter
Can I please ask for your advise?
In the local Nest event_media folder, I can only see *.jpg files. So Is that why the event video isn’t available in my automations?

Hi,
Check out Nest - Home Assistant for what devices support what formats. Given that context, if you think there is a mistake, can you give me more detail about your device and your expectations? Hope that helps.

Thanks for your reply Allen! I have of course looked at the nest documentation before, but get a little confused when looking at other forum posts, were it seems like other people are achieving this :confused:
But can we conclude that Nest Cam (outdoor, battery) hasn’t got any media_source support? Would this be possible to implement, and is it a priotity?

Thanks
Christian

Hi, yes the events are appearing in Media Player :slight_smile:

@allenporter I had the doorbell show up one notification with the 10second preview mp4 but since then it has not happened. I think it could be a delay with Google as I don’t get any preview image/video when the event is detected on the google home app (just says the video is not available yet).

If I check the media player folder, it has the mp4 videos that shows what happened at the doorbell, but they don’t come through to my home assistant notification.

I’m trying to send a thumbnail from my nest doorbell cam upon opening of my smartlock. I’m having trouble understanding how to call the nest thumbnail since the triggering event is not from the doorbell itself. Here is my automation:

- alias: Front door UNLOCKED Notification
  description: ""
  trigger:
    - platform: event
      event_type: zwave_js_notification
  condition:
    condition: and
    conditions:
      - condition: template
        value_template: "{{ trigger.event.data.device_id == 'XXXXXXXXXXXXXXXX' }}"
      - condition: or
        conditions:
          - condition: template
            value_template: "{{ trigger.event.data.event == 2 }}"
          - condition: template
            value_template: "{{ trigger.event.data.event == 4 }}"
  action:
    - service: notify.mobile_app_XXXXXXXX
      data:
        title: Front Door
        message: Front door is unlocked
        data:
          image: /api/nest/event_media/{{ trigger.event.data.device_id }}/{{ trigger.event.data.nest_event_id }}/thumbnail
  mode: single

what should I change trigger.event.data.device_id and trigger.event.data.nest_event_id to?

Has anyone had any joy with this? I miss this automation so much and would be great to get it working

1 Like

Wondering the same, I get the notification but can’t get the image to work