create plugin device-motion