Add a light & switch rfxtrx sender capability
This commit is contained in:
parent
cc47e39006
commit
db509ccf18
4 changed files with 78 additions and 24 deletions
|
@ -50,7 +50,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
|||
|
||||
# Add entity if not exist and the automatic_add is True
|
||||
if entity_id not in rfxtrx.RFX_DEVICES:
|
||||
automatic_add = config.get('automatic_add', False)
|
||||
automatic_add = config.get('automatic_add', True)
|
||||
if automatic_add:
|
||||
_LOGGER.info("Automatic add %s rfxtrx.light", entity_id)
|
||||
new_sensor = RfxtrxSensor(event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue