Motion Activated Fan?

New to Home Assistant (migrating from OpenHab).
I’ve configured some motion-activated lights, but I need a motion-activated fan, and can’t see how to set it up. Can anyone point me in the right direction? TIA

I got it done, but it seems overly convoluted:

  1. Created a switch template helper around the fan.state
  2. Applied a change switch type helper on the new switch
  3. Used the motion activated light automation on the new “light”

I’m sure theres a better way - but it works :grinning: