Motion from Ring Camera

Hello,

I have an automation to turn on my driveway lights when motion is detected on a couple of ring cameras. In the YAML I’m using two different methods to trigger the action.

Can someone explain why the first is working but not the second?

entity_id: binary_sensor.stable_motion
from: 'off'
platform: state
to: 'on'

device_id: bc6f1721f71b44ef9d9452b908e39a09
domain: binary_sensor
entity_id: binary_sensor.gate_motion
platform: device
type: motion

The first trigger is a state trigger. It simply means, “when the binary sensor turns from ‘off’ to ‘on’ do the following”.

You’re basically just defining a motion device in the second trigger, but not defining what the motion level or duration should be for that trigger to execute. When configuring from the UI (which is what the documentation suggests), you also need to choose an ‘above’ or ‘below’ percentage, as well as a duration.