Trying to understand logic of piston


#1

1) Give a description of the problem
Why is this piston showing in the dashboard as true

2) What is the expected behavior?
Piston triggers at a specific time

3) What is happening/not happening?
it is showing as true. Why isn’t it showing as false?

**4) Post a Green Snapshot of the piston!

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

It’s generating a random number of minutes between 100-118 before midnight.


#3

That is correct but why isn’t it showing false because it is not the time to trigger it.


#4

Ah, I believe it just showed true as for when it executed the previous day. You can override that by disabling automatic piston state and set your own.


#5

The piston state is only updated when the piston runs.
It will remain that way until the next run.

But I agree with @eibyer. 95% of my pistons have disabled piston state, and I put my own (useful) information there.


Using an ‘Expression’ like this:

temp

can make the Dashboard display something like this:

temp


#6

@wcmore Man your smarthouse changes sheets???
damn, I was just happy that mine turns the lights on and off…
:rofl::rofl::sweat_smile::sweat_smile::joy::joy::joy::cocktail::cocktail::cocktail::cocktail:


#7

Wouldn’t that be nice!!

Actually part of that piston is so my oscillating fan turns off temporarily, since it’s a pain trying to make the bed with the fan blowing air across the top. (it also turns on bright lights for a few minutes, since I normally like dim lights in there)

Six minutes later, everything automatically returns to it’s previous state.