Change to off and turn off not woking


#1

I have tried both change to off and turn off both stop after a few days


#2

Please post this in the Piston Design Help category, and fill in the fields like below. I have absolutely no idea what you are asking or expecting. Happy to help, but need details to be effective.

milhouse

1) Give a description of the problem
(PUT YOUR INFO HERE)

2) What is the expected behavior?
(PUT YOUR INFO HERE)

3) What is happening/not happening?
(PUT YOUR INFO HERE)

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

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.


#3

it was posted Switch change working every other time
then i moved it bug because no matter what i tried off stops every few days


#4

What was your latest code that stops after a few days?


#5

this
image


#6

Put the wait before line 30 and then set that with task cancellation policy to never cancel. Also, I don’t see Line 18 as subscribing to the Switch 1 switch event.


#7

do you men like


also what does this mean Line 18 as subscribing to the Switch 1 switch event.


#8

Not quite, will try and import it when I get to a PC.


#9

Have you tried setting the piston this way?


#10

if i changed to a Momentary Button Tile
is this all i would need


#11

I thought momentary switch wasn’t working for you in a previous post? Why not just use a regular switch and try the piston above.


#12

i am test code from above will let it run a few days and see how it works
it looks like Alexa is ok with it now
i am just trying to keep it simple


#13

your code fixed all problems i was have thanks beau