Turn on heater at certain time only when present


#1

**1) trying to get an outlet to come on at a certain time, but only when present

**2) expect outlet to turn on at time but only when presence sensor shows present. Then turn off at time or whenpresence turns to away

3
**3)not turning off

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)

5) Attach logs after turning logging level to Full


#2

The reason it’s not turning off because your second IF statement is WITHIN the first one. So it will never be true.
The way you wrote says this,
At 11.53pm, execute the piston and THEN at the same time if it’s 11.55pm then turn it off.

You see what I mean…

Take that second IF block and put it after line 39 (End if)


#3

If you are new to webCoRE, you can drag and drop that block to the bottom.
(quicker than rewriting the block, IMO)


#4

Thank youa


#5

it that solves please check the solved box so it can help others afterword.


#6

I think this is what @ike2018 and @WCMore are getting at

Off topic: Have you verified that your heater is under the maximum load of your plug? I’ve seen some plugs only rated for 10a, which would probably overload with the typical 1500 watt heater.

Edit: Oh, my bad… didn’t read that right. I don’t think my example does what you want. The solution suggested above matches better.