Skip to content

rfxtrx changes do not support Nexa and LightwaveRF binary sensors. #12793

@kylegordon

Description

@kylegordon

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):
0.64

Python release (python3 --version):

Component/platform:
rfxtrx

Description of problem:
Fails to load Nexa and LightwaveRF binary sensors.

Expected:

Problem-relevant configuration.yaml entries and steps to reproduce:

  automatic_add: True
  devices:
    0b1100d800b8196e0a010f70:
      name: Outside Rear Motion
      device_class: motion
    0b11000000b82b560a000060:
      name: Outside Front Motion
      device_class: motion
    0a1400002c22a70a010060:
      name: Utility Room Door
      device_class: opening
2018-02-28 21:56:06 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform rfxtrx
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 84, in async_setup
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.6/asyncio/futures.py", line 243, in result
    raise self._exception
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/binary_sensor/rfxtrx.py", line 58, in setup_platform
    if entity[CONF_DATA_BITS] is not None:
KeyError: 'data_bits'```


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions