Help with time and temp piston


#1

1) Give a description of the problem
I would like to make a piston for my bedroom AC. I don’t know how to make the piston recheck the temp every 30 minutes and determine if the AC switch need to be turned off or keep it on until the desired temp is reached or time is reached

2) What is the expected behavior?

IF day is mon tue wed thu fri or sat AND
IF time is between 1pm and 430 pm
OR time is between 7pm and 8am
AND master bedroom temp is 70 degree or higher
THEN turn on master bedroom ac switch to ON

This is where I need help I need the piston to recheck the room temp every 30 min and when the room has reached 62 degrees I need it to turn the Ac switch off but I need the piston to keep rechecking the rooms temp and turn on the ac switch when the temp rises again to 70 degrees. Again all of this needs to happen within the specified times.

3) What is happening/not happening?
nothing yet still creating the piston.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)


#3

Why check every 30 minutes and not react immediately? You could change the temp statement to rises above 70 and it would trigger as soon as the sensor reports a higher temperature.


#4

Try this


#5

This is exactly what I wanted thank you!!