I know there is a better way to do this, but I can’t figure out how to do the whole variable notificationsent=false and variable norificationsent=true thing. If someone can fix this code or explain to me how to do that I would appreciate it.
Only send SMS once a day
try this:
hopefully you dont have temperature go below 80ª after 4pm while you are home only on the same day of the month.
that would work. the probability of going over 4 weeks without matching that condition is kind of low so usually i just stay with the day.
You have three conditions for this piston. The time, the temp and the presence. If you changed one to a trigger instead of a condition, then it would only run when that trigger occurred and the other two were true as well. The question is, if the tp drops at 11pm,would you want to be notified? Or at 8;52? Is the trigger the temp changing or is it the presence changing? We are you trying to make this go off? You may also want to look at using modes rather than presence. Much more reliable.
if the if clause was changed to have one trigger and two conditions then the if clause would only be evaluated when the trigger was triggered but not if either of the other two conditions changed. that would work if the temperature change was changed to be a trigger but not if the other two were set to be a trigger.
for example if presence was set to be the trigger it wouldnt work right if you are home already when the temperature drops below 80ª and the time is after 4pm.
That’s why the entire concept doesn’t make any sense to me. Why would you only want it after 4? Wouldn’t you want it whenever you were home and the temp changed? I started to put a whole bunch of these together recently. And after wasting a good 2 or 3 days I trashed all the pistons. I was getting so many notifications about my thermostat that they lost all meaning. I would focus on the thing that’s the most important,the temp change. I considered having a notification every time the temp changed by more than 5 degrees.
I did it after 4:00 PM because I didn’t want notifications in the morning and all day long. The purpose of it is to let me know in the afternoon that the temp has dropped low enough to open up the windows and use my whole house fan rather than my AC.
How well does the whole house fan work? In the UK we are experiencing quite the heat wave and I have considered a whole house fan concept using multiple extractor fans linked up as I don’t have somewhere for a whole house fan.
It works great. Cools the house down quickly. Creates a nice breeze of cool air through the house.