* 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 |
||
---|---|---|
.. | ||
__init__.py | ||
abode.py | ||
ads.py | ||
avion.py | ||
blinksticklight.py | ||
blinkt.py | ||
decora.py | ||
decora_wifi.py | ||
demo.py | ||
enocean.py | ||
flux_led.py | ||
hive.py | ||
homematic.py | ||
hue.py | ||
hyperion.py | ||
insteon_local.py | ||
insteon_plm.py | ||
isy994.py | ||
knx.py | ||
lifx.py | ||
lifx_legacy.py | ||
light_profiles.csv | ||
limitlessled.py | ||
litejet.py | ||
lutron.py | ||
lutron_caseta.py | ||
mochad.py | ||
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 | ||
tradfri.py | ||
velbus.py | ||
vera.py | ||
wemo.py | ||
wink.py | ||
x10.py | ||
xiaomi_aqara.py | ||
xiaomi_miio.py | ||
yeelight.py | ||
yeelightsunflower.py | ||
zengge.py | ||
zha.py | ||
zigbee.py | ||
zwave.py |