A tip for using Alexa routines
Here's a tip that might not have occurred to everyone. Alexa routines trigger devices, typically switches which then trigger rules in the controller. But it's problematic to have a switch just turned "on" or "off", because since the controller will only react to a state change, the switch needs to be in the opposite state for anything to happen. At the beginning I handled this by having the Alexa routine turn the switch "on", and then having the rule turn it back off again. But this is not 100% reliable.
Then I realised there's a much better way: just have the routine turn the switch on, and then off again (and make the rule react to "any" state). One of these state changes is guaranteed to work, and the other is guaranteed *not* to work - so your rule will only be executed once.