Many have already pointed that there have been studies to measure the accuracy of sleep analysis by wearables. They aren't that great. If you have a concern, you should definitely seek out a polysomnograph, and wearables should not be a replacement for that. However, you can't get a polysomnograph every night, and wearables are probably the best option for regular analysis. Just because they're not that great doesn't mean they're useless, and doesn't mean they won't improve.
Most devices (Fatigue Science Readiband, Fitbit Alta HR, EarlySense Live, ResMed S+, SleepScore Max) performed as well as or better than actigraphy on sleep/wake performance measures, while the Garmin devices performed worse.