Doorbell - Notify Google and send camera snapshot to app

Script seems acting strange.
under the “Google” options, i can select media_player.study / media_player.livingroom individually… no problems…Audio is sent to these devices.

But when i enter media_player.shed_speaker …i get the following error
Doorbell - Front Door: Error rendering Doorbell - Front Door delay template: offset should be format 'HH:MM', 'HH:MM:SS' or 'HH:MM:SS.F'

Question :

  1. Do i add multiple devices in the Google field like: media_player.study,media_player.livingroom,media_player.shed_speaker ?

  2. Why is it when i select media_player.shed_speaker do i only get the error above?

Thanks

Sorry, I don’t have a Google device at the minute to test this out.
If you manage to find a solution please share here to help others out that might have similar issues.

Which Doorbell device do you use guys?

I am using the Eufy doorbell and its integrated well in HA

I use a ring doorbell now, but used to have a DIY one using the existing standard doorbell and an esp-01

Ring doorbell have full integrate to HA (button, RTSP) ?
Its POE?

Not POE. I have the pro, which is hard wired for power, but WiFi.
I have the ring integration and the ring2mqtt integration, which picks up the button press really well.
You can also view the last recorded video clip in HA

Do you have your eufy doorbell working with display camera on the google hub ?

I cant get it to work wit automation :frowning:

What I want :
1: doorbell pressed : photo send to my mobile
2: doorbell pressed stream camera to my google hub screens .

Does anyone knows how to ??

I use the eufy mqtt from home assistant .

I am not using it to send my stream to a google hub.
It isn’t possible to get a live stream from the eufy doorbell. The reason is that rtsp or onvif isn’t supported yet.
You can make a automation that when the doorbell is pressed it will send you a screenshot to your mobile phone. There are plenty blueprints for it to make a automation for it.

Nevermind ! I had a typo in my config (lol)

1 Like

I have been trying to get this to work to notify multiple mobile app devices. I have tried csv list with the webhook ids and the entity ids of the mobile app devices but nothing works. There must be a way to notify multiple devices without the need to create a second automation

Move the slider to the right. The time may not be 0

Hi everyone, I’m very new to HAOS and installed a working version I’d say a month ago. I was speaking with a few others in the HA Discord channel and thought I’d post my modifications in order for this blueprint to work for me and hope it helps anyone else that comes across this thread.

I had to change the TTS from google_translate_say to tts.speak and had to comment out the #delay for it to continue through the automation. Took me a few hours of tinkering (with my limited skills) to figure out but finally go it working with my Reolink.

blueprint:
  name: Doorbell - Notify Google and send camera snapshot to app
  description:
    Make an announcement over Google devices when the doorbell is pushed
    and send a camera snapshot to your app.
  domain: automation
  input:
    doorbell:
      name: Doorbell
      description: This is the doorbell binary sensor
      selector:
        entity:
          domain:
            - binary_sensor
          multiple: false
    google_device:
      name: Google
      description:
        The Google device to make the announcement on. Make a comma seperated
        list to announce on multiple devices.
      selector:
        entity:
          domain:
            - media_player
          multiple: false
      default: ""
    message:
      name: Message (Optional)
      description: 'Default: "There is Somebody at the Door!"'
      default: There is Somebody at the Door
    camera:
      name: Camera
      description: The camera which creates the snapshot
      selector:
        entity:
          domain:
            - camera
          multiple: false
    notify_device:
      name: Device to notify
      description:
        Device needs to run the official Home Assistant app to receive
        notifications
      selector:
        device:
          integration: mobile_app
          multiple: false
    is_ios:
      name: Is it an iOS device?
      description: Toggle if your selected device runs iOS, default is Android
      selector:
        boolean: {}
      default: false
    notification_title:
      name: Notification title (Optional)
      description: 'Default: "There is Somebody at the Door!"'
      default: There is Somebody at the Door!
    notification_message:
      name: Notification message (Optional)
      description: 'Default: "There is Somebody at the Door!"'
      default: There is Somebody at the Door!
    delay:
      name: Delay (Optional)
      description: Wait before creating camera snapshot
      default: ""
      selector:
        number:
          min: 0.0
          max: 60.0
          unit_of_measurement: seconds
          mode: slider
          step: 1.0
  source_url: https://community.home-assistant.io/t/doorbell-notify-google-and-send-camera-snapshot-to-app/257953
mode: single
trigger:
  - platform: state
    entity_id: !input doorbell
    from: "off"
    to: "on"
variables:
  camera: !input camera
  notify_device: !input notify_device
  is_ios: !input is_ios
  notification_title: !input notification_title
  notification_message: !input notification_message
  delay: !input delay
  snapshot_create_file_path:
    /config/www/tmp/snapshot_{{ states[camera].object_id
    }}.jpg
  snapshot_access_file_path:
    "{{ snapshot_create_file_path | replace('/config/www','/local')
    }}"
action:
  # changed from google_translate_say to tts.speak for HA CORE 2023.10.5
  - service: tts.speak
    data:
      cache: true
      media_player_entity_id:
        - !input google_device
      message: !input message
      entity_id: tts.google_en_com
# had to comment out delay for it to work propery
      #  - delay: "{{ delay }}"
  - service: camera.snapshot
    entity_id: !input camera
    data:
      filename: "{{ snapshot_create_file_path }}"
  - device_id: !input notify_device
    domain: mobile_app
    type: notify
    title: "{{ notification_title }}"
    message: "{{ notification_message }}"
    data:
      '{% set android_data = {"image": "%s"} | format(snapshot_access_file_path)
      %} {% set ios_data = {"attachment": {"url": "%s", "content_type": "JPEG"}} | format(snapshot_access_file_path)
      %} {{ ios_data if is_ios else android_data }}'

Hi, I know this is a older thread, but is it pissible to play a notification on a Google Nest Mini and resume playing on it what was playing before the notification was sent?