core/homeassistant/components/light
Matthew Treinish 640d58f0a8 Fix X10 commands for mochad light turn on (#11146)
* Fix X10 commands for mochad light turn on

This commit attempts to address issues that a lot of people are having
with the x10 light component. Originally this was written to use the
xdim (extended dim) X10 command. However, not every X10 dimmer device
supports the xdim command. Additionally, it turns out the number of
dim/brighness levels the X10 device supports is device specific and
there is no way to detect this (given the mostly 1 way nature of X10)

To address these issues, this commit removes the usage of xdim and
instead relies on using the 'on' command and the 'dim' command. This
should work on all x10 light devices. In an attempt to address the
different dim/brightness levels supported by different devices this
commit also adds a new optional config value, 'brightness_levels', to
specify if it's either 32, 64, or 256. By default 32 levels are used
as this is the normal case and what is documented by mochad.

Fixes #8943

* make code more readable

* fix style

* fix lint

* fix tests
2017-12-17 00:52:40 +01:00
..
__init__.py Cleanup old stale restore feature (#10593) 2017-11-15 23:03:41 -08:00
abode.py
ads.py Add ADS component (#10142) 2017-12-05 09:44:22 +01:00
avion.py
blinksticklight.py
blinkt.py Single LEDs in Blinkt support (#10581) 2017-11-27 21:14:03 +01:00
decora.py
decora_wifi.py
demo.py Cleanup old stale restore feature (#10593) 2017-11-15 23:03:41 -08:00
enocean.py
flux_led.py
hive.py New Hive Component / Platforms (#9804) 2017-11-23 13:10:23 +01:00
homematic.py
hue.py Refactor hue to split bridge support from light platform (#10691) 2017-12-10 10:15:01 -08:00
hyperion.py
insteon_local.py Refactored to new global json saving and loading (#10677) 2017-11-19 19:47:55 -08:00
insteon_plm.py
isy994.py
knx.py
lifx.py Support LIFX Mini products (#10996) 2017-12-08 08:43:37 -08:00
lifx_legacy.py
light_profiles.csv
limitlessled.py
litejet.py
lutron.py
lutron_caseta.py upgrade to new pylutron_caseta with TLS (#10286) 2017-11-10 12:17:25 +01:00
mochad.py Fix X10 commands for mochad light turn on (#11146) 2017-12-17 00:52:40 +01:00
mqtt.py
mqtt_json.py
mqtt_template.py
mysensors.py
mystrom.py
osramlightify.py
piglow.py
qwikswitch.py
rflink.py
rfxtrx.py
rpi_gpio_pwm.py
scsgate.py
sensehat.py
services.yaml
skybell.py
tellduslive.py
tellstick.py
template.py
tikteck.py
tplink.py Report availability for TP-Link smart bulbs (#10976) 2017-12-12 17:18:46 +01:00
tradfri.py Allow tradfri to read the available state of the device (#11056) 2017-12-11 11:34:48 +01:00
velbus.py
vera.py Added Vera scenes (#10424) 2017-12-07 07:47:19 +01:00
wemo.py
wink.py
x10.py
xiaomi_aqara.py
xiaomi_miio.py python-miio version bumped for improved device support. (#10720) 2017-11-21 09:23:39 +01:00
yeelight.py Fixed Yeelight's color temperature conversion to RGB (#10831) 2017-11-27 20:54:56 -08:00
yeelightsunflower.py
zengge.py
zha.py
zigbee.py
zwave.py