I have extended this blueprint to allow for per-side rotation actions using an input number helper to track the active side from the last flip action (so it does suffer from the shortcomings that brent mentioned).
This also includes an example for how to use relative_degrees in an automation.