Condition not happening


#1

1) Give a description of the problem

I’m trying to shut lights off at a certain time. I’m using minutes to make sure I have the conditions correct, but it’s nothing is happening. I tried to use “trigger” for time. “changes to” but that didn’t work either. I"m obviously missing something fundamental here.

**4) Post a Green Snapshot of the piston![image|45x37]


#2

There is no lightning symbol to the left of the code, this tells me that nothing is subscribed, which means there is no trigger to run this code.

you want a timer in there instead of the if statement.


#3

System variables (such as $minute) do not make a good trigger.
They do work well as a condition though.


Perhaps a good testing environment for this would be a slight variation of the final version:

Every day at 7:42PM   (one minute in the future)
Do X

This lets you quickly test your piston as it grows in complexity.
Once you are happy with it, you can set it to the scheduled event.


#4

Thanks. Time=Every for a trigger …appreciate it.


#5

One small tip if you are new to this command…

Every day at X PM
will only execute what is inside the block at the specific times

Alternatively, the code:
IF Time happens daily at X PM
will execute the entire piston, top to bottom, and run any commands not blocked by conditions.

They both have their place, but act very differently at time of execution.


Piston Sending Multiple SMS Notifications
#6

I have not seen that option “if time happens …” I guess my pistons are small enough that there is usually only one block within my piston, though I could see the benefit of executing the whole piston. I’ll need to investigate the “time happens” and other options as well. Thanks.