* calculate brightness from color; scale color
* fix merge
* fix sending color only for brightness independent rgb color
* fix tests for rgb and rgbw color
* use public match_max_scale
* color_modes support
* return brightness for color lights
even when no brightness address is set
* apply brightness for color lights
* remove unneeded constants
- add expose attribute function and default value
- default climate havc_mode to "heat" if modes are not supported
- support `update_entity` service call
* Extend knx brightness with rgb brightness if brightness addresses are not supported
* Fix explicit return value
* Check for None
* Remove not needed check
* Disable false positive pylint warning
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Prevent TypeError when KNX RGB(W) light value contains None.
* Pylint doesn't like 'w' as variable name, therefore using 'white' instead.
* Simplified code as suggested by pvizeli.
* KNX light - tunable white rounding error
mitigate rounding errors in kelvin - mired conversion for lights with relative color temperature
fixes https://github.com/home-assistant/home-assistant/issues/26357
* typo _min_kelvin <> _max_kelvin
* black
* update component for xknx 0.11.0
- expose sensor state is not casted to float anymore
- climate mode operation list has no more None values
- light supports white_value (rgbw)
- sensor expects `group_address_state` now instead of `group_address`
- sensor forwards device_class if available
* update manifest to use xknx 0.11.0
* update requirements_all for xknx 0.11.0
* update for xknx 0.11.1
- require xknx 0.11.1
- use 'state_address' instead of 'address' in sensor and binary_sensor configuration
- optional 'sync_state' for sensors and binary_sensors
* remove questionable `del kwargs`
* KNX: Bumped version to 0.9.4 and added support for tunable white and color temperature for lights.
* Updated to the latest changes
* return None when ct value is unknown
- return None instead of default value when ct is unknown
- remove DEFAULT_COLOR_TEMPERATURE
* use Kelvin as base for relative color temperature
use Kelvin as base for relative color temperature instead of Mireds
* moved fallback value tests for clarity
* Update request from oliverblaha
Co-Authored-By: marvin-w <marvin@fam-wichmann.de>
* Address suggested changes
* Update homeassistant/components/knx/light.py
Co-Authored-By: marvin-w <marvin@fam-wichmann.de>
* Update homeassistant/components/knx/light.py
Co-Authored-By: marvin-w <marvin@fam-wichmann.de>