Turning AC ON

Running it manually bypasses the triggers and conditions. So, running it manually and it working shows that your trigger has an issue.

Also, please see this post on formatting your automations properly.