Fading into random color


#1

So I have a few bulbs I want to have fade into random colors when location is in a certain mode. So every hour it’s faded into a new color. I want this to run constantly until the mode is changed.

Would I use a “While Loop”?

While location is set to evening
With lights 1 and 2
Fade $randomhue
In 60 min

Something like that??


#2

That will work


#3

Just a disclaimer. I’m learning. And I suck at any type of programming. So pardon my total ignorance.
Do I need to define anything in the $randomhue part? From simple testing it always fades to the same colors each time the piston is activated…so I feel like I’m totally missing a step or not defining something I should.


#4

It should be a different value at each run.


#5

So this is what I have. For testing I have it set to 60 seconds. It does the same colors each time the piston runs. And after 60 seconds it’s quits executing. Like I said. I KNOW I’m missing a step/steps. But due to my total lack of knowledge and learning this all still. I don’t know WHICH step/steps. Lol


#6

Turn logging onto full and capture some logs. That will help. Also turn on the trace option.


#7

Trace showed nothing. Here are the logs. Always ends on red, which is a bit off putting as well. Haha.

9/24/2017, 5:04:40 PM +475ms
+1ms ╔Received event [Home].time = 1506290680435 with a delay of 39ms
+196ms ║RunTime Analysis CS > 36ms > PS > 91ms > PE > 69ms > CE
+213ms ║Runtime (37690 bytes) successfully initialized in 91ms (v0.2.0e9.20170921) (210ms)
+214ms ║╔Execution stage started
+2186ms ║║Executed physical command [Corner Lamp].setHue([100]) (1961ms)
+6795ms ║║Executed physical command [Corner Lamp].setHue([100]) (4599ms)
+6797ms ║╚Execution stage complete. (6583ms)
+6800ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:04:41 PM CDT (in 1s), with 2 more jobs pending
+6823ms ╚Event processed successfully (6822ms)
9/24/2017, 5:04:35 PM +655ms
+1ms ╔Received event [Home].time = 1506290675434 with a delay of 220ms
+187ms ║RunTime Analysis CS > 23ms > PS > 85ms > PE > 79ms > CE
+204ms ║Runtime (37691 bytes) successfully initialized in 85ms (v0.2.0e9.20170921) (201ms)
+205ms ║╔Execution stage started
+1929ms ║║Executed physical command [Corner Lamp].setHue([99]) (1711ms)
+2605ms ║║Executed physical command [Hall Lamp].setHue([99]) (663ms)
+2610ms ║╚Execution stage complete. (2405ms)
+2616ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:04:40 PM CDT (in 2.166s), with 4 more jobs pending
+2641ms ╚Event processed successfully (2642ms)
9/24/2017, 5:04:28 PM +855ms
+1ms ╔Received event [Home].time = 1506290666235 with a delay of 2619ms
+205ms ║RunTime Analysis CS > 45ms > PS > 87ms > PE > 73ms > CE
+220ms ║Runtime (37692 bytes) successfully initialized in 87ms (v0.2.0e9.20170921) (218ms)
+222ms ║╔Execution stage started
+953ms ║║Executed physical command [Hall Lamp].setHue([96]) (714ms)
+958ms ║║Fast executing schedules, waiting for 621ms to sync up
+3583ms ║║Executed physical command [Corner Lamp].setHue([98]) (1996ms)
+4244ms ║║Executed physical command [Hall Lamp].setHue([98]) (651ms)
+4249ms ║╚Execution stage complete. (4028ms)
+4255ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:04:35 PM CDT (in 2.325s), with 6 more jobs pending
+4278ms ╚Event processed successfully (4277ms)
9/24/2017, 5:04:20 PM +287ms
+1ms ╔Received event [Home].time = 1506290660431 with a delay of -145ms
+270ms ║RunTime Analysis CS > 40ms > PS > 97ms > PE > 132ms > CE
+287ms ║Runtime (37693 bytes) successfully initialized in 97ms (v0.2.0e9.20170921) (285ms)
+290ms ║╔Execution stage started
+2447ms ║║Executed physical command [Corner Lamp].setHue([95]) (2136ms)
+3157ms ║║Executed physical command [Hall Lamp].setHue([95]) (696ms)
+3165ms ║║Fast executing schedules, waiting for 1981ms to sync up
+7312ms ║║Executed physical command [Corner Lamp].setHue([96]) (2153ms)
+7314ms ║╚Execution stage complete. (7025ms)
+7321ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:04:26 PM CDT (in 1s), with 9 more jobs pending
+7348ms ╚Event processed successfully (7348ms)
9/24/2017, 5:04:14 PM +713ms
+3ms ╔Received event [Home].time = 1506290655430 with a delay of -735ms
+192ms ║RunTime Analysis CS > 44ms > PS > 87ms > PE > 78ms > CE
+207ms ║Runtime (37692 bytes) successfully initialized in 87ms (v0.2.0e9.20170921) (203ms)
+209ms ║╔Execution stage started
+1971ms ║║Executed physical command [Corner Lamp].setHue([94]) (1745ms)
+2775ms ║║Executed physical command [Hall Lamp].setHue([94]) (782ms)
+2785ms ║╚Execution stage complete. (2576ms)
+2795ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:04:20 PM CDT (in 2.924s), with 12 more jobs pending
+2818ms ╚Event processed successfully (2826ms)
9/24/2017, 5:04:08 PM +446ms
+1ms ╔Received event [Home].time = 1506290646230 with a delay of 2215ms
+193ms ║RunTime Analysis CS > 32ms > PS > 84ms > PE > 77ms > CE
+208ms ║Runtime (37692 bytes) successfully initialized in 84ms (v0.2.0e9.20170921) (205ms)
+209ms ║╔Execution stage started
+1187ms ║║Executed physical command [Hall Lamp].setHue([91]) (961ms)
+1195ms ║║Fast executing schedules, waiting for 789ms to sync up
+3785ms ║║Executed physical command [Corner Lamp].setHue([93]) (1793ms)
+4473ms ║║Executed physical command [Hall Lamp].setHue([93]) (674ms)
+4483ms ║╚Execution stage complete. (4273ms)
+4493ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:04:15 PM CDT (in 2.493s), with 14 more jobs pending
+4514ms ╚Event processed successfully (4514ms)
9/24/2017, 5:04:00 PM +433ms
+2ms ╔Received event [Home].time = 1506290640427 with a delay of 6ms
+229ms ║RunTime Analysis CS > 28ms > PS > 129ms > PE > 71ms > CE
+245ms ║Runtime (37691 bytes) successfully initialized in 129ms (v0.2.0e9.20170921) (243ms)
+247ms ║╔Execution stage started
+2242ms ║║Executed physical command [Corner Lamp].setHue([90]) (1981ms)
+3027ms ║║Executed physical command [Hall Lamp].setHue([90]) (762ms)
+3034ms ║║Fast executing schedules, waiting for 1962ms to sync up
+6749ms ║║Executed physical command [Corner Lamp].setHue([91]) (1741ms)
+6750ms ║╚Execution stage complete. (6504ms)
+6761ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:04:06 PM CDT (in 1s), with 17 more jobs pending
+6783ms ╚Event processed successfully (6783ms)
9/24/2017, 5:03:52 PM +556ms
+1ms ╔Received event [Home].time = 1506290631225 with a delay of 1330ms
+286ms ║RunTime Analysis CS > 51ms > PS > 134ms > PE > 101ms > CE
+304ms ║Runtime (37695 bytes) successfully initialized in 134ms (v0.2.0e9.20170921) (301ms)
+306ms ║╔Execution stage started
+1158ms ║║Executed physical command [Hall Lamp].setHue([88]) (831ms)
+1175ms ║║Fast executing schedules, waiting for 1697ms to sync up
+4861ms ║║Executed physical command [Corner Lamp].setHue([89]) (1978ms)
+5518ms ║║Executed physical command [Hall Lamp].setHue([89]) (641ms)
+5520ms ║╚Execution stage complete. (5214ms)
+5533ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:04:00 PM CDT (in 2.339s), with 20 more jobs pending
+5556ms ╚Event processed successfully (5555ms)
9/24/2017, 5:03:45 PM +545ms
+1ms ╔Received event [Home].time = 1506290625424 with a delay of 121ms
+180ms ║RunTime Analysis CS > 25ms > PS > 88ms > PE > 67ms > CE
+195ms ║Runtime (37691 bytes) successfully initialized in 88ms (v0.2.0e9.20170921) (192ms)
+196ms ║╔Execution stage started
+2136ms ║║Executed physical command [Corner Lamp].setHue([86]) (1924ms)
+2988ms ║║Executed physical command [Hall Lamp].setHue([86]) (820ms)
+3001ms ║║Fast executing schedules, waiting for 1881ms to sync up
+6424ms ║║Executed physical command [Corner Lamp].setHue([88]) (1533ms)
+6425ms ║╚Execution stage complete. (6230ms)
+6438ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:03:51 PM CDT (in 1s), with 23 more jobs pending
+6458ms ╚Event processed successfully (6457ms)
9/24/2017, 5:03:35 PM +528ms
+2ms ╔Received event [Home].time = 1506290609597 with a delay of 5930ms
+213ms ║RunTime Analysis CS > 36ms > PS > 91ms > PE > 86ms > CE
+229ms ║Runtime (37692 bytes) successfully initialized in 91ms (v0.2.0e9.20170921) (225ms)
+232ms ║╔Execution stage started
+268ms ║║Comparison (string) :3aac8f1ff2e046dbb00fc8fb347d5655: is_any_of (string) :0cfc1d81253ad5cdbc1a17ac52caa9a6:,:3aac8f1ff2e046dbb00fc8fb347d5655: = true (4ms)
+271ms ║║Condition #6 evaluated true (12ms)
+272ms ║║Condition group #1 evaluated true (state did not change) (15ms)
+277ms ║║Cancelling statement #2’s schedules…
+286ms ║║Skipped execution of physical command [Corner Lamp].on([]) because it would make no change to the device. (3ms)
+287ms ║║Executed [Corner Lamp].on (5ms)
+294ms ║║Skipped execution of physical command [Hall Lamp].on([]) because it would make no change to the device. (3ms)
+295ms ║║Executed [Hall Lamp].on (5ms)
+2255ms ║║Executed physical command [Corner Lamp].setLevel([70]) (1953ms)
+2256ms ║║Executed [Corner Lamp].setLevel (1955ms)
+3040ms ║║Executed physical command [Hall Lamp].setLevel([70]) (782ms)
+3041ms ║║Executed [Hall Lamp].setLevel (784ms)
+4889ms ║║Executed physical command [Corner Lamp].setHue([85]) (1804ms)
+4908ms ║║Executed virtual command [Corner Lamp].fadeHue (1838ms)
+5692ms ║║Executed physical command [Hall Lamp].setHue([85]) (777ms)
+5713ms ║║Executed virtual command [Hall Lamp].fadeHue (802ms)
+5715ms ║║Requesting a wake up for Sun, Sep 24 2017 @ 5:04:41 PM CDT (in 60.1s)
+5727ms ║╚Execution stage complete. (5496ms)
+5765ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:03:45 PM CDT (in 4.133s), with 26 more jobs pending
+5787ms ╚Event processed successfully (5786ms)
9/24/2017, 5:03:28 PM +498ms
+1ms ╔Received event [Home].time = 1506290608647 with a delay of -149ms
+158ms ║RunTime Analysis CS > 29ms > PS > 87ms > PE > 41ms > CE
+173ms ║Runtime (37692 bytes) successfully initialized in 87ms (v0.2.0e9.20170921) (170ms)
+175ms ║╔Execution stage started
+1708ms ║║Executed physical command [Corner Lamp].setHue([85]) (1520ms)
+4017ms ║║Executed physical command [Corner Lamp].setHue([85]) (2298ms)
+4701ms ║║Executed physical command [Hall Lamp].setHue([85]) (672ms)
+5620ms ║║Executed physical command [Hall Lamp].setHue([85]) (906ms)
+5622ms ║╚Execution stage complete. (5448ms)
+5626ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:03:29 PM CDT (in 1s)
+5653ms ╚Event processed successfully (5652ms)
9/24/2017, 5:03:23 PM +451ms
+1ms ╔Received event [Home].time = 1506290603646 with a delay of -196ms
+212ms ║RunTime Analysis CS > 30ms > PS > 116ms > PE > 66ms > CE
+346ms ║Runtime (37694 bytes) successfully initialized in 116ms (v0.2.0e9.20170921) (343ms)
+348ms ║╔Execution stage started
+2283ms ║║Executed physical command [Corner Lamp].setHue([86]) (1920ms)
+2982ms ║║Executed physical command [Hall Lamp].setHue([86]) (687ms)
+2987ms ║╚Execution stage complete. (2639ms)
+2994ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:03:28 PM CDT (in 2.204s), with 4 more jobs pending
+3111ms ╚Event processed successfully (3111ms)
9/24/2017, 5:03:16 PM +582ms
+1ms ╔Received event [Home].time = 1506290594489 with a delay of 2092ms
+197ms ║RunTime Analysis CS > 38ms > PS > 102ms > PE > 58ms > CE
+213ms ║Runtime (37694 bytes) successfully initialized in 102ms (v0.2.0e9.20170921) (210ms)
+214ms ║╔Execution stage started
+1006ms ║║Executed physical command [Hall Lamp].setHue([89]) (779ms)
+1010ms ║║Fast executing schedules, waiting for 1054ms to sync up
+4080ms ║║Executed physical command [Corner Lamp].setHue([88]) (2008ms)
+4825ms ║║Executed physical command [Hall Lamp].setHue([88]) (735ms)
+4830ms ║╚Execution stage complete. (4616ms)
+4836ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:03:23 PM CDT (in 2.229s), with 6 more jobs pending
+4949ms ╚Event processed successfully (4950ms)
9/24/2017, 5:03:08 PM +694ms
+1ms ╔Received event [Home].time = 1506290588643 with a delay of 50ms
+233ms ║RunTime Analysis CS > 63ms > PS > 99ms > PE > 71ms > CE
+269ms ║Runtime (37690 bytes) successfully initialized in 99ms (v0.2.0e9.20170921) (266ms)
+270ms ║╔Execution stage started
+2468ms ║║Executed physical command [Corner Lamp].setHue([90]) (2178ms)
+3337ms ║║Executed physical command [Hall Lamp].setHue([90]) (851ms)
+3344ms ║║Fast executing schedules, waiting for 1607ms to sync up
+7113ms ║║Executed physical command [Corner Lamp].setHue([89]) (2151ms)
+7115ms ║╚Execution stage complete. (6845ms)
+7122ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:03:14 PM CDT (in 1s), with 9 more jobs pending
+7143ms ╚Event processed successfully (7143ms)
9/24/2017, 5:03:03 PM +122ms
+1ms ╔Received event [Home].time = 1506290583642 with a delay of -521ms
+203ms ║RunTime Analysis CS > 53ms > PS > 79ms > PE > 71ms > CE
+215ms ║Runtime (37692 bytes) successfully initialized in 79ms (v0.2.0e9.20170921) (214ms)
+217ms ║╔Execution stage started
+2001ms ║║Executed physical command [Corner Lamp].setHue([91]) (1771ms)
+2700ms ║║Executed physical command [Hall Lamp].setHue([91]) (679ms)
+2896ms ║╚Execution stage complete. (2679ms)
+2914ms ║Setting up scheduled job for Sun, Sep 24 2017 @ 5:03:08 PM CDT (in 2.61s), with 12 more jobs pending
+2938ms ╚Event processed successfully (2937ms)


