Files
core/homeassistant/components/light
Anders Melchiorsen 317bc10ccb LIFX: improve performance of multi-light transitions (#8873)
* LIFX: improve performance of multi-light transitions

To avoid hub overload, the light.turn_on call will change each light
sequentially.

As LIFX has no hub we can safely increase performance by starting all
light transitions concurrently.

* Improve state updates after light changes

The light.turn_on call will set a new state and then immediately read it
back. However, reading the state of a LIFX light right after a state
change can still return the old value.

To handle this situation we have previously delayed the update request a
little while to allow a potential state change to settle. Because light
updates are now run in parallel, this delay might be too short when many
lights are set at once.

This commit introduces a per-light Lock to make it explicit when the
state cannot yet be trusted.

We must then do the state update ourselves. This was already done at the
end of a long transition and that code can be reused for also doing the
update at the start of a transition.
2017-08-10 10:29:04 +02:00
..
2017-07-06 23:20:39 -07:00
2017-05-02 09:18:47 -07:00
2017-04-30 20:10:08 -07:00
2017-05-02 09:18:47 -07:00
2017-08-03 10:51:01 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-07-11 21:22:00 +02:00
2017-05-02 21:21:37 -07:00
2017-05-02 09:18:47 -07:00
2017-05-04 23:50:53 -07:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-07-31 09:02:04 -07:00
2017-07-31 08:58:47 -07:00
2017-07-26 14:03:29 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-07-20 15:20:00 +02:00
2017-05-02 09:18:47 -07:00
2016-09-10 18:22:58 -07:00