LIFX lights turning on in sequence takes too long


#1

1) Give a description of the problem
LIFX lights take too long to turn on (10 bulbs take 19 seconds)

2) What is the expected behaviour?
I want all of the LIFX bulbs to turn on at the same time

3) What is happening/not happening?
I understand webCoRE does things in sequence, except ASYNC commands which should apparently only be used in the case of a WAIT command. But, there’s got to be a way to turn on 10 LIFX (or any other) bulbs faster than 19 seconds (I know they’re on the Cloud vs. local). Has anyone else figured out a better/faster way?

4) Post a Green Snapshot of the pistonimage

5) Attach logs after turning logging level to Full
|+0ms|╔Received event [Home].test = 1573931746522 with a delay of 0ms|
|—|---|
|+134ms|║RunTime Analysis CS > 20ms > PS > 62ms > PE > 52ms > CE|
|+136ms|║Runtime (37507 bytes) successfully initialized in 62ms (v0.3.10a.20190223) (135ms)|
|+137ms|║╔Execution stage started|
|+142ms|║║Cancelling statement #1’s schedules…|
|+3333ms|║║Executed physical command [Bunkbed].on() (3182ms)|
|+3335ms|║║Executed [Bunkbed].on (3184ms)|
|+5601ms|║║Executed physical command [Cabinet].on() (2263ms)|
|+5603ms|║║Executed [Cabinet].on (2265ms)|
|+6906ms|║║Executed physical command [Firepit].on() (1299ms)|
|+6907ms|║║Executed [Firepit].on (1301ms)|
|+8854ms|║║Executed physical command [Flood].on() (1944ms)|
|+8856ms|║║Executed [Flood].on (1946ms)|
|+10771ms|║║Executed physical command [Left].on() (1911ms)|
|+10773ms|║║Executed [Left].on (1914ms)|
|+13649ms|║║Executed physical command [Middle].on() (2873ms)|
|+13650ms|║║Executed [Middle].on (2875ms)|
|+15117ms|║║Executed physical command [Nightstand].on() (1463ms)|
|+15119ms|║║Executed [Nightstand].on (1465ms)|
|+16140ms|║║Executed physical command [Porch].on() (1018ms)|
|+16141ms|║║Executed [Porch].on (1020ms)|
|+17843ms|║║Executed physical command [Right].on() (1698ms)|
|+17844ms|║║Executed [Right].on (1700ms)|
|+19136ms|║║Executed physical command [Table].on() (1288ms)|
|+19138ms|║║Executed [Table].on (1290ms)|
|+19142ms|║╚Execution stage complete. (19005ms)|
|+19144ms|╚Event processed successfully (19143ms)|


Lights will not turn off
#2

I agree… This is definitely not normal… I would try a new Device Handler… There is no reason why a simple turn on command should take 2 seconds… (unless the DH is sloppy, or your home network was busy at the time with pistons looping, downloads in progress, online gaming, bittorrents, or HD streaming)


#3

I removed all LIFX devices and deleted the LIFX (Connect) SmartApp, then reinstalled the same before running this test.


#4

During testing, please (humor me and) verify that all game consoles are off… Steam is not updating… No HD streams incoming… No current downloads in progress… etc.

Depending on your environment, any one of those can make your SmartHome reduce to a crawl…


#5

Correct. Just ran it again…17 seconds. I’m getting 220Mbps down and 10Mbps up on my computer at the same time as this test.

|+1ms|╔Received event [Home].test = 1573936207429 with a delay of 2ms|
|---|---|
|+109ms|║RunTime Analysis CS > 23ms > PS > 53ms > PE > 33ms > CE|
|+112ms|║Runtime (37507 bytes) successfully initialized in 53ms (v0.3.10a.20190223) (110ms)|
|+113ms|║╔Execution stage started|
|+119ms|║║Cancelling statement #1's schedules...|
|+2204ms|║║Executed physical command [Bunkbed].on() (2076ms)|
|+2206ms|║║Executed [Bunkbed].on (2079ms)|
|+4480ms|║║Executed physical command [Cabinet].on() (2270ms)|
|+4482ms|║║Executed [Cabinet].on (2272ms)|
|+5379ms|║║Executed physical command [Firepit].on() (894ms)|
|+5380ms|║║Executed [Firepit].on (896ms)|
|+7383ms|║║Executed physical command [Flood].on() (1999ms)|
|+7385ms|║║Executed [Flood].on (2002ms)|
|+8899ms|║║Executed physical command [Left].on() (1510ms)|
|+8901ms|║║Executed [Left].on (1512ms)|
|+11015ms|║║Executed physical command [Middle].on() (2109ms)|
|+11016ms|║║Executed [Middle].on (2112ms)|
|+12528ms|║║Executed physical command [Nightstand].on() (1508ms)|
|+12529ms|║║Executed [Nightstand].on (1510ms)|
|+13629ms|║║Executed physical command [Porch].on() (1096ms)|
|+13631ms|║║Executed [Porch].on (1098ms)|
|+15382ms|║║Executed physical command [Right].on() (1747ms)|
|+15383ms|║║Executed [Right].on (1750ms)|
|+17470ms|║║Executed physical command [Table].on() (2083ms)|
|+17472ms|║║Executed [Table].on (2086ms)|
|+17478ms|║╚Execution stage complete. (17364ms)|
|+17480ms|╚Event processed successfully (17479ms)|

#6

Can you confirm that all of the list I mentioned above are not running?

If your answer is yes, then I would focus on installing an alternative Device Handler


#7

Yes, that’s correct. Nothing else running and solid internet performance. It seems strange that the LIFX (Connect) SmartApp might be my problem if no one else is complaining about it.


#8

Unfortunately, I don’t have any LIFX here in the shop to test… Hopefully a LIFX user will chime in.


#9

Try the activate LIFX scene command

You can activate the native scenes that you created in the LIFX app.


#10

Sorry, but what does this have to do with my issue?


#11

All of your lights will turn on at the same time if you do it this way. Create a scene in the LIFX app which turns on all of the lights that you want to turn on ( including color and brightness). Then activate that scene using webCoRE.

I am also using this DH with my LIFX bulbs.