hass-core/homeassistant
Anders Melchiorsen ffb8872f95 LIFX: use white light when setting a specific temperature (#7256)
* Default to white when setting LIFX temperature

Changing the temperature of a saturated color is possible but not very
interesting. So assume that a change of the temperature implies setting
the color to white, unless a different color is actually specified.

This makes the frontend temperature picker much more useful because it can
now be used to get away from a colored light.

* Default to a neutral white temperature when setting LIFX colors

This means that setting a particular color will always give the same output,
no matter what the temperature was previously at.

* Find brightness after colors

Now the color_temp logic will not see a changed color when setting
temperature+brightness and thus we will actually get a white light in
this situation.

The XY conversion can then not use brightness as input. This is not
an issue because XY only affects hue and saturation, not brightness. So
we can just use an arbitrary value as brightness input.

* Add a simple comment to a complex conditional
2017-04-26 17:21:14 +02:00
..
components LIFX: use white light when setting a specific temperature (#7256) 2017-04-26 17:21:14 +02:00
helpers Don't use len(SEQUENCE) as condition value (#7249) 2017-04-23 20:41:09 -07:00
scripts Add script to import state events to InfluxDB (#7254) 2017-04-24 23:01:09 +02:00
util Capture and log pip install error output (#7200) 2017-04-21 14:15:05 +02:00
__init__.py Fix PEP257 issues 2016-03-08 00:06:04 +01:00
__main__.py Fix automations listening to HOMEASSISTANT_START (#6936) 2017-04-05 23:23:02 -07:00
bootstrap.py Add history to component priority list (#7173) 2017-04-19 09:15:18 -07:00
config.py Add notice regarding submission of analytics (#7263) 2017-04-23 19:59:26 -07:00
const.py Bump version to 0.44.0.dev0 (#7217) 2017-04-22 11:52:24 +02:00
core.py Don't use len(SEQUENCE) as condition value (#7249) 2017-04-23 20:41:09 -07:00
exceptions.py Fix automations listening to HOMEASSISTANT_START (#6936) 2017-04-05 23:23:02 -07:00
loader.py Don't use len(SEQUENCE) as condition value (#7249) 2017-04-23 20:41:09 -07:00
package_constraints.txt Upgrade chardet to 3.0.2 (#7112) 2017-04-15 18:32:06 -07:00
remote.py Remove deprecated remote classes (#7011) 2017-04-10 09:04:19 -07:00
setup.py Automation: initial state > restore state (#6911) 2017-04-03 23:11:39 -07:00