For my bedtime routine I have it fire when I start charging my phone. There’s an iOS shortcut that fires an HA event when I plug or unplug my phone, and if we’re all home and it’s after bedtime it turns everything off and sets the alarm
Huh, that's a pretty great idea/workflow! I'm still figuring out HA's scripting. I find the JSON based DSL to be pretty awkward so far, so I haven't experimented with it much.
I felt that way too and didn’t like the point and click interface of nodered. Instead, I’m using appdaemon which lets me write all automations using actual code (python) along with the VSCode plugin for HASSOS (not my editor of choice but it’s the only available one)