Device at the end of a hosepipe