#8

Instead of fade to random hue try set hue instead or set HSL and use the randomHue for the H and S L can be 100


#9

So when i use Set Color to random or Set Color HSL random, it seems to work as intended. But both bulbs are randomizing to different colors, and i dont have the the slow fade i was looking for.




#10

Ok if you want the fade to remain we might have to restructure this quite a bit.

Currently you have the whole thing inside a while loop. So every command is being sent every time. This isn’t necessary.

Create something like

If xxxxx
Then
With lights
Turn on
Set level
While xxxxx
Fade hue to xxxx over xxxx (how long the fade should take)
Wait xxx (this should be the time you want it to stay that color until it changes again)
End while
End if


#11

Ok, so based off what you said above. Something like this?


#12

Yes exactly


#13

Gonna give it a shot!!


#14

Turn or keep logging on full


#15

Still having a weird issue. The bulbs are always going to be starting at 190°. Yet the logs are showing a totally different hue°. And watching the bulbs/app. I can verify the hue values the logs show vs what the bulb is actually doing are way off. Also anytime i use $randomhue, it always ends on red, 360°. I’ve attached a screen shot of the app showing what the bulb is displaying, time stamps in the log should be 8:58 for comparison.

9/25/2017, 8:58:22 AM +457ms
+1ms ╔Received event [Home].time = 1506347902883 with a delay of -426ms
+302ms ║RunTime Analysis CS > 23ms > PS > 83ms > PE > 195ms > CE
+323ms ║Runtime (39185 bytes) successfully initialized in 83ms (v0.2.0ea.20170924) (321ms)
+324ms ║╔Execution stage started
+2308ms ║║Executed physical command [Corner Lamp].setHue([57]) (1951ms)
+3009ms ║║Executed physical command [Hall Lamp].setHue([57]) (663ms)
+3053ms ║╚Execution stage complete. (2728ms)
+3095ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 8:59:37 AM CDT (in 72.336s), with 88 more jobs pending
+3127ms ╚Event processed successfully (3127ms)
9/25/2017, 8:57:07 AM +461ms
+1ms ╔Received event [Home].time = 1506347827882 with a delay of -422ms
+548ms ║RunTime Analysis CS > 24ms > PS > 330ms > PE > 194ms > CE
+571ms ║Runtime (39187 bytes) successfully initialized in 330ms (v0.2.0ea.20170924) (569ms)
+572ms ║╔Execution stage started
+2140ms ║║Executed physical command [Corner Lamp].setHue([56]) (1530ms)
+2882ms ║║Executed physical command [Hall Lamp].setHue([56]) (704ms)
+2929ms ║╚Execution stage complete. (2357ms)
+2980ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 8:58:22 AM CDT (in 72.443s), with 90 more jobs pending
+3021ms ╚Event processed successfully (3021ms)
9/25/2017, 8:55:52 AM +508ms
+1ms ╔Received event [Home].time = 1506347752880 with a delay of -372ms
+327ms ║RunTime Analysis CS > 29ms > PS > 110ms > PE > 187ms > CE
+372ms ║Runtime (39187 bytes) successfully initialized in 110ms (v0.2.0ea.20170924) (369ms)
+375ms ║╔Execution stage started
+2238ms ║║Executed physical command [Corner Lamp].setHue([55]) (1822ms)
+2936ms ║║Executed physical command [Hall Lamp].setHue([55]) (657ms)
+2988ms ║╚Execution stage complete. (2614ms)
+3038ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 8:57:07 AM CDT (in 72.338s), with 92 more jobs pending
+3077ms ╚Event processed successfully (3076ms)
9/25/2017, 8:54:37 AM +429ms
+2ms ╔Received event [Home].time = 1506347677879 with a delay of -451ms
+520ms ║RunTime Analysis CS > 28ms > PS > 95ms > PE > 397ms > CE
+544ms ║Runtime (39185 bytes) successfully initialized in 95ms (v0.2.0ea.20170924) (540ms)
+546ms ║╔Execution stage started
+2463ms ║║Executed physical command [Corner Lamp].setHue([54]) (1876ms)
+3246ms ║║Executed physical command [Hall Lamp].setHue([54]) (741ms)
+3294ms ║╚Execution stage complete. (2748ms)
+3341ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 8:55:52 AM CDT (in 72.112s), with 94 more jobs pending
+3377ms ╚Event processed successfully (3376ms)
9/25/2017, 8:53:22 AM +416ms
+1ms ╔Received event [Home].time = 1506347602878 with a delay of -464ms
+486ms ║RunTime Analysis CS > 37ms > PS > 114ms > PE > 336ms > CE
+508ms ║Runtime (39187 bytes) successfully initialized in 114ms (v0.2.0ea.20170924) (504ms)
+511ms ║╔Execution stage started
+2268ms ║║Executed physical command [Corner Lamp].setHue([53]) (1716ms)
+2997ms ║║Executed physical command [Hall Lamp].setHue([53]) (675ms)
+3048ms ║╚Execution stage complete. (2539ms)
+3100ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 8:54:37 AM CDT (in 72.364s), with 96 more jobs pending
+3139ms ╚Event processed successfully (3140ms)
9/25/2017, 8:52:05 AM +434ms
+1ms ╔Received event [Home].time = 1506347526218 with a delay of -786ms
+254ms ║RunTime Analysis CS > 25ms > PS > 78ms > PE > 153ms > CE
+377ms ║Runtime (39185 bytes) successfully initialized in 78ms (v0.2.0ea.20170924) (374ms)
+378ms ║╔Execution stage started
+2435ms ║║Executed physical command [Corner Lamp].setHue([52]) (1992ms)
+2499ms ║║Executed virtual command [Corner Lamp].fadeHue (2073ms)
+3256ms ║║Executed physical command [Hall Lamp].setHue([52]) (749ms)
+3483ms ║║Executed virtual command [Hall Lamp].fadeHue (980ms)
+3484ms ║║Requesting a wake up for Mon, Sep 25 2017 @ 9:52:09 AM CDT (in 3600.1s)
+3567ms ║╚Execution stage complete. (3188ms)
+3616ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 8:53:22 AM CDT (in 73.83s), with 98 more jobs pending
+3656ms ╚Event processed successfully (3655ms)
9/25/2017, 8:51:54 AM +686ms
+1ms ╔Received event [Home].routineExecuted = 43b39d9f-9a5b-4544-abdb-2c893831ffe0 with a delay of 106ms
+238ms ║RunTime Analysis CS > 22ms > PS > 82ms > PE > 134ms > CE
+255ms ║Runtime (39190 bytes) successfully initialized in 82ms (v0.2.0ea.20170924) (252ms)
+256ms ║╔Execution stage started
+275ms ║║Comparison (string) :bb90711c6692dd79c34192151d552461: executes (string) :bb90711c6692dd79c34192151d552461: = true (4ms)
+278ms ║║Cancelling condition #11’s schedules…
+279ms ║║Condition #11 evaluated true (11ms)
+280ms ║║Cancelling condition #1’s schedules…
+282ms ║║Condition group #1 evaluated true (state changed) (14ms)
+286ms ║║Cancelling statement #2’s schedules…
+295ms ║║Skipped execution of physical command [Corner Lamp].on([]) because it would make no change to the device. (4ms)
+297ms ║║Executed [Corner Lamp].on (6ms)
+303ms ║║Skipped execution of physical command [Hall Lamp].on([]) because it would make no change to the device. (3ms)
+304ms ║║Executed [Hall Lamp].on (5ms)
+316ms ║║Skipped execution of physical command [Corner Lamp].setLevel([100]) because it would make no change to the device. (6ms)
+317ms ║║Executed [Corner Lamp].setLevel (8ms)
+326ms ║║Skipped execution of physical command [Hall Lamp].setLevel([100]) because it would make no change to the device. (6ms)
+327ms ║║Executed [Hall Lamp].setLevel (8ms)
+341ms ║║Comparison (string) :8599c0c375cd7f738f002d6e68f6e640: is_any_of (string) :8599c0c375cd7f738f002d6e68f6e640:,:0cfc1d81253ad5cdbc1a17ac52caa9a6: = true (3ms)
+343ms ║║Condition #10 evaluated true (11ms)
+345ms ║║Condition group #5 evaluated true (state did not change) (12ms)
+349ms ║║Cancelling statement #6’s schedules…
+1095ms ║║Executed physical command [Corner Lamp].refresh() (742ms)
+1096ms ║║Executed [Corner Lamp].refresh (744ms)
+1522ms ║║Executed physical command [Hall Lamp].refresh() (423ms)
+1523ms ║║Executed [Hall Lamp].refresh (425ms)
+1529ms ║║Executed virtual command [Corner Lamp, Hall Lamp].wait (1ms)
+1531ms ║║Requesting a wake up for Mon, Sep 25 2017 @ 8:52:06 AM CDT (in 10.0s)
+1542ms ║╚Execution stage complete. (1287ms)
+1545ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 8:52:06 AM CDT (in 9.989s)
+1583ms ╚Event processed successfully (1583ms)


