My favorite is a script not a automation exactly. I run it (just before I get up for bed) via dashboard button or voice command and it:
- shuts off most of the lights and any screens around the house
- sets the thermostat to bedtime mode
- waits 5 minutes (time for me to get my stuff and get to bed) then
- turn off the remaining lights outside my bedroom
- Calls my autoremote endpoint
Auto remote then triggers a tasker profile that makes my phone
- turn on DND
- set media volume for sleep music and alarm volume for morning (just in case either has been change during the day)
- set a variable that another tasker automation will see the next time I plug in my phone. At which point it will:
- set my screen brightness below 1%
- turn on sleep tracking