Turns fan on based on temperature (automation)

I am trying to setup an automation that does the following:


1. Temperature at home hits {said temp}º

2. Ceiling fan in garage turns on

3. Temperature hits {said temperature in garage}º

4. Ceiling fan in garage turns off


How can I go about doing this? I’ve tried using the “get current weather (at specific location)” and then added an if statement attached to that and then attached to the if statement a “set home” condition. When I run the automation it just tells me the current weather at said location instead of running the rest of the commands. What am I doing wrong here? 😩