Okay, I’m following you on this just wondering if I should use something besides Else If as the condition because how about if there are multiple sensors that are true if I did Else if it would only change the first one that’s why I was thinking i needed a For loop.
If you have a very complex situation, you can always use individual actions applied to a series of OR’d conditions or condition groups:
IF
A >>> when true do this
OR
B >>> when true do that
OR
(
C
AND
D
) >>> when true do these
etc.
This construction works like a switch case - only one branch is executed:
IF
A >>> when true do this
ELSE IF
B >>> when true do that
ELSE IF
(
C
AND
D
) >>> when true do these
This is what I’ve got now, not complete but just to see if I’m going in the right direction. I think my problem is going to be the nested variable groups should be AND instead of OR? It won’t let me change it.
You can tap on the first OR of each group to change the grouping method. All following will change too.
I don’t think this will work because the sensor list variable will contain a list of all matching sensors and your condition only applies if and when only one of the sensors is matching. Which is unlikely.
Try with something like this:
IF
Temperature sensor 1 is not between thermostat -5 and thermostat+5 >> when true do something 1
OR
Temperature sensor 2 is not between thermostat -5 and thermostat+5 >> when true do something 2
etc.
The is condition is not between or is between is not available, is that a condition you are considering with the ability to use a device as a condition on both ends? Currently the only way i can figure out how to do it is with 2 conditions one checking greater then and the other lesser than.
What attribute sre you comparing?
Trying to compare the temperature of a motion sensor to the thermostat and see if the motion sensor value is between a certain value from what the thermostat is. For example is motion sensor temperature between 2-4 degrees from the thermostat set point.
Have you enabled the import data? Can you go to the trigger and tap Done and save the piston? Do the errors go away?
I’ve been gone for a few days and didn’t even know about the import data toggles. Do these need to be enabled? I’ve gone into the trigger and tapped Done and saved the piston but the errors are still there.
This a newbie question but how do you make a condition for an amount of time. I’m trying to do something only if something has been open for 5 mins. Also by any chance does this integrate with Big Talker or any thing like that?
Thanks
Have you tried “stays”? Or use the trigger “changes to” open, use the wait task for however many minutes then follow it with the task you want. Set cancel on piston change so the timer will reset if states changes. I hope that made sense lol, it’s almost bedtime 
Is this a new record? ‘just’ 1332 seconds late. @ady624 the schedule counter feature is just briliant!!!
Those are missed ST jobs. Will probably never happen…
I know
That’s why I felt the need to say (again) the counter is brilliant. It saved me a whole lot of time to log in ide, go to location…yada yada yada
Hey @ady624 I know I asked you before but I still cannot make it work. If the mode changes (or override switch comes on) is there any way I can unschedule all of the actions in BUT IF? I played around with TOS to no avail.Thoughts?
@ady624. I second what @SBDOBRESCU is talking about.
In my latching piston I have an override switch. If the switch is on before the piston is active, then all is good. The piston does nothing.
But, if the motion has stopped and the but-If has become true and the countdown timer starts, turning on the override switch at that time does nothing. It did not stop the timer.
I even tried adding a global pending jobs cancel in the piston that turns on the override switch… Still didn’t work.
I’ve got an Or-If piston used for lighting the desk in my upstairs hallway. The logic is as such:
IF Time is between 7:05 PM CDT and 10:35 PM CDT AND Home is one of [Guest or Home]
THEN Turn On Upstairs Hall Desk Lights
ELSE Turn Off Upstairs Hall Desk Lights
OR IF Time is between 5:45 PM CDT and 7:25 PM CDT AND Home is one of [Guest or Home]
THEN Turn On Upstairs Hall Desk Lights
ELSE Turn Off Upstairs Hall Desk Lights
It’s been working well for a couple of weeks now. Recently it appears to have quit working as expected. Here is the most recent job history:
timeHandler 2016-06-27 7:05:00 PM CDT 2016-06-27 7:05:00.378 PM CDT 378 8015
timeHandler 2016-06-27 7:25:00 AM CDT 2016-06-27 7:25:00.372 AM CDT 372 6342
timeHandler 2016-06-27 5:45:00 AM CDT 2016-06-27 5:45:00.641 AM CDT 641 13067
timeHandler 2016-06-26 10:35:00 PM CDT 2016-06-26 10:35:00.559 PM CDT 559 9345
timeHandler 2016-06-26 7:05:00 PM CDT 2016-06-26 7:05:00.329 PM CDT 329 1418
timeHandler 2016-06-26 7:25:00 AM CDT 2016-06-26 7:25:00.485 AM CDT 485 5447
timeHandler 2016-06-26 5:45:00 AM CDT 2016-06-26 5:45:00.606 AM CDT 606 11099
timeHandler 2016-06-25 10:35:00 PM CDT 2016-06-25 10:35:00.613 PM CDT 613 6388
timeHandler 2016-06-25 7:05:00 PM CDT 2016-06-25 7:05:00.373 PM CDT 373 4633
timeHandler 2016-06-25 7:25:00 AM CDT 2016-06-25 7:25:00.704 AM CDT 704 6920
timeHandler 2016-06-25 5:45:00 AM CDT 2016-06-25 5:45:00.591 AM CDT 591 10438
timeHandler 2016-06-24 10:35:00 PM CDT 2016-06-24 10:35:00.674 PM CDT 674 5096
timeHandler 2016-06-24 7:05:00 PM CDT 2016-06-24 7:05:00.402 PM CDT 402 6690
timeHandler 2016-06-24 7:25:00 AM CDT 2016-06-24 7:25:00.644 AM CDT 644 2408
timeHandler 2016-06-24 5:45:00 AM CDT 2016-06-24 5:45:00.732 AM CDT 732 2555
timeHandler 2016-06-23 10:35:00 PM CDT 2016-06-23 10:35:00.951 PM CDT 951 4626
timeHandler 2016-06-23 7:05:00 PM CDT 2016-06-23 7:05:00.411 PM CDT 411 8802
timeHandler 2016-06-23 7:25:00 AM CDT 2016-06-23 7:25:00.529 AM CDT 529 4470
timeHandler 2016-06-23 5:45:00 AM CDT 2016-06-23 5:45:00.616 AM CDT 616 9782
You can see that since the evening of 6/27 no jobs have executed. I also see no scheduled jobs listed for this piston in the IDE. I haven’t made any recent changes to the piston, so any thoughts on what may have happened?
Design the piston in such a way that it changes state when that happens, so that TOS can work.
Or use the “cancel all pending tasks” task… 
I tried that… Didn’t work


