I use Sleep as Android and Tasker. When I go to sleep, I set my alarm with Sleep as Android. Tasker uses that event as a trigger and makes an http request to my home automation hub. That http request is pushing a virtual button. That button puts my house into sleep mode. So the end effect is that I turn on my alarm and my house goes to sleep. I can also push a physical button on the wall to enable sleep mode, so I don't have to use this automation, but I like the way this works.
I also use Tasker to enable Do Not Disturb when using a set of applications: Kindle for ebooks, my meditation app, etc.
I also use Tasker to enable Do Not Disturb when using a set of applications: Kindle for ebooks, my meditation app, etc.