So this seems weird. The piston works on the bulb, but only if the state of the bulb changes. For example, IF the bulb changes to on, the piston performs correctly and chooses the right color.
Nothing happens if the bulb “is on.”
When the state of the bulb changes:
7/24/2019, 7:33:48 PM +214ms
+2ms ╔Received event [Living Room Accent].switch = on with a delay of 108ms
+1445ms ║RunTime Analysis CS > 1302ms > PS > 91ms > PE > 52ms > CE
+1448ms ║Runtime (50734 bytes) successfully initialized in 91ms (v0.3.10d.20190627) (1446ms)
+1449ms ║╔Execution stage started
+1463ms ║║Comparison (enum) on changes_to (string) on = true (1ms)
+1465ms ║║Cancelling condition #12’s schedules…
+1466ms ║║Condition #12 evaluated true (7ms)
+1467ms ║║Cancelling condition #11’s schedules…
+1468ms ║║Condition group #11 evaluated true (state changed) (10ms)
+1470ms ║║Cancelling statement #2’s schedules…
+1518ms ║║Calculating (dynamic) 80.0 <= (integer) 100 >> (boolean) true
+1523ms ║║Calculating (dynamic) 80.0 <= (integer) 95 >> (boolean) true
+1529ms ║║Calculating (dynamic) 80.0 <= (integer) 90 >> (boolean) true
+1534ms ║║Calculating (dynamic) 80.0 <= (integer) 85 >> (boolean) true
+1540ms ║║Calculating (dynamic) 80.0 <= (integer) 80 >> (boolean) true
+1545ms ║║Calculating (dynamic) 80.0 <= (integer) 75 >> (boolean) false
+1551ms ║║Calculating (dynamic) 80.0 <= (integer) 70 >> (boolean) false
+1556ms ║║Calculating (dynamic) 80.0 <= (integer) 65 >> (boolean) false
+1565ms ║║Calculating (dynamic) 80.0 <= (integer) 60 >> (boolean) false
+1571ms ║║Calculating (dynamic) 80.0 <= (integer) 55 >> (boolean) false
+1577ms ║║Calculating (dynamic) 80.0 <= (integer) 50 >> (boolean) false
+1583ms ║║Calculating (dynamic) 80.0 <= (integer) 45 >> (boolean) false
+1588ms ║║Calculating (dynamic) 80.0 <= (integer) 40 >> (boolean) false
+1594ms ║║Calculating (dynamic) 80.0 <= (integer) 32 >> (boolean) false
+1599ms ║║Calculating (dynamic) 80.0 <= (integer) 15 >> (boolean) false
+1604ms ║║Calculating (dynamic) 80.0 < (integer) 0 >> (boolean) false
+1633ms ║║Executed physical command [Living Room Accent].setColor([[hex: #b1ff20, hue:22, saturation:100, level:56]]) (18ms)
+1634ms ║║Executed [Living Room Accent].setColor (23ms)
+1657ms ║╚Execution stage complete. (208ms)
+1659ms ║Setting up scheduled job for Wed, Jul 24 2019 @ 7:34:37 PM CDT (in 47.243s)
+1673ms ╚Event processed successfully (1673ms)