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.
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.
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.
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
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.
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.