Help with auto on using temperature


#1

1) Give a description of the problem
I have designed a piston for a heater to automatically come on when the temp is below 2oc. I want it only to work between 10pm and 6pm the following day and when active go off after 20mins

2) What is the expected behavior?
(PUT YOUR INFO HERE)

3) What is happening/not happening?
The temp goes below 2 but the switch doesn’t activate. If I turn the switch on however it tells me it’s active notifies my phone and goes off after 20mins like a asked

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)


#2

You don’t have the temp as a trigger, you have the switch as the trigger. See the lightning bolt next to the “Switch 9’s switch is on”? You don’t have a lightning bolt on the first expression. Remove the temp from the restriction, that 's where you want to have the time restriction. And make the temp an If statement. If temp drops below 2 degrees or stays below or whatever trigger you want. But you need to have a trigger, lightning bolt, in each expression.


#3

ok thanks for your help ryan i think ive it nailed now


#4

Yeah…is it your intention to only turn the heater on once and run it for 15 minutes? Or are you 100% sure that running the heater for 15 minutes will raise the temp about 2?


#5

Yes it’s a 2kw heater so a 15 min blast usually takes it up past 7.5oc and it’s very well insulated so holds it pretty well, the hours between my wife is working in there so I need the heater to stay on longer if that makes sense