Multi Lights Colour Rotate


#1

1) Give a description of the problem
Piston pauses after changing bulb 1 to the first colour, with no further action.

2) What is the expected behaviour?
All four lights are expected to change colours every two minutes in a rotating pattern, while looping between 6pm and midnight.

3) What is happening/not happening?
Piston is stopping after the first light changes, none of the other lights (flood 2, flood 3, flood 4) change, and Flood 1 one only changes to the first colour.

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

  1. Log: 12/20/2019, 6:07:42 PM +163ms
    +6112ms ║Piston waited at a semaphore for 6009ms

#2

Not sure how long you are waiting. This piston will only cycle one bulb changing it every 2 minutes and then move to the next bulb. Each time it changes, it will stop and set a timer for the next color. Don’t think that was your intention. The log you posted, did that have logging set to full?


#3

Not at the time, I have it set for full logging for tonight. Are you saying that in order to have four separate RGBW bulbs repeat a pattern of colours, I will need a while-loop piston for each bulb?


#4

Not necessarily but you do need to change all four bulbs before going to the wait. Remember, this will execute top to bottom. What you have will change bulb 1 to 1st color, wait 2 minutes, change to second color, wait 2 minutes, after the fourth color, wait 2 minutes, change bulb 2 to 1st color, wait 2 minutes, etc. If you want all four to be different colors, you will need 4 with statements before each wait statement.


#5

I have so many ideas for this one, but will not be able to focus on this until after the holidays… :slightly_frowning_face:


#6

Hi, i’m still having trouble with the piston stopping at the first colour ser. I changed it so all four lights change at once, but it only does it for the first set and stops. rotate|290x500

12/22/2019, 6:14:31 PM +601ms
+1ms ╔Starting piston… (v0.3.10a.20190223)
+351ms ║╔Subscribing to devices…
+583ms ║║Subscribing to Flood 1…
+584ms ║║Subscribing to Flood 2…
+585ms ║║Subscribing to Flood 3…
+586ms ║║Subscribing to Flood 4…
+587ms ║╚Finished subscribing (241ms)
+629ms ║Comparison (time) 65672215 is_between (time) 61200000 … (time) 0 = true (11ms)
+631ms ║Time restriction check passed
+705ms ║Cancelling statement #2’s schedules…
+712ms ║Requesting time schedule wake up at Mon, Dec 23 2019 @ 12:00:00 AM EST
+1967ms ║Setting up scheduled job for Mon, Dec 23 2019 @ 12:00:00 AM EST (in 20726.434s)
+1977ms ╚Piston successfully started (1976ms)
12/22/2019, 6:14:29 PM +814ms
+106ms ╔Stopping piston…
+176ms ╚Piston successfully stopped (71ms)

(Issue solved, moved statements into do block)


#7

Thanks everyone, got it working!