Possible Bug With Automations Using Visual Editor?

You're missing the code for your automation, formatted properly — see points 9 and 11 in the How to Help sticky:

Can you control the fan from HA directly?

Jumping to the conclusion that HA is unable to control fans is a bit premature...