Device intended to be secured to a support piece assembly for such a device and method of securing a device to a support