Ring Motion "Event" create Binary Sensor

Hello Everyone.

I have an automation that uses the Ring Motion Binary Sensor. When the camera detects motion, the binary goes to ON for a number of seconds.
This is going to be depreciated according to the repair, I have from 2025.4

I need this sensor to operate like this, because it tells the automation that there is someone in the room as a condition of the light turning on or off.

I tried to make a template sensor based on the event sensor, every time I perform a search for event and template its showing me the kind of wrong answer or not the way to do it.
The event from the camera is called event.downstairs_motion all that does is create a timestamp of the motion detection. I don’t really understand if its an event or not.

  - trigger:
      trigger: event
      event_type: event.downstairs_motion
    binary_sensor:
      - name: Downstairs Motion Detected
        auto_off: 15
        state: "true"

Some tips or pointers how to create a 15 second binary from this ring event would be helpful.

Thanks

Shunts…

Also been struggling massively with this over the last couple of months. Had this all dealt with nicely and reliable for a few years, but the recent “improvements” are removing a bunch of options that I’ve used extensively and right now it’s not very apparent what replaces them.

Indeed.

It’s breaking things that don’t actually need to be broken. Some of the other autos I have work fine with the “event” sensor.

I’m not able to see how to work this one, and my home assistant instance is pretty complicated!

Hopefully someone can shed some light!

Shunts…

Don’t confuse an Event trigger with an Event entity. You have an Event entity, all you need to do is use a State trigger to monitor that entity.

#template:
- trigger:
    - trigger: state
      entity_id: event.downstairs_motion
      not_from:
        - unknown
        - unavailable
  binary_sensor:
    - name: Downstairs Motion Detected
      auto_off: 15
      state: "true"
2 Likes

Thanks!
That works a treat!
The confusion is as you say event entity and events
Many thanks for your help!

Thanks for this.
I have created the helper via the UI, how do I add the auto_off 15 to it?

Triggers and other advanced functions are not supported in the Helper, they must be added to the YAML configuration.

What’s extra frustrating about this specific breaking change is that the docs are anti-helpful. The single example shows the now-broken way to do things, and zero examples how they expect it to happen with the new process.

4 Likes

When I have a moment I will try and edit the document to show how to add a binary from an event entity, as shown here.

As YAML is kind of classed as advanced use, I think it needs to point everyone in the right direction.

Shunts…

Can I add my appeal for help on this changes as well please. I read the posts but unfortunately I could not see how to make the needed changes. I have a fairly basic knowledge of the coding and use examples to try and learn how to do what I need.

I have a ring doorbell and a ring alarm.

I have a porch light and light inside the house, by the front door, that are managed by the motion detection and the alarm sensor on the front door.

I have combined management of both lights into one automation so that they work in combination.

If motion is detected at the doorbell camera it turns on the porch light for 5 minutes … if there is no further motion after 5 minutes the light turns off again.

Based on the repair that pops I need to change the triggers for camera motion but I really don’t understand what changes I need. As already mentioned the documentation is a bit light when it comes to this migration

My automation is below and would appreciate any guidance on making the updates

alias: Lights - Manage porch light automation
description: >-
  Turn on porch light when front door opens or if camera detects motion Turn off
  porch light after 5 minutes.
triggers:
  - entity_id: binary_sensor.front_door_sensor
    from: "off"
    to: "on"
    trigger: state
  - entity_id: binary_sensor.front_door_doorbell_motion
    from: "off"
    to: "on"
    trigger: state
  - entity_id: binary_sensor.front_door_doorbell_motion_2
    from: "off"
    to: "on"
    trigger: state
  - entity_id: binary_sensor.front_door_sensor
    to: "off"
    for: "00:05:00"
    trigger: state
  - entity_id: binary_sensor.front_door_doorbell_motion
    to: "off"
    for: "00:05:00"
    trigger: state
  - entity_id: binary_sensor.front_door_doorbell_motion_2
    to: "off"
    for: "00:05:00"
    trigger: state
conditions:
  - condition: state
    entity_id: input_boolean.eso_savings_session
    state: "off"
actions:
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state.state == 'on' }}"
          - condition: template
            value_template: "{{ state_attr('sun.sun','elevation')|int < 1 }}"
        sequence:
          - target:
              entity_id:
                - switch.sonoff_10008e663d
            data: {}
            action: homeassistant.turn_on
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state.state == 'off' }}"
          - condition: template
            value_template: "{{ is_state('switch.sonoff_10008e663d', 'on') }}"
        sequence:
          - target:
              entity_id:
                - switch.sonoff_10008e663d
            data: {}
            action: homeassistant.turn_off

OK so YAML noob here.
I pasted your example (with my event entity) into the dev tools I get no output:

I pasted into configuration.yaml and restarted HA, I get no helper entity at all.

Could you please help me out with what is missing.
Can you put the entire code block of what is required instead of just partial example please.

You cannot paste YAML into the template editor, it only works with jinja2 templates. You need to enter it into configuration.yaml

Do you have File Editor installed, you need that to put YAML in. Once you have that, you then need to insert the code for the Binary Sensor, and trigger.

Shunts…

As stated at the end of my last post, I pasted it into configuration.yaml and restarted HA.

However I have no new entities.

Sorry didn’t read that bit!

template:
  - trigger:
      - trigger: state
        entity_id: event.doorbell_motion
        not_from:
          - unknown
          - unavailable
    binary_sensor:
      - name: Doorbell Motion Detected from event
        auto_off: 15
        state: "true"

That should work, I have my YAML configuration seperated into different files, so templates go, in template.yaml if you don’t have that set up you will need to paste it into the template section of configuration.yaml.

I have added “from event” on the end, so that it offers you a unique entity name to search for.

I hope that helps.

Shunts…

Thats working now.

Thank you Shunts for your help, really appreciate it.

1 Like