Not subscribed but has lightning


#1

1) Give a description of the problem
Piston says it is not subscribed to events bit has lighting in sides next to time triggers.

It is not firing though

2) What is the expected behavior?
Piston should fire at times and turn on switch if another switch is on.

3) What is happening/not happening?

Piston is not firing at all

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

it ha


#2

What happens if you take the triggers outside the restrictions (and add them in as conditions instead)? Can’t see any other reason that would be giving you any issues.


#3

I tend to make sure my TIME triggers are NOT indented. (Top level - extreme left)
My conditions I put inside that block. Something like this:

Every day between 5am and 6:59am
    IF Motion Sensor's motion changes to active
    and
    Switch 11 is on
        Then Turn on Switch 12
    End IF
End Every

Every day at 7am
    Then Turn off Switch 12  (no need for conditions here)
End Every

Every day between 5pm - 5:59pm
    IF Motion Sensor's motion changes to active
    and
    Switch 11 is on
        Then Turn on Switch 12
    End IF
End Every

Every day at 6pm
    Then Turn off Switch 12  (no need for conditions here)
End Every

Every day at 4:30am
    IF Switch 10 is on
        Then Turn on Switch 13
    End IF
End Every

Every day at 6:45am
    Then Turn off Switch 13  (no need for conditions here)
End Every

Every day at 7:15pm
    IF Switch 10 is on
        Then Turn on Switch 13
    End IF
End Every

Every day at 8pm
    Then Turn off Switch 13  (no need for conditions here)
End Every

Using this method totally removes all wait commands. (which is a good thing)

It also ensures the piston only runs 8 times a day. At the allotted time, it checks the conditions of the other device, and acts accordingly.


#4

thanks for the help. much appreciated.
will give it a go and report back.


#5

how does this look?

kind of seems redundant to have the restrictions entered twice on each IF. but if it works i’m happy!


#6

I am not at a computer at the moment, but I do notice one thing. Where I suggested to use an IF, you didn’t. And where I did not use an IF, you did.

With your current wording, it should do absolutely nothing.
(it is impossible for the time to be 5am and 5pm simultaneously)

My free time today is limited, but if you can wait until tomorrow, I can whip up a piston for you that should work as expected.


#7

goodness me. you’re right. can’t believe i missed that.

not sure how I can bring them up higher. tomorrow is fine - you’re helping me out! :slight_smile:


#8

I have re-worked the structure in your piston to streamline it.

With this method, the piston will ONLY run 8 times a say, at the times listed. If one of the conditions is not true at the time, it skips that group of commands.


Be careful when importing this piston (gxfg)
temp
because there are 5 devices that need to go in the right section.
(you can use your old piston for reference)

If you are new to webCoRE, make sure you PAUSE your old piston to properly test this one.
(so they don’t conflict)


#9

Thanks very much - will give it a go.