#16

So just to see what would happen. I set fad to hue 100° in 2 minuets. Starting at 190°. Piston started, and in 2 minuets faded to 360°.

9/25/2017, 9:22:42 AM +487ms
+1ms ╔Received event [Home].time = 1506349357740 with a delay of 4746ms
+335ms ║RunTime Analysis CS > 53ms > PS > 111ms > PE > 171ms > CE
+352ms ║Runtime (39262 bytes) successfully initialized in 111ms (v0.2.0ea.20170924) (349ms)
+353ms ║╔Execution stage started
+1130ms ║║Executed physical command [Hall Lamp].setHue([100]) (765ms)
+1174ms ║║Executed virtual command [Corner Lamp, Hall Lamp].wait (1ms)
+1176ms ║║Requesting a wake up for Mon, Sep 25 2017 @ 9:23:43 AM CDT (in 60.0s)
+1187ms ║╚Execution stage complete. (835ms)
+1190ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:23:43 AM CDT (in 59.988s)
+1219ms ╚Event processed successfully (1219ms)
9/25/2017, 9:22:36 AM +485ms
+1ms ╔Received event [Home].time = 1506349356842 with a delay of -359ms
+403ms ║RunTime Analysis CS > 35ms > PS > 135ms > PE > 234ms > CE
+516ms ║Runtime (39262 bytes) successfully initialized in 135ms (v0.2.0ea.20170924) (514ms)
+518ms ║╔Execution stage started
+2276ms ║║Executed physical command [Corner Lamp].setHue([100]) (1738ms)
+4313ms ║║Executed physical command [Corner Lamp].setHue([100]) (2020ms)
+5127ms ║║Executed physical command [Hall Lamp].setHue([100]) (797ms)
+5128ms ║╚Execution stage complete. (4611ms)
+5132ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:22:37 AM CDT (in 1s), with 1 more job pending
+5159ms ╚Event processed successfully (5160ms)
9/25/2017, 9:22:31 AM +505ms
+1ms ╔Received event [Home].time = 1506349351841 with a delay of -337ms
+367ms ║RunTime Analysis CS > 32ms > PS > 91ms > PE > 244ms > CE
+384ms ║Runtime (39260 bytes) successfully initialized in 91ms (v0.2.0ea.20170924) (382ms)
+385ms ║╔Execution stage started
+2390ms ║║Executed physical command [Corner Lamp].setHue([98]) (1995ms)
+3165ms ║║Executed physical command [Hall Lamp].setHue([98]) (764ms)
+3170ms ║╚Execution stage complete. (2784ms)
+3175ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:22:36 AM CDT (in 2.164s), with 4 more jobs pending
+3214ms ╚Event processed successfully (3214ms)
9/25/2017, 9:22:25 AM +553ms
+0ms ╔Received event [Home].time = 1506349342636 with a delay of 2916ms
+300ms ║RunTime Analysis CS > 23ms > PS > 103ms > PE > 174ms > CE
+331ms ║Runtime (39262 bytes) successfully initialized in 103ms (v0.2.0ea.20170924) (329ms)
+332ms ║╔Execution stage started
+1128ms ║║Executed physical command [Hall Lamp].setHue([94]) (784ms)
+1133ms ║║Fast executing schedules, waiting for 155ms to sync up
+3327ms ║║Executed physical command [Corner Lamp].setHue([96]) (2030ms)
+4182ms ║║Executed physical command [Hall Lamp].setHue([96]) (842ms)
+4187ms ║╚Execution stage complete. (3856ms)
+4193ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:22:31 AM CDT (in 2.096s), with 6 more jobs pending
+4230ms ╚Event processed successfully (4231ms)
9/25/2017, 9:22:17 AM +509ms
+1ms ╔Received event [Home].time = 1506349336838 with a delay of 670ms
+273ms ║RunTime Analysis CS > 32ms > PS > 80ms > PE > 162ms > CE
+290ms ║Runtime (39259 bytes) successfully initialized in 80ms (v0.2.0ea.20170924) (288ms)
+291ms ║╔Execution stage started
+2440ms ║║Executed physical command [Corner Lamp].setHue([92]) (2135ms)
+3348ms ║║Executed physical command [Hall Lamp].setHue([92]) (895ms)
+3355ms ║║Fast executing schedules, waiting for 976ms to sync up
+6491ms ║║Executed physical command [Corner Lamp].setHue([94]) (2152ms)
+6493ms ║╚Execution stage complete. (6202ms)
+6500ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:22:22 AM CDT (in 1s), with 9 more jobs pending
+6530ms ╚Event processed successfully (6530ms)
9/25/2017, 9:22:10 AM +591ms
+1ms ╔Received event [Home].time = 1506349326836 with a delay of 3754ms
+313ms ║RunTime Analysis CS > 35ms > PS > 109ms > PE > 169ms > CE
+339ms ║Runtime (39262 bytes) successfully initialized in 109ms (v0.2.0ea.20170924) (338ms)
+341ms ║╔Execution stage started
+2300ms ║║Executed physical command [Corner Lamp].setHue([88]) (1944ms)
+3088ms ║║Executed physical command [Hall Lamp].setHue([88]) (773ms)
+4819ms ║║Executed physical command [Corner Lamp].setHue([90]) (1716ms)
+5918ms ║║Executed physical command [Hall Lamp].setHue([90]) (1079ms)
+5920ms ║╚Execution stage complete. (5580ms)
+5934ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:22:16 AM CDT (in 1s), with 12 more jobs pending
+5960ms ╚Event processed successfully (5959ms)
9/25/2017, 9:22:03 AM +297ms
+1ms ╔Received event [Home].time = 1506349316834 with a delay of 6462ms
+316ms ║RunTime Analysis CS > 35ms > PS > 92ms > PE > 190ms > CE
+333ms ║Runtime (39260 bytes) successfully initialized in 92ms (v0.2.0ea.20170924) (331ms)
+335ms ║╔Execution stage started
+2086ms ║║Executed physical command [Corner Lamp].setHue([83]) (1732ms)
+2885ms ║║Executed physical command [Hall Lamp].setHue([83]) (776ms)
+4937ms ║║Executed physical command [Corner Lamp].setHue([85]) (2030ms)
+5759ms ║║Executed physical command [Hall Lamp].setHue([85]) (801ms)
+5761ms ║╚Execution stage complete. (5427ms)
+5773ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:22:06 AM CDT (in 1s), with 16 more jobs pending
+5813ms ╚Event processed successfully (5812ms)
9/25/2017, 9:21:57 AM +188ms
+1ms ╔Received event [Home].time = 1506349306830 with a delay of 10357ms
+269ms ║RunTime Analysis CS > 30ms > PS > 80ms > PE > 159ms > CE
+287ms ║Runtime (39261 bytes) successfully initialized in 80ms (v0.2.0ea.20170924) (285ms)
+289ms ║╔Execution stage started
+2225ms ║║Executed physical command [Corner Lamp].setHue([79]) (1920ms)
+2901ms ║║Executed physical command [Hall Lamp].setHue([79]) (661ms)
+4875ms ║║Executed physical command [Corner Lamp].setHue([81]) (1953ms)
+5559ms ║║Executed physical command [Hall Lamp].setHue([81]) (669ms)
+5560ms ║╚Execution stage complete. (5273ms)
+5572ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:21:56 AM CDT (in 1s), with 20 more jobs pending
+5610ms ╚Event processed successfully (5610ms)
9/25/2017, 9:21:51 AM +482ms
+1ms ╔Received event [Home].time = 1506349311831 with a delay of -350ms
+4557ms ║RunTime Analysis CS > 24ms > PS > 4367ms > PE > 166ms > CE
+4588ms ║Piston waited at a semaphore for 4089ms
+4591ms ║Runtime (39334 bytes) successfully initialized in 4367ms (v0.2.0ea.20170924) (4588ms)
+4592ms ║╔Execution stage started
+5363ms ║║Executed physical command [Hall Lamp].setHue([77]) (754ms)
+5364ms ║╚Execution stage complete. (773ms)
+5377ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:21:46 AM CDT (in 1s), with 24 more jobs pending
+5411ms ╚Event processed successfully (5411ms)
9/25/2017, 9:21:45 AM +556ms
+1ms ╔Received event [Home].time = 1506349302626 with a delay of 2929ms
+421ms ║RunTime Analysis CS > 28ms > PS > 95ms > PE > 298ms > CE
+449ms ║Runtime (39260 bytes) successfully initialized in 95ms (v0.2.0ea.20170924) (447ms)
+451ms ║╔Execution stage started
+1268ms ║║Executed physical command [Hall Lamp].setHue([77]) (793ms)
+2990ms ║║Executed physical command [Corner Lamp].setHue([79]) (1705ms)
+3772ms ║║Executed physical command [Hall Lamp].setHue([79]) (764ms)
+3784ms ║╚Execution stage complete. (3334ms)
+3797ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:21:51 AM CDT (in 2.48s), with 22 more jobs pending
+3897ms ╚Event processed successfully (3897ms)
9/25/2017, 9:21:38 AM +439ms
+1ms ╔Received event [Home].time = 1506349292623 with a delay of 5815ms
+271ms ║RunTime Analysis CS > 21ms > PS > 79ms > PE > 171ms > CE
+287ms ║Runtime (39260 bytes) successfully initialized in 79ms (v0.2.0ea.20170924) (285ms)
+288ms ║╔Execution stage started
+1137ms ║║Executed physical command [Hall Lamp].setHue([73]) (831ms)
+3183ms ║║Executed physical command [Corner Lamp].setHue([75]) (2028ms)
+4006ms ║║Executed physical command [Hall Lamp].setHue([75]) (787ms)
+5823ms ║║Executed physical command [Corner Lamp].setHue([77]) (1791ms)
+5825ms ║╚Execution stage complete. (5537ms)
+5846ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:21:42 AM CDT (in 1s), with 25 more jobs pending
+5938ms ╚Event processed successfully (5938ms)
9/25/2017, 9:21:31 AM +532ms
+1ms ╔Received event [Home].time = 1506349291827 with a delay of -296ms
+286ms ║RunTime Analysis CS > 33ms > PS > 78ms > PE > 175ms > CE
+304ms ║Runtime (39260 bytes) successfully initialized in 78ms (v0.2.0ea.20170924) (301ms)
+306ms ║╔Execution stage started
+2983ms ║║Executed physical command [Corner Lamp].setHue([71]) (2656ms)
+3657ms ║║Executed physical command [Hall Lamp].setHue([71]) (653ms)
+5633ms ║║Executed physical command [Corner Lamp].setHue([73]) (1956ms)
+5635ms ║╚Execution stage complete. (5330ms)
+5659ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:21:32 AM CDT (in 1s), with 29 more jobs pending
+5692ms ╚Event processed successfully (5692ms)
9/25/2017, 9:21:26 AM +460ms
+1ms ╔Received event [Home].time = 1506349286826 with a delay of -367ms
+275ms ║RunTime Analysis CS > 22ms > PS > 93ms > PE > 160ms > CE
+355ms ║Runtime (39260 bytes) successfully initialized in 93ms (v0.2.0ea.20170924) (352ms)
+357ms ║╔Execution stage started
+2148ms ║║Executed physical command [Corner Lamp].setHue([71]) (1771ms)
+2947ms ║║Executed physical command [Hall Lamp].setHue([71]) (757ms)
+2965ms ║╚Execution stage complete. (2608ms)
+2983ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:21:31 AM CDT (in 2.386s), with 30 more jobs pending
+3019ms ╚Event processed successfully (3020ms)
9/25/2017, 9:21:21 AM +546ms
+1ms ╔Received event [Home].time = 1506349281825 with a delay of -279ms
+323ms ║RunTime Analysis CS > 50ms > PS > 86ms > PE > 186ms > CE
+350ms ║Runtime (39260 bytes) successfully initialized in 86ms (v0.2.0ea.20170924) (348ms)
+354ms ║╔Execution stage started
+2403ms ║║Executed physical command [Corner Lamp].setHue([69]) (2024ms)
+3081ms ║║Executed physical command [Hall Lamp].setHue([69]) (656ms)
+3102ms ║╚Execution stage complete. (2750ms)
+3124ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:21:26 AM CDT (in 2.158s), with 32 more jobs pending
+3298ms ╚Event processed successfully (3298ms)
9/25/2017, 9:21:16 AM +521ms
+1ms ╔Received event [Home].time = 1506349276824 with a delay of -304ms
+317ms ║RunTime Analysis CS > 33ms > PS > 115ms > PE > 170ms > CE
+334ms ║Runtime (39262 bytes) successfully initialized in 115ms (v0.2.0ea.20170924) (331ms)
+335ms ║╔Execution stage started
+2357ms ║║Executed physical command [Corner Lamp].setHue([67]) (2000ms)
+3128ms ║║Executed physical command [Hall Lamp].setHue([67]) (751ms)
+3145ms ║╚Execution stage complete. (2811ms)
+3163ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:21:21 AM CDT (in 2.142s), with 34 more jobs pending
+3188ms ╚Event processed successfully (3188ms)
9/25/2017, 9:21:10 AM +255ms
+2ms ╔Received event [Home].time = 1506349267618 with a delay of 2634ms
+369ms ║RunTime Analysis CS > 33ms > PS > 112ms > PE > 226ms > CE
+389ms ║Runtime (39262 bytes) successfully initialized in 112ms (v0.2.0ea.20170924) (385ms)
+391ms ║╔Execution stage started
+1262ms ║║Executed physical command [Hall Lamp].setHue([63]) (840ms)
+1282ms ║║Fast executing schedules, waiting for 287ms to sync up
+3440ms ║║Executed physical command [Corner Lamp].setHue([65]) (1854ms)
+4263ms ║║Executed physical command [Hall Lamp].setHue([65]) (783ms)
+4293ms ║╚Execution stage complete. (3902ms)
+4329ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:21:16 AM CDT (in 2.243s), with 36 more jobs pending
+4354ms ╚Event processed successfully (4355ms)
9/25/2017, 9:21:01 AM +313ms
+1ms ╔Received event [Home].time = 1506349261820 with a delay of -508ms
+406ms ║RunTime Analysis CS > 162ms > PS > 84ms > PE > 161ms > CE
+423ms ║Runtime (39261 bytes) successfully initialized in 84ms (v0.2.0ea.20170924) (420ms)
+424ms ║╔Execution stage started
+2633ms ║║Executed physical command [Corner Lamp].setHue([60]) (2184ms)
+4224ms ║║Executed physical command [Hall Lamp].setHue([60]) (1571ms)
+4238ms ║║Fast executing schedules, waiting for 1272ms to sync up
+7424ms ║║Executed physical command [Corner Lamp].setHue([63]) (1905ms)
+7425ms ║╚Execution stage complete. (7002ms)
+7450ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:21:07 AM CDT (in 1s), with 39 more jobs pending
+7474ms ╚Event processed successfully (7473ms)
9/25/2017, 9:20:56 AM +224ms
+1ms ╔Received event [Home].time = 1506349256819 with a delay of -596ms
+387ms ║RunTime Analysis CS > 42ms > PS > 121ms > PE > 224ms > CE
+403ms ║Runtime (39262 bytes) successfully initialized in 121ms (v0.2.0ea.20170924) (401ms)
+405ms ║╔Execution stage started
+2279ms ║║Executed physical command [Corner Lamp].setHue([58]) (1843ms)
+3081ms ║║Executed physical command [Hall Lamp].setHue([58]) (781ms)
+3102ms ║╚Execution stage complete. (2698ms)
+3126ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:21:01 AM CDT (in 2.473s), with 42 more jobs pending
+3161ms ╚Event processed successfully (3160ms)
9/25/2017, 9:20:51 AM +508ms
+1ms ╔Received event [Home].time = 1506349251818 with a delay of -311ms
+304ms ║RunTime Analysis CS > 24ms > PS > 116ms > PE > 164ms > CE
+331ms ║Runtime (39262 bytes) successfully initialized in 116ms (v0.2.0ea.20170924) (329ms)
+333ms ║╔Execution stage started
+2543ms ║║Executed physical command [Corner Lamp].setHue([56]) (2186ms)
+3225ms ║║Executed physical command [Hall Lamp].setHue([56]) (657ms)
+3251ms ║╚Execution stage complete. (2919ms)
+3279ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:20:56 AM CDT (in 2.033s), with 44 more jobs pending
+3326ms ╚Event processed successfully (3325ms)
9/25/2017, 9:20:46 AM +522ms
+1ms ╔Received event [Home].time = 1506349246817 with a delay of -295ms
+308ms ║RunTime Analysis CS > 38ms > PS > 99ms > PE > 170ms > CE
+349ms ║Runtime (39260 bytes) successfully initialized in 99ms (v0.2.0ea.20170924) (347ms)
+351ms ║╔Execution stage started
+2086ms ║║Executed physical command [Corner Lamp].setHue([54]) (1711ms)
+3231ms ║║Executed physical command [Hall Lamp].setHue([54]) (841ms)
+3263ms ║╚Execution stage complete. (2912ms)
+3295ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:20:51 AM CDT (in 2.002s), with 46 more jobs pending
+3320ms ╚Event processed successfully (3320ms)
9/25/2017, 9:20:41 AM +457ms
+1ms ╔Received event [Home].time = 1506349241816 with a delay of -360ms
+263ms ║RunTime Analysis CS > 22ms > PS > 83ms > PE > 158ms > CE
+296ms ║Runtime (39260 bytes) successfully initialized in 83ms (v0.2.0ea.20170924) (294ms)
+298ms ║╔Execution stage started
+2039ms ║║Executed physical command [Corner Lamp].setHue([52]) (1716ms)
+2697ms ║║Executed physical command [Hall Lamp].setHue([52]) (633ms)
+2724ms ║╚Execution stage complete. (2426ms)
+2752ms ║Setting up scheduled job for Mon, Sep 25 2017 @ 9:20:46 AM CDT (in 2.609s), with 48 more jobs pending
+2785ms ╚Event processed successfully (2784ms)

Then did the same thing with a different starting hue (50). Same results, ramps up to 360°. Now if i do Set Hue 50°. It will work just fine. So its something with the randomhue, thats not jiving.


#17

Instead of $randomhue try (0 + random(360)) in place of it


#18

Sorry for the delay. My better half had some time off work…which means i dont get to mess with stuff easily haha…I plugged in (0 + random(360))…and absolutely nothing at all happened. Guess at this point i’ll just have to forget it and try again later on down the road because im totally out of ideas!