Open Bed Time Automatically
You can use the Shortcuts app to automatically open Bed Time when you connect your iPhone to its charger at night time by following these steps:
1. Open the Shortcuts app and make sure the Shortcuts tab bar item is selected
2. Tap + to add a new Shortcut
3. Search the Actions for If and add an If statement
4. Tap Condition and select Current Date
5. Tap Current Date and select Time
6. Tap is exactly and change to is after
7. Tap Time and select the time you would want Bed Time to open e.g. 10:00pm
8. Search the Actions for Open App
9. Tap App within the Open action and select Bed Time
10. Drag the Open Bed Time action so that's it's between the If and End If statements
11. Tap the arrow at the top to rename your shortcut and then tap Done to save it
12. Tap the Automation tab bar item and
13. Tap + to add a new Automation
14. Tap Charger, Is Connected, Run Immediately
15. Tap Next and select the Shortcut you just created
That's it! Now anytime you connect your iPhone to its charger, if it's after the time you specified, Bed Time will automatically open.