Rewrite of the tellstick module. It now uses a common base for all shared functionality.
The rewrite addresses a problem with the tellstick hardware dropping commands when too many simultaneous calls is being made from HA. Also fixes a bug when the dim level was changed externally. This breaks previous configurations. The new config for tellstick is ```yaml tellstick: signal_repetitions: X ``` Lights and Switches are detected automatically. Sensors work like before because they do not share any functionality with the other devices and they also needs a complete other configuration.
This commit is contained in:
1 parent
b67964274b
commit
eb9ed5ccfe
7 files changed
+302
-170
No files matched your search
@@ -16,7 +16,8 @@ from homeassistant.const import (
|
||||
STATE_ON, SERVICE_TURN_ON, SERVICE_TURN_OFF, SERVICE_TOGGLE,
|
||||
ATTR_ENTITY_ID)
|
||||
from homeassistant.components import (
|
||||
group, wemo, wink, isy994, verisure, zwave, tellduslive, mysensors)
|
||||
group, wemo, wink, isy994, verisure,
|
||||
zwave, tellduslive, tellstick, mysensors)
|
||||
|
||||
DOMAIN = 'switch'
|
||||
SCAN_INTERVAL = 30
|
||||
@@ -40,6 +41,7 @@ DISCOVERY_PLATFORMS = {
|
||||
zwave.DISCOVER_SWITCHES: 'zwave',
|
||||
tellduslive.DISCOVER_SWITCHES: 'tellduslive',
|
||||
mysensors.DISCOVER_SWITCHES: 'mysensors',
|
||||
tellstick.DISCOVER_SWITCHES: 'tellstick',
|
||||
}
|
||||
|
||||
PROP_TO_ATTR = {
|
||||
|
||||
Reference in new issue
Block a user