Return Lights to Original State


#1

1) Give a description of the problem
I want my lights to return to their original state after flashing red when the dryer is finished

2) What is the expected behavior?
To switch back to the original state. When the piston runs the lights turn off and stays on the color red. If my lights were on with a green color, I want them to return back to that state.

3) What is happening/not happening?
Lights stay off and red is default color

**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)


#2

This is how I do it to remember the levels. I think there is a similar way with colors as well. (although I would guess the variable would be a string for colors)

temp

At the beginning:
temp

[Fancy code goes here]

At the end:
temp


#3

I you use another piston to manage the default levels/colors. You could simply add ‘run piston’ to the end.


#4

Thanks. I’ll give it a try.