I’m trying to set up an RFXTRX with EtekCity ZAP outlets but having some problems (all on Hassbian, homeassistant 0.65.6).
My setup is this:
rfxtrx:
device: '/dev/ttyUSB0'
debug: true
dummy: false
light:
- platform: rfxtrx
automatic_add: True
switch:
- platform: rfxtrx
automatic_add: True
/dev/ttyUSB0
is correct and writable by the homeassistant user. According to the documentation, this should automatically add my devices as soon as I push the button on the remote control. But there’s absolutely nothing.
This is all I see in the logs:
2018-03-25 19:40:40 INFO (MainThread) [homeassistant.loader] Loaded rfxtrx from homeassistant.components.rfxtrx
2018-03-25 19:40:40 INFO (MainThread) [homeassistant.loader] Loaded switch.rfxtrx from homeassistant.components.switch.rfxtrx
2018-03-25 19:40:40 INFO (MainThread) [homeassistant.loader] Loaded light.rfxtrx from homeassistant.components.light.rfxtrx
2018-03-25 19:40:42 INFO (MainThread) [homeassistant.setup] Setting up rfxtrx
2018-03-25 19:40:42 INFO (MainThread) [homeassistant.setup] Setup of domain rfxtrx took 0.1 seconds.
2018-03-25 19:40:42 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=rfxtrx>
2018-03-25 19:40:42 INFO (MainThread) [homeassistant.components.switch] Setting up switch.rfxtrx
2018-03-25 19:40:42 INFO (MainThread) [homeassistant.components.light] Setting up light.rfxtrx
2018-03-25 19:40:42 DEBUG (Thread-10) [homeassistant.components.rfxtrx] Add blanket rfxtrx
2018-03-25 19:40:48 DEBUG (MainThread) [homeassistant.components.websocket_api] WS 1757505424: Sending {'result': {'longitude': 13.465133, 'config_dir': '/home/homeassistant/.homeassistant', 'whitelist_external_dirs': {'/home/homeassistant/.homeassistant/www'}, 'elevation': 35, 'version': '0.65.6', 'components': {'sensor.steam_online', 'sensor', 'binary_sensor', 'media_player', 'device_tracker', 'group', 'config.entity_registry', 'light.rfxtrx', 'logbook', 'tts', 'recorder', 'switch.rfxtrx', 'notify', 'http', 'climate', 'zone', 'automation', 'mqtt', 'api', 'frontend', 'updater', 'media_player.samsungtv', 'binary_sensor.maxcube', 'config.customize', 'system_log', 'hue', 'google_assistant', 'maxcube', 'influxdb', 'sensor.yweather', 'script', 'sun', 'logger', 'config', 'rfxtrx', 'switch.mqtt', 'binary_sensor.mqtt', 'switch', 'light.hue', 'light', 'config.core', 'conversation', 'history', 'media_player.cast', 'climate.maxcube', 'config.script', 'websocket_api', 'config.automation', 'duckdns', 'config.group'}, 'time_zone': 'Europe/Berlin', 'latitude': 52.506191, 'location_name': 'Home', 'unit_system': {'mass': 'g', 'volume': 'L', 'length': 'km', 'temperature': '°C'}}, 'id': 8, 'success': True, 'type': 'result'}
2018-03-25 19:40:48 DEBUG (Thread-13) [homeassistant.util.json] JSON file not found: /srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/light/.translations/rfxtrx.en.json
2018-03-25 19:40:48 DEBUG (Thread-13) [homeassistant.util.json] JSON file not found: /srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/.translations/rfxtrx.en.json
2018-03-25 19:40:48 DEBUG (Thread-13) [homeassistant.util.json] JSON file not found: /srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/.translations/rfxtrx.en.json
I then tried to follow the doc of “training” one of the sockets. I generated a new ID using the template and added it to my config:
switch:
- platform: rfxtrx
automatic_add: True
devices:
0b11000197bc0cfe00010f70:
name: blanket
I then pushed the programming button on the socket, and turned on the switch in HA. But again nothing happend, the remote was still paired and my HA switch does nothing. There wasn’t even some debug info related to me triggering the switch in HA. It seems to me like I’m missing some important part, but I can not figure it out.
Interesting enough, when I also configured sensors like this:
sensor:
- platform: rfxtrx
automatic_add: True
After while time three Temperature sensors were detected with varying values (one was 191°C ) - I have no idea what those sensors are, maybe my neighbours have some weird tech. But is seems to suggest that my RFXTRX at least somehow works.
Any hints on how to get this working (and how to get more debug data) would be much appreciated.