Hi!
Does anyone have any experience setting up a RFXcom device? I tried to add a switch using both the hex and decimal ID, but both seem to be failing.
Log:
nov 23 17:42:17 raspberrypi hass[745]: INFO:homeassistant.components.light.rfxtrx:Add switch1 rfxtrx.light
nov 23 17:42:17 raspberrypi hass[745]: ERROR:homeassistant.components.light:Error while setting up platform rfxtrx
nov 23 17:42:17 raspberrypi hass[745]: Traceback (most recent call last):
nov 23 17:42:17 raspberrypi hass[745]: File “/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py”, line 136, in _setup_platform
nov 23 17:42:17 raspberrypi hass[745]: self.hass, platform_config, self.add_entities, discovery_info)
nov 23 17:42:17 raspberrypi hass[745]: File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/light/rfxtrx.py”, line 29, in setup_platform
nov 23 17:42:17 raspberrypi hass[745]: rfxobject = rfxtrx.get_rfx_object(entity_info[‘packetid’])
nov 23 17:42:17 raspberrypi hass[745]: File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/rfxtrx.py”, line 76, in get_rfx_object
nov 23 17:42:17 raspberrypi hass[745]: binarypacket = bytearray.fromhex(packetid)
nov 23 17:42:17 raspberrypi hass[745]: ValueError: non-hexadecimal number found in fromhex() arg at position 6
RFXcom details:
Packettype = Lighting2
subtype = AC
Sequence nbr = 3
ID = 0E510D6 decimal:15012054
Unit = 2
Command = Off
Signal level = 7 -64dBi
configuration.yaml
rfxtrx:
device: /dev/ttyUSB21
debug: True
light: # Note: As the switch identifies itself as “Lighting2” I decided to add “light”, also tried “switch”. Both return the same error.
platform: rfxtrx
devices:
switch1:
name: switch1
packetid: 0E510D6