Want piston to only fire once a day


#1

1) Give a description of the problem
The piston fires multiple times

2) What is the expected behavior?
I’m trying to set a variable so that the piston only fires when the variable is false to keep the piston from firing multiple times and or when I don’t want it to.

3) What is happening/not happening?
I’m either not setting the variable correctly, or I have something else wrong as the piston fires more than once.
4) Post a Green Snapshot of the piston


#2

Give this a try:

  1. Don’t define a value for your boolean Workout. As it stands now, every time the piston executes,
    Workout gets initialized to false. Also, the second IF block will never evaluate since it’s outside of the time specified in the restriction.

  2. Change line 23 to “Workout IS NOT true”

  3. Move the restrictions into the first IF

  4. Change the second IF condition to Always Subscribe

I don’t have motion sensors or audio devices in this instance of webCoRE, so I used a present sensor as a place holder :smile:

Hope this works, LOL …


#3

#1 and #2 seem to have fixed it, thanks for the help!