cancel
Showing results for 
Search instead for 
Did you mean: 

Help with motiondetectionevent eventdata

jameskpenn
Community Member

Maybe I am making this harder than it needs to be but I am trying to setup an automation that turns off my exterior lights if either my Hue motion sensor or nest doorball does not detect motion for at least 10 minutes.  

 

I have the hue motion sensor figured out via the motion detection state.  I am not able to figure out how to check the eventdata for motiondetectionevent for the last motion trigger and check if it is over 10 minutes.  

 

The doorbell does not support motiondetection STATE so I have to use event.  

Any suggestions?  

1 REPLY 1

Pitsom
Community Member

Something like this?

 

- starters:

  - type: device.state.MotionDetection

    device: sensor - Living Room

    state: motionDetectionEventInProgress

    is: false

    for: 5min

  actions:

  - type: device.command.OnOff

    devices:

    - light - Living Room

    on: false