I’m trying to set up a piston that turns the air conditioners on/off at certain times but only if I’m in a certain mode. I want to keep them all in the same piston. Any suggestions?
Air Conditioners
Could be something like this,
IF time happens daily at 7:00:00am (trigger)
AND
IF home mode is HOME (Condition)
Then
With AC #1 Turn ON
IF time happens daily at 9:00:00pm (Trigger)
AND
IF home mode is HOME (Condition)
Then
With AC #1 Turn OFF
How does this look?
Will this run properly even though its not in chronological order (it says it runs asynchronously)
My only worry would be so many Timers in a single piston.
But I’m not a coder or expert on Webcore structure.
Maybe one of the pros, minions would want to comment on that?
The way it is currently written, it should not be a problem. Just keep in mind that adding other logic outside the “EVERY” blocks may not run as expected.
Side Note:
The eight (N)'s you are using are serving no purpose at all…
Awesome!! Thanks a million!
P.S. I guess I’ll take out the (N)'s. Was just trying to make sure that they always ran. What’s their use for?
If you have a trigger and/or condition that executes an IF block but you want piston keep running - even the condition or trigger is no longer TRUE - you use N
IF switch changes to ON
Then with **(N)**
Turn ON Light bulb
Wait 5 minutes
Turn OFF light bulb
With N - Piston turns On the bulb - waits 5 minutes - turns OFF the bulb
Without N - Piston turns On the bulb - that’s it…