Light Macro/Template Switch

I have a Hyperion light that I’d like to customize control for such that:

off = light.hyperion turn_on rgb_color [0,0,0]
on = light.hyperion turn_off

Can anyone help me understand the best way to setup this custom switch/light? I tried with a platform switch, but couldn’t figure it out.

Thanks!