Intermittent ON/OFF but "only while home"


#1

1) Give a description of the problem
I want a piston to control some plugs, intermittently turning them on/off but only while location mode is HOME. The piston works but when location mode changes to AWAY for example, the “only while home” is not being respected, the plugs continue to toggle on/off.

2) What is the expected behaviour?
When location mode changes away from HOME, stop toggling the plugs on/off.

3) What is happening/not happening?
Plugs continue to toggle on/off when location mode is not HOME.

**4) Post a Green Snapshot of the piston

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)


#2

There are many ways to do this but I would try it this way…

Every 15 minutes
IF Mode is Home
  THEN
    DO
       WITH Switch 2 and Switch 3
           Turn On
       END WITH
       Wait 7 minutes
       WITH Switch 2 and Switch 3
           Turn Off
       END WITH
  END THEN

You will probably have to change TCP (Task Cancellation Policy) to NEVER.


#3

Thanks @Pantheon, I think I tried that method already but I’ll give it another shot. Maybe TCP is the key.


#4

Yes, this worked great. Thanks!


#5

:+1: Glad to help!