- With iPhone, you can only track your Time in Bed
Step 1. Open your Health app and set up your sleep schedule
- In the Health app, tap Browse at the bottom right, then tap Sleep.
- Scroll down to Your Schedule, then tap Full Schedule & Options.
- Tap Set Your First Schedule, then select your options:

Step 2. Make sure to turn on Track Time in Bed with iPhone

More info
https://support.apple.com/en-lamr/guide/iphone/iphaf56dceb4/ios#:~:text=In the Health app%2C tap,remove it from your schedule