Inactive Motion Sensor & Rule Machine

@wael.zayed here's an example