Template Fan

Hi All,
I’ve just come across the Template Fan component and am pretty keen to implement it in my dumb/infrared setup.
I’ve managed to get it working with my Broadlink RM with regard to turning a floor fan on and set the speed, but have hit a brick wall with regard to oscillation and fan rotation/direction.

How would one use the oscillation_template as a script rather than an input select?
I’d like to cycle through the oscillation values the fan has and the component currently displays as a switch, making it tricky to activate the various modes.

The direction_template only has forward and reverse, which bizarrely populates as left and right, yet left is the only active button on the frontend.
lounge_fan.yaml (5.7 KB)

Any suggestions would be welcome! Attached is my package config
Thanks!

Check my solution out. I think you have a similar fan to mine: Template Fan configuration