Automation help ring doorbell

I’m stumped with this automation thing.

I have:

binary_sensor.ring_front_door_ding and want it to send a text to my notify: pushbullet when it is pushed and turn on a couple of lights or outlet.

I’ve read through the examples but still scratching my head.

Any push in the right direction would be greatly appreciated.

Here my pushover (not pushbullet) example:

- alias: 'Doorbell Ding'
  trigger:
    - platform: state
      entity_id: binary_sensor.ring_front_door_ding
      from: 'off'
      to: 'on'
  action:
   -  service: notify.pushover
      data_template:
        title: "Doorbell"
        message: >-
          Someone at the door, open it!

- alias: 'Doorbell Motion'
  trigger:
    - platform: state
      entity_id: binary_sensor.ring_front_door_motion
      from: 'off'
      to: 'on'
  action:
   -  service: notify.pushover
      data_template:
        title: "Doorbell"
        message: >-
          Movement at the front door!
1 Like

You are a steely eyed missle man. Thanks. Great starting point.

John

And here is mine with Pushbullet (not that I have to reset the switch of my doorbell to “off” with the script)

script:
deurbel_notify_reset:
sequence:
- service: notify.pushbullet
data:
title: “Deurbel”
message: “Er staat iemand voor de deur”
- service: homeassistant.turn_off
data:
entity_id: switch.deurbel
- service: tts.google_say
data:
message: ‘Er staat iemand voor de deur. Ga eens snel kijken wie het is!’
language: ‘nl’
automation:

  • alias: ‘Deurbel notify’
    trigger:
    platform: state
    entity_id: switch.deurbel
    to: ‘on’
    action:
    service: script.turn_on
    entity_id: script.deurbel_notify_reset
1 Like

Thanks guys. Here’s what I came up with. Turn on two lights and send me a text if the doorbell comes on. Next I’ll take one of my MQTT outlets and maybe have a radio plugged into it. Push the doorbell and the radio comes on. Everything is working and I can tweak the rest. Many thanks.

automation 3:
  alias: 'Doorbell Ding'
  trigger:
    - platform: state
      entity_id: binary_sensor.ring_front_door_ding
      from: 'off'
      to: 'on'
  action:
    - service: switch.turn_on
      entity_id: switch.ge_12722_onoff_relay_switch_switch_3_0
    - service: switch.turn_on
      entity_id: switch.front_room_light
    - service: notify.mypushbullet
      data_template:
        title: "Doorbell"
        message: >-
          Someone at the door, open it!

I have Hassio 98.5 and the same trigger word for word but it does not trigger when I push the door bell. I can manually trigger the automation, but the Ring doorbell does not get recognized as going ‘on’.

My Alexa’s tell me that someone is at the door and my phone gives me the notice but it won’t trigger the automation. Any ideas would be appreciated.

My automation looks like this:

- id: ring_ding
  alias: Ring Ding Lights
  trigger:
  - platform: state
    entity_id: binary_sensor.ring_front_door_ding
    from: 'off'
    to: 'on'
  condition:
  - condition: state
    entity_id: sun.sun
    state: 'below_horizon'
  - condition: state
    entity_id: switch.front_lights
    state: 'off'
  action:
  - data:
      entity_id: switch.front_lights
    service: switch.turn_on
  - delay:
      minutes: 5
  - data:
      entity_id: light.front_lights
    service: light.turn_off

I added the single quotes around ‘below_horizon’ as a test to see if that made it work but it triggers manually either way.

Old thread, I realize, but hopefully someone can give me a hint.
Thanks.

@bart56
I’m currently having issues as well with the ding and motion binary sensors from ring. I think there might be something going on with the ring platform. My sensors update with the last motion and last ding but the binary sensors stay in the off state.

Edit: and now it’s working again.

You’re edit is right.
It seems to work today. To test it I changed ‘below_horizon’ to ‘above_horizon’. I still need to test it tonight to be sure.
Thanks for the reply!

Ring sensors seem more reliable/responsive than binary sensors so I’ve been using their state change to trigger automations, e.g.:

trigger
  - event_data:
      entity_id: sensor.ring_door_last_activity
    event_type: state_changed
    platform: event
  - event_data:
      entity_id: sensor.ring_door_last_ding
    event_type: state_changed
    platform: event
  - event_data:
      entity_id: sensor.ring_door_last_motion
    event_type: state_changed
    platform: event

Not sure if this is good practice but this seems to be working more consistently.

2 Likes

I’ve just tried doing this today and I’m having issues.

I’ve I use the following test of the sound, it works fine in the Developer Tools/Services:
2021-01-05_8-12-02

But if I use the following automation (selecting the execute button and using the doorbell), I get nothing.

- id: '1609791767883'
  alias: Front - Ring Doorbell on Google Home
  description: ''
  trigger:
  - platform: state
    entity_id: binary_sensor.front_door_ding
    from: 'off'
    to: 'on'
  condition: []
  action:
  - service: media_player.media_play
    data:
      entity_id: media_player.study_speaker
      media_content_id: /local/audio/door_bell.mp3
      media_content_type: audio/mp3
    entity_id: media_player.study_speaker
  - service: media_player.media_play
    data:
      entity_id: media_player.lounge_room_speaker
      media_content_id: /local/audio/door_bell.mp3
      media_content_type: audio/mp3
    entity_id: media_player.lounge_room_speaker
  mode: single

Can anyone please help?

Edit: I’ve tried it with and without the entity id in the data section. No difference.

Hello everyone - FYI in this old thread - I have been researching the Ring Doorbell topic and found that events are lost in many places. The behaviour is depressingly unreliable. I am using a Ring Video Doorbell 3 (RSSI -41) and Home Assistant core-2021.9.7 and supervisor-2021.09.0.

All Ring Doorbell events register in the Ring app on Android and iOS, likely other deep integrations like Alexa too. Most Ring events seem to arrive at Home Assistant and are recorded in ‘Last Activity’. Curiously not all these events create a Ding event, thus triggering actions only on Ding results in a lot of events getting missed. Home Assistant is AFAIK not officially supported by Ring so it is disappointing but not surprising that not all events make it from Ring’s infrastructure, but why some Activity events do not create a Ding looks like a bug somewhere.

So far it seems that there is no reliable way to get a Doorbell event into HA using Ring’s own APIs and I am thinking of hacky solutions like soldering wires into my Doorbell to trigger my own events (which will void the warranty and worse probably break the waterproof seal) or seeing if it is possible to trigger on the events in a mobile app or Alexa, or through IFTTT or similar.

1 Like

Is it possible to trigger an audio file to play through the Ring Doorbell?

I have an action button to unlock the door, but a second button to turn away potential solicitors with an audio response would be awesome.

1 Like

I have been using Ring Doorbell (binary_sensor.front_door_ding) for 5 years now. It was flawlessly working for 3 years and I really loved it. But lately, the binary_sensor.front_door_ding notification to HA has been missing. Someone else mentioned, restarting Ring integration might help for few hours. Or deleting and re-adding Ring integration also help but only for few hours still.

I have been looking at Alexa (Amazon) logs and the ding notification is reliable. So why is Alexa getting the ding and not HA? Don’t know how this works in details, but Alexa get the press button detection while HA shows no notifications.

In the Alexa App, I started removing all HA integration definition and the Ring ding (button press) started showing consistently at HA. I’ll let it soak longer but so far, it seems like Alexa integration with Ring is causing the notifications to go to Alexa but not HA.

I am using Ring Integration Button Press (binary_sensor.front_door_ding) to play Westminster chime (mp3) into all my Sonos speakers. I have them in the backyard and have been missing the ring doorbell announcement.

This is a follow up of the ring / amazon Alexa / Sonos player integration. For months now, as everyone is saying, the Ring cloud is not notifying Home Assistant about the push button binary_sensor.front_door_ding changes. Don’t know why. But Amazon Alexa never miss a notification. I guess Amazon is putting priority there. Current solution that is working 100% is to create an amazon Alexa Routine when “Front Door is pressed” (Ring), then action is to play a script (seen a scene in Alexa). The script can play any MP3 into Sonos speakers. Actual script take a Sonos Snapshot of the music played, Unjoin, Set new Volume, Play MP3 (Westminster Chime) for x seconds and finally Sonos restore to resume the music if it was playing.