My First Piston for my Whole House Fan


#1

I just created my first piston and what I am trying to do is have my whole house fan turn on if my presence sensor shows I am home, the temp on any of 3 sensors is 80 degrees or above, my thermostat is set to idle and the temp outside is less than or equal to 76 degrees.

If that happens I want the whole house fan to turn on and get a SMS notification. Otherwise keep it off.

Did I do it right? Am I missing anything?


#2

I believe your trying to get outside temp withe the {$weather}. That’s the wrong format. It should be

$weather.conditions.current_observation.temp_f - for farenheight
Or
$weather.conditions.current_observation.temp_c -for Celsius

Check out this page for weather related formats

https://wiki.webcore.co/Weather

Otherwise it looks like it should work, welcome aboard!


#3

Another noob question. I didn’t see the option you stated in the drop down, how do I go in and edit the code manually to add in the line you suggested?


#4

Your referring to $weather?

Tats an expression. Select expression and type $weather.conditions.current_observation.temp_f


#5

Here let me help, I changed it in this version. From there you can see what and how it’s done

Import that piston and try


#6

Ok, I think I have it. How does it know what location it is referencing for the current outside temp? Do I need to add a line that state a zip code or something?


#7

It references the wether for your hub. Whatever zip code you entered in for the hub you setup