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:
Stefan Jonasson committed 2016-03-13 19:28:42 +01:00
1 parent b67964274b
commit eb9ed5ccfe
7 files changed
+302 -170

No files matched your search

+3 -1
View File
@@ -9,7 +9,8 @@ import os
import csv
from homeassistant.components import (
group, discovery, wemo, wink, isy994, zwave, insteon_hub, mysensors)
group, discovery, wemo, wink, isy994,
zwave, insteon_hub, mysensors, tellstick)
from homeassistant.config import load_yaml_config_file
from homeassistant.const import (
STATE_ON, SERVICE_TURN_ON, SERVICE_TURN_OFF, SERVICE_TOGGLE,
@@ -64,6 +65,7 @@ DISCOVERY_PLATFORMS = {
discovery.SERVICE_HUE: 'hue',
zwave.DISCOVER_LIGHTS: 'zwave',
mysensors.DISCOVER_LIGHTS: 'mysensors',
tellstick.DISCOVER_LIGHTS: 'tellstick',
}
PROP_TO_ATTR